Autoencoders

An autoencoder is a network trained to output its own input. An encoder maps an input to a code . A decoder maps the code back to a reconstruction . Training on examples minimizes the reconstruction loss

The label of each example is the example itself, so no annotation is needed. This makes the autoencoder a form of self-supervised learning. Squared error suits real-valued data, and other data types use the loss that fits them. When , the code is a bottleneck. The network must then compress each input into numbers.

Stack the centered data points as the rows of and take the SVD . The singular values are , with left singular vectors and right singular vectors . PCA encodes by projecting it onto the top right singular vectors, , where . It decodes with . The Eckart-Young theorem says this is the best rank- reconstruction:

A linear autoencoder uses and , with , and no biases. Its total squared error over the data is . If , every global minimum reconstructs the data exactly as PCA does, with total squared error . If also has rank , every global minimum has the form

for some invertible . The rows of therefore span the top- principal subspace. They are the principal axes themselves only when is a permutation matrix times a diagonal matrix.

A nonlinear autoencoder builds and from layers with nonlinear activations, such as MLPs or CNNs. It can represent data that lie near a curved surface, which no flat subspace fits. A image has pixel values, and an encoder might compress it to a code of numbers. Three variants change what the network sees or what the code may do:

  • Denoising autoencoder: the input is a corrupted copy , such as plus noise, and the target is the clean . The corruption is generated during training, as in data augmentation.
  • Masked autoencoder: random parts of the input, such as image patches, are hidden. The network must fill in the hidden parts from the visible ones. The loss compares only the hidden parts with the originals.
  • Sparse autoencoder: the code may be as wide as the input or wider, . A penalty keeps most code entries at zero for each input.

All three stop the network from learning the identity map, which would copy the input and learn nothing.

Rows Versus Columns

Both this note and 7.1. Principal Component Analysis store data points as the rows of . The principal directions are then the right singular vectors of . Some texts store data points as the columns of . There the same directions are the left singular vectors of . Both versions subtract the mean data point first. Without centering, the first direction tends to point toward the mean.

Not Taught in Lecture

The form of the sparsity penalty was not given. A common choice adds to the loss, with a weight . This form is from Goodfellow, Bengio and Courville, Deep Learning (2016), section 14.2.1.

Intuition

Labels are scarce, while inputs are plentiful. An autoencoder turns every input into its own training target. Copying an input is easy, so the network needs a constraint. A bottleneck is one such constraint. Suppose a network must pass pixel values through numbers. It then has to find features that the images share, such as edges, shapes and lighting. The code records each image’s values of those shared features. The figure shows the shape. The encoder narrows, the code is the narrowest point, and the decoder widens back to the input size.

\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{grn}{HTML}{2F9E44}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[x=1cm,y=1cm,>=Stealth]
\draw[cold,very thick] (0,-1.5) rectangle (0.5,1.5);
\draw[cold,very thick] (1.1,1.5) -- (2.9,0.5) -- (2.9,-0.5) -- (1.1,-1.5) -- cycle;
\draw[grn,very thick] (3.5,-0.5) rectangle (4.0,0.5);
\draw[hot,very thick] (4.6,0.5) -- (6.4,1.5) -- (6.4,-1.5) -- (4.6,-0.5) -- cycle;
\draw[hot,very thick] (7.0,-1.5) rectangle (7.5,1.5);
\draw[->,thick] (0.55,0) -- (1.05,0);
\draw[->,thick] (2.95,0) -- (3.45,0);
\draw[->,thick] (4.05,0) -- (4.55,0);
\draw[->,thick] (6.45,0) -- (6.95,0);
\node at (2.0,0) {$\mathbf W_1$};
\node at (5.5,0) {$\mathbf W_2$};
\node at (2.0,2.0) {encoder};
\node at (3.75,2.0) {code};
\node at (5.5,2.0) {decoder};
\node at (0.25,-1.95) {$\mathbf x$ (size $d$)};
\node at (3.75,-0.95) {$\mathbf a$ (size $k$)};
\node at (7.25,-1.95) {$\hat{\mathbf x}$ (size $d$)};
\draw[mid,thick,dashed,<->] (0.25,-2.3) .. controls (0.25,-3.2) and (7.25,-3.2) .. (7.25,-2.3);
\node at (3.75,-3.4) {loss $\|\mathbf x - \hat{\mathbf x}\|^2$};
\end{tikzpicture}
\end{document}

The animation below follows one image through a small autoencoder. The code has numbers. Red cells mark the pixels that the reconstruction gets wrong.

\usepackage{tikz}
\usetikzlibrary{animations, arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[font=\small, >={Stealth[length=2.2mm]}]
\filldraw[draw=black, fill=white] (-0.93,1.05) -- (-0.85,1.03) -- (0.93,1.44) -- (0.85,1.46) -- cycle;
\filldraw[draw=black, fill=white] (-0.93,-1.44) -- (-0.85,-1.46) -- (-0.85,1.03) -- (-0.93,1.05) -- cycle;
\filldraw[draw=black, fill=white] (-0.85,-1.46) -- (0.93,-1.05) -- (0.93,1.44) -- (-0.85,1.03) -- cycle;
\draw[mid] (-0.85,0.72) -- (0.93,1.13);
\draw[mid] (-0.85,0.41) -- (0.93,0.82);
\draw[mid] (-0.85,0.10) -- (0.93,0.51);
\draw[mid] (-0.85,-0.22) -- (0.93,0.20);
\draw[mid] (-0.85,-0.53) -- (0.93,-0.11);
\draw[mid] (-0.85,-0.84) -- (0.93,-0.43);
\draw[mid] (-0.85,-1.15) -- (0.93,-0.74);
\draw[mid] (-0.62,1.08) -- (-0.62,-1.41);
\draw[mid] (-0.40,1.13) -- (-0.40,-1.36);
\draw[mid] (-0.18,1.19) -- (-0.18,-1.31);
\draw[mid] (0.04,1.24) -- (0.04,-1.26);
\draw[mid] (0.27,1.29) -- (0.27,-1.20);
\draw[mid] (0.49,1.34) -- (0.49,-1.15);
\draw[mid] (0.71,1.39) -- (0.71,-1.10);
\draw[mid] (-0.85,1.03) -- (1.77,0.66);
\draw[mid] (0.93,1.44) -- (2.89,0.92);
\draw[mid] (-0.85,-1.46) -- (1.77,-0.90);
\draw[mid] (0.93,-1.05) -- (2.89,-0.64);
\filldraw[draw=black, fill=white] (1.77,0.66) -- (1.86,0.64) -- (2.97,0.90) -- (2.89,0.92) -- cycle;
\filldraw[draw=black, fill=white] (1.77,-0.90) -- (1.86,-0.92) -- (1.86,0.64) -- (1.77,0.66) -- cycle;
\filldraw[draw=black, fill=white] (1.86,-0.92) -- (2.97,-0.66) -- (2.97,0.90) -- (1.86,0.64) -- cycle;
\draw[mid] (1.86,0.33) -- (2.97,0.59);
\draw[mid] (1.86,0.02) -- (2.97,0.28);
\draw[mid] (1.86,-0.29) -- (2.97,-0.04);
\draw[mid] (1.86,-0.61) -- (2.97,-0.35);
\draw[mid] (2.08,0.69) -- (2.08,-0.87);
\draw[mid] (2.31,0.74) -- (2.31,-0.81);
\draw[mid] (2.53,0.80) -- (2.53,-0.76);
\draw[mid] (2.75,0.85) -- (2.75,-0.71);
\draw[mid] (1.86,0.64) -- (3.98,0.59);
\draw[mid] (2.97,0.90) -- (4.27,0.66);
\draw[mid] (1.86,-0.92) -- (3.98,-0.64);
\draw[mid] (2.97,-0.66) -- (4.27,-0.57);
\filldraw[draw=black, fill=white] (3.98,0.59) -- (4.07,0.57) -- (4.36,0.64) -- (4.27,0.66) -- cycle;
\filldraw[draw=black, fill=white] (3.98,-0.64) -- (4.07,-0.66) -- (4.07,0.57) -- (3.98,0.59) -- cycle;
\filldraw[draw=black, fill=white] (4.07,-0.66) -- (4.36,-0.59) -- (4.36,0.64) -- (4.07,0.57) -- cycle;
\draw[mid] (4.07,0.16) -- (4.36,0.23);
\draw[mid] (4.07,-0.25) -- (4.36,-0.18);
\draw[mid] (4.07,0.57) -- (5.37,0.66);
\draw[mid] (4.36,0.64) -- (6.48,0.92);
\draw[mid] (4.07,-0.66) -- (5.37,-0.90);
\draw[mid] (4.36,-0.59) -- (6.48,-0.64);
\filldraw[draw=black, fill=white] (5.37,0.66) -- (5.46,0.64) -- (6.57,0.90) -- (6.48,0.92) -- cycle;
\filldraw[draw=black, fill=white] (5.37,-0.90) -- (5.46,-0.92) -- (5.46,0.64) -- (5.37,0.66) -- cycle;
\filldraw[draw=black, fill=white] (5.46,-0.92) -- (6.57,-0.66) -- (6.57,0.90) -- (5.46,0.64) -- cycle;
\draw[mid] (5.46,0.33) -- (6.57,0.59);
\draw[mid] (5.46,0.02) -- (6.57,0.28);
\draw[mid] (5.46,-0.29) -- (6.57,-0.04);
\draw[mid] (5.46,-0.61) -- (6.57,-0.35);
\draw[mid] (5.68,0.69) -- (5.68,-0.87);
\draw[mid] (5.90,0.74) -- (5.90,-0.81);
\draw[mid] (6.12,0.80) -- (6.12,-0.76);
\draw[mid] (6.35,0.85) -- (6.35,-0.71);
\draw[mid] (5.46,0.64) -- (7.41,1.05);
\draw[mid] (6.57,0.90) -- (9.19,1.46);
\draw[mid] (5.46,-0.92) -- (7.41,-1.44);
\draw[mid] (6.57,-0.66) -- (9.19,-1.03);
\filldraw[draw=black, fill=white] (7.41,1.05) -- (7.50,1.03) -- (9.28,1.44) -- (9.19,1.46) -- cycle;
\filldraw[draw=black, fill=white] (7.41,-1.44) -- (7.50,-1.46) -- (7.50,1.03) -- (7.41,1.05) -- cycle;
\filldraw[draw=black, fill=white] (7.50,-1.46) -- (9.28,-1.05) -- (9.28,1.44) -- (7.50,1.03) -- cycle;
\draw[mid] (7.50,0.72) -- (9.28,1.13);
\draw[mid] (7.50,0.41) -- (9.28,0.82);
\draw[mid] (7.50,0.10) -- (9.28,0.51);
\draw[mid] (7.50,-0.22) -- (9.28,0.20);
\draw[mid] (7.50,-0.53) -- (9.28,-0.11);
\draw[mid] (7.50,-0.84) -- (9.28,-0.43);
\draw[mid] (7.50,-1.15) -- (9.28,-0.74);
\draw[mid] (7.72,1.08) -- (7.72,-1.41);
\draw[mid] (7.94,1.13) -- (7.94,-1.36);
\draw[mid] (8.17,1.19) -- (8.17,-1.31);
\draw[mid] (8.39,1.24) -- (8.39,-1.26);
\draw[mid] (8.61,1.29) -- (8.61,-1.20);
\draw[mid] (8.83,1.34) -- (8.83,-1.15);
\draw[mid] (9.05,1.39) -- (9.05,-1.10);
\node at (0.00,-1.91) {input $\mathbf x$};
\node at (0.00,-2.41) {\footnotesize $64$};
\node at (2.37,-1.91) {encoder};
\node at (2.37,-2.41) {\footnotesize $25$};
\node at (4.17,-1.91) {code $\mathbf a$};
\node at (4.17,-2.41) {\footnotesize $k = 3$};
\node at (5.97,-1.91) {decoder};
\node at (5.97,-2.41) {\footnotesize $25$};
\node at (8.34,-1.91) {output $\hat{\mathbf x}$};
\node at (8.34,-2.41) {\footnotesize $64$};
\begin{scope}[]
\filldraw[draw=black, fill=cold] (-0.40,1.13) -- (-0.18,1.19) -- (-0.18,0.87) -- (-0.40,0.82) -- cycle;
\filldraw[draw=black, fill=cold] (-0.18,1.19) -- (0.04,1.24) -- (0.04,0.93) -- (-0.18,0.87) -- cycle;
\filldraw[draw=black, fill=cold] (0.04,1.24) -- (0.27,1.29) -- (0.27,0.98) -- (0.04,0.93) -- cycle;
\filldraw[draw=black, fill=cold] (0.27,1.29) -- (0.49,1.34) -- (0.49,1.03) -- (0.27,0.98) -- cycle;
\filldraw[draw=black, fill=cold] (-0.62,0.77) -- (-0.40,0.82) -- (-0.40,0.51) -- (-0.62,0.46) -- cycle;
\filldraw[draw=black, fill=cold] (0.49,1.03) -- (0.71,1.08) -- (0.71,0.77) -- (0.49,0.72) -- cycle;
\filldraw[draw=black, fill=cold] (-0.85,0.41) -- (-0.62,0.46) -- (-0.62,0.15) -- (-0.85,0.10) -- cycle;
\filldraw[draw=black, fill=cold] (-0.40,0.51) -- (-0.18,0.56) -- (-0.18,0.25) -- (-0.40,0.20) -- cycle;
\filldraw[draw=black, fill=cold] (0.27,0.67) -- (0.49,0.72) -- (0.49,0.41) -- (0.27,0.35) -- cycle;
\filldraw[draw=black, fill=cold] (0.71,0.77) -- (0.93,0.82) -- (0.93,0.51) -- (0.71,0.46) -- cycle;
\filldraw[draw=black, fill=cold] (-0.85,0.10) -- (-0.62,0.15) -- (-0.62,-0.16) -- (-0.85,-0.22) -- cycle;
\filldraw[draw=black, fill=cold] (0.71,0.46) -- (0.93,0.51) -- (0.93,0.20) -- (0.71,0.15) -- cycle;
\filldraw[draw=black, fill=cold] (-0.85,-0.22) -- (-0.62,-0.16) -- (-0.62,-0.48) -- (-0.85,-0.53) -- cycle;
\filldraw[draw=black, fill=cold] (-0.40,-0.11) -- (-0.18,-0.06) -- (-0.18,-0.37) -- (-0.40,-0.42) -- cycle;
\filldraw[draw=black, fill=cold] (0.27,0.04) -- (0.49,0.09) -- (0.49,-0.22) -- (0.27,-0.27) -- cycle;
\filldraw[draw=black, fill=cold] (0.71,0.15) -- (0.93,0.20) -- (0.93,-0.11) -- (0.71,-0.17) -- cycle;
\filldraw[draw=black, fill=cold] (-0.85,-0.53) -- (-0.62,-0.48) -- (-0.62,-0.79) -- (-0.85,-0.84) -- cycle;
\filldraw[draw=black, fill=cold] (-0.18,-0.37) -- (0.04,-0.32) -- (0.04,-0.63) -- (-0.18,-0.68) -- cycle;
\filldraw[draw=black, fill=cold] (0.04,-0.32) -- (0.27,-0.27) -- (0.27,-0.58) -- (0.04,-0.63) -- cycle;
\filldraw[draw=black, fill=cold] (0.71,-0.17) -- (0.93,-0.11) -- (0.93,-0.43) -- (0.71,-0.48) -- cycle;
\filldraw[draw=black, fill=cold] (-0.62,-0.79) -- (-0.40,-0.74) -- (-0.40,-1.05) -- (-0.62,-1.10) -- cycle;
\filldraw[draw=black, fill=cold] (0.49,-0.53) -- (0.71,-0.48) -- (0.71,-0.79) -- (0.49,-0.84) -- cycle;
\filldraw[draw=black, fill=cold] (-0.40,-1.05) -- (-0.18,-1.00) -- (-0.18,-1.31) -- (-0.40,-1.36) -- cycle;
\filldraw[draw=black, fill=cold] (-0.18,-1.00) -- (0.04,-0.94) -- (0.04,-1.26) -- (-0.18,-1.31) -- cycle;
\filldraw[draw=black, fill=cold] (0.04,-0.94) -- (0.27,-0.89) -- (0.27,-1.20) -- (0.04,-1.26) -- cycle;
\filldraw[draw=black, fill=cold] (0.27,-0.89) -- (0.49,-0.84) -- (0.49,-1.15) -- (0.27,-1.20) -- cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.8s = "true", 9.8s = "true", repeats}}}]
\filldraw[draw=black, fill=cold] (1.86,0.64) -- (2.08,0.69) -- (2.08,0.38) -- (1.86,0.33) -- cycle;
\filldraw[draw=black, fill=cold] (2.08,0.69) -- (2.31,0.74) -- (2.31,0.43) -- (2.08,0.38) -- cycle;
\filldraw[draw=black, fill=cold] (2.75,0.85) -- (2.97,0.90) -- (2.97,0.59) -- (2.75,0.54) -- cycle;
\filldraw[draw=black, fill=cold] (1.86,0.33) -- (2.08,0.38) -- (2.08,0.07) -- (1.86,0.02) -- cycle;
\filldraw[draw=black, fill=cold] (2.31,0.43) -- (2.53,0.48) -- (2.53,0.17) -- (2.31,0.12) -- cycle;
\filldraw[draw=black, fill=cold] (2.75,0.54) -- (2.97,0.59) -- (2.97,0.28) -- (2.75,0.22) -- cycle;
\filldraw[draw=black, fill=cold] (1.86,0.02) -- (2.08,0.07) -- (2.08,-0.24) -- (1.86,-0.29) -- cycle;
\filldraw[draw=black, fill=cold] (2.31,0.12) -- (2.53,0.17) -- (2.53,-0.14) -- (2.31,-0.19) -- cycle;
\filldraw[draw=black, fill=cold] (2.08,-0.24) -- (2.31,-0.19) -- (2.31,-0.50) -- (2.08,-0.55) -- cycle;
\filldraw[draw=black, fill=cold] (2.75,-0.09) -- (2.97,-0.04) -- (2.97,-0.35) -- (2.75,-0.40) -- cycle;
\filldraw[draw=black, fill=cold] (1.86,-0.61) -- (2.08,-0.55) -- (2.08,-0.87) -- (1.86,-0.92) -- cycle;
\filldraw[draw=black, fill=cold] (2.31,-0.50) -- (2.53,-0.45) -- (2.53,-0.76) -- (2.31,-0.81) -- cycle;
\filldraw[draw=black, fill=cold] (2.53,-0.45) -- (2.75,-0.40) -- (2.75,-0.71) -- (2.53,-0.76) -- cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.7s = "true", 9.8s = "true", repeats}}}]
\fill[hot] (4.09,0.50) -- (4.30,0.55) -- (4.30,0.29) -- (4.09,0.24) -- cycle;
\fill[hot] (4.09,0.09) -- (4.18,0.11) -- (4.18,-0.14) -- (4.09,-0.17) -- cycle;
\fill[hot] (4.09,-0.32) -- (4.24,-0.29) -- (4.24,-0.54) -- (4.09,-0.57) -- cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.3s = "true", 9.8s = "true", repeats}}}]
\filldraw[draw=black, fill=cold] (6.12,0.80) -- (6.35,0.85) -- (6.35,0.54) -- (6.12,0.48) -- cycle;
\filldraw[draw=black, fill=cold] (5.46,0.33) -- (5.68,0.38) -- (5.68,0.07) -- (5.46,0.02) -- cycle;
\filldraw[draw=black, fill=cold] (5.68,0.38) -- (5.90,0.43) -- (5.90,0.12) -- (5.68,0.07) -- cycle;
\filldraw[draw=black, fill=cold] (6.35,0.54) -- (6.57,0.59) -- (6.57,0.28) -- (6.35,0.22) -- cycle;
\filldraw[draw=black, fill=cold] (5.68,0.07) -- (5.90,0.12) -- (5.90,-0.19) -- (5.68,-0.24) -- cycle;
\filldraw[draw=black, fill=cold] (6.35,0.22) -- (6.57,0.28) -- (6.57,-0.04) -- (6.35,-0.09) -- cycle;
\filldraw[draw=black, fill=cold] (6.35,-0.09) -- (6.57,-0.04) -- (6.57,-0.35) -- (6.35,-0.40) -- cycle;
\filldraw[draw=black, fill=cold] (5.90,-0.50) -- (6.12,-0.45) -- (6.12,-0.76) -- (5.90,-0.81) -- cycle;
\filldraw[draw=black, fill=cold] (6.35,-0.40) -- (6.57,-0.35) -- (6.57,-0.66) -- (6.35,-0.71) -- cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.2s = "true", 9.8s = "true", repeats}}}]
\filldraw[draw=black, fill=cold] (7.94,1.13) -- (8.17,1.19) -- (8.17,0.87) -- (7.94,0.82) -- cycle;
\filldraw[draw=black, fill=cold] (8.17,1.19) -- (8.39,1.24) -- (8.39,0.93) -- (8.17,0.87) -- cycle;
\filldraw[draw=black, fill=cold] (8.39,1.24) -- (8.61,1.29) -- (8.61,0.98) -- (8.39,0.93) -- cycle;
\filldraw[draw=black, fill=cold] (8.61,1.29) -- (8.83,1.34) -- (8.83,1.03) -- (8.61,0.98) -- cycle;
\filldraw[draw=black, fill=cold] (7.72,0.77) -- (7.94,0.82) -- (7.94,0.51) -- (7.72,0.46) -- cycle;
\filldraw[draw=black, fill=cold] (8.83,1.03) -- (9.05,1.08) -- (9.05,0.77) -- (8.83,0.72) -- cycle;
\filldraw[draw=black, fill=cold] (7.50,0.41) -- (7.72,0.46) -- (7.72,0.15) -- (7.50,0.10) -- cycle;
\filldraw[draw=black, fill=cold] (7.94,0.51) -- (8.17,0.56) -- (8.17,0.25) -- (7.94,0.20) -- cycle;
\filldraw[draw=black, fill=cold] (9.05,0.77) -- (9.28,0.82) -- (9.28,0.51) -- (9.05,0.46) -- cycle;
\filldraw[draw=black, fill=cold] (7.50,0.10) -- (7.72,0.15) -- (7.72,-0.16) -- (7.50,-0.22) -- cycle;
\filldraw[draw=black, fill=cold] (9.05,0.46) -- (9.28,0.51) -- (9.28,0.20) -- (9.05,0.15) -- cycle;
\filldraw[draw=black, fill=cold] (7.50,-0.22) -- (7.72,-0.16) -- (7.72,-0.48) -- (7.50,-0.53) -- cycle;
\filldraw[draw=black, fill=cold] (7.94,-0.11) -- (8.17,-0.06) -- (8.17,-0.37) -- (7.94,-0.42) -- cycle;
\filldraw[draw=black, fill=cold] (8.17,-0.06) -- (8.39,-0.01) -- (8.39,-0.32) -- (8.17,-0.37) -- cycle;
\filldraw[draw=black, fill=cold] (8.61,0.04) -- (8.83,0.09) -- (8.83,-0.22) -- (8.61,-0.27) -- cycle;
\filldraw[draw=black, fill=cold] (9.05,0.15) -- (9.28,0.20) -- (9.28,-0.11) -- (9.05,-0.17) -- cycle;
\filldraw[draw=black, fill=cold] (7.50,-0.53) -- (7.72,-0.48) -- (7.72,-0.79) -- (7.50,-0.84) -- cycle;
\filldraw[draw=black, fill=cold] (8.17,-0.37) -- (8.39,-0.32) -- (8.39,-0.63) -- (8.17,-0.68) -- cycle;
\filldraw[draw=black, fill=cold] (9.05,-0.17) -- (9.28,-0.11) -- (9.28,-0.43) -- (9.05,-0.48) -- cycle;
\filldraw[draw=black, fill=cold] (7.72,-0.79) -- (7.94,-0.74) -- (7.94,-1.05) -- (7.72,-1.10) -- cycle;
\filldraw[draw=black, fill=cold] (8.83,-0.53) -- (9.05,-0.48) -- (9.05,-0.79) -- (8.83,-0.84) -- cycle;
\filldraw[draw=black, fill=cold] (7.94,-1.05) -- (8.17,-1.00) -- (8.17,-1.31) -- (7.94,-1.36) -- cycle;
\filldraw[draw=black, fill=cold] (8.17,-1.00) -- (8.39,-0.94) -- (8.39,-1.26) -- (8.17,-1.31) -- cycle;
\filldraw[draw=black, fill=cold] (8.39,-0.94) -- (8.61,-0.89) -- (8.61,-1.20) -- (8.39,-1.26) -- cycle;
\filldraw[draw=black, fill=cold] (8.61,-0.89) -- (8.83,-0.84) -- (8.83,-1.15) -- (8.61,-1.20) -- cycle;
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 1.8s = "false", 9.8s = "false", repeats}}}]
\node[anchor=west] at (-1.6,-3.06369432643835) {The input is an $8 \times 8$ image, $64$ numbers.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.8s = "true", 2.7s = "false", 9.8s = "false", repeats}}}]
\draw[hot, thick] (-0.85,1.03) -- (1.77,0.66);
\draw[hot, thick] (0.93,1.44) -- (2.89,0.92);
\draw[hot, thick] (-0.85,-1.46) -- (1.77,-0.90);
\draw[hot, thick] (0.93,-1.05) -- (2.89,-0.64);
\node[anchor=west] at (-1.6,-3.06369432643835) {The encoder squeezes it through smaller layers.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.7s = "true", 4.3s = "false", 9.8s = "false", repeats}}}]
\draw[hot, thick] (1.86,0.64) -- (3.98,0.59);
\draw[hot, thick] (2.97,0.90) -- (4.27,0.66);
\draw[hot, thick] (1.86,-0.92) -- (3.98,-0.64);
\draw[hot, thick] (2.97,-0.66) -- (4.27,-0.57);
\node[anchor=west] at (-1.6,-3.06369432643835) {The code holds only $k = 3$ numbers.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.3s = "true", 5.2s = "false", 9.8s = "false", repeats}}}]
\draw[hot, thick] (4.07,0.57) -- (5.37,0.66);
\draw[hot, thick] (4.36,0.64) -- (6.48,0.92);
\draw[hot, thick] (4.07,-0.66) -- (5.37,-0.90);
\draw[hot, thick] (4.36,-0.59) -- (6.48,-0.64);
\node[anchor=west] at (-1.6,-3.06369432643835) {The decoder expands the code again.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.2s = "true", 6.8s = "false", 9.8s = "false", repeats}}}]
\draw[hot, thick] (5.46,0.64) -- (7.41,1.05);
\draw[hot, thick] (6.57,0.90) -- (9.19,1.46);
\draw[hot, thick] (5.46,-0.92) -- (7.41,-1.44);
\draw[hot, thick] (6.57,-0.66) -- (9.19,-1.03);
\node[anchor=west] at (-1.6,-3.06369432643835) {The output has the input's size: $64$ numbers.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.8s = "true", 9.8s = "true", repeats}}}]
\draw[hot, line width=1.6pt] (8.61,0.67) -- (8.83,0.72) -- (8.83,0.41) -- (8.61,0.35) -- cycle;
\draw[hot, line width=1.6pt] (8.17,-0.06) -- (8.39,-0.01) -- (8.39,-0.32) -- (8.17,-0.37) -- cycle;
\draw[hot, line width=1.6pt] (8.39,-0.32) -- (8.61,-0.27) -- (8.61,-0.58) -- (8.39,-0.63) -- cycle;
\node[anchor=west] at (-1.6,-3.06369432643835) {Loss: squared difference, summed over pixels. Here $3$ pixels (red) differ.};
\end{scope}
\end{tikzpicture}
\end{document}

PCA solves the linear version of this problem in closed form. It keeps the directions along which the data vary most and drops the rest. Gradient descent on a linear autoencoder finds the same -dimensional subspace, but it may describe that subspace in any basis. A nonlinear encoder can also map data that lie on a curved surface to flat coordinates. No linear projection can do that.

The next animation shows a linear autoencoder with a two-number code on points in 3D. Training turns its plane toward the PCA plane, and the error falls to . At the end, every residual points along the dropped direction .

\usepackage{tikz}
\usetikzlibrary{animations, arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\newcommand{\pf}[1]{\filldraw[draw=black, fill=cold] (#1) circle (2.5pt);}
\newcommand{\ph}[1]{\draw[cold, thick] (#1) circle (2.3pt);}
\newcommand{\pr}[1]{\fill[hot] (#1) circle (1.6pt);}
\newcommand{\rs}[2]{\draw (#1) -- (#2);}
\newcommand{\rd}[2]{\draw[dashed] (#1) -- (#2);}
\begin{tikzpicture}[font=\small, >={Stealth[length=2.2mm]}]
\draw (5.45,-1.6) -- (6.55,-1.6);
\draw[dashed] (5.45,-1.39) -- (6.55,-1.39) node[right] {\footnotesize best: $\sigma_3^2 = 1.30$};
\node at (6.00,2.05) {squared error};
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 1.4s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.20,2.19) -- (-1.33,-0.76) -- (-3.20,-2.19) -- (1.33,0.76) -- cycle;
\draw[mid] (-0.57,-0.27) -- (-2.45,-1.70);
\draw[mid] (0.18,0.23) -- (-1.69,-1.21);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.69,1.21) -- (-0.18,-0.23);
\draw[mid] (2.45,1.70) -- (0.57,0.27);
\draw[mid] (1.80,1.12) -- (-2.73,-1.84);
\draw[mid] (2.26,1.48) -- (-2.26,-1.48);
\draw[mid] (2.73,1.84) -- (-1.80,-1.12);
\rd{1.74,0.31}{1.30,0.94}\ph{1.74,0.31}
\rd{2.17,0.15}{1.53,1.08}\ph{2.17,0.15}
\rd{0.74,0.13}{0.56,0.38}\ph{0.74,0.13}
\rd{3.01,-0.13}{1.99,1.35}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.42,0.26}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.91,-0.67}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.19,0.76}\ph{1.97,-0.37}
\rd{2.03,-1.12}{0.90,0.52}\ph{2.03,-1.12}
\pr{0.02,0.09}
\pr{-0.51,-0.28}
\pr{-0.41,-0.22}
\pr{-0.52,-0.31}
\pr{1.30,0.94}
\pr{1.53,1.08}
\pr{-0.65,-0.42}
\pr{-0.71,-0.47}
\pr{-0.57,-0.37}
\pr{-1.14,-0.79}
\pr{0.56,0.38}
\pr{-0.67,-0.48}
\pr{-0.80,-0.57}
\pr{1.99,1.35}
\pr{-0.95,-0.68}
\pr{0.42,0.26}
\pr{-0.08,-0.09}
\pr{-0.91,-0.67}
\pr{1.19,0.76}
\pr{0.90,0.52}
\draw[->, hot, very thick] (0.00,0.00) -- (1.29,0.84);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{0.02,0.09}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-0.51,-0.28}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-0.41,-0.22}\pf{-1.28,1.03}
\rs{-0.66,-0.12}{-0.52,-0.31}\pf{-0.66,-0.12}
\rs{-1.36,0.61}{-0.65,-0.42}\pf{-1.36,0.61}
\rs{-0.96,-0.11}{-0.71,-0.47}\pf{-0.96,-0.11}
\rs{-1.08,0.38}{-0.57,-0.37}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.14,-0.79}\pf{-1.58,-0.16}
\rs{-0.96,-0.06}{-0.67,-0.48}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-0.80,-0.57}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-0.95,-0.68}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.08,-0.09}\pf{-0.14,0.01}
\node at (1.45,0.96) {$\mathbf b_1$};
\node at (0.50,0.41) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.60);
\node[anchor=east] at (5.70,1.60) {$20.02$};
\node[anchor=west] at (-4.4,-3.05) {$20$ points near a plane. A candidate plane starts tilted.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.4s = "true", 1.64s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.09,2.37) -- (-1.73,-0.84) -- (-3.09,-2.37) -- (1.73,0.84) -- cycle;
\draw[mid] (-0.92,-0.31) -- (-2.29,-1.84);
\draw[mid] (-0.12,0.23) -- (-1.49,-1.30);
\draw[mid] (0.68,0.76) -- (-0.68,-0.76);
\draw[mid] (1.49,1.30) -- (0.12,-0.23);
\draw[mid] (2.29,1.84) -- (0.92,0.31);
\draw[mid] (2.07,1.23) -- (-2.75,-1.99);
\draw[mid] (2.41,1.61) -- (-2.41,-1.61);
\draw[mid] (2.75,1.99) -- (-2.07,-1.23);
\rd{1.59,0.41}{1.13,1.01}\ph{1.59,0.41}
\rd{2.08,0.27}{1.40,1.16}\ph{2.08,0.27}
\rd{0.75,0.17}{0.56,0.41}\ph{0.75,0.17}
\rd{3.05,0.04}{1.97,1.46}\ph{3.05,0.04}
\rd{1.05,-0.44}{0.50,0.28}\ph{1.05,-0.44}
\rd{-0.51,-1.01}{-0.74,-0.71}\ph{-0.51,-1.01}
\rd{2.14,-0.26}{1.31,0.83}\ph{2.14,-0.26}
\rd{2.37,-1.00}{1.16,0.57}\ph{2.37,-1.00}
\pr{-0.21,0.09}
\pr{-0.70,-0.32}
\pr{-0.59,-0.25}
\pr{1.13,1.01}
\pr{-0.64,-0.35}
\pr{1.40,1.16}
\pr{-0.74,-0.51}
\pr{-0.68,-0.46}
\pr{-0.59,-0.41}
\pr{0.56,0.41}
\pr{1.97,1.46}
\pr{-1.08,-0.85}
\pr{-0.57,-0.52}
\pr{0.50,0.28}
\pr{-0.69,-0.61}
\pr{-0.83,-0.74}
\pr{0.04,-0.09}
\pr{-0.74,-0.71}
\pr{1.31,0.83}
\pr{1.16,0.57}
\draw[->, hot, very thick] (0.00,0.00) -- (1.37,0.91);
\draw[->, hot, very thick] (0.00,0.00) -- (0.43,0.48);
\rs{-0.64,0.65}{-0.21,0.09}\pf{-0.64,0.65}
\rs{-1.29,0.45}{-0.70,-0.32}\pf{-1.29,0.45}
\rs{-1.51,0.95}{-0.59,-0.25}\pf{-1.51,0.95}
\rs{-0.78,-0.16}{-0.64,-0.35}\pf{-0.78,-0.16}
\rs{-1.00,-0.17}{-0.74,-0.51}\pf{-1.00,-0.17}
\rs{-1.44,0.53}{-0.68,-0.46}\pf{-1.44,0.53}
\rs{-1.14,0.31}{-0.59,-0.41}\pf{-1.14,0.31}
\rs{-1.55,-0.25}{-1.08,-0.85}\pf{-1.55,-0.25}
\rs{-0.88,-0.11}{-0.57,-0.52}\pf{-0.88,-0.11}
\rs{-1.03,-0.17}{-0.69,-0.61}\pf{-1.03,-0.17}
\rs{-1.21,-0.24}{-0.83,-0.74}\pf{-1.21,-0.24}
\rs{-0.04,0.00}{0.04,-0.09}\pf{-0.04,0.00}
\node at (1.49,1.05) {$\mathbf b_1$};
\node at (0.30,0.43) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.60);
\node[anchor=east] at (5.70,1.60) {$20.02$};
\node[anchor=west] at (-4.4,-3.05) {$20$ points near a plane. A candidate plane starts tilted.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.64s = "true", 1.88s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (2.98,2.50) -- (-2.00,-0.92) -- (-2.98,-2.50) -- (2.00,0.92) -- cycle;
\draw[mid] (-1.17,-0.35) -- (-2.15,-1.93);
\draw[mid] (-0.34,0.22) -- (-1.32,-1.36);
\draw[mid] (0.49,0.79) -- (-0.49,-0.79);
\draw[mid] (1.32,1.36) -- (0.34,-0.22);
\draw[mid] (2.15,1.93) -- (1.17,0.35);
\draw[mid] (2.24,1.32) -- (-2.73,-2.11);
\draw[mid] (2.49,1.71) -- (-2.49,-1.71);
\draw[mid] (2.73,2.11) -- (-2.24,-1.32);
\rd{1.46,0.47}{0.98,1.05}\ph{1.46,0.47}
\rd{1.99,0.35}{1.28,1.22}\ph{1.99,0.35}
\rd{3.05,0.17}{1.93,1.54}\ph{3.05,0.17}
\rd{0.74,0.20}{0.56,0.44}\ph{0.74,0.20}
\rd{1.12,-0.39}{0.55,0.31}\ph{1.12,-0.39}
\rd{2.23,-0.17}{1.38,0.89}\ph{2.23,-0.17}
\rd{-0.38,-1.03}{-0.61,-0.74}\ph{-0.38,-1.03}
\rd{2.58,-0.89}{1.34,0.63}\ph{2.58,-0.89}
\pr{-0.37,0.07}
\pr{-0.83,-0.35}
\pr{0.98,1.05}
\pr{-0.71,-0.28}
\pr{1.28,1.22}
\pr{-0.71,-0.38}
\pr{-0.74,-0.55}
\pr{-0.70,-0.49}
\pr{1.93,1.54}
\pr{-0.60,-0.43}
\pr{0.56,0.44}
\pr{-1.03,-0.90}
\pr{0.55,0.31}
\pr{-0.50,-0.54}
\pr{-0.61,-0.64}
\pr{1.38,0.89}
\pr{0.12,-0.09}
\pr{-0.73,-0.77}
\pr{-0.61,-0.74}
\pr{1.34,0.63}
\draw[->, hot, very thick] (0.00,0.00) -- (1.41,0.97);
\draw[->, hot, very thick] (0.00,0.00) -- (0.31,0.49);
\rs{-0.82,0.62}{-0.37,0.07}\pf{-0.82,0.62}
\rs{-1.44,0.40}{-0.83,-0.35}\pf{-1.44,0.40}
\rs{-1.66,0.89}{-0.71,-0.28}\pf{-1.66,0.89}
\rs{-0.86,-0.19}{-0.71,-0.38}\pf{-0.86,-0.19}
\rs{-1.02,-0.21}{-0.74,-0.55}\pf{-1.02,-0.21}
\rs{-1.49,0.47}{-0.70,-0.49}\pf{-1.49,0.47}
\rs{-1.16,0.26}{-0.60,-0.43}\pf{-1.16,0.26}
\rs{-1.51,-0.31}{-1.03,-0.90}\pf{-1.51,-0.31}
\rs{-0.82,-0.15}{-0.50,-0.54}\pf{-0.82,-0.15}
\rs{-0.96,-0.21}{-0.61,-0.64}\pf{-0.96,-0.21}
\rs{0.04,0.00}{0.12,-0.09}\pf{0.04,0.00}
\rs{-1.12,-0.28}{-0.73,-0.77}\pf{-1.12,-0.28}
\node at (1.50,1.11) {$\mathbf b_1$};
\node at (0.14,0.44) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.60);
\node[anchor=east] at (5.70,1.60) {$20.02$};
\node[anchor=west] at (-4.4,-3.05) {$20$ points near a plane. A candidate plane starts tilted.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.88s = "true", 2.12s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (2.92,2.54) -- (-2.09,-0.95) -- (-2.92,-2.54) -- (2.09,0.95) -- cycle;
\draw[mid] (-1.26,-0.37) -- (-2.09,-1.96);
\draw[mid] (-0.42,0.21) -- (-1.25,-1.38);
\draw[mid] (0.42,0.80) -- (-0.42,-0.80);
\draw[mid] (1.25,1.38) -- (0.42,-0.21);
\draw[mid] (2.09,1.96) -- (1.26,0.37);
\draw[mid] (2.30,1.35) -- (-2.72,-2.15);
\draw[mid] (2.51,1.75) -- (-2.51,-1.75);
\draw[mid] (2.72,2.15) -- (-2.30,-1.35);
\rd{1.41,0.49}{0.93,1.07}\ph{1.41,0.49}
\rd{1.95,0.38}{1.24,1.24}\ph{1.95,0.38}
\rd{3.04,0.22}{1.91,1.57}\ph{3.04,0.22}
\rd{0.74,0.22}{0.55,0.44}\ph{0.74,0.22}
\rd{1.14,-0.37}{0.57,0.32}\ph{1.14,-0.37}
\rd{2.26,-0.13}{1.40,0.91}\ph{2.26,-0.13}
\rd{-0.33,-1.04}{-0.57,-0.75}\ph{-0.33,-1.04}
\rd{2.66,-0.85}{1.41,0.65}\ph{2.66,-0.85}
\pr{-0.43,0.07}
\pr{0.93,1.07}
\pr{-0.88,-0.36}
\pr{-0.75,-0.29}
\pr{1.24,1.24}
\pr{-0.74,-0.39}
\pr{1.91,1.57}
\pr{-0.74,-0.56}
\pr{-0.70,-0.50}
\pr{-0.60,-0.44}
\pr{0.55,0.44}
\pr{-1.01,-0.91}
\pr{0.57,0.32}
\pr{-0.47,-0.54}
\pr{1.40,0.91}
\pr{-0.58,-0.65}
\pr{0.15,-0.09}
\pr{-0.69,-0.78}
\pr{-0.57,-0.75}
\pr{1.41,0.65}
\draw[->, hot, very thick] (0.00,0.00) -- (1.42,0.99);
\draw[->, hot, very thick] (0.00,0.00) -- (0.26,0.50);
\rs{-0.88,0.60}{-0.43,0.07}\pf{-0.88,0.60}
\rs{-1.49,0.37}{-0.88,-0.36}\pf{-1.49,0.37}
\rs{-1.71,0.86}{-0.75,-0.29}\pf{-1.71,0.86}
\rs{-0.89,-0.21}{-0.74,-0.39}\pf{-0.89,-0.21}
\rs{-1.02,-0.23}{-0.74,-0.56}\pf{-1.02,-0.23}
\rs{-1.50,0.45}{-0.70,-0.50}\pf{-1.50,0.45}
\rs{-1.17,0.25}{-0.60,-0.44}\pf{-1.17,0.25}
\rs{-1.49,-0.33}{-1.01,-0.91}\pf{-1.49,-0.33}
\rs{-0.79,-0.16}{-0.47,-0.54}\pf{-0.79,-0.16}
\rs{-0.93,-0.23}{-0.58,-0.65}\pf{-0.93,-0.23}
\rs{0.07,0.00}{0.15,-0.09}\pf{0.07,0.00}
\rs{-1.08,-0.30}{-0.69,-0.78}\pf{-1.08,-0.30}
\node at (1.50,1.13) {$\mathbf b_1$};
\node at (0.09,0.44) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.60);
\node[anchor=east] at (5.70,1.60) {$20.02$};
\node[anchor=west] at (-4.4,-3.05) {$20$ points near a plane. A candidate plane starts tilted.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.12s = "true", 2.36s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (2.98,2.50) -- (-2.00,-0.92) -- (-2.98,-2.50) -- (2.00,0.92) -- cycle;
\draw[mid] (-1.17,-0.35) -- (-2.15,-1.93);
\draw[mid] (-0.34,0.22) -- (-1.32,-1.36);
\draw[mid] (0.49,0.79) -- (-0.49,-0.79);
\draw[mid] (1.32,1.36) -- (0.34,-0.22);
\draw[mid] (2.15,1.93) -- (1.17,0.35);
\draw[mid] (2.24,1.32) -- (-2.73,-2.11);
\draw[mid] (2.49,1.71) -- (-2.49,-1.71);
\draw[mid] (2.73,2.11) -- (-2.24,-1.32);
\rd{1.46,0.47}{0.98,1.05}\ph{1.46,0.47}
\rd{1.99,0.35}{1.28,1.22}\ph{1.99,0.35}
\rd{3.05,0.17}{1.93,1.54}\ph{3.05,0.17}
\rd{0.74,0.20}{0.56,0.44}\ph{0.74,0.20}
\rd{1.12,-0.39}{0.55,0.31}\ph{1.12,-0.39}
\rd{2.23,-0.17}{1.38,0.89}\ph{2.23,-0.17}
\rd{-0.38,-1.03}{-0.61,-0.74}\ph{-0.38,-1.03}
\rd{2.58,-0.89}{1.34,0.63}\ph{2.58,-0.89}
\pr{-0.37,0.07}
\pr{-0.83,-0.35}
\pr{0.98,1.05}
\pr{-0.71,-0.28}
\pr{1.28,1.22}
\pr{-0.71,-0.38}
\pr{-0.74,-0.55}
\pr{-0.70,-0.49}
\pr{1.93,1.54}
\pr{-0.60,-0.43}
\pr{0.56,0.44}
\pr{-1.03,-0.90}
\pr{0.55,0.31}
\pr{-0.50,-0.54}
\pr{-0.61,-0.64}
\pr{1.38,0.89}
\pr{0.12,-0.09}
\pr{-0.73,-0.77}
\pr{-0.61,-0.74}
\pr{1.34,0.63}
\draw[->, hot, very thick] (0.00,0.00) -- (1.41,0.97);
\draw[->, hot, very thick] (0.00,0.00) -- (0.31,0.49);
\rs{-0.82,0.62}{-0.37,0.07}\pf{-0.82,0.62}
\rs{-1.44,0.40}{-0.83,-0.35}\pf{-1.44,0.40}
\rs{-1.66,0.89}{-0.71,-0.28}\pf{-1.66,0.89}
\rs{-0.86,-0.19}{-0.71,-0.38}\pf{-0.86,-0.19}
\rs{-1.02,-0.21}{-0.74,-0.55}\pf{-1.02,-0.21}
\rs{-1.49,0.47}{-0.70,-0.49}\pf{-1.49,0.47}
\rs{-1.16,0.26}{-0.60,-0.43}\pf{-1.16,0.26}
\rs{-1.51,-0.31}{-1.03,-0.90}\pf{-1.51,-0.31}
\rs{-0.82,-0.15}{-0.50,-0.54}\pf{-0.82,-0.15}
\rs{-0.96,-0.21}{-0.61,-0.64}\pf{-0.96,-0.21}
\rs{0.04,0.00}{0.12,-0.09}\pf{0.04,0.00}
\rs{-1.12,-0.28}{-0.73,-0.77}\pf{-1.12,-0.28}
\node at (1.50,1.11) {$\mathbf b_1$};
\node at (0.14,0.44) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.60);
\node[anchor=east] at (5.70,1.60) {$20.02$};
\node[anchor=west] at (-4.4,-3.05) {$20$ points near a plane. A candidate plane starts tilted.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.36s = "true", 2.6s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.09,2.37) -- (-1.73,-0.84) -- (-3.09,-2.37) -- (1.73,0.84) -- cycle;
\draw[mid] (-0.92,-0.31) -- (-2.29,-1.84);
\draw[mid] (-0.12,0.23) -- (-1.49,-1.30);
\draw[mid] (0.68,0.76) -- (-0.68,-0.76);
\draw[mid] (1.49,1.30) -- (0.12,-0.23);
\draw[mid] (2.29,1.84) -- (0.92,0.31);
\draw[mid] (2.07,1.23) -- (-2.75,-1.99);
\draw[mid] (2.41,1.61) -- (-2.41,-1.61);
\draw[mid] (2.75,1.99) -- (-2.07,-1.23);
\rd{1.59,0.41}{1.13,1.01}\ph{1.59,0.41}
\rd{2.08,0.27}{1.40,1.16}\ph{2.08,0.27}
\rd{0.75,0.17}{0.56,0.41}\ph{0.75,0.17}
\rd{3.05,0.04}{1.97,1.46}\ph{3.05,0.04}
\rd{1.05,-0.44}{0.50,0.28}\ph{1.05,-0.44}
\rd{-0.51,-1.01}{-0.74,-0.71}\ph{-0.51,-1.01}
\rd{2.14,-0.26}{1.31,0.83}\ph{2.14,-0.26}
\rd{2.37,-1.00}{1.16,0.57}\ph{2.37,-1.00}
\pr{-0.21,0.09}
\pr{-0.70,-0.32}
\pr{-0.59,-0.25}
\pr{1.13,1.01}
\pr{-0.64,-0.35}
\pr{1.40,1.16}
\pr{-0.74,-0.51}
\pr{-0.68,-0.46}
\pr{-0.59,-0.41}
\pr{0.56,0.41}
\pr{1.97,1.46}
\pr{-1.08,-0.85}
\pr{-0.57,-0.52}
\pr{0.50,0.28}
\pr{-0.69,-0.61}
\pr{-0.83,-0.74}
\pr{0.04,-0.09}
\pr{-0.74,-0.71}
\pr{1.31,0.83}
\pr{1.16,0.57}
\draw[->, hot, very thick] (0.00,0.00) -- (1.37,0.91);
\draw[->, hot, very thick] (0.00,0.00) -- (0.43,0.48);
\rs{-0.64,0.65}{-0.21,0.09}\pf{-0.64,0.65}
\rs{-1.29,0.45}{-0.70,-0.32}\pf{-1.29,0.45}
\rs{-1.51,0.95}{-0.59,-0.25}\pf{-1.51,0.95}
\rs{-0.78,-0.16}{-0.64,-0.35}\pf{-0.78,-0.16}
\rs{-1.00,-0.17}{-0.74,-0.51}\pf{-1.00,-0.17}
\rs{-1.44,0.53}{-0.68,-0.46}\pf{-1.44,0.53}
\rs{-1.14,0.31}{-0.59,-0.41}\pf{-1.14,0.31}
\rs{-1.55,-0.25}{-1.08,-0.85}\pf{-1.55,-0.25}
\rs{-0.88,-0.11}{-0.57,-0.52}\pf{-0.88,-0.11}
\rs{-1.03,-0.17}{-0.69,-0.61}\pf{-1.03,-0.17}
\rs{-1.21,-0.24}{-0.83,-0.74}\pf{-1.21,-0.24}
\rs{-0.04,0.00}{0.04,-0.09}\pf{-0.04,0.00}
\node at (1.49,1.05) {$\mathbf b_1$};
\node at (0.30,0.43) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.60);
\node[anchor=east] at (5.70,1.60) {$20.02$};
\node[anchor=west] at (-4.4,-3.05) {$20$ points near a plane. A candidate plane starts tilted.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.6s = "true", 2.86s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.26,2.11) -- (-1.38,-0.67) -- (-3.26,-2.11) -- (1.38,0.67) -- cycle;
\draw[mid] (-0.61,-0.21) -- (-2.49,-1.65);
\draw[mid] (0.17,0.25) -- (-1.71,-1.18);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.71,1.18) -- (-0.17,-0.25);
\draw[mid] (2.49,1.65) -- (0.61,0.21);
\draw[mid] (1.85,1.03) -- (-2.79,-1.75);
\draw[mid] (2.32,1.39) -- (-2.32,-1.39);
\draw[mid] (2.79,1.75) -- (-1.85,-1.03);
\rd{1.74,0.31}{1.33,0.93}\ph{1.74,0.31}
\rd{2.17,0.15}{1.58,1.06}\ph{2.17,0.15}
\rd{0.74,0.13}{0.58,0.37}\ph{0.74,0.13}
\rd{3.01,-0.13}{2.06,1.31}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.46,0.25}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.91,-0.65}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.25,0.73}\ph{1.97,-0.37}
\rd{2.03,-1.12}{0.98,0.48}\ph{2.03,-1.12}
\pr{-0.01,0.11}
\pr{-0.56,-0.26}
\pr{-0.47,-0.21}
\pr{-0.55,-0.29}
\pr{1.33,0.93}
\pr{1.58,1.06}
\pr{-0.69,-0.42}
\pr{-0.74,-0.46}
\pr{-0.60,-0.37}
\pr{-1.18,-0.77}
\pr{0.58,0.37}
\pr{-0.68,-0.48}
\pr{-0.82,-0.56}
\pr{2.06,1.31}
\pr{-0.98,-0.68}
\pr{0.46,0.25}
\pr{-0.07,-0.10}
\pr{-0.91,-0.65}
\pr{1.25,0.73}
\pr{0.98,0.48}
\draw[->, hot, very thick] (0.00,0.00) -- (1.32,0.79);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{-0.01,0.11}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-0.56,-0.26}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-0.47,-0.21}\pf{-1.28,1.03}
\rs{-0.66,-0.12}{-0.55,-0.29}\pf{-0.66,-0.12}
\rs{-1.36,0.61}{-0.69,-0.42}\pf{-1.36,0.61}
\rs{-0.96,-0.11}{-0.74,-0.46}\pf{-0.96,-0.11}
\rs{-1.08,0.38}{-0.60,-0.37}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.18,-0.77}\pf{-1.58,-0.16}
\rs{-0.96,-0.06}{-0.68,-0.48}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-0.82,-0.56}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-0.98,-0.68}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.07,-0.10}\pf{-0.14,0.01}
\node at (1.48,0.92) {$\mathbf b_1$};
\node at (0.50,0.41) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,1.39);
\node[anchor=east] at (5.70,1.39) {$18.69$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.86s = "true", 3.12s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.40,1.89) -- (-1.52,-0.45) -- (-3.40,-1.89) -- (1.52,0.45) -- cycle;
\draw[mid] (-0.70,-0.06) -- (-2.58,-1.50);
\draw[mid] (0.12,0.33) -- (-1.76,-1.11);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.76,1.11) -- (-0.12,-0.33);
\draw[mid] (2.58,1.50) -- (0.70,0.06);
\draw[mid] (1.99,0.81) -- (-2.93,-1.53);
\draw[mid] (2.46,1.17) -- (-2.46,-1.17);
\draw[mid] (2.93,1.53) -- (-1.99,-0.81);
\rd{1.74,0.31}{1.41,0.89}\ph{1.74,0.31}
\rd{2.17,0.15}{1.69,1.00}\ph{2.17,0.15}
\rd{0.74,0.13}{0.62,0.33}\ph{0.74,0.13}
\rd{3.01,-0.13}{2.25,1.20}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.54,0.21}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.90,-0.62}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.40,0.63}\ph{1.97,-0.37}
\rd{2.03,-1.12}{1.18,0.38}\ph{2.03,-1.12}
\pr{-0.09,0.16}
\pr{-0.67,-0.18}
\pr{-0.60,-0.16}
\pr{-0.60,-0.22}
\pr{1.41,0.89}
\pr{1.69,1.00}
\pr{-0.80,-0.38}
\pr{-0.80,-0.40}
\pr{-0.68,-0.34}
\pr{-1.26,-0.71}
\pr{0.62,0.33}
\pr{-0.73,-0.46}
\pr{-0.87,-0.54}
\pr{2.25,1.20}
\pr{-1.04,-0.65}
\pr{0.54,0.21}
\pr{-0.07,-0.13}
\pr{-0.90,-0.62}
\pr{1.40,0.63}
\pr{1.18,0.38}
\draw[->, hot, very thick] (0.00,0.00) -- (1.39,0.66);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{-0.09,0.16}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-0.67,-0.18}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-0.60,-0.16}\pf{-1.28,1.03}
\rs{-0.66,-0.12}{-0.60,-0.22}\pf{-0.66,-0.12}
\rs{-1.36,0.61}{-0.80,-0.38}\pf{-1.36,0.61}
\rs{-0.96,-0.11}{-0.80,-0.40}\pf{-0.96,-0.11}
\rs{-1.08,0.38}{-0.68,-0.34}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.26,-0.71}\pf{-1.58,-0.16}
\rs{-0.96,-0.06}{-0.73,-0.46}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-0.87,-0.54}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-1.04,-0.65}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.07,-0.13}\pf{-0.14,0.01}
\node at (1.56,0.79) {$\mathbf b_1$};
\node at (0.48,0.43) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,0.84);
\node[anchor=east] at (5.70,0.84) {$15.29$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.12s = "true", 3.38s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.56,1.55) -- (-1.69,-0.12) -- (-3.56,-1.55) -- (1.69,0.12) -- cycle;
\draw[mid] (-0.81,0.16) -- (-2.69,-1.28);
\draw[mid] (0.06,0.44) -- (-1.81,-1.00);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.81,1.00) -- (-0.06,-0.44);
\draw[mid] (2.69,1.28) -- (0.81,-0.16);
\draw[mid] (2.16,0.48) -- (-3.09,-1.20);
\draw[mid] (2.63,0.84) -- (-2.63,-0.84);
\draw[mid] (3.09,1.20) -- (-2.16,-0.48);
\rd{-0.66,-0.12}{-0.66,-0.11}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.50,0.83}\ph{1.74,0.31}
\rd{2.17,0.15}{1.84,0.89}\ph{2.17,0.15}
\rd{0.74,0.13}{0.68,0.27}\ph{0.74,0.13}
\rd{3.01,-0.13}{2.50,0.99}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.66,0.14}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.87,-0.57}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.60,0.45}\ph{1.97,-0.37}
\rd{2.03,-1.12}{1.44,0.18}\ph{2.03,-1.12}
\pr{-0.19,0.25}
\pr{-0.81,-0.05}
\pr{-0.79,-0.06}
\pr{-0.66,-0.11}
\pr{1.50,0.83}
\pr{1.84,0.89}
\pr{-0.95,-0.31}
\pr{-0.87,-0.31}
\pr{-0.79,-0.27}
\pr{-1.37,-0.61}
\pr{0.68,0.27}
\pr{-0.79,-0.43}
\pr{-0.94,-0.50}
\pr{2.50,0.99}
\pr{-1.11,-0.60}
\pr{0.66,0.14}
\pr{-0.06,-0.18}
\pr{-0.87,-0.57}
\pr{1.60,0.45}
\pr{1.44,0.18}
\draw[->, hot, very thick] (0.00,0.00) -- (1.49,0.48);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{-0.19,0.25}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-0.81,-0.05}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-0.79,-0.06}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-0.95,-0.31}\pf{-1.36,0.61}
\rs{-0.96,-0.11}{-0.87,-0.31}\pf{-0.96,-0.11}
\rs{-1.08,0.38}{-0.79,-0.27}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.37,-0.61}\pf{-1.58,-0.16}
\rs{-0.96,-0.06}{-0.79,-0.43}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-0.94,-0.50}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-1.11,-0.60}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.06,-0.18}\pf{-0.14,0.01}
\node at (1.65,0.60) {$\mathbf b_1$};
\node at (0.47,0.46) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,0.14);
\node[anchor=east] at (5.70,0.14) {$10.86$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.38s = "true", 3.64s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.72,1.16) -- (-1.84,0.27) -- (-3.72,-1.16) -- (1.84,-0.27) -- cycle;
\draw[mid] (-0.91,0.42) -- (-2.79,-1.01);
\draw[mid] (0.01,0.57) -- (-1.86,-0.87);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.86,0.87) -- (-0.01,-0.57);
\draw[mid] (2.79,1.01) -- (0.91,-0.42);
\draw[mid] (2.31,0.09) -- (-3.25,-0.80);
\draw[mid] (2.78,0.45) -- (-2.78,-0.45);
\draw[mid] (3.25,0.80) -- (-2.31,-0.09);
\rd{-0.66,-0.12}{-0.71,0.03}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.60,0.72}\ph{1.74,0.31}
\rd{2.17,0.15}{1.98,0.74}\ph{2.17,0.15}
\rd{0.74,0.13}{0.72,0.18}\ph{0.74,0.13}
\rd{3.01,-0.13}{2.73,0.71}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.77,0.03}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.84,-0.53}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.78,0.21}\ph{1.97,-0.37}
\rd{2.03,-1.12}{1.69,-0.10}\ph{2.03,-1.12}
\pr{-0.28,0.37}
\pr{-0.94,0.13}
\pr{-0.98,0.11}
\pr{-0.71,0.03}
\pr{1.60,0.72}
\pr{1.98,0.74}
\pr{-1.10,-0.19}
\pr{-0.94,-0.19}
\pr{-0.90,-0.17}
\pr{-1.48,-0.47}
\pr{0.72,0.18}
\pr{-0.85,-0.38}
\pr{-1.01,-0.44}
\pr{2.73,0.71}
\pr{-1.19,-0.53}
\pr{0.77,0.03}
\pr{-0.07,-0.22}
\pr{-0.84,-0.53}
\pr{1.78,0.21}
\pr{1.69,-0.10}
\draw[->, hot, very thick] (0.00,0.00) -- (1.58,0.25);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{-0.28,0.37}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-0.94,0.13}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-0.98,0.11}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-1.10,-0.19}\pf{-1.36,0.61}
\rs{-0.96,-0.11}{-0.94,-0.19}\pf{-0.96,-0.11}
\rs{-1.08,0.38}{-0.90,-0.17}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.48,-0.47}\pf{-1.58,-0.16}
\rs{-0.96,-0.06}{-0.85,-0.38}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-1.01,-0.44}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-1.19,-0.53}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.07,-0.22}\pf{-0.14,0.01}
\node at (1.74,0.38) {$\mathbf b_1$};
\node at (0.46,0.50) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-0.55);
\node[anchor=east] at (5.70,-0.55) {$6.60$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.64s = "true", 3.9s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.82,0.76) -- (-1.95,0.67) -- (-3.82,-0.76) -- (1.95,-0.67) -- cycle;
\draw[mid] (-0.98,0.69) -- (-2.86,-0.75);
\draw[mid] (-0.02,0.70) -- (-1.90,-0.73);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.90,0.73) -- (0.02,-0.70);
\draw[mid] (2.86,0.75) -- (0.98,-0.69);
\draw[mid] (2.41,-0.31) -- (-3.35,-0.41);
\draw[mid] (2.88,0.05) -- (-2.88,-0.05);
\draw[mid] (3.35,0.41) -- (-2.41,0.31);
\rd{-0.66,-0.12}{-0.72,0.17}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.68,0.61}\ph{1.74,0.31}
\rd{2.17,0.15}{2.09,0.55}\ph{2.17,0.15}
\rd{-0.96,-0.11}{-0.97,-0.07}\ph{-0.96,-0.11}
\rd{3.01,-0.13}{2.90,0.38}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.86,-0.10}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.79,-0.51}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.91,-0.06}\ph{1.97,-0.37}
\rd{2.03,-1.12}{1.89,-0.43}\ph{2.03,-1.12}
\pr{-0.35,0.51}
\pr{-1.03,0.33}
\pr{-1.13,0.31}
\pr{-0.72,0.17}
\pr{1.68,0.61}
\pr{2.09,0.55}
\pr{-1.23,-0.03}
\pr{-0.97,-0.07}
\pr{-0.99,-0.05}
\pr{-1.55,-0.32}
\pr{0.74,0.10}
\pr{-0.90,-0.32}
\pr{-1.06,-0.36}
\pr{2.90,0.38}
\pr{-1.26,-0.44}
\pr{0.86,-0.10}
\pr{-0.09,-0.26}
\pr{-0.79,-0.51}
\pr{1.91,-0.06}
\pr{1.89,-0.43}
\draw[->, hot, very thick] (0.00,0.00) -- (1.64,0.03);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{-0.35,0.51}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-1.03,0.33}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-1.13,0.31}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-1.23,-0.03}\pf{-1.36,0.61}
\rs{-1.08,0.38}{-0.99,-0.05}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.55,-0.32}\pf{-1.58,-0.16}
\rs{0.74,0.13}{0.74,0.10}\pf{0.74,0.13}
\rs{-0.96,-0.06}{-0.90,-0.32}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-1.06,-0.36}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-1.26,-0.44}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.09,-0.26}\pf{-0.14,0.01}
\node at (1.80,0.15) {$\mathbf b_1$};
\node at (0.45,0.53) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.04);
\node[anchor=east] at (5.70,-1.04) {$3.48$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.9s = "true", 4.16s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.88,0.42) -- (-2.00,1.02) -- (-3.88,-0.42) -- (2.00,-1.02) -- cycle;
\draw[mid] (-1.02,0.92) -- (-2.90,-0.52);
\draw[mid] (-0.04,0.82) -- (-1.92,-0.62);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.92,0.62) -- (0.04,-0.82);
\draw[mid] (2.90,0.52) -- (1.02,-0.92);
\draw[mid] (2.47,-0.66) -- (-3.41,-0.06);
\draw[mid] (2.94,-0.30) -- (-2.94,0.30);
\draw[mid] (3.41,0.06) -- (-2.47,0.66);
\rd{-0.66,-0.12}{-0.70,0.28}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.72,0.50}\ph{1.74,0.31}
\rd{2.17,0.15}{2.15,0.38}\ph{2.17,0.15}
\rd{-0.96,-0.11}{-0.98,0.04}\ph{-0.96,-0.11}
\rd{3.01,-0.13}{2.99,0.08}\ph{3.01,-0.13}
\rd{0.94,-0.49}{0.91,-0.23}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.74,-0.50}\ph{-0.69,-0.98}
\rd{1.97,-0.37}{1.96,-0.31}\ph{1.97,-0.37}
\rd{2.03,-1.12}{1.99,-0.74}\ph{2.03,-1.12}
\pr{-0.38,0.63}
\pr{-1.07,0.52}
\pr{-1.22,0.50}
\pr{-0.70,0.28}
\pr{1.72,0.50}
\pr{2.15,0.38}
\pr{-1.31,0.12}
\pr{-0.98,0.04}
\pr{-1.05,0.07}
\pr{-1.58,-0.18}
\pr{0.75,0.02}
\pr{-0.94,-0.25}
\pr{-1.10,-0.28}
\pr{2.99,0.08}
\pr{-1.29,-0.35}
\pr{0.91,-0.23}
\pr{-0.11,-0.29}
\pr{-0.74,-0.50}
\pr{1.96,-0.31}
\pr{1.99,-0.74}
\draw[->, hot, very thick] (0.00,0.00) -- (1.67,-0.17);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-0.38,0.68}{-0.38,0.63}\pf{-0.38,0.68}
\rs{-1.07,0.52}{-1.07,0.52}\pf{-1.07,0.52}
\rs{-1.28,1.03}{-1.22,0.50}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-1.31,0.12}\pf{-1.36,0.61}
\rs{-1.08,0.38}{-1.05,0.07}\pf{-1.08,0.38}
\rs{-1.58,-0.16}{-1.58,-0.18}\pf{-1.58,-0.16}
\rs{0.74,0.13}{0.75,0.02}\pf{0.74,0.13}
\rs{-0.96,-0.06}{-0.94,-0.25}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-1.10,-0.28}\pf{-1.11,-0.11}
\rs{-1.31,-0.16}{-1.29,-0.35}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.11,-0.29}\pf{-0.14,0.01}
\node at (1.83,-0.05) {$\mathbf b_1$};
\node at (0.44,0.57) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.31);
\node[anchor=east] at (5.70,-1.31) {$1.84$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.16s = "true", 4.42s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.89,0.17) -- (-2.02,1.27) -- (-3.89,-0.17) -- (2.02,-1.27) -- cycle;
\draw[mid] (-1.03,1.08) -- (-2.91,-0.35);
\draw[mid] (-0.05,0.90) -- (-1.92,-0.54);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.92,0.54) -- (0.05,-0.90);
\draw[mid] (2.91,0.35) -- (1.03,-1.08);
\draw[mid] (2.49,-0.91) -- (-3.42,0.19);
\draw[mid] (2.95,-0.55) -- (-2.95,0.55);
\draw[mid] (3.42,-0.19) -- (-2.49,0.91);
\rd{-0.38,0.68}{-0.38,0.72}\ph{-0.38,0.68}
\rd{-1.07,0.52}{-1.07,0.64}\ph{-1.07,0.52}
\rd{-0.66,-0.12}{-0.67,0.35}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.73,0.41}\ph{1.74,0.31}
\rd{2.17,0.15}{2.17,0.26}\ph{2.17,0.15}
\rd{-0.96,-0.11}{-0.97,0.11}\ph{-0.96,-0.11}
\rd{-1.58,-0.16}{-1.58,-0.08}\ph{-1.58,-0.16}
\rd{0.94,-0.49}{0.94,-0.32}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.71,-0.50}\ph{-0.69,-0.98}
\rd{2.03,-1.12}{2.02,-0.96}\ph{2.03,-1.12}
\pr{-0.38,0.72}
\pr{-1.07,0.64}
\pr{-1.27,0.65}
\pr{-0.67,0.35}
\pr{1.73,0.41}
\pr{2.17,0.26}
\pr{-1.35,0.23}
\pr{-0.97,0.11}
\pr{-1.08,0.16}
\pr{-1.58,-0.08}
\pr{0.74,-0.03}
\pr{-0.95,-0.21}
\pr{-1.11,-0.23}
\pr{3.01,-0.14}
\pr{-1.31,-0.29}
\pr{0.94,-0.32}
\pr{-0.14,-0.31}
\pr{-0.71,-0.50}
\pr{1.97,-0.48}
\pr{2.02,-0.96}
\draw[->, hot, very thick] (0.00,0.00) -- (1.68,-0.31);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-1.28,1.03}{-1.27,0.65}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-1.35,0.23}\pf{-1.36,0.61}
\rs{-1.08,0.38}{-1.08,0.16}\pf{-1.08,0.38}
\rs{0.74,0.13}{0.74,-0.03}\pf{0.74,0.13}
\rs{-0.96,-0.06}{-0.95,-0.21}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-1.11,-0.23}\pf{-1.11,-0.11}
\rs{3.01,-0.13}{3.01,-0.14}\pf{3.01,-0.13}
\rs{-1.31,-0.16}{-1.31,-0.29}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.14,-0.31}\pf{-0.14,0.01}
\rs{1.97,-0.37}{1.97,-0.48}\pf{1.97,-0.37}
\node at (1.84,-0.18) {$\mathbf b_1$};
\node at (0.44,0.59) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.34$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.42s = "true", 4.68s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.89,0.08) -- (-2.02,1.36) -- (-3.89,-0.08) -- (2.02,-1.36) -- cycle;
\draw[mid] (-1.03,1.14) -- (-2.91,-0.29);
\draw[mid] (-0.05,0.93) -- (-1.92,-0.50);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.92,0.50) -- (0.05,-0.93);
\draw[mid] (2.91,0.29) -- (1.03,-1.14);
\draw[mid] (2.49,-1.00) -- (-3.43,0.28);
\draw[mid] (2.96,-0.64) -- (-2.96,0.64);
\draw[mid] (3.43,-0.28) -- (-2.49,1.00);
\rd{-0.38,0.68}{-0.38,0.76}\ph{-0.38,0.68}
\rd{-1.07,0.52}{-1.07,0.69}\ph{-1.07,0.52}
\rd{-0.66,-0.12}{-0.66,0.37}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.74,0.38}\ph{1.74,0.31}
\rd{2.17,0.15}{2.17,0.21}\ph{2.17,0.15}
\rd{-0.96,-0.11}{-0.96,0.14}\ph{-0.96,-0.11}
\rd{-1.58,-0.16}{-1.58,-0.04}\ph{-1.58,-0.16}
\rd{0.94,-0.49}{0.94,-0.35}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.69,-0.50}\ph{-0.69,-0.98}
\rd{2.03,-1.12}{2.03,-1.05}\ph{2.03,-1.12}
\pr{-0.38,0.76}
\pr{-1.07,0.69}
\pr{-1.28,0.70}
\pr{-0.66,0.37}
\pr{1.74,0.38}
\pr{2.17,0.21}
\pr{-1.36,0.28}
\pr{-0.96,0.14}
\pr{-1.08,0.19}
\pr{-1.58,-0.04}
\pr{0.74,-0.05}
\pr{-0.96,-0.19}
\pr{-1.11,-0.21}
\pr{3.01,-0.22}
\pr{-1.31,-0.26}
\pr{0.94,-0.35}
\pr{-0.14,-0.31}
\pr{-0.69,-0.50}
\pr{1.97,-0.55}
\pr{2.03,-1.05}
\draw[->, hot, very thick] (0.00,0.00) -- (1.68,-0.36);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-1.28,1.03}{-1.28,0.70}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-1.36,0.28}\pf{-1.36,0.61}
\rs{-1.08,0.38}{-1.08,0.19}\pf{-1.08,0.38}
\rs{0.74,0.13}{0.74,-0.05}\pf{0.74,0.13}
\rs{-0.96,-0.06}{-0.96,-0.19}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-1.11,-0.21}\pf{-1.11,-0.11}
\rs{3.01,-0.13}{3.01,-0.22}\pf{3.01,-0.13}
\rs{-1.31,-0.16}{-1.31,-0.26}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.14,-0.31}\pf{-0.14,0.01}
\rs{1.97,-0.37}{1.97,-0.55}\pf{1.97,-0.37}
\node at (1.84,-0.24) {$\mathbf b_1$};
\node at (0.44,0.60) {$\mathbf b_2$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Training turns the plane toward the points. The error falls.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 4.68s = "true", 6.88s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.89,0.08) -- (-2.02,1.36) -- (-3.89,-0.08) -- (2.02,-1.36) -- cycle;
\draw[mid] (-1.03,1.14) -- (-2.91,-0.29);
\draw[mid] (-0.05,0.93) -- (-1.92,-0.50);
\draw[mid] (0.94,0.72) -- (-0.94,-0.72);
\draw[mid] (1.92,0.50) -- (0.05,-0.93);
\draw[mid] (2.91,0.29) -- (1.03,-1.14);
\draw[mid] (2.49,-1.00) -- (-3.43,0.28);
\draw[mid] (2.96,-0.64) -- (-2.96,0.64);
\draw[mid] (3.43,-0.28) -- (-2.49,1.00);
\rd{-0.38,0.68}{-0.38,0.76}\ph{-0.38,0.68}
\rd{-1.07,0.52}{-1.07,0.69}\ph{-1.07,0.52}
\rd{-0.66,-0.12}{-0.66,0.37}\ph{-0.66,-0.12}
\rd{1.74,0.31}{1.74,0.38}\ph{1.74,0.31}
\rd{2.17,0.15}{2.17,0.21}\ph{2.17,0.15}
\rd{-0.96,-0.11}{-0.96,0.14}\ph{-0.96,-0.11}
\rd{-1.58,-0.16}{-1.58,-0.04}\ph{-1.58,-0.16}
\rd{0.94,-0.49}{0.94,-0.35}\ph{0.94,-0.49}
\rd{-0.69,-0.98}{-0.69,-0.50}\ph{-0.69,-0.98}
\rd{2.03,-1.12}{2.03,-1.05}\ph{2.03,-1.12}
\pr{-0.38,0.76}
\pr{-1.07,0.69}
\pr{-1.28,0.70}
\pr{-0.66,0.37}
\pr{1.74,0.38}
\pr{2.17,0.21}
\pr{-1.36,0.28}
\pr{-0.96,0.14}
\pr{-1.08,0.19}
\pr{-1.58,-0.04}
\pr{0.74,-0.05}
\pr{-0.96,-0.19}
\pr{-1.11,-0.21}
\pr{3.01,-0.22}
\pr{-1.31,-0.26}
\pr{0.94,-0.35}
\pr{-0.14,-0.31}
\pr{-0.69,-0.50}
\pr{1.97,-0.55}
\pr{2.03,-1.05}
\draw[->, hot, very thick] (0.00,0.00) -- (1.68,-0.36);
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.45);
\rs{-1.28,1.03}{-1.28,0.70}\pf{-1.28,1.03}
\rs{-1.36,0.61}{-1.36,0.28}\pf{-1.36,0.61}
\rs{-1.08,0.38}{-1.08,0.19}\pf{-1.08,0.38}
\rs{0.74,0.13}{0.74,-0.05}\pf{0.74,0.13}
\rs{-0.96,-0.06}{-0.96,-0.19}\pf{-0.96,-0.06}
\rs{-1.11,-0.11}{-1.11,-0.21}\pf{-1.11,-0.11}
\rs{3.01,-0.13}{3.01,-0.22}\pf{3.01,-0.13}
\rs{-1.31,-0.16}{-1.31,-0.26}\pf{-1.31,-0.16}
\rs{-0.14,0.01}{-0.14,-0.31}\pf{-0.14,0.01}
\rs{1.97,-0.37}{1.97,-0.55}\pf{1.97,-0.37}
\node at (1.84,-0.24) {$\mathbf b_1$};
\node at (0.44,0.60) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.19);
\node at (0.00,1.42) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {The best plane is spanned by $\mathbf v_1$ and $\mathbf v_2$, the top PCA directions.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.88s = "true", 7.14s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.90,-0.00) -- (-1.84,1.37) -- (-3.90,0.00) -- (1.84,-1.37) -- cycle;
\draw[mid] (-0.89,1.14) -- (-2.94,-0.23);
\draw[mid] (0.07,0.91) -- (-1.99,-0.46);
\draw[mid] (1.03,0.69) -- (-1.03,-0.69);
\draw[mid] (1.99,0.46) -- (-0.07,-0.91);
\draw[mid] (2.94,0.23) -- (0.89,-1.14);
\draw[mid] (2.36,-1.03) -- (-3.39,0.35);
\draw[mid] (2.87,-0.69) -- (-2.87,0.69);
\draw[mid] (3.39,-0.35) -- (-2.36,1.03);
\rd{-0.29,0.67}{-0.29,0.75}\ph{-0.29,0.67}
\rd{-0.98,0.53}{-0.98,0.70}\ph{-0.98,0.53}
\rd{-0.61,-0.11}{-0.61,0.38}\ph{-0.61,-0.11}
\rd{1.78,0.27}{1.78,0.34}\ph{1.78,0.27}
\rd{-0.94,-0.10}{-0.94,0.16}\ph{-0.94,-0.10}
\rd{2.20,0.10}{2.20,0.16}\ph{2.20,0.10}
\rd{-1.58,-0.13}{-1.58,-0.01}\ph{-1.58,-0.13}
\rd{0.89,-0.51}{0.89,-0.36}\ph{0.89,-0.51}
\rd{-0.75,-0.96}{-0.75,-0.47}\ph{-0.75,-0.96}
\rd{1.89,-1.14}{1.89,-1.07}\ph{1.89,-1.14}
\pr{-0.29,0.75}
\pr{-0.98,0.70}
\pr{-1.19,0.72}
\pr{-0.61,0.38}
\pr{1.78,0.34}
\pr{-1.33,0.30}
\pr{-0.94,0.16}
\pr{-1.06,0.21}
\pr{2.20,0.16}
\pr{-1.58,-0.01}
\pr{0.73,-0.06}
\pr{-0.98,-0.16}
\pr{-1.14,-0.18}
\pr{-1.34,-0.23}
\pr{2.98,-0.27}
\pr{0.89,-0.36}
\pr{-0.18,-0.30}
\pr{-0.75,-0.47}
\pr{1.90,-0.58}
\pr{1.89,-1.07}
\draw[->, hot, very thick] (0.00,0.00) -- (1.63,-0.39);
\draw[->, hot, very thick] (0.00,0.00) -- (0.64,0.43);
\rs{-1.19,1.04}{-1.19,0.72}\pf{-1.19,1.04}
\rs{-1.33,0.64}{-1.33,0.30}\pf{-1.33,0.64}
\rs{-1.06,0.39}{-1.06,0.21}\pf{-1.06,0.39}
\rs{0.73,0.12}{0.73,-0.06}\pf{0.73,0.12}
\rs{-0.98,-0.03}{-0.98,-0.16}\pf{-0.98,-0.03}
\rs{-1.14,-0.08}{-1.14,-0.18}\pf{-1.14,-0.08}
\rs{-1.34,-0.13}{-1.34,-0.23}\pf{-1.34,-0.13}
\rs{2.98,-0.19}{2.98,-0.27}\pf{2.98,-0.19}
\rs{-0.18,0.02}{-0.18,-0.30}\pf{-0.18,0.02}
\rs{1.90,-0.40}{1.90,-0.58}\pf{1.90,-0.40}
\node at (1.81,-0.27) {$\mathbf b_1$};
\node at (0.51,0.58) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.19);
\node at (0.00,1.42) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 7.14s = "true", 7.4s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.87,-0.19) -- (-1.38,1.39) -- (-3.87,0.19) -- (1.38,-1.39) -- cycle;
\draw[mid] (-0.51,1.13) -- (-2.99,-0.07);
\draw[mid] (0.37,0.86) -- (-2.12,-0.33);
\draw[mid] (1.24,0.60) -- (-1.24,-0.60);
\draw[mid] (2.12,0.33) -- (-0.37,-0.86);
\draw[mid] (2.99,0.07) -- (0.51,-1.13);
\draw[mid] (2.00,-1.09) -- (-3.25,0.49);
\draw[mid] (2.62,-0.79) -- (-2.62,0.79);
\draw[mid] (3.25,-0.49) -- (-2.00,1.09);
\rd{-0.74,0.54}{-0.74,0.71}\ph{-0.74,0.54}
\rd{-0.04,0.64}{-0.04,0.72}\ph{-0.04,0.64}
\rd{-0.48,-0.11}{-0.48,0.39}\ph{-0.48,-0.11}
\rd{1.88,0.16}{1.88,0.24}\ph{1.88,0.16}
\rd{-0.88,-0.06}{-0.88,0.19}\ph{-0.88,-0.06}
\rd{-1.57,-0.05}{-1.57,0.07}\ph{-1.57,-0.05}
\rd{2.23,-0.02}{2.23,0.04}\ph{2.23,-0.02}
\rd{-0.90,-0.90}{-0.90,-0.41}\ph{-0.90,-0.90}
\rd{0.77,-0.53}{0.77,-0.39}\ph{0.77,-0.53}
\rd{1.53,-1.18}{1.53,-1.10}\ph{1.53,-1.18}
\pr{-0.74,0.71}
\pr{-0.04,0.72}
\pr{-0.95,0.74}
\pr{-0.48,0.39}
\pr{-1.22,0.35}
\pr{1.88,0.24}
\pr{-0.88,0.19}
\pr{-0.98,0.25}
\pr{-1.57,0.07}
\pr{2.23,0.04}
\pr{0.70,-0.10}
\pr{-1.03,-0.11}
\pr{-1.19,-0.11}
\pr{-1.41,-0.15}
\pr{-0.90,-0.41}
\pr{-0.28,-0.28}
\pr{0.77,-0.39}
\pr{2.86,-0.41}
\pr{1.70,-0.64}
\pr{1.53,-1.10}
\draw[->, hot, very thick] (0.00,0.00) -- (1.49,-0.45);
\draw[->, hot, very thick] (0.00,0.00) -- (0.78,0.37);
\rs{-0.95,1.07}{-0.95,0.74}\pf{-0.95,1.07}
\rs{-1.22,0.69}{-1.22,0.35}\pf{-1.22,0.69}
\rs{-0.98,0.44}{-0.98,0.25}\pf{-0.98,0.44}
\rs{0.70,0.09}{0.70,-0.10}\pf{0.70,0.09}
\rs{-1.03,0.02}{-1.03,-0.11}\pf{-1.03,0.02}
\rs{-1.19,-0.02}{-1.19,-0.11}\pf{-1.19,-0.02}
\rs{-1.41,-0.05}{-1.41,-0.15}\pf{-1.41,-0.05}
\rs{-0.28,0.05}{-0.28,-0.28}\pf{-0.28,0.05}
\rs{2.86,-0.32}{2.86,-0.41}\pf{2.86,-0.32}
\rs{1.70,-0.46}{1.70,-0.64}\pf{1.70,-0.46}
\node at (1.71,-0.35) {$\mathbf b_1$};
\node at (0.70,0.52) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.20);
\node at (0.00,1.43) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 7.4s = "true", 7.66s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.73,-0.41) -- (-0.75,1.37) -- (-3.73,0.41) -- (0.75,-1.37) -- cycle;
\draw[mid] (-0.01,1.07) -- (-2.98,0.11);
\draw[mid] (0.74,0.78) -- (-2.23,-0.18);
\draw[mid] (1.49,0.48) -- (-1.49,-0.48);
\draw[mid] (2.23,0.18) -- (-0.74,-0.78);
\draw[mid] (2.98,-0.11) -- (0.01,-1.07);
\draw[mid] (1.50,-1.13) -- (-2.98,0.65);
\draw[mid] (2.24,-0.89) -- (-2.24,0.89);
\draw[mid] (2.98,-0.65) -- (-1.50,1.13);
\rd{-0.42,0.53}{-0.42,0.70}\ph{-0.42,0.53}
\rd{0.28,0.59}{0.28,0.67}\ph{0.28,0.59}
\rd{-0.30,-0.11}{-0.30,0.39}\ph{-0.30,-0.11}
\rd{-0.79,-0.03}{-0.79,0.23}\ph{-0.79,-0.03}
\rd{-1.52,0.04}{-1.52,0.16}\ph{-1.52,0.04}
\rd{1.95,0.03}{1.95,0.11}\ph{1.95,0.03}
\rd{2.22,-0.15}{2.22,-0.09}\ph{2.22,-0.15}
\rd{-1.07,-0.82}{-1.07,-0.33}\ph{-1.07,-0.82}
\rd{0.59,-0.55}{0.59,-0.41}\ph{0.59,-0.55}
\rd{1.03,-1.19}{1.03,-1.11}\ph{1.03,-1.19}
\pr{-0.42,0.70}
\pr{-0.61,0.74}
\pr{0.28,0.67}
\pr{-0.30,0.39}
\pr{-1.05,0.40}
\pr{-0.79,0.23}
\pr{-0.86,0.29}
\pr{-1.52,0.16}
\pr{1.95,0.11}
\pr{-1.22,-0.03}
\pr{-1.06,-0.04}
\pr{-1.46,-0.06}
\pr{2.22,-0.09}
\pr{0.65,-0.13}
\pr{-1.07,-0.33}
\pr{-0.40,-0.24}
\pr{0.59,-0.41}
\pr{2.64,-0.55}
\pr{1.39,-0.69}
\pr{1.03,-1.11}
\draw[->, hot, very thick] (0.00,0.00) -- (1.27,-0.51);
\draw[->, hot, very thick] (0.00,0.00) -- (0.93,0.30);
\rs{-0.61,1.07}{-0.61,0.74}\pf{-0.61,1.07}
\rs{-1.05,0.74}{-1.05,0.40}\pf{-1.05,0.74}
\rs{-0.86,0.48}{-0.86,0.29}\pf{-0.86,0.48}
\rs{-1.22,0.06}{-1.22,-0.03}\pf{-1.22,0.06}
\rs{-1.06,0.09}{-1.06,-0.04}\pf{-1.06,0.09}
\rs{-1.46,0.04}{-1.46,-0.06}\pf{-1.46,0.04}
\rs{0.65,0.05}{0.65,-0.13}\pf{0.65,0.05}
\rs{-0.40,0.09}{-0.40,-0.24}\pf{-0.40,0.09}
\rs{2.64,-0.46}{2.64,-0.55}\pf{2.64,-0.46}
\rs{1.39,-0.52}{1.39,-0.69}\pf{1.39,-0.52}
\node at (1.53,-0.42) {$\mathbf b_1$};
\node at (0.91,0.44) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.21);
\node at (0.00,1.45) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 7.66s = "true", 7.92s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.48,-0.59) -- (-0.10,1.30) -- (-3.48,0.59) -- (0.10,-1.30) -- cycle;
\draw[mid] (0.49,0.99) -- (-2.88,0.27);
\draw[mid] (1.09,0.67) -- (-2.29,-0.04);
\draw[mid] (1.69,0.36) -- (-1.69,-0.36);
\draw[mid] (2.29,0.04) -- (-1.09,-0.67);
\draw[mid] (2.88,-0.27) -- (-0.49,-0.99);
\draw[mid] (0.95,-1.13) -- (-2.64,0.77);
\draw[mid] (1.79,-0.95) -- (-1.79,0.95);
\draw[mid] (2.64,-0.77) -- (-0.95,1.13);
\rd{-0.09,0.50}{-0.09,0.67}\ph{-0.09,0.50}
\rd{0.59,0.52}{0.59,0.60}\ph{0.59,0.52}
\rd{-0.12,-0.13}{-0.12,0.38}\ph{-0.12,-0.13}
\rd{-0.67,-0.00}{-0.67,0.26}\ph{-0.67,-0.00}
\rd{-1.43,0.11}{-1.43,0.23}\ph{-1.43,0.11}
\rd{1.98,-0.09}{1.98,-0.01}\ph{1.98,-0.09}
\rd{-1.21,-0.74}{-1.21,-0.24}\ph{-1.21,-0.74}
\rd{2.14,-0.27}{2.14,-0.21}\ph{2.14,-0.27}
\rd{0.39,-0.55}{0.39,-0.41}\ph{0.39,-0.55}
\rd{0.49,-1.16}{0.49,-1.08}\ph{0.49,-1.16}
\pr{-0.09,0.67}
\pr{-0.26,0.71}
\pr{0.59,0.60}
\pr{-0.12,0.38}
\pr{-0.85,0.42}
\pr{-0.67,0.26}
\pr{-0.71,0.32}
\pr{-1.43,0.23}
\pr{-1.22,0.04}
\pr{-1.46,0.03}
\pr{-1.06,0.02}
\pr{1.98,-0.01}
\pr{-1.21,-0.24}
\pr{0.58,-0.16}
\pr{2.14,-0.21}
\pr{-0.51,-0.20}
\pr{0.39,-0.41}
\pr{2.35,-0.65}
\pr{1.05,-0.72}
\pr{0.49,-1.08}
\draw[->, hot, very thick] (0.00,0.00) -- (1.02,-0.54);
\draw[->, hot, very thick] (0.00,0.00) -- (1.06,0.22);
\rs{-0.26,1.05}{-0.26,0.71}\pf{-0.26,1.05}
\rs{-0.85,0.77}{-0.85,0.42}\pf{-0.85,0.77}
\rs{-0.71,0.51}{-0.71,0.32}\pf{-0.71,0.51}
\rs{-1.22,0.14}{-1.22,0.04}\pf{-1.22,0.14}
\rs{-1.46,0.13}{-1.46,0.03}\pf{-1.46,0.13}
\rs{-1.06,0.16}{-1.06,0.02}\pf{-1.06,0.16}
\rs{0.58,0.03}{0.58,-0.16}\pf{0.58,0.03}
\rs{-0.51,0.13}{-0.51,-0.20}\pf{-0.51,0.13}
\rs{2.35,-0.56}{2.35,-0.65}\pf{2.35,-0.56}
\rs{1.05,-0.54}{1.05,-0.72}\pf{1.05,-0.54}
\node at (1.31,-0.47) {$\mathbf b_1$};
\node at (1.11,0.35) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.23);
\node at (0.00,1.46) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 7.92s = "true", 8.18s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.23,-0.69) -- (0.40,1.23) -- (-3.23,0.69) -- (-0.40,-1.23) -- cycle;
\draw[mid] (0.87,0.91) -- (-2.75,0.37);
\draw[mid] (1.34,0.59) -- (-2.28,0.05);
\draw[mid] (1.81,0.27) -- (-1.81,-0.27);
\draw[mid] (2.28,-0.05) -- (-1.34,-0.59);
\draw[mid] (2.75,-0.37) -- (-0.87,-0.91);
\draw[mid] (0.51,-1.09) -- (-2.32,0.83);
\draw[mid] (1.41,-0.96) -- (-1.41,0.96);
\draw[mid] (2.32,-0.83) -- (-0.51,1.09);
\rd{0.17,0.46}{0.17,0.63}\ph{0.17,0.46}
\rd{0.81,0.46}{0.81,0.54}\ph{0.81,0.46}
\rd{0.03,-0.15}{0.03,0.36}\ph{0.03,-0.15}
\rd{-0.56,0.01}{-0.56,0.27}\ph{-0.56,0.01}
\rd{-1.33,0.15}{-1.33,0.27}\ph{-1.33,0.15}
\rd{1.96,-0.17}{1.96,-0.09}\ph{1.96,-0.17}
\rd{-1.29,-0.68}{-1.29,-0.18}\ph{-1.29,-0.68}
\rd{2.05,-0.35}{2.05,-0.28}\ph{2.05,-0.35}
\rd{0.23,-0.54}{0.23,-0.40}\ph{0.23,-0.54}
\rd{0.07,-1.11}{0.07,-1.04}\ph{0.07,-1.11}
\pr{0.17,0.63}
\pr{0.02,0.68}
\pr{0.81,0.54}
\pr{0.03,0.36}
\pr{-0.68,0.43}
\pr{-0.58,0.32}
\pr{-0.56,0.27}
\pr{-1.33,0.27}
\pr{-1.44,0.09}
\pr{-1.19,0.08}
\pr{-1.04,0.07}
\pr{1.96,-0.09}
\pr{-1.29,-0.18}
\pr{0.52,-0.17}
\pr{-0.58,-0.17}
\pr{2.05,-0.28}
\pr{0.23,-0.40}
\pr{2.08,-0.71}
\pr{0.76,-0.72}
\pr{0.07,-1.04}
\draw[->, hot, very thick] (0.00,0.00) -- (0.80,-0.54);
\draw[->, hot, very thick] (0.00,0.00) -- (1.13,0.17);
\rs{0.02,1.02}{0.02,0.68}\pf{0.02,1.02}
\rs{-0.68,0.78}{-0.68,0.43}\pf{-0.68,0.78}
\rs{-0.58,0.52}{-0.58,0.32}\pf{-0.58,0.52}
\rs{-1.44,0.19}{-1.44,0.09}\pf{-1.44,0.19}
\rs{-1.19,0.18}{-1.19,0.08}\pf{-1.19,0.18}
\rs{-1.04,0.20}{-1.04,0.07}\pf{-1.04,0.20}
\rs{0.52,0.02}{0.52,-0.17}\pf{0.52,0.02}
\rs{-0.58,0.17}{-0.58,-0.17}\pf{-0.58,0.17}
\rs{2.08,-0.62}{2.08,-0.71}\pf{2.08,-0.62}
\rs{0.76,-0.53}{0.76,-0.72}\pf{0.76,-0.53}
\node at (1.12,-0.50) {$\mathbf b_1$};
\node at (1.23,0.29) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.23);
\node at (0.00,1.47) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8.18s = "true", 8.44s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.11,-0.73) -- (0.60,1.19) -- (-3.11,0.73) -- (-0.60,-1.19) -- cycle;
\draw[mid] (1.02,0.87) -- (-2.69,0.41);
\draw[mid] (1.44,0.55) -- (-2.27,0.09);
\draw[mid] (1.85,0.23) -- (-1.85,-0.23);
\draw[mid] (2.27,-0.09) -- (-1.44,-0.55);
\draw[mid] (2.69,-0.41) -- (-1.02,-0.87);
\draw[mid] (0.33,-1.07) -- (-2.18,0.84);
\draw[mid] (1.25,-0.96) -- (-1.25,0.96);
\draw[mid] (2.18,-0.84) -- (-0.33,1.07);
\rd{0.27,0.44}{0.27,0.61}\ph{0.27,0.44}
\rd{0.90,0.43}{0.90,0.52}\ph{0.90,0.43}
\rd{0.09,-0.16}{0.09,0.35}\ph{0.09,-0.16}
\rd{-1.28,0.17}{-1.28,0.29}\ph{-1.28,0.17}
\rd{-0.52,0.01}{-0.52,0.27}\ph{-0.52,0.01}
\rd{-1.32,-0.65}{-1.32,-0.15}\ph{-1.32,-0.65}
\rd{1.94,-0.20}{1.94,-0.12}\ph{1.94,-0.20}
\rd{2.00,-0.37}{2.00,-0.31}\ph{2.00,-0.37}
\rd{0.16,-0.54}{0.16,-0.39}\ph{0.16,-0.54}
\rd{-0.10,-1.09}{-0.10,-1.01}\ph{-0.10,-1.09}
\pr{0.27,0.61}
\pr{0.13,0.66}
\pr{0.90,0.52}
\pr{0.09,0.35}
\pr{-0.61,0.43}
\pr{-0.53,0.33}
\pr{-1.28,0.29}
\pr{-0.52,0.27}
\pr{-1.42,0.11}
\pr{-1.18,0.10}
\pr{-1.03,0.08}
\pr{-1.32,-0.15}
\pr{1.94,-0.12}
\pr{-0.61,-0.15}
\pr{0.49,-0.18}
\pr{2.00,-0.31}
\pr{0.16,-0.39}
\pr{0.64,-0.71}
\pr{1.96,-0.72}
\pr{-0.10,-1.01}
\draw[->, hot, very thick] (0.00,0.00) -- (0.71,-0.54);
\draw[->, hot, very thick] (0.00,0.00) -- (1.16,0.14);
\rs{0.13,1.00}{0.13,0.66}\pf{0.13,1.00}
\rs{-0.61,0.78}{-0.61,0.43}\pf{-0.61,0.78}
\rs{-0.53,0.52}{-0.53,0.33}\pf{-0.53,0.52}
\rs{-1.42,0.21}{-1.42,0.11}\pf{-1.42,0.21}
\rs{-1.18,0.20}{-1.18,0.10}\pf{-1.18,0.20}
\rs{-1.03,0.22}{-1.03,0.08}\pf{-1.03,0.22}
\rs{-0.61,0.18}{-0.61,-0.15}\pf{-0.61,0.18}
\rs{0.49,0.01}{0.49,-0.18}\pf{0.49,0.01}
\rs{0.64,-0.53}{0.64,-0.71}\pf{0.64,-0.53}
\rs{1.96,-0.63}{1.96,-0.72}\pf{1.96,-0.63}
\node at (1.04,-0.50) {$\mathbf b_1$};
\node at (1.28,0.26) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.24);
\node at (0.00,1.47) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8.44s = "true", 11.04s = "false", 11.04s = "false", repeats}}}]
\filldraw[draw=mid, thick, fill=white] (3.11,-0.73) -- (0.60,1.19) -- (-3.11,0.73) -- (-0.60,-1.19) -- cycle;
\draw[mid] (1.02,0.87) -- (-2.69,0.41);
\draw[mid] (1.44,0.55) -- (-2.27,0.09);
\draw[mid] (1.85,0.23) -- (-1.85,-0.23);
\draw[mid] (2.27,-0.09) -- (-1.44,-0.55);
\draw[mid] (2.69,-0.41) -- (-1.02,-0.87);
\draw[mid] (0.33,-1.07) -- (-2.18,0.84);
\draw[mid] (1.25,-0.96) -- (-1.25,0.96);
\draw[mid] (2.18,-0.84) -- (-0.33,1.07);
\rd{0.27,0.44}{0.27,0.61}\ph{0.27,0.44}
\rd{0.90,0.43}{0.90,0.52}\ph{0.90,0.43}
\rd{0.09,-0.16}{0.09,0.35}\ph{0.09,-0.16}
\rd{-1.28,0.17}{-1.28,0.29}\ph{-1.28,0.17}
\rd{-0.52,0.01}{-0.52,0.27}\ph{-0.52,0.01}
\rd{-1.32,-0.65}{-1.32,-0.15}\ph{-1.32,-0.65}
\rd{1.94,-0.20}{1.94,-0.12}\ph{1.94,-0.20}
\rd{2.00,-0.37}{2.00,-0.31}\ph{2.00,-0.37}
\rd{0.16,-0.54}{0.16,-0.39}\ph{0.16,-0.54}
\rd{-0.10,-1.09}{-0.10,-1.01}\ph{-0.10,-1.09}
\pr{0.27,0.61}
\pr{0.13,0.66}
\pr{0.90,0.52}
\pr{0.09,0.35}
\pr{-0.61,0.43}
\pr{-0.53,0.33}
\pr{-1.28,0.29}
\pr{-0.52,0.27}
\pr{-1.42,0.11}
\pr{-1.18,0.10}
\pr{-1.03,0.08}
\pr{-1.32,-0.15}
\pr{1.94,-0.12}
\pr{-0.61,-0.15}
\pr{0.49,-0.18}
\pr{2.00,-0.31}
\pr{0.16,-0.39}
\pr{0.64,-0.71}
\pr{1.96,-0.72}
\pr{-0.10,-1.01}
\draw[->, hot, very thick] (0.00,0.00) -- (0.71,-0.54);
\draw[->, hot, very thick] (0.00,0.00) -- (1.16,0.14);
\rs{0.13,1.00}{0.13,0.66}\pf{0.13,1.00}
\rs{-0.61,0.78}{-0.61,0.43}\pf{-0.61,0.78}
\rs{-0.53,0.52}{-0.53,0.33}\pf{-0.53,0.52}
\rs{-1.42,0.21}{-1.42,0.11}\pf{-1.42,0.21}
\rs{-1.18,0.20}{-1.18,0.10}\pf{-1.18,0.20}
\rs{-1.03,0.22}{-1.03,0.08}\pf{-1.03,0.22}
\rs{-0.61,0.18}{-0.61,-0.15}\pf{-0.61,0.18}
\rs{0.49,0.01}{0.49,-0.18}\pf{0.49,0.01}
\rs{0.64,-0.53}{0.64,-0.71}\pf{0.64,-0.53}
\rs{1.96,-0.63}{1.96,-0.72}\pf{1.96,-0.63}
\node at (1.04,-0.50) {$\mathbf b_1$};
\node at (1.28,0.26) {$\mathbf b_2$};
\draw[->, very thick] (0.00,0.00) -- (0.00,1.24);
\node at (0.00,1.47) {$\mathbf v_3$};
\filldraw[draw=black, fill=hot] (5.78,-1.6) rectangle (6.22,-1.39);
\node[anchor=east] at (5.70,-1.39) {$1.30$};
\node[anchor=west] at (-4.4,-3.05) {Every residual is parallel to the dropped direction $\mathbf v_3$.};
\end{scope}
\end{tikzpicture}
\end{document}

The last animation compares PCA with a nonlinear autoencoder on the five parabola points from the Hard example. Both use one number per point. PCA gives two pairs of points the same code. The nonlinear encoder flattens the curve, and the decoder bends it back.

\usepackage{tikz}
\usetikzlibrary{animations, arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[font=\small, >={Stealth[length=2.2mm]}]
\draw[mid] (-2.60,0) -- (2.60,0);
\draw[mid, dashed, thick, domain=-2.1:2.1, samples=30] plot ({\x + 0}, {\x*\x - 2});
\draw[mid] (4.60,0) -- (9.80,0);
\draw[mid, dashed, thick, domain=-2.1:2.1, samples=30] plot ({\x + 7.2}, {\x*\x - 2});
\draw[cold, very thick] (0,-2.5) -- (0,2.75) node[above right, text=black] {\footnotesize $\mathbf v_1$};
\draw[mid] (7.2,-2.5) -- (7.2,2.75);
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 1.6s = "false", 10s = "false", repeats}}}]
\filldraw[draw=black, fill=cold] (-2.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-1.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (1.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (2.000,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,2.622) -- (5.150,2.202) -- (5.250,1.802) -- (5.350,1.422) -- (5.450,1.062) -- (5.550,0.722) -- (5.650,0.402) -- (5.750,0.103) -- (5.850,-0.177) -- (5.950,-0.438) -- (6.050,-0.678) -- (6.150,-0.897) -- (6.250,-1.098) -- (6.350,-1.277) -- (6.450,-1.438) -- (6.550,-1.577) -- (6.650,-1.698) -- (6.750,-1.798) -- (6.850,-1.877) -- (6.950,-1.938) -- (7.050,-1.978) -- (7.150,-1.998) -- (7.250,-1.998) -- (7.350,-1.978) -- (7.450,-1.938) -- (7.550,-1.877) -- (7.650,-1.798) -- (7.750,-1.698) -- (7.850,-1.578) -- (7.950,-1.438) -- (8.050,-1.278) -- (8.150,-1.098) -- (8.250,-0.898) -- (8.350,-0.678) -- (8.450,-0.438) -- (8.550,-0.178) -- (8.650,0.102) -- (8.750,0.402) -- (8.850,0.722) -- (8.950,1.062) -- (9.050,1.422) -- (9.150,1.802) -- (9.250,2.202) -- (9.350,2.622);
\filldraw[draw=black, fill=cold] (5.200,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,2.000) circle (2.6pt);
\node at (0,3.45) {PCA, code size $k = 1$};
\node at (7.2,3.45) {nonlinear autoencoder, $k = 1$};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.6s = "true", 1.8s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-1.914,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.957,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.957,-1.000);
\draw[dashed] (2.000,2.000) -- (1.914,2.000);
\filldraw[draw=black, fill=cold] (-1.914,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.957,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.957,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (1.914,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,2.377) -- (5.150,1.975) -- (5.250,1.592) -- (5.350,1.228) -- (5.450,0.884) -- (5.550,0.558) -- (5.650,0.252) -- (5.750,-0.035) -- (5.850,-0.303) -- (5.950,-0.552) -- (6.050,-0.782) -- (6.150,-0.992) -- (6.250,-1.184) -- (6.350,-1.356) -- (6.450,-1.509) -- (6.550,-1.643) -- (6.650,-1.758) -- (6.750,-1.853) -- (6.850,-1.930) -- (6.950,-1.987) -- (7.050,-2.026) -- (7.150,-2.045) -- (7.250,-2.045) -- (7.350,-2.026) -- (7.450,-1.987) -- (7.550,-1.930) -- (7.650,-1.853) -- (7.750,-1.758) -- (7.850,-1.643) -- (7.950,-1.509) -- (8.050,-1.356) -- (8.150,-1.184) -- (8.250,-0.992) -- (8.350,-0.782) -- (8.450,-0.552) -- (8.550,-0.303) -- (8.650,-0.035) -- (8.750,0.252) -- (8.850,0.558) -- (8.950,0.884) -- (9.050,1.228) -- (9.150,1.592) -- (9.250,1.975) -- (9.350,2.377);
\filldraw[draw=black, fill=cold] (5.200,1.781) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.090) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.047) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.090) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,1.781) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.8s = "true", 2s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-1.688,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.844,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.844,-1.000);
\draw[dashed] (2.000,2.000) -- (1.688,2.000);
\filldraw[draw=black, fill=cold] (-1.688,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.844,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.844,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (1.688,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,1.728) -- (5.150,1.374) -- (5.250,1.036) -- (5.350,0.716) -- (5.450,0.412) -- (5.550,0.125) -- (5.650,-0.145) -- (5.750,-0.398) -- (5.850,-0.634) -- (5.950,-0.854) -- (6.050,-1.056) -- (6.150,-1.242) -- (6.250,-1.410) -- (6.350,-1.562) -- (6.450,-1.697) -- (6.550,-1.815) -- (6.650,-1.917) -- (6.750,-2.001) -- (6.850,-2.069) -- (6.950,-2.119) -- (7.050,-2.153) -- (7.150,-2.170) -- (7.250,-2.170) -- (7.350,-2.153) -- (7.450,-2.119) -- (7.550,-2.069) -- (7.650,-2.001) -- (7.750,-1.917) -- (7.850,-1.815) -- (7.950,-1.697) -- (8.050,-1.562) -- (8.150,-1.410) -- (8.250,-1.242) -- (8.350,-1.056) -- (8.450,-0.854) -- (8.550,-0.634) -- (8.650,-0.398) -- (8.750,-0.145) -- (8.850,0.125) -- (8.950,0.412) -- (9.050,0.716) -- (9.150,1.036) -- (9.250,1.374) -- (9.350,1.728);
\filldraw[draw=black, fill=cold] (5.200,1.203) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.328) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.172) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.328) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,1.203) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2s = "true", 2.2s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-1.367,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.684,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.684,-1.000);
\draw[dashed] (2.000,2.000) -- (1.367,2.000);
\filldraw[draw=black, fill=cold] (-1.367,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.684,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.684,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (1.367,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,0.812) -- (5.150,0.525) -- (5.250,0.251) -- (5.350,-0.008) -- (5.450,-0.255) -- (5.550,-0.487) -- (5.650,-0.706) -- (5.750,-0.911) -- (5.850,-1.102) -- (5.950,-1.280) -- (6.050,-1.444) -- (6.150,-1.594) -- (6.250,-1.731) -- (6.350,-1.854) -- (6.450,-1.964) -- (6.550,-2.059) -- (6.650,-2.141) -- (6.750,-2.210) -- (6.850,-2.264) -- (6.950,-2.305) -- (7.050,-2.333) -- (7.150,-2.346) -- (7.250,-2.346) -- (7.350,-2.333) -- (7.450,-2.305) -- (7.550,-2.264) -- (7.650,-2.210) -- (7.750,-2.141) -- (7.850,-2.059) -- (7.950,-1.964) -- (8.050,-1.854) -- (8.150,-1.731) -- (8.250,-1.594) -- (8.350,-1.444) -- (8.450,-1.280) -- (8.550,-1.102) -- (8.650,-0.911) -- (8.750,-0.706) -- (8.850,-0.487) -- (8.950,-0.255) -- (9.050,-0.008) -- (9.150,0.251) -- (9.250,0.525) -- (9.350,0.812);
\filldraw[draw=black, fill=cold] (5.200,0.386) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.664) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.348) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.664) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,0.386) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.2s = "true", 2.4s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-1.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.500,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.500,-1.000);
\draw[dashed] (2.000,2.000) -- (1.000,2.000);
\filldraw[draw=black, fill=cold] (-1.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.500,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.500,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (1.000,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,-0.239) -- (5.150,-0.449) -- (5.250,-0.649) -- (5.350,-0.839) -- (5.450,-1.019) -- (5.550,-1.189) -- (5.650,-1.349) -- (5.750,-1.499) -- (5.850,-1.639) -- (5.950,-1.769) -- (6.050,-1.889) -- (6.150,-1.999) -- (6.250,-2.099) -- (6.350,-2.189) -- (6.450,-2.269) -- (6.550,-2.339) -- (6.650,-2.399) -- (6.750,-2.449) -- (6.850,-2.489) -- (6.950,-2.519) -- (7.050,-2.539) -- (7.150,-2.549) -- (7.250,-2.549) -- (7.350,-2.539) -- (7.450,-2.519) -- (7.550,-2.489) -- (7.650,-2.449) -- (7.750,-2.399) -- (7.850,-2.339) -- (7.950,-2.269) -- (8.050,-2.189) -- (8.150,-2.099) -- (8.250,-1.999) -- (8.350,-1.889) -- (8.450,-1.769) -- (8.550,-1.639) -- (8.650,-1.499) -- (8.750,-1.349) -- (8.850,-1.189) -- (8.950,-1.019) -- (9.050,-0.839) -- (9.150,-0.649) -- (9.250,-0.449) -- (9.350,-0.239);
\filldraw[draw=black, fill=cold] (5.200,-0.550) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-2.050) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.550) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-2.050) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-0.550) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.4s = "true", 2.6s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.633,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.316,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.316,-1.000);
\draw[dashed] (2.000,2.000) -- (0.633,2.000);
\filldraw[draw=black, fill=cold] (-0.633,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.316,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.316,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.633,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,-1.289) -- (5.150,-1.422) -- (5.250,-1.549) -- (5.350,-1.669) -- (5.450,-1.783) -- (5.550,-1.891) -- (5.650,-1.992) -- (5.750,-2.087) -- (5.850,-2.175) -- (5.950,-2.258) -- (6.050,-2.334) -- (6.150,-2.403) -- (6.250,-2.466) -- (6.350,-2.523) -- (6.450,-2.574) -- (6.550,-2.618) -- (6.650,-2.656) -- (6.750,-2.688) -- (6.850,-2.713) -- (6.950,-2.732) -- (7.050,-2.745) -- (7.150,-2.751) -- (7.250,-2.751) -- (7.350,-2.745) -- (7.450,-2.732) -- (7.550,-2.713) -- (7.650,-2.688) -- (7.750,-2.656) -- (7.850,-2.618) -- (7.950,-2.574) -- (8.050,-2.523) -- (8.150,-2.466) -- (8.250,-2.403) -- (8.350,-2.334) -- (8.450,-2.258) -- (8.550,-2.175) -- (8.650,-2.087) -- (8.750,-1.992) -- (8.850,-1.891) -- (8.950,-1.783) -- (9.050,-1.669) -- (9.150,-1.549) -- (9.250,-1.422) -- (9.350,-1.289);
\filldraw[draw=black, fill=cold] (5.200,-1.486) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-2.436) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.752) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-2.436) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-1.486) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.6s = "true", 2.8s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.312,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.156,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.156,-1.000);
\draw[dashed] (2.000,2.000) -- (0.312,2.000);
\filldraw[draw=black, fill=cold] (-0.312,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.156,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.156,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.312,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,-2.206) -- (5.150,-2.271) -- (5.250,-2.334) -- (5.350,-2.393) -- (5.450,-2.450) -- (5.550,-2.503) -- (5.650,-2.553) -- (5.750,-2.600) -- (5.850,-2.643) -- (5.950,-2.684) -- (6.050,-2.721) -- (6.150,-2.756) -- (6.250,-2.787) -- (6.350,-2.815) -- (6.450,-2.840) -- (6.550,-2.862) -- (6.650,-2.881) -- (6.750,-2.896) -- (6.850,-2.909) -- (6.950,-2.918) -- (7.050,-2.925) -- (7.150,-2.928) -- (7.250,-2.928) -- (7.350,-2.925) -- (7.450,-2.918) -- (7.550,-2.909) -- (7.650,-2.896) -- (7.750,-2.881) -- (7.850,-2.862) -- (7.950,-2.840) -- (8.050,-2.815) -- (8.150,-2.787) -- (8.250,-2.756) -- (8.350,-2.721) -- (8.450,-2.684) -- (8.550,-2.643) -- (8.650,-2.600) -- (8.750,-2.553) -- (8.850,-2.503) -- (8.950,-2.450) -- (9.050,-2.393) -- (9.150,-2.334) -- (9.250,-2.271) -- (9.350,-2.206);
\filldraw[draw=black, fill=cold] (5.200,-2.303) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-2.772) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.928) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-2.772) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-2.303) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.8s = "true", 3s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.086,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.043,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.043,-1.000);
\draw[dashed] (2.000,2.000) -- (0.086,2.000);
\filldraw[draw=black, fill=cold] (-0.086,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-0.043,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.043,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.086,2.000) circle (2.6pt);
\draw[hot, very thick] (5.050,-2.854) -- (5.150,-2.872) -- (5.250,-2.889) -- (5.350,-2.906) -- (5.450,-2.921) -- (5.550,-2.936) -- (5.650,-2.950) -- (5.750,-2.962) -- (5.850,-2.974) -- (5.950,-2.986) -- (6.050,-2.996) -- (6.150,-3.005) -- (6.250,-3.014) -- (6.350,-3.022) -- (6.450,-3.029) -- (6.550,-3.035) -- (6.650,-3.040) -- (6.750,-3.044) -- (6.850,-3.047) -- (6.950,-3.050) -- (7.050,-3.052) -- (7.150,-3.053) -- (7.250,-3.053) -- (7.350,-3.052) -- (7.450,-3.050) -- (7.550,-3.047) -- (7.650,-3.044) -- (7.750,-3.040) -- (7.850,-3.035) -- (7.950,-3.029) -- (8.050,-3.022) -- (8.150,-3.014) -- (8.250,-3.005) -- (8.350,-2.996) -- (8.450,-2.986) -- (8.550,-2.974) -- (8.650,-2.962) -- (8.750,-2.950) -- (8.850,-2.936) -- (8.950,-2.921) -- (9.050,-2.906) -- (9.150,-2.889) -- (9.250,-2.872) -- (9.350,-2.854);
\filldraw[draw=black, fill=cold] (5.200,-2.881) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-3.010) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-3.053) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-3.010) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-2.881) circle (2.6pt);
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 3.2s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,-3.100) -- (5.150,-3.100) -- (5.250,-3.100) -- (5.350,-3.100) -- (5.450,-3.100) -- (5.550,-3.100) -- (5.650,-3.100) -- (5.750,-3.100) -- (5.850,-3.100) -- (5.950,-3.100) -- (6.050,-3.100) -- (6.150,-3.100) -- (6.250,-3.100) -- (6.350,-3.100) -- (6.450,-3.100) -- (6.550,-3.100) -- (6.650,-3.100) -- (6.750,-3.100) -- (6.850,-3.100) -- (6.950,-3.100) -- (7.050,-3.100) -- (7.150,-3.100) -- (7.250,-3.100) -- (7.350,-3.100) -- (7.450,-3.100) -- (7.550,-3.100) -- (7.650,-3.100) -- (7.750,-3.100) -- (7.850,-3.100) -- (7.950,-3.100) -- (8.050,-3.100) -- (8.150,-3.100) -- (8.250,-3.100) -- (8.350,-3.100) -- (8.450,-3.100) -- (8.550,-3.100) -- (8.650,-3.100) -- (8.750,-3.100) -- (8.850,-3.100) -- (8.950,-3.100) -- (9.050,-3.100) -- (9.150,-3.100) -- (9.250,-3.100) -- (9.350,-3.100);
\filldraw[draw=black, fill=cold] (5.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-3.100) circle (2.6pt);
\draw (5.20,-3.22) -- (5.20,-2.98) node[below=4pt] {\scriptsize $-2$};
\draw (6.20,-3.22) -- (6.20,-2.98) node[below=4pt] {\scriptsize $-1$};
\draw (7.20,-3.22) -- (7.20,-2.98) node[below=4pt] {\scriptsize $0$};
\draw (8.20,-3.22) -- (8.20,-2.98) node[below=4pt] {\scriptsize $1$};
\draw (9.20,-3.22) -- (9.20,-2.98) node[below=4pt] {\scriptsize $2$};
\node at (7.20,-3.85) {\footnotesize code $a = x_1$: five different values};
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.2s = "true", 5.4s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,-3.100) -- (5.150,-3.100) -- (5.250,-3.100) -- (5.350,-3.100) -- (5.450,-3.100) -- (5.550,-3.100) -- (5.650,-3.100) -- (5.750,-3.100) -- (5.850,-3.100) -- (5.950,-3.100) -- (6.050,-3.100) -- (6.150,-3.100) -- (6.250,-3.100) -- (6.350,-3.100) -- (6.450,-3.100) -- (6.550,-3.100) -- (6.650,-3.100) -- (6.750,-3.100) -- (6.850,-3.100) -- (6.950,-3.100) -- (7.050,-3.100) -- (7.150,-3.100) -- (7.250,-3.100) -- (7.350,-3.100) -- (7.450,-3.100) -- (7.550,-3.100) -- (7.650,-3.100) -- (7.750,-3.100) -- (7.850,-3.100) -- (7.950,-3.100) -- (8.050,-3.100) -- (8.150,-3.100) -- (8.250,-3.100) -- (8.350,-3.100) -- (8.450,-3.100) -- (8.550,-3.100) -- (8.650,-3.100) -- (8.750,-3.100) -- (8.850,-3.100) -- (8.950,-3.100) -- (9.050,-3.100) -- (9.150,-3.100) -- (9.250,-3.100) -- (9.350,-3.100);
\filldraw[draw=black, fill=cold] (5.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-3.100) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-3.100) circle (2.6pt);
\draw (5.20,-3.22) -- (5.20,-2.98) node[below=4pt] {\scriptsize $-2$};
\draw (6.20,-3.22) -- (6.20,-2.98) node[below=4pt] {\scriptsize $-1$};
\draw (7.20,-3.22) -- (7.20,-2.98) node[below=4pt] {\scriptsize $0$};
\draw (8.20,-3.22) -- (8.20,-2.98) node[below=4pt] {\scriptsize $1$};
\draw (9.20,-3.22) -- (9.20,-2.98) node[below=4pt] {\scriptsize $2$};
\node at (7.20,-3.85) {\footnotesize code $a = x_1$: five different values};
\node at (0,3.45) {encode: project onto the line};
\node at (7.2,3.45) {encode: flatten the curve};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.4s = "true", 5.6s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,-2.862) -- (5.150,-2.874) -- (5.250,-2.887) -- (5.350,-2.900) -- (5.450,-2.913) -- (5.550,-2.926) -- (5.650,-2.939) -- (5.750,-2.952) -- (5.850,-2.965) -- (5.950,-2.978) -- (6.050,-2.990) -- (6.150,-3.003) -- (6.250,-3.012) -- (6.350,-3.016) -- (6.450,-3.021) -- (6.550,-3.025) -- (6.650,-3.029) -- (6.750,-3.033) -- (6.850,-3.038) -- (6.950,-3.042) -- (7.050,-3.046) -- (7.150,-3.051) -- (7.250,-3.051) -- (7.350,-3.046) -- (7.450,-3.042) -- (7.550,-3.038) -- (7.650,-3.033) -- (7.750,-3.029) -- (7.850,-3.025) -- (7.950,-3.021) -- (8.050,-3.016) -- (8.150,-3.012) -- (8.250,-3.003) -- (8.350,-2.990) -- (8.450,-2.978) -- (8.550,-2.965) -- (8.650,-2.952) -- (8.750,-2.939) -- (8.850,-2.926) -- (8.950,-2.913) -- (9.050,-2.900) -- (9.150,-2.887) -- (9.250,-2.874) -- (9.350,-2.862);
\filldraw[draw=black, fill=cold] (5.200,-2.881) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-3.010) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-3.053) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-3.010) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-2.881) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.6s = "true", 5.8s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,-2.233) -- (5.150,-2.280) -- (5.250,-2.327) -- (5.350,-2.373) -- (5.450,-2.420) -- (5.550,-2.467) -- (5.650,-2.514) -- (5.750,-2.561) -- (5.850,-2.608) -- (5.950,-2.655) -- (6.050,-2.702) -- (6.150,-2.748) -- (6.250,-2.780) -- (6.350,-2.795) -- (6.450,-2.811) -- (6.550,-2.827) -- (6.650,-2.842) -- (6.750,-2.858) -- (6.850,-2.873) -- (6.950,-2.889) -- (7.050,-2.905) -- (7.150,-2.920) -- (7.250,-2.920) -- (7.350,-2.905) -- (7.450,-2.889) -- (7.550,-2.873) -- (7.650,-2.858) -- (7.750,-2.842) -- (7.850,-2.827) -- (7.950,-2.811) -- (8.050,-2.795) -- (8.150,-2.780) -- (8.250,-2.748) -- (8.350,-2.702) -- (8.450,-2.655) -- (8.550,-2.608) -- (8.650,-2.561) -- (8.750,-2.514) -- (8.850,-2.467) -- (8.950,-2.420) -- (9.050,-2.373) -- (9.150,-2.327) -- (9.250,-2.280) -- (9.350,-2.233);
\filldraw[draw=black, fill=cold] (5.200,-2.303) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-2.772) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.928) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-2.772) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-2.303) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.8s = "true", 6s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,-1.344) -- (5.150,-1.439) -- (5.250,-1.534) -- (5.350,-1.629) -- (5.450,-1.724) -- (5.550,-1.819) -- (5.650,-1.913) -- (5.750,-2.008) -- (5.850,-2.103) -- (5.950,-2.198) -- (6.050,-2.293) -- (6.150,-2.388) -- (6.250,-2.451) -- (6.350,-2.483) -- (6.450,-2.515) -- (6.550,-2.546) -- (6.650,-2.578) -- (6.750,-2.610) -- (6.850,-2.641) -- (6.950,-2.673) -- (7.050,-2.704) -- (7.150,-2.736) -- (7.250,-2.736) -- (7.350,-2.704) -- (7.450,-2.673) -- (7.550,-2.641) -- (7.650,-2.610) -- (7.750,-2.578) -- (7.850,-2.546) -- (7.950,-2.515) -- (8.050,-2.483) -- (8.150,-2.451) -- (8.250,-2.388) -- (8.350,-2.293) -- (8.450,-2.198) -- (8.550,-2.103) -- (8.650,-2.008) -- (8.750,-1.913) -- (8.850,-1.819) -- (8.950,-1.724) -- (9.050,-1.629) -- (9.150,-1.534) -- (9.250,-1.439) -- (9.350,-1.344);
\filldraw[draw=black, fill=cold] (5.200,-1.486) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-2.436) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.752) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-2.436) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-1.486) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6s = "true", 6.2s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,-0.325) -- (5.150,-0.475) -- (5.250,-0.625) -- (5.350,-0.775) -- (5.450,-0.925) -- (5.550,-1.075) -- (5.650,-1.225) -- (5.750,-1.375) -- (5.850,-1.525) -- (5.950,-1.675) -- (6.050,-1.825) -- (6.150,-1.975) -- (6.250,-2.075) -- (6.350,-2.125) -- (6.450,-2.175) -- (6.550,-2.225) -- (6.650,-2.275) -- (6.750,-2.325) -- (6.850,-2.375) -- (6.950,-2.425) -- (7.050,-2.475) -- (7.150,-2.525) -- (7.250,-2.525) -- (7.350,-2.475) -- (7.450,-2.425) -- (7.550,-2.375) -- (7.650,-2.325) -- (7.750,-2.275) -- (7.850,-2.225) -- (7.950,-2.175) -- (8.050,-2.125) -- (8.150,-2.075) -- (8.250,-1.975) -- (8.350,-1.825) -- (8.450,-1.675) -- (8.550,-1.525) -- (8.650,-1.375) -- (8.750,-1.225) -- (8.850,-1.075) -- (8.950,-0.925) -- (9.050,-0.775) -- (9.150,-0.625) -- (9.250,-0.475) -- (9.350,-0.325);
\filldraw[draw=black, fill=cold] (5.200,-0.550) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-2.050) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.550) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-2.050) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,-0.550) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 6.4s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,0.694) -- (5.150,0.489) -- (5.250,0.284) -- (5.350,0.079) -- (5.450,-0.126) -- (5.550,-0.331) -- (5.650,-0.537) -- (5.750,-0.742) -- (5.850,-0.947) -- (5.950,-1.152) -- (6.050,-1.357) -- (6.150,-1.562) -- (6.250,-1.699) -- (6.350,-1.767) -- (6.450,-1.835) -- (6.550,-1.904) -- (6.650,-1.972) -- (6.750,-2.040) -- (6.850,-2.109) -- (6.950,-2.177) -- (7.050,-2.246) -- (7.150,-2.314) -- (7.250,-2.314) -- (7.350,-2.246) -- (7.450,-2.177) -- (7.550,-2.109) -- (7.650,-2.040) -- (7.750,-1.972) -- (7.850,-1.904) -- (7.950,-1.835) -- (8.050,-1.767) -- (8.150,-1.699) -- (8.250,-1.562) -- (8.350,-1.357) -- (8.450,-1.152) -- (8.550,-0.947) -- (8.650,-0.742) -- (8.750,-0.537) -- (8.850,-0.331) -- (8.950,-0.126) -- (9.050,0.079) -- (9.150,0.284) -- (9.250,0.489) -- (9.350,0.694);
\filldraw[draw=black, fill=cold] (5.200,0.386) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.664) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.348) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.664) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,0.386) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.4s = "true", 6.6s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,1.583) -- (5.150,1.330) -- (5.250,1.077) -- (5.350,0.823) -- (5.450,0.570) -- (5.550,0.317) -- (5.650,0.064) -- (5.750,-0.189) -- (5.850,-0.442) -- (5.950,-0.695) -- (6.050,-0.948) -- (6.150,-1.202) -- (6.250,-1.370) -- (6.350,-1.455) -- (6.450,-1.539) -- (6.550,-1.623) -- (6.650,-1.708) -- (6.750,-1.792) -- (6.850,-1.877) -- (6.950,-1.961) -- (7.050,-2.045) -- (7.150,-2.130) -- (7.250,-2.130) -- (7.350,-2.045) -- (7.450,-1.961) -- (7.550,-1.877) -- (7.650,-1.792) -- (7.750,-1.708) -- (7.850,-1.623) -- (7.950,-1.539) -- (8.050,-1.455) -- (8.150,-1.370) -- (8.250,-1.202) -- (8.350,-0.948) -- (8.450,-0.695) -- (8.550,-0.442) -- (8.650,-0.189) -- (8.750,0.064) -- (8.850,0.317) -- (8.950,0.570) -- (9.050,0.823) -- (9.150,1.077) -- (9.250,1.330) -- (9.350,1.583);
\filldraw[draw=black, fill=cold] (5.200,1.203) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.328) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.172) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.328) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,1.203) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.6s = "true", 6.8s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,2.212) -- (5.150,1.924) -- (5.250,1.637) -- (5.350,1.350) -- (5.450,1.063) -- (5.550,0.776) -- (5.650,0.489) -- (5.750,0.202) -- (5.850,-0.085) -- (5.950,-0.372) -- (6.050,-0.660) -- (6.150,-0.947) -- (6.250,-1.138) -- (6.350,-1.234) -- (6.450,-1.329) -- (6.550,-1.425) -- (6.650,-1.521) -- (6.750,-1.617) -- (6.850,-1.712) -- (6.950,-1.808) -- (7.050,-1.904) -- (7.150,-1.999) -- (7.250,-1.999) -- (7.350,-1.904) -- (7.450,-1.808) -- (7.550,-1.712) -- (7.650,-1.617) -- (7.750,-1.521) -- (7.850,-1.425) -- (7.950,-1.329) -- (8.050,-1.234) -- (8.150,-1.138) -- (8.250,-0.947) -- (8.350,-0.660) -- (8.450,-0.372) -- (8.550,-0.085) -- (8.650,0.202) -- (8.750,0.489) -- (8.850,0.776) -- (8.950,1.063) -- (9.050,1.350) -- (9.150,1.637) -- (9.250,1.924) -- (9.350,2.212);
\filldraw[draw=black, fill=cold] (5.200,1.781) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.090) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.047) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.090) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,1.781) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.8s = "true", 7s = "false", 10s = "false", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\draw[hot, very thick] (5.050,2.450) -- (5.150,2.150) -- (5.250,1.850) -- (5.350,1.550) -- (5.450,1.250) -- (5.550,0.950) -- (5.650,0.650) -- (5.750,0.350) -- (5.850,0.050) -- (5.950,-0.250) -- (6.050,-0.550) -- (6.150,-0.850) -- (6.250,-1.050) -- (6.350,-1.150) -- (6.450,-1.250) -- (6.550,-1.350) -- (6.650,-1.450) -- (6.750,-1.550) -- (6.850,-1.650) -- (6.950,-1.750) -- (7.050,-1.850) -- (7.150,-1.950) -- (7.250,-1.950) -- (7.350,-1.850) -- (7.450,-1.750) -- (7.550,-1.650) -- (7.650,-1.550) -- (7.750,-1.450) -- (7.850,-1.350) -- (7.950,-1.250) -- (8.050,-1.150) -- (8.150,-1.050) -- (8.250,-0.850) -- (8.350,-0.550) -- (8.450,-0.250) -- (8.550,0.050) -- (8.650,0.350) -- (8.750,0.650) -- (8.850,0.950) -- (8.950,1.250) -- (9.050,1.550) -- (9.150,1.850) -- (9.250,2.150) -- (9.350,2.450);
\filldraw[draw=black, fill=cold] (5.200,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,2.000) circle (2.6pt);
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 7s = "true", 10s = "true", repeats}}}]
\draw[dashed] (-2.000,2.000) -- (-0.000,2.000);
\draw[dashed] (-1.000,-1.000) -- (-0.000,-1.000);
\draw[dashed] (1.000,-1.000) -- (0.000,-1.000);
\draw[dashed] (2.000,2.000) -- (0.000,2.000);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (0.000,2.000) circle (2.6pt);
\draw[very thick] (0,-1) circle (7pt);
\draw[very thick] (0,2) circle (7pt);
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,-1.42) {\footnotesize $t = \pm 1$: same code};
\node[anchor=west, fill=white, inner sep=1pt] at (0.32,2.42) {\footnotesize $t = \pm 2$: same code};
\node at (0,-3.85) {error $10$};
\draw[hot, very thick] (5.050,2.450) -- (5.150,2.150) -- (5.250,1.850) -- (5.350,1.550) -- (5.450,1.250) -- (5.550,0.950) -- (5.650,0.650) -- (5.750,0.350) -- (5.850,0.050) -- (5.950,-0.250) -- (6.050,-0.550) -- (6.150,-0.850) -- (6.250,-1.050) -- (6.350,-1.150) -- (6.450,-1.250) -- (6.550,-1.350) -- (6.650,-1.450) -- (6.750,-1.550) -- (6.850,-1.650) -- (6.950,-1.750) -- (7.050,-1.850) -- (7.150,-1.950) -- (7.250,-1.950) -- (7.350,-1.850) -- (7.450,-1.750) -- (7.550,-1.650) -- (7.650,-1.550) -- (7.750,-1.450) -- (7.850,-1.350) -- (7.950,-1.250) -- (8.050,-1.150) -- (8.150,-1.050) -- (8.250,-0.850) -- (8.350,-0.550) -- (8.450,-0.250) -- (8.550,0.050) -- (8.650,0.350) -- (8.750,0.650) -- (8.850,0.950) -- (8.950,1.250) -- (9.050,1.550) -- (9.150,1.850) -- (9.250,2.150) -- (9.350,2.450);
\filldraw[draw=black, fill=cold] (5.200,2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (6.200,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (7.200,-2.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (8.200,-1.000) circle (2.6pt);
\filldraw[draw=black, fill=cold] (9.200,2.000) circle (2.6pt);
\node at (7.20,-3.85) {error $0$};
\node at (0,3.45) {decode: stay on the line};
\node at (7.2,3.45) {decode: bend the line back};
\end{scope}
\node[anchor=west] at (-2.6,-4.55) {\footnotesize dashed gray: the parabola $x_2 = x_1^2 - 2$ that the five points lie on};
\end{tikzpicture}
\end{document}

Properties

(Only the Subspace Is Learned) The loss of a linear autoencoder depends only on the product , so training cannot single out the principal axes.

Replacing by and by leaves the product and every reconstruction unchanged. Starting from PCA, the code becomes , which mixes and rescales the PCA coordinates. Its entries are correlated in general, while PCA coordinates are uncorrelated. The same freedom appears in a Kalman filter learned from controls and observations alone. Its state is then known only up to a change of basis. Tying the weights, , restricts to orthogonal matrices, so a rotation remains. To recover the axes, orthonormalize the rows of and project the data onto them. Run PCA on these -dimensional projections, which is cheap. Mapping its directions back through the orthonormal rows gives .

The animation shows this freedom on the points from the 3D animation above. The code grid on the PCA plane turns, stretches and shears with . The reconstructions and the loss stay the same.

\usepackage{tikz}
\usetikzlibrary{animations, arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[font=\small, >={Stealth[length=2.2mm]}]
\filldraw[draw=mid, thick, fill=white] (3.89,0.10) -- (-2.02,1.67) -- (-3.89,-0.10) -- (2.02,-1.67) -- cycle;
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 2.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.43,0.34) -- (2.49,-1.23);
\draw[cold, very thick] (-2.96,0.79) -- (2.96,-0.79);
\draw[cold] (-2.49,1.23) -- (3.43,-0.34);
\draw[cold] (-3.59,-0.18) -- (-1.71,1.59);
\draw[cold] (-2.70,-0.41) -- (-0.83,1.35);
\draw[cold] (-1.82,-0.65) -- (0.06,1.12);
\draw[cold, very thick] (-0.94,-0.88) -- (0.94,0.88);
\draw[cold] (-0.06,-1.12) -- (1.82,0.65);
\draw[cold] (0.83,-1.35) -- (2.70,0.41);
\draw[cold] (1.71,-1.59) -- (3.59,0.18);
\draw[->, hot, very thick] (0.00,0.00) -- (0.88,-0.23);
\node at (1.10,-0.14) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.47,0.44);
\node at (0.59,0.71) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.90,\ 0.94)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.00 & 0.00 \\ 0.00 & 1.00 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {$\mathbf M = \mathbf I$: the grid is the PCA grid.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.4s = "true", 2.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.83,-0.04) -- (-0.99,-0.87);
\draw[cold] (-3.36,0.40) -- (2.43,-1.28);
\draw[cold, very thick] (-2.90,0.84) -- (2.90,-0.84);
\draw[cold] (-2.43,1.28) -- (3.36,-0.40);
\draw[cold] (0.99,0.87) -- (3.83,0.04);
\draw[cold] (-3.66,-0.16) -- (-1.64,1.57);
\draw[cold] (-2.77,-0.39) -- (-0.76,1.33);
\draw[cold] (-1.89,-0.63) -- (0.12,1.10);
\draw[cold, very thick] (-1.01,-0.86) -- (1.01,0.86);
\draw[cold] (-0.12,-1.10) -- (1.89,0.63);
\draw[cold] (0.76,-1.33) -- (2.77,0.39);
\draw[cold] (1.64,-1.57) -- (3.66,0.16);
\draw[->, hot, very thick] (0.00,0.00) -- (0.86,-0.25);
\node at (1.08,-0.16) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.50,0.43);
\node at (0.63,0.70) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.87,\ 1.05)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.00 & -0.04 \\ 0.04 & 1.00 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.6s = "true", 2.8s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.68,0.10) -- (-1.06,-0.85);
\draw[cold] (-3.21,0.55) -- (2.26,-1.44);
\draw[cold, very thick] (-2.74,0.99) -- (2.74,-0.99);
\draw[cold] (-2.26,1.44) -- (3.21,-0.55);
\draw[cold] (1.06,0.85) -- (3.68,-0.10);
\draw[cold] (-3.86,-0.11) -- (-1.49,1.53);
\draw[cold] (-2.97,-0.34) -- (-0.60,1.29);
\draw[cold] (-2.08,-0.58) -- (0.29,1.05);
\draw[cold, very thick] (-1.18,-0.82) -- (1.18,0.82);
\draw[cold] (-0.29,-1.05) -- (2.08,0.58);
\draw[cold] (0.60,-1.29) -- (2.97,0.34);
\draw[cold] (1.49,-1.53) -- (3.86,0.11);
\draw[->, hot, very thick] (0.00,0.00) -- (0.81,-0.29);
\node at (1.01,-0.21) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.59,0.40);
\node at (0.73,0.66) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.75,\ 1.33)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.99 & -0.14 \\ 0.14 & 0.99 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.8s = "true", 3s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.49,0.29) -- (-1.18,-0.82);
\draw[cold] (-3.00,0.74) -- (2.03,-1.66);
\draw[cold, very thick] (-2.51,1.20) -- (2.51,-1.20);
\draw[cold] (-2.03,1.66) -- (3.00,-0.74);
\draw[cold] (1.18,0.82) -- (3.49,-0.29);
\draw[cold] (-3.34,0.42) -- (-1.32,1.48);
\draw[cold] (-3.27,-0.26) -- (-0.40,1.24);
\draw[cold] (-2.35,-0.51) -- (0.52,0.99);
\draw[cold, very thick] (-1.44,-0.75) -- (1.44,0.75);
\draw[cold] (-0.52,-0.99) -- (2.35,0.51);
\draw[cold] (0.40,-1.24) -- (3.27,0.26);
\draw[cold] (1.32,-1.48) -- (3.34,-0.42);
\draw[->, hot, very thick] (0.00,0.00) -- (0.72,-0.35);
\node at (0.90,-0.28) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.69,0.36);
\node at (0.86,0.61) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.54,\ 1.70)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.96 & -0.27 \\ 0.27 & 0.96 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3s = "true", 3.2s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.79,-0.00) -- (-3.47,-0.21);
\draw[cold] (-3.28,0.48) -- (-1.32,-0.78);
\draw[cold] (-2.76,0.97) -- (0.83,-1.35);
\draw[cold, very thick] (-2.25,1.45) -- (2.25,-1.45);
\draw[cold] (-0.83,1.35) -- (2.76,-0.97);
\draw[cold] (1.32,0.78) -- (3.28,-0.48);
\draw[cold] (3.47,0.21) -- (3.79,0.00);
\draw[cold] (-3.02,0.73) -- (-1.17,1.44);
\draw[cold] (-3.67,-0.16) -- (-0.20,1.19);
\draw[cold] (-2.70,-0.41) -- (0.77,0.93);
\draw[cold, very thick] (-1.73,-0.67) -- (1.73,0.67);
\draw[cold] (-0.77,-0.93) -- (2.70,0.41);
\draw[cold] (0.20,-1.19) -- (3.67,0.16);
\draw[cold] (1.17,-1.44) -- (3.02,-0.73);
\draw[->, hot, very thick] (0.00,0.00) -- (0.61,-0.40);
\node at (0.77,-0.34) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.79,0.31);
\node at (0.99,0.54) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.26,\ 2.05)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.91 & -0.41 \\ 0.41 & 0.91 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.2s = "true", 3.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.63,0.15) -- (-3.11,-0.31);
\draw[cold] (-3.08,0.67) -- (-1.45,-0.75);
\draw[cold] (-2.53,1.19) -- (0.22,-1.19);
\draw[cold, very thick] (-1.88,1.63) -- (1.88,-1.63);
\draw[cold] (-0.22,1.19) -- (2.53,-1.19);
\draw[cold] (1.45,0.75) -- (3.08,-0.67);
\draw[cold] (3.11,0.31) -- (3.63,-0.15);
\draw[cold] (-2.81,0.92) -- (-1.08,1.42);
\draw[cold] (-3.70,0.09) -- (-0.04,1.14);
\draw[cold] (-3.09,-0.31) -- (1.00,0.87);
\draw[cold, very thick] (-2.04,-0.59) -- (2.04,0.59);
\draw[cold] (-1.00,-0.87) -- (3.09,0.31);
\draw[cold] (0.04,-1.14) -- (3.70,-0.09);
\draw[cold] (1.08,-1.42) -- (2.81,-0.92);
\draw[->, hot, very thick] (0.00,0.00) -- (0.50,-0.43);
\node at (0.62,-0.39) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.87,0.25);
\node at (1.08,0.47) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (1.96,\ 2.34)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.85 & -0.53 \\ 0.53 & 0.85 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.4s = "true", 3.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.52,0.26) -- (-2.98,-0.34);
\draw[cold] (-2.93,0.81) -- (-1.54,-0.72);
\draw[cold] (-2.33,1.37) -- (-0.10,-1.10);
\draw[cold, very thick] (-1.34,1.49) -- (1.34,-1.49);
\draw[cold] (0.10,1.10) -- (2.33,-1.37);
\draw[cold] (1.54,0.72) -- (2.93,-0.81);
\draw[cold] (2.98,0.34) -- (3.52,-0.26);
\draw[cold] (-2.68,1.04) -- (-1.04,1.41);
\draw[cold] (-3.45,0.32) -- (0.07,1.11);
\draw[cold] (-3.42,-0.22) -- (1.19,0.82);
\draw[cold, very thick] (-2.31,-0.52) -- (2.31,0.52);
\draw[cold] (-1.19,-0.82) -- (3.42,0.22);
\draw[cold] (-0.07,-1.11) -- (3.45,-0.32);
\draw[cold] (1.04,-1.41) -- (2.68,-1.04);
\draw[->, hot, very thick] (0.00,0.00) -- (0.41,-0.46);
\node at (0.51,-0.41) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.91,0.21);
\node at (1.14,0.41) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (1.72,\ 2.52)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.79 & -0.61 \\ 0.61 & 0.79 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 3.6s = "true", 5.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.48,0.30) -- (-2.96,-0.35);
\draw[cold] (-2.86,0.87) -- (-1.58,-0.71);
\draw[cold] (-2.25,1.45) -- (-0.21,-1.08);
\draw[cold, very thick] (-1.17,1.44) -- (1.17,-1.44);
\draw[cold] (0.21,1.08) -- (2.25,-1.45);
\draw[cold] (1.58,0.71) -- (2.86,-0.87);
\draw[cold] (2.96,0.35) -- (3.48,-0.30);
\draw[cold] (-2.64,1.08) -- (-1.04,1.41);
\draw[cold] (-3.37,0.40) -- (0.11,1.10);
\draw[cold] (-3.57,-0.18) -- (1.27,0.80);
\draw[cold, very thick] (-2.42,-0.49) -- (2.42,0.49);
\draw[cold] (-1.27,-0.80) -- (3.57,0.18);
\draw[cold] (-0.11,-1.10) -- (3.37,-0.40);
\draw[cold] (1.04,-1.41) -- (2.64,-1.08);
\draw[->, hot, very thick] (0.00,0.00) -- (0.37,-0.46);
\node at (0.47,-0.42) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.93,0.19);
\node at (1.16,0.39) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (1.62,\ 2.59)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.77 & -0.64 \\ 0.64 & 0.77 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Rotate the code axes.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.4s = "true", 5.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.45,0.32) -- (-2.94,-0.35);
\draw[cold] (-2.82,0.91) -- (-1.60,-0.71);
\draw[cold] (-2.20,1.50) -- (-0.26,-1.06);
\draw[cold, very thick] (-1.07,1.42) -- (1.07,-1.42);
\draw[cold] (0.26,1.06) -- (2.20,-1.50);
\draw[cold] (1.60,0.71) -- (2.82,-0.91);
\draw[cold] (2.94,0.35) -- (3.45,-0.32);
\draw[cold] (-2.69,1.04) -- (-1.01,1.40);
\draw[cold] (-3.43,0.34) -- (0.11,1.10);
\draw[cold] (-3.48,-0.21) -- (1.23,0.80);
\draw[cold, very thick] (-2.36,-0.51) -- (2.36,0.51);
\draw[cold] (-1.23,-0.80) -- (3.48,0.21);
\draw[cold] (-0.11,-1.10) -- (3.43,-0.34);
\draw[cold] (1.01,-1.40) -- (2.69,-1.04);
\draw[->, hot, very thick] (0.00,0.00) -- (0.35,-0.46);
\node at (0.44,-0.42) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.92,0.20);
\node at (1.15,0.40) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (1.69,\ 2.63)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.79 & -0.63 \\ 0.66 & 0.75 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.6s = "true", 5.8s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.37,0.40) -- (-2.89,-0.36);
\draw[cold] (-2.72,1.01) -- (-1.64,-0.70);
\draw[cold] (-2.07,1.62) -- (-0.39,-1.03);
\draw[cold, very thick] (-0.86,1.36) -- (0.86,-1.36);
\draw[cold] (0.39,1.03) -- (2.07,-1.62);
\draw[cold] (1.64,0.70) -- (2.72,-1.01);
\draw[cold] (2.89,0.36) -- (3.37,-0.40);
\draw[cold] (-2.04,1.65) -- (-1.99,1.66);
\draw[cold] (-2.82,0.92) -- (-0.94,1.38);
\draw[cold] (-3.59,0.19) -- (0.11,1.10);
\draw[cold] (-3.25,-0.27) -- (1.16,0.82);
\draw[cold, very thick] (-2.21,-0.55) -- (2.21,0.55);
\draw[cold] (-1.16,-0.82) -- (3.25,0.27);
\draw[cold] (-0.11,-1.10) -- (3.59,-0.19);
\draw[cold] (0.94,-1.38) -- (2.82,-0.92);
\draw[cold] (1.99,-1.66) -- (2.04,-1.65);
\draw[->, hot, very thick] (0.00,0.00) -- (0.29,-0.47);
\node at (0.37,-0.43) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.90,0.22);
\node at (1.12,0.43) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (1.88,\ 2.73)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.84 & -0.60 \\ 0.71 & 0.72 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.8s = "true", 6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.25,0.51) -- (-2.83,-0.38);
\draw[cold] (-2.56,1.16) -- (-1.68,-0.68);
\draw[cold] (-1.76,1.60) -- (-0.54,-0.99);
\draw[cold, very thick] (-0.61,1.29) -- (0.61,-1.29);
\draw[cold] (0.54,0.99) -- (1.76,-1.60);
\draw[cold] (1.68,0.68) -- (2.56,-1.16);
\draw[cold] (2.83,0.38) -- (3.25,-0.51);
\draw[cold] (-2.19,1.51) -- (-1.82,1.62);
\draw[cold] (-3.01,0.73) -- (-0.86,1.36);
\draw[cold] (-3.84,-0.05) -- (0.10,1.10);
\draw[cold] (-2.99,-0.34) -- (1.07,0.85);
\draw[cold, very thick] (-2.03,-0.59) -- (2.03,0.59);
\draw[cold] (-1.07,-0.85) -- (2.99,0.34);
\draw[cold] (-0.10,-1.10) -- (3.84,0.05);
\draw[cold] (0.86,-1.36) -- (3.01,-0.73);
\draw[cold] (1.82,-1.62) -- (2.19,-1.51);
\draw[->, hot, very thick] (0.00,0.00) -- (0.22,-0.47);
\node at (0.28,-0.43) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.88,0.26);
\node at (1.10,0.48) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.13,\ 2.87)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 0.92 & -0.57 \\ 0.77 & 0.68 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6s = "true", 6.2s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.85,-0.06) -- (-3.83,-0.11);
\draw[cold] (-3.10,0.65) -- (-2.78,-0.39);
\draw[cold] (-2.35,1.35) -- (-1.73,-0.67);
\draw[cold] (-1.44,1.51) -- (-0.67,-0.95);
\draw[cold, very thick] (-0.38,1.23) -- (0.38,-1.23);
\draw[cold] (0.67,0.95) -- (1.44,-1.51);
\draw[cold] (1.73,0.67) -- (2.35,-1.35);
\draw[cold] (2.78,0.39) -- (3.10,-0.65);
\draw[cold] (3.83,0.11) -- (3.85,0.06);
\draw[cold] (-2.37,1.34) -- (-1.67,1.58);
\draw[cold] (-3.26,0.50) -- (-0.78,1.34);
\draw[cold] (-3.64,-0.17) -- (0.10,1.11);
\draw[cold] (-2.75,-0.40) -- (0.98,0.87);
\draw[cold, very thick] (-1.87,-0.64) -- (1.87,0.64);
\draw[cold] (-0.98,-0.87) -- (2.75,0.40);
\draw[cold] (-0.10,-1.11) -- (3.64,0.17);
\draw[cold] (0.78,-1.34) -- (3.26,-0.50);
\draw[cold] (1.67,-1.58) -- (2.37,-1.34);
\draw[->, hot, very thick] (0.00,0.00) -- (0.15,-0.48);
\node at (0.19,-0.45) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.88,0.30);
\node at (1.09,0.53) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.40,\ 3.02)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.00 & -0.53 \\ 0.84 & 0.63 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.2s = "true", 6.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.75,0.04) -- (-3.72,-0.14);
\draw[cold] (-2.94,0.80) -- (-2.74,-0.40);
\draw[cold] (-2.14,1.56) -- (-1.76,-0.66);
\draw[cold] (-1.18,1.45) -- (-0.78,-0.93);
\draw[cold, very thick] (-0.20,1.19) -- (0.20,-1.19);
\draw[cold] (0.78,0.93) -- (1.18,-1.45);
\draw[cold] (1.76,0.66) -- (2.14,-1.56);
\draw[cold] (2.74,0.40) -- (2.94,-0.80);
\draw[cold] (3.72,0.14) -- (3.75,-0.04);
\draw[cold] (-2.56,1.15) -- (-1.55,1.54);
\draw[cold] (-3.53,0.25) -- (-0.73,1.33);
\draw[cold] (-3.39,-0.23) -- (0.10,1.11);
\draw[cold] (-2.56,-0.45) -- (0.92,0.89);
\draw[cold, very thick] (-1.74,-0.67) -- (1.74,0.67);
\draw[cold] (-0.92,-0.89) -- (2.56,0.45);
\draw[cold] (-0.10,-1.11) -- (3.39,0.23);
\draw[cold] (0.73,-1.33) -- (3.53,-0.25);
\draw[cold] (1.55,-1.54) -- (2.56,-1.15);
\draw[->, hot, very thick] (0.00,0.00) -- (0.09,-0.50);
\node at (0.11,-0.47) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.88,0.34);
\node at (1.10,0.58) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.66,\ 3.16)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.07 & -0.49 \\ 0.90 & 0.58 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.4s = "true", 6.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.67,0.12) -- (-3.65,-0.16);
\draw[cold] (-2.81,0.92) -- (-2.71,-0.41);
\draw[cold] (-1.95,1.65) -- (-1.78,-0.66);
\draw[cold] (-1.02,1.40) -- (-0.85,-0.91);
\draw[cold, very thick] (-0.09,1.15) -- (0.09,-1.15);
\draw[cold] (0.85,0.91) -- (1.02,-1.40);
\draw[cold] (1.78,0.66) -- (1.95,-1.65);
\draw[cold] (2.71,0.41) -- (2.81,-0.92);
\draw[cold] (3.65,0.16) -- (3.67,-0.12);
\draw[cold] (-2.73,1.00) -- (-1.47,1.52);
\draw[cold] (-3.75,0.04) -- (-0.69,1.32);
\draw[cold] (-3.23,-0.27) -- (0.09,1.11);
\draw[cold] (-2.44,-0.48) -- (0.88,0.90);
\draw[cold, very thick] (-1.66,-0.69) -- (1.66,0.69);
\draw[cold] (-0.88,-0.90) -- (2.44,0.48);
\draw[cold] (-0.09,-1.11) -- (3.23,0.27);
\draw[cold] (0.69,-1.32) -- (3.75,-0.04);
\draw[cold] (1.47,-1.52) -- (2.73,-1.00);
\draw[->, hot, very thick] (0.00,0.00) -- (0.04,-0.52);
\node at (0.05,-0.49) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.89,0.37);
\node at (1.11,0.62) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.84,\ 3.27)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.13 & -0.46 \\ 0.95 & 0.55 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.6s = "true", 8.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.63,0.15) -- (-3.62,-0.17);
\draw[cold] (-2.76,0.97) -- (-2.70,-0.41);
\draw[cold] (-1.87,1.63) -- (-1.79,-0.66);
\draw[cold] (-0.96,1.39) -- (-0.87,-0.90);
\draw[cold, very thick] (-0.04,1.14) -- (0.04,-1.14);
\draw[cold] (0.87,0.90) -- (0.96,-1.39);
\draw[cold] (1.79,0.66) -- (1.87,-1.63);
\draw[cold] (2.70,0.41) -- (2.76,-0.97);
\draw[cold] (3.62,0.17) -- (3.63,-0.15);
\draw[cold] (-2.80,0.94) -- (-1.44,1.52);
\draw[cold] (-3.84,-0.04) -- (-0.68,1.31);
\draw[cold] (-3.17,-0.29) -- (0.09,1.11);
\draw[cold] (-2.40,-0.49) -- (0.86,0.90);
\draw[cold, very thick] (-1.63,-0.70) -- (1.63,0.70);
\draw[cold] (-0.86,-0.90) -- (2.40,0.49);
\draw[cold] (-0.09,-1.11) -- (3.17,0.29);
\draw[cold] (0.68,-1.31) -- (3.84,0.04);
\draw[cold] (1.44,-1.52) -- (2.80,-0.94);
\draw[->, hot, very thick] (0.00,0.00) -- (0.02,-0.53);
\node at (0.02,-0.50) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.89,0.38);
\node at (1.12,0.63) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.91,\ 3.31)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & -0.45 \\ 0.96 & 0.54 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Stretch them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8.4s = "true", 8.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.60,0.18) -- (-3.57,-0.18);
\draw[cold] (-2.77,0.96) -- (-2.65,-0.43);
\draw[cold] (-1.93,1.64) -- (-1.74,-0.67);
\draw[cold] (-1.01,1.40) -- (-0.82,-0.91);
\draw[cold, very thick] (-0.10,1.16) -- (0.10,-1.16);
\draw[cold] (0.82,0.91) -- (1.01,-1.40);
\draw[cold] (1.74,0.67) -- (1.93,-1.64);
\draw[cold] (2.65,0.43) -- (2.77,-0.96);
\draw[cold] (3.57,0.18) -- (3.60,-0.18);
\draw[cold] (-2.78,0.95) -- (-1.50,1.53);
\draw[cold] (-3.88,-0.10) -- (-0.73,1.33);
\draw[cold] (-3.11,-0.30) -- (0.04,1.12);
\draw[cold] (-2.35,-0.51) -- (0.81,0.92);
\draw[cold, very thick] (-1.58,-0.71) -- (1.58,0.71);
\draw[cold] (-0.81,-0.92) -- (2.35,0.51);
\draw[cold] (-0.04,-1.12) -- (3.11,0.30);
\draw[cold] (0.73,-1.33) -- (3.88,0.10);
\draw[cold] (1.50,-1.53) -- (2.78,-0.95);
\draw[->, hot, very thick] (0.00,0.00) -- (0.04,-0.53);
\node at (0.05,-0.51) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.86,0.39);
\node at (1.08,0.64) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.95,\ 3.33)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & -0.42 \\ 0.96 & 0.56 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8.6s = "true", 8.8s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.52,0.25) -- (-3.43,-0.22);
\draw[cold] (-2.79,0.94) -- (-2.52,-0.46);
\draw[cold] (-2.05,1.64) -- (-1.60,-0.71);
\draw[cold] (-1.15,1.44) -- (-0.69,-0.95);
\draw[cold, very thick] (-0.23,1.19) -- (0.23,-1.19);
\draw[cold] (0.69,0.95) -- (1.15,-1.44);
\draw[cold] (1.60,0.71) -- (2.05,-1.64);
\draw[cold] (2.52,0.46) -- (2.79,-0.94);
\draw[cold] (3.43,0.22) -- (3.52,-0.25);
\draw[cold] (-2.74,0.99) -- (-1.63,1.57);
\draw[cold] (-3.75,-0.14) -- (-0.86,1.36);
\draw[cold] (-2.98,-0.34) -- (-0.09,1.16);
\draw[cold] (-2.21,-0.54) -- (0.67,0.95);
\draw[cold, very thick] (-1.44,-0.75) -- (1.44,0.75);
\draw[cold] (-0.67,-0.95) -- (2.21,0.54);
\draw[cold] (0.09,-1.16) -- (2.98,0.34);
\draw[cold] (0.86,-1.36) -- (3.75,0.14);
\draw[cold] (1.63,-1.57) -- (2.74,-0.99);
\draw[->, hot, very thick] (0.00,0.00) -- (0.11,-0.55);
\node at (0.13,-0.53) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.79,0.41);
\node at (0.99,0.67) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.03,\ 3.40)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & -0.33 \\ 0.96 & 0.64 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 8.8s = "true", 9s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.45,0.32) -- (-3.25,-0.27);
\draw[cold] (-2.81,0.92) -- (-2.33,-0.51);
\draw[cold] (-2.18,1.52) -- (-1.42,-0.76);
\draw[cold] (-1.33,1.49) -- (-0.50,-1.00);
\draw[cold, very thick] (-0.41,1.24) -- (0.41,-1.24);
\draw[cold] (0.50,1.00) -- (1.33,-1.49);
\draw[cold] (1.42,0.76) -- (2.18,-1.52);
\draw[cold] (2.33,0.51) -- (2.81,-0.92);
\draw[cold] (3.25,0.27) -- (3.45,-0.32);
\draw[cold] (-2.61,1.11) -- (-1.81,1.61);
\draw[cold] (-3.56,-0.18) -- (-1.05,1.41);
\draw[cold] (-2.80,-0.39) -- (-0.28,1.21);
\draw[cold] (-2.03,-0.59) -- (0.49,1.00);
\draw[cold, very thick] (-1.26,-0.80) -- (1.26,0.80);
\draw[cold] (-0.49,-1.00) -- (2.03,0.59);
\draw[cold] (0.28,-1.21) -- (2.80,0.39);
\draw[cold] (1.05,-1.41) -- (3.56,0.18);
\draw[cold] (1.81,-1.61) -- (2.61,-1.11);
\draw[->, hot, very thick] (0.00,0.00) -- (0.19,-0.57);
\node at (0.24,-0.56) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.69,0.44);
\node at (0.86,0.70) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.14,\ 3.50)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & -0.21 \\ 0.96 & 0.74 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9s = "true", 9.2s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.38,0.38) -- (-3.05,-0.32);
\draw[cold] (-2.83,0.90) -- (-2.13,-0.57);
\draw[cold] (-2.28,1.42) -- (-1.22,-0.81);
\draw[cold] (-1.53,1.54) -- (-0.30,-1.05);
\draw[cold, very thick] (-0.61,1.30) -- (0.61,-1.30);
\draw[cold] (0.30,1.05) -- (1.53,-1.54);
\draw[cold] (1.22,0.81) -- (2.28,-1.42);
\draw[cold] (2.13,0.57) -- (2.83,-0.90);
\draw[cold] (3.05,0.32) -- (3.38,-0.38);
\draw[cold] (-2.04,1.65) -- (-2.01,1.67);
\draw[cold] (-3.36,-0.24) -- (-1.25,1.46);
\draw[cold] (-2.60,-0.44) -- (-0.48,1.26);
\draw[cold] (-1.83,-0.65) -- (0.29,1.05);
\draw[cold, very thick] (-1.06,-0.85) -- (1.06,0.85);
\draw[cold] (-0.29,-1.05) -- (1.83,0.65);
\draw[cold] (0.48,-1.26) -- (2.60,0.44);
\draw[cold] (1.25,-1.46) -- (3.36,0.24);
\draw[cold] (2.01,-1.67) -- (2.04,-1.65);
\draw[->, hot, very thick] (0.00,0.00) -- (0.28,-0.59);
\node at (0.35,-0.59) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.58,0.47);
\node at (0.72,0.74) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.26,\ 3.60)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & -0.08 \\ 0.96 & 0.85 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.2s = "true", 9.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.83,-0.04) -- (-3.78,-0.13);
\draw[cold] (-3.34,0.43) -- (-2.86,-0.37);
\draw[cold] (-2.84,0.89) -- (-1.95,-0.61);
\draw[cold] (-2.35,1.36) -- (-1.03,-0.86);
\draw[cold] (-1.71,1.59) -- (-0.12,-1.10);
\draw[cold, very thick] (-0.80,1.34) -- (0.80,-1.34);
\draw[cold] (0.12,1.10) -- (1.71,-1.59);
\draw[cold] (1.03,0.86) -- (2.35,-1.36);
\draw[cold] (1.95,0.61) -- (2.84,-0.89);
\draw[cold] (2.86,0.37) -- (3.34,-0.43);
\draw[cold] (3.78,0.13) -- (3.83,0.04);
\draw[cold] (-3.18,-0.29) -- (-1.43,1.51);
\draw[cold] (-2.41,-0.49) -- (-0.66,1.31);
\draw[cold] (-1.64,-0.70) -- (0.11,1.10);
\draw[cold, very thick] (-0.88,-0.90) -- (0.88,0.90);
\draw[cold] (-0.11,-1.10) -- (1.64,0.70);
\draw[cold] (0.66,-1.31) -- (2.41,0.49);
\draw[cold] (1.43,-1.51) -- (3.18,0.29);
\draw[->, hot, very thick] (0.00,0.00) -- (0.37,-0.62);
\node at (0.46,-0.62) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.48,0.49);
\node at (0.60,0.77) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.38,\ 3.69)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & 0.04 \\ 0.96 & 0.95 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.4s = "true", 9.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.77,0.02) -- (-3.65,-0.16);
\draw[cold] (-3.31,0.45) -- (-2.73,-0.41);
\draw[cold] (-2.85,0.88) -- (-1.81,-0.65);
\draw[cold] (-2.39,1.32) -- (-0.90,-0.89);
\draw[cold] (-1.85,1.62) -- (0.02,-1.14);
\draw[cold, very thick] (-0.93,1.38) -- (0.93,-1.38);
\draw[cold] (-0.02,1.14) -- (1.85,-1.62);
\draw[cold] (0.90,0.89) -- (2.39,-1.32);
\draw[cold] (1.81,0.65) -- (2.85,-0.88);
\draw[cold] (2.73,0.41) -- (3.31,-0.45);
\draw[cold] (3.65,0.16) -- (3.77,-0.02);
\draw[cold] (-3.81,-0.12) -- (-3.51,0.26);
\draw[cold] (-3.05,-0.32) -- (-1.56,1.55);
\draw[cold] (-2.28,-0.53) -- (-0.80,1.34);
\draw[cold] (-1.51,-0.73) -- (-0.03,1.14);
\draw[cold, very thick] (-0.74,-0.94) -- (0.74,0.94);
\draw[cold] (0.03,-1.14) -- (1.51,0.73);
\draw[cold] (0.80,-1.34) -- (2.28,0.53);
\draw[cold] (1.56,-1.55) -- (3.05,0.32);
\draw[cold] (3.51,-0.26) -- (3.81,0.12);
\draw[->, hot, very thick] (0.00,0.00) -- (0.43,-0.63);
\node at (0.54,-0.64) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.41,0.51);
\node at (0.51,0.80) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.46,\ 3.76)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & 0.13 \\ 0.96 & 1.02 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 9.6s = "true", 11.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.75,0.04) -- (-3.59,-0.18);
\draw[cold] (-3.30,0.46) -- (-2.68,-0.42);
\draw[cold] (-2.85,0.88) -- (-1.76,-0.66);
\draw[cold] (-2.41,1.30) -- (-0.85,-0.91);
\draw[cold] (-1.90,1.64) -- (0.07,-1.15);
\draw[cold, very thick] (-0.98,1.39) -- (0.98,-1.39);
\draw[cold] (-0.07,1.15) -- (1.90,-1.64);
\draw[cold] (0.85,0.91) -- (2.41,-1.30);
\draw[cold] (1.76,0.66) -- (2.85,-0.88);
\draw[cold] (2.68,0.42) -- (3.30,-0.46);
\draw[cold] (3.59,0.18) -- (3.75,-0.04);
\draw[cold] (-3.76,-0.13) -- (-3.40,0.37);
\draw[cold] (-2.99,-0.34) -- (-1.62,1.56);
\draw[cold] (-2.23,-0.54) -- (-0.85,1.36);
\draw[cold] (-1.46,-0.74) -- (-0.08,1.15);
\draw[cold, very thick] (-0.69,-0.95) -- (0.69,0.95);
\draw[cold] (0.08,-1.15) -- (1.46,0.74);
\draw[cold] (0.85,-1.36) -- (2.23,0.54);
\draw[cold] (1.62,-1.56) -- (2.99,0.34);
\draw[cold] (3.40,-0.37) -- (3.76,0.13);
\draw[->, hot, very thick] (0.00,0.00) -- (0.45,-0.64);
\node at (0.57,-0.64) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.38,0.52);
\node at (0.47,0.81) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.49,\ 3.79)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & 0.16 \\ 0.96 & 1.05 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Shear them.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.4s = "true", 11.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.86,-0.06) -- (-3.82,-0.12);
\draw[cold] (-3.40,0.37) -- (-2.84,-0.38);
\draw[cold] (-2.95,0.79) -- (-1.86,-0.64);
\draw[cold] (-2.49,1.22) -- (-0.88,-0.90);
\draw[cold] (-2.03,1.65) -- (0.10,-1.16);
\draw[cold, very thick] (-1.08,1.42) -- (1.08,-1.42);
\draw[cold] (-0.10,1.16) -- (2.03,-1.65);
\draw[cold] (0.88,0.90) -- (2.49,-1.22);
\draw[cold] (1.86,0.64) -- (2.95,-0.79);
\draw[cold] (2.84,0.38) -- (3.40,-0.37);
\draw[cold] (3.82,0.12) -- (3.86,0.06);
\draw[cold] (-3.73,-0.14) -- (-3.27,0.49);
\draw[cold] (-2.98,-0.34) -- (-1.58,1.55);
\draw[cold] (-2.22,-0.54) -- (-0.82,1.35);
\draw[cold] (-1.46,-0.74) -- (-0.06,1.15);
\draw[cold, very thick] (-0.70,-0.95) -- (0.70,0.95);
\draw[cold] (0.06,-1.15) -- (1.46,0.74);
\draw[cold] (0.82,-1.35) -- (2.22,0.54);
\draw[cold] (1.58,-1.55) -- (2.98,0.34);
\draw[cold] (3.27,-0.49) -- (3.73,0.14);
\draw[->, hot, very thick] (0.00,0.00) -- (0.46,-0.61);
\node at (0.58,-0.60) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.39,0.52);
\node at (0.48,0.81) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.53,\ 3.59)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.16 & 0.16 \\ 0.90 & 1.03 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.6s = "true", 11.8s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.68,0.11) -- (-3.35,-0.24);
\draw[cold] (-3.20,0.56) -- (-2.16,-0.56);
\draw[cold] (-2.72,1.01) -- (-0.98,-0.87);
\draw[cold] (-2.25,1.45) -- (0.21,-1.19);
\draw[cold, very thick] (-1.40,1.50) -- (1.40,-1.50);
\draw[cold] (-0.21,1.19) -- (2.25,-1.45);
\draw[cold] (0.98,0.87) -- (2.72,-1.01);
\draw[cold] (2.16,0.56) -- (3.20,-0.56);
\draw[cold] (3.35,0.24) -- (3.68,-0.11);
\draw[cold] (-3.71,-0.15) -- (-3.04,0.70);
\draw[cold] (-2.96,-0.34) -- (-1.50,1.53);
\draw[cold] (-2.22,-0.54) -- (-0.76,1.33);
\draw[cold] (-1.47,-0.74) -- (-0.01,1.14);
\draw[cold, very thick] (-0.73,-0.94) -- (0.73,0.94);
\draw[cold] (0.01,-1.14) -- (1.47,0.74);
\draw[cold] (0.76,-1.33) -- (2.22,0.54);
\draw[cold] (1.50,-1.53) -- (2.96,0.34);
\draw[cold] (3.04,-0.70) -- (3.71,0.15);
\draw[->, hot, very thick] (0.00,0.00) -- (0.49,-0.53);
\node at (0.61,-0.50) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.41,0.52);
\node at (0.51,0.81) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.58,\ 3.09)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.19 & 0.14 \\ 0.74 & 0.98 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 11.8s = "true", 12s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.56,0.22) -- (-2.77,-0.40);
\draw[cold] (-3.06,0.69) -- (-1.12,-0.83);
\draw[cold] (-2.56,1.16) -- (0.53,-1.27);
\draw[cold, very thick] (-2.07,1.62) -- (2.07,-1.62);
\draw[cold] (-0.53,1.27) -- (2.56,-1.16);
\draw[cold] (1.12,0.83) -- (3.06,-0.69);
\draw[cold] (2.77,0.40) -- (3.56,-0.22);
\draw[cold] (-3.75,-0.13) -- (-3.05,0.69);
\draw[cold] (-3.01,-0.33) -- (-1.45,1.52);
\draw[cold] (-2.27,-0.53) -- (-0.71,1.32);
\draw[cold] (-1.52,-0.73) -- (0.04,1.12);
\draw[cold, very thick] (-0.78,-0.92) -- (0.78,0.92);
\draw[cold] (-0.04,-1.12) -- (1.52,0.73);
\draw[cold] (0.71,-1.32) -- (2.27,0.53);
\draw[cold] (1.45,-1.52) -- (3.01,0.33);
\draw[cold] (3.05,-0.69) -- (3.75,0.13);
\draw[->, hot, very thick] (0.00,0.00) -- (0.55,-0.43);
\node at (0.68,-0.38) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.44,0.52);
\node at (0.54,0.80) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.55,\ 2.45)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.19 & 0.11 \\ 0.54 & 0.95 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 12s = "true", 12.2s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.41,0.35) -- (-1.30,-0.79);
\draw[cold] (-2.91,0.83) -- (1.42,-1.51);
\draw[cold, very thick] (-2.41,1.30) -- (2.41,-1.30);
\draw[cold] (-1.42,1.51) -- (2.91,-0.83);
\draw[cold] (1.30,0.79) -- (3.41,-0.35);
\draw[cold] (-3.14,-0.30) -- (-1.46,1.52);
\draw[cold] (-2.37,-0.50) -- (-0.69,1.32);
\draw[cold] (-1.61,-0.70) -- (0.07,1.11);
\draw[cold, very thick] (-0.84,-0.91) -- (0.84,0.91);
\draw[cold] (-0.07,-1.11) -- (1.61,0.70);
\draw[cold] (0.69,-1.32) -- (2.37,0.50);
\draw[cold] (1.46,-1.52) -- (3.14,0.30);
\draw[->, hot, very thick] (0.00,0.00) -- (0.64,-0.34);
\node at (0.80,-0.27) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.46,0.50);
\node at (0.57,0.78) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.41,\ 1.82)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.15 & 0.06 \\ 0.32 & 0.93 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 12.2s = "true", 12.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.69,0.09) -- (-1.48,-0.74);
\draw[cold] (-3.20,0.56) -- (2.21,-1.48);
\draw[cold, very thick] (-2.71,1.02) -- (2.71,-1.02);
\draw[cold] (-2.21,1.48) -- (3.20,-0.56);
\draw[cold] (1.48,0.74) -- (3.69,-0.09);
\draw[cold] (-3.33,-0.25) -- (-1.54,1.54);
\draw[cold] (-2.52,-0.46) -- (-0.73,1.33);
\draw[cold] (-1.71,-0.68) -- (0.08,1.11);
\draw[cold, very thick] (-0.89,-0.89) -- (0.89,0.89);
\draw[cold] (-0.08,-1.11) -- (1.71,0.68);
\draw[cold] (0.73,-1.33) -- (2.52,0.46);
\draw[cold] (1.54,-1.54) -- (3.33,0.25);
\draw[->, hot, very thick] (0.00,0.00) -- (0.75,-0.28);
\node at (0.93,-0.20) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.47,0.47);
\node at (0.59,0.74) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (3.19,\ 1.34)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.09 & 0.03 \\ 0.15 & 0.95 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 12.4s = "true", 12.6s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.85,-0.05) -- (-1.65,-0.69);
\draw[cold] (-3.37,0.40) -- (2.42,-1.29);
\draw[cold, very thick] (-2.89,0.85) -- (2.89,-0.85);
\draw[cold] (-2.42,1.29) -- (3.37,-0.40);
\draw[cold] (1.65,0.69) -- (3.85,0.05);
\draw[cold] (-3.51,-0.20) -- (-1.65,1.57);
\draw[cold] (-2.65,-0.43) -- (-0.79,1.34);
\draw[cold] (-1.79,-0.66) -- (0.07,1.11);
\draw[cold, very thick] (-0.93,-0.89) -- (0.93,0.89);
\draw[cold] (-0.07,-1.11) -- (1.79,0.66);
\draw[cold] (0.79,-1.34) -- (2.65,0.43);
\draw[cold] (1.65,-1.57) -- (3.51,0.20);
\draw[->, hot, very thick] (0.00,0.00) -- (0.84,-0.25);
\node at (1.05,-0.15) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.47,0.45);
\node at (0.59,0.72) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.99,\ 1.04)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.03 & 0.01 \\ 0.04 & 0.98 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 12.6s = "true", 14.4s = "false", 14.4s = "false", repeats}}}]
\draw[cold] (-3.43,0.34) -- (2.49,-1.23);
\draw[cold, very thick] (-2.96,0.79) -- (2.96,-0.79);
\draw[cold] (-2.49,1.23) -- (3.43,-0.34);
\draw[cold] (-3.59,-0.18) -- (-1.71,1.59);
\draw[cold] (-2.70,-0.41) -- (-0.83,1.35);
\draw[cold] (-1.82,-0.65) -- (0.06,1.12);
\draw[cold, very thick] (-0.94,-0.88) -- (0.94,0.88);
\draw[cold] (-0.06,-1.12) -- (1.82,0.65);
\draw[cold] (0.83,-1.35) -- (2.70,0.41);
\draw[cold] (1.71,-1.59) -- (3.59,0.18);
\draw[->, hot, very thick] (0.00,0.00) -- (0.88,-0.23);
\node at (1.10,-0.14) {\footnotesize $\mathbf d_1$};
\draw[->, hot, very thick] (0.00,0.00) -- (0.47,0.44);
\node at (0.59,0.71) {\footnotesize $\mathbf d_2$};
\node[anchor=west] at (3.9,0.35) {code of the marked point:};
\node[anchor=west] at (3.9,-0.25) {$\mathbf a = (2.90,\ 0.94)$};
\node[anchor=west] at (3.9,-1.1) {$\mathbf M = \left[\begin{array}{rr} 1.00 & 0.00 \\ 0.00 & 1.00 \end{array}\right]$};
\node[anchor=west] at (-4.3,-2.85) {Back to PCA.};
\end{scope}
\fill[hot] (-0.69,-0.61) circle (2.2pt);
\fill[hot] (0.74,-0.06) circle (2.2pt);
\fill[hot] (-0.96,0.17) circle (2.2pt);
\fill[hot] (2.03,-1.29) circle (2.2pt);
\fill[hot] (-1.08,0.23) circle (2.2pt);
\fill[hot] (-1.11,-0.25) circle (2.2pt);
\fill[hot] (-0.14,-0.38) circle (2.2pt);
\fill[hot] (1.97,-0.67) circle (2.2pt);
\filldraw[draw=black, fill=hot] (3.01,-0.27) circle (3.4pt);
\draw[very thick] (3.01,-0.27) circle (6pt);
\fill[hot] (2.17,0.26) circle (2.2pt);
\fill[hot] (-1.36,0.34) circle (2.2pt);
\fill[hot] (-0.96,-0.23) circle (2.2pt);
\fill[hot] (-1.31,-0.32) circle (2.2pt);
\fill[hot] (0.94,-0.43) circle (2.2pt);
\fill[hot] (-1.28,0.86) circle (2.2pt);
\fill[hot] (1.74,0.47) circle (2.2pt);
\fill[hot] (-0.66,0.46) circle (2.2pt);
\fill[hot] (-1.58,-0.05) circle (2.2pt);
\fill[hot] (-1.07,0.85) circle (2.2pt);
\fill[hot] (-0.38,0.93) circle (2.2pt);
\node[anchor=west] at (3.9,2.3) {red: reconstructions $\hat{\mathbf x}$,};
\node[anchor=west] at (3.9,1.8) {the same in every frame};
\node[anchor=west] at (3.9,1.15) {loss: $\sigma_3^2 = 1.30$, always};
\node[anchor=west] at (3.9,-2.0) {\footnotesize blue grid: lines of constant $a_1$ or $a_2$};
\node[anchor=west] at (3.9,-2.45) {\footnotesize $\mathbf d_j$: columns of $\mathbf W_2 = \mathbf V_k\mathbf M^{-1}$};
\end{tikzpicture}
\end{document}

(Reading the Error) The best error of a rank- code is the sum of the dropped squared singular values.

We can use this number to choose . A rank- code keeps the fraction of the data’s squared norm. With centered data, this is the fraction of variance explained. A sharp drop after means the data lie close to a -dimensional subspace, and a larger adds little. A slow decay means no small linear code fits well. A nonlinear autoencoder may still compress such data if they lie near a curved surface. The PCA error is therefore the baseline. A nonlinear autoencoder with code size is useful only if it beats PCA with the same on held-out data.

(Denoising Shrinks Weak Directions) A linear denoising autoencoder without a bottleneck keeps strong directions of the data and damps weak ones.

Not Taught in Lecture

The denoising autoencoder was introduced without analysis. The link between input noise and a ridge penalty is from Bishop (1995). The paper is Training with Noise Is Equivalent to Tikhonov Regularization.

Add Gaussian noise to the input of a linear map . The expected loss for one example is

The noise acts as a ridge penalty on . Let be the second-moment matrix of the data. Averaged over the data, the minimizer is . Along the principal direction it multiplies by , where . Directions with much more variance than the noise pass almost unchanged, and directions with less are damped toward zero. The identity map is never optimal when , so the network learns about the data even with . PCA keeps each direction fully or drops it. This map scales each direction by a factor between and . On the quiz data of the first example below, gives the factors and .

The animation raises the noise on the quiz data from the first example below. The chart on the right tracks the factor for each principal direction.

\usepackage{tikz}
\usetikzlibrary{animations, arrows.meta}
\begin{document}
\definecolor{hot}{HTML}{D9483B}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{mid}{HTML}{8A8A8A}
\begin{tikzpicture}[font=\small, >={Stealth[length=2.2mm]}]
\draw[mid] (-3,0) -- (3,0);
\draw[mid] (0,-3) -- (0,3);
\draw[mid, dashed] (-2.8,-2.8) -- (2.8,2.8) node[above, text=black] {\footnotesize $\mathbf v_1$};
\draw[mid, dashed] (-2.3,2.3) -- (2.3,-2.3) node[below, text=black] {\footnotesize $\mathbf v_2$};
\draw[cold, very thick, rotate=45] (0,0) ellipse (2.121 and 0.707);
\filldraw[draw=black, fill=cold] (2.0,1.0) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-2.0,-1.0) circle (2.6pt);
\filldraw[draw=black, fill=cold] (1.0,2.0) circle (2.6pt);
\filldraw[draw=black, fill=cold] (-1.0,-2.0) circle (2.6pt);
\draw[->] (4.4,-1.4) -- (8.58,-1.4) node[right] {$\tau^2$};
\draw[->] (4.4,-1.4) -- (4.4,1.70);
\draw (4.32,-0.05) -- (4.48,-0.05) node[pos=0, left] {\footnotesize $0.5$};
\draw (4.32,1.30) -- (4.48,1.30) node[pos=0, left] {\footnotesize $1$};
\draw (5.18,-1.48) -- (5.18,-1.32) node[pos=0, below] {\footnotesize $0.5$};
\draw (5.95,-1.48) -- (5.95,-1.32) node[pos=0, below] {\footnotesize $1$};
\draw (6.73,-1.48) -- (6.73,-1.32) node[pos=0, below] {\footnotesize $1.5$};
\draw (7.50,-1.48) -- (7.50,-1.32) node[pos=0, below] {\footnotesize $2$};
\draw[very thick] (4.400,1.300) -- (4.499,1.262) -- (4.599,1.225) -- (4.698,1.189) -- (4.797,1.154) -- (4.897,1.120) -- (4.996,1.087) -- (5.096,1.055) -- (5.195,1.024) -- (5.294,0.993) -- (5.394,0.963) -- (5.493,0.934) -- (5.592,0.906) -- (5.692,0.878) -- (5.791,0.851) -- (5.890,0.825) -- (5.990,0.799) -- (6.089,0.774) -- (6.188,0.749) -- (6.288,0.725) -- (6.387,0.701) -- (6.487,0.678) -- (6.586,0.656) -- (6.685,0.634) -- (6.785,0.612) -- (6.884,0.591) -- (6.983,0.570) -- (7.083,0.550) -- (7.182,0.530) -- (7.281,0.511) -- (7.381,0.492) -- (7.480,0.473) -- (7.579,0.455) -- (7.679,0.437) -- (7.778,0.419) -- (7.878,0.402) -- (7.977,0.385) -- (8.076,0.368) -- (8.176,0.352) -- (8.275,0.336);
\draw[very thick, dashed] (4.400,1.300) -- (4.499,0.993) -- (4.599,0.749) -- (4.698,0.550) -- (4.797,0.385) -- (4.897,0.245) -- (4.996,0.126) -- (5.096,0.023) -- (5.195,-0.067) -- (5.294,-0.146) -- (5.394,-0.217) -- (5.493,-0.280) -- (5.592,-0.336) -- (5.692,-0.387) -- (5.791,-0.434) -- (5.890,-0.476) -- (5.990,-0.515) -- (6.089,-0.551) -- (6.188,-0.584) -- (6.288,-0.614) -- (6.387,-0.642) -- (6.487,-0.669) -- (6.586,-0.693) -- (6.685,-0.716) -- (6.785,-0.738) -- (6.884,-0.758) -- (6.983,-0.777) -- (7.083,-0.795) -- (7.182,-0.812) -- (7.281,-0.828) -- (7.381,-0.843) -- (7.480,-0.857) -- (7.579,-0.871) -- (7.679,-0.884) -- (7.778,-0.896) -- (7.878,-0.908) -- (7.977,-0.919) -- (8.076,-0.930) -- (8.176,-0.940) -- (8.275,-0.950);
\node[anchor=west] at (8.38,0.34) {\footnotesize along $\mathbf v_1$};
\node[anchor=west] at (8.38,-0.95) {\footnotesize along $\mathbf v_2$};
\node at (6.34,2.15) {shrink factor $\lambda_i / (\lambda_i + \tau^2)$};
\node at (6.34,1.65) {\footnotesize $\lambda_1 = 4.5$, \ $\lambda_2 = 0.5$};
\begin{scope}[animate = {myself: = {:visible = {0s = "true", 1.8s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.00,2.00); \fill[mid] (1.00,2.00) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (2.121 and 0.707);
\filldraw[draw=black, fill=hot] (2.000,1.000) circle (2.4pt);
\filldraw[draw=black, fill=hot] (-2.000,-1.000) circle (2.4pt);
\filldraw[draw=black, fill=hot] (1.000,2.000) circle (2.4pt);
\filldraw[draw=black, fill=hot] (-1.000,-2.000) circle (2.4pt);
\draw[mid, thick] (4.400,-1.4) -- (4.400,1.30);
\filldraw[draw=black, fill=hot] (4.400,1.300) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.400,1.300) {\footnotesize $1.00$};
\filldraw[draw=black, fill=hot] (4.400,1.300) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.400,1.300) {\footnotesize $1.00$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.00$. No noise: the outputs equal the inputs.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 1.8s = "true", 2.02s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.74,1.58); \fill[mid] (0.74,1.58) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.92,2.13); \fill[mid] (0.92,2.13) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.36,2.04); \fill[mid] (1.36,2.04) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.82,1.75); \fill[mid] (0.82,1.75) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.24,2.52); \fill[mid] (1.24,2.52) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.09,1.61); \fill[mid] (1.09,1.61) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.69,2.51); \fill[mid] (0.69,2.51) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.06,1.45); \fill[mid] (1.06,1.45) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.97,1.63); \fill[mid] (0.97,1.63) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (2.075 and 0.589);
\draw[->, thick] (2.0,1.0) -- (1.884,1.051);
\filldraw[draw=black, fill=hot] (1.884,1.051) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.884,-1.051);
\filldraw[draw=black, fill=hot] (-1.884,-1.051) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.051,1.884);
\filldraw[draw=black, fill=hot] (1.051,1.884) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.051,-1.884);
\filldraw[draw=black, fill=hot] (-1.051,-1.884) circle (2.4pt);
\draw[mid, thick] (4.555,-1.4) -- (4.555,1.30);
\filldraw[draw=black, fill=hot] (4.555,1.241) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.555,1.241) {\footnotesize $0.98$};
\filldraw[draw=black, fill=hot] (4.555,0.850) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.555,0.850) {\footnotesize $0.83$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.10$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.02s = "true", 2.24s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.64,1.40); \fill[mid] (0.64,1.40) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.89,2.19); \fill[mid] (0.89,2.19) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.51,2.05); \fill[mid] (1.51,2.05) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.75,1.64); \fill[mid] (0.75,1.64) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.34,2.74); \fill[mid] (1.34,2.74) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.12,1.44); \fill[mid] (1.12,1.44) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.57,2.72); \fill[mid] (0.57,2.72) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.09,1.22); \fill[mid] (1.09,1.22) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.96,1.47); \fill[mid] (0.96,1.47) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (2.031 and 0.505);
\draw[->, thick] (2.0,1.0) -- (1.793,1.079);
\filldraw[draw=black, fill=hot] (1.793,1.079) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.793,-1.079);
\filldraw[draw=black, fill=hot] (-1.793,-1.079) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.079,1.793);
\filldraw[draw=black, fill=hot] (1.079,1.793) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.079,-1.793);
\filldraw[draw=black, fill=hot] (-1.079,-1.793) circle (2.4pt);
\draw[mid, thick] (4.710,-1.4) -- (4.710,1.30);
\filldraw[draw=black, fill=hot] (4.710,1.185) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.710,1.185) {\footnotesize $0.96$};
\filldraw[draw=black, fill=hot] (4.710,0.529) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.710,0.529) {\footnotesize $0.71$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.20$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.24s = "true", 2.46s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.56,1.27); \fill[mid] (0.56,1.27) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.86,2.23); \fill[mid] (0.86,2.23) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.63,2.06); \fill[mid] (1.63,2.06) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.69,1.56); \fill[mid] (0.69,1.56) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.42,2.91); \fill[mid] (1.42,2.91) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.15,1.32); \fill[mid] (1.15,1.32) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.47,2.89); \fill[mid] (0.47,2.89) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.11,1.04); \fill[mid] (1.11,1.04) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.95,1.36); \fill[mid] (0.95,1.36) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.989 and 0.442);
\draw[->, thick] (2.0,1.0) -- (1.719,1.094);
\filldraw[draw=black, fill=hot] (1.719,1.094) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.719,-1.094);
\filldraw[draw=black, fill=hot] (-1.719,-1.094) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.094,1.719);
\filldraw[draw=black, fill=hot] (1.094,1.719) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.094,-1.719);
\filldraw[draw=black, fill=hot] (-1.094,-1.719) circle (2.4pt);
\draw[mid, thick] (4.865,-1.4) -- (4.865,1.30);
\filldraw[draw=black, fill=hot] (4.865,1.131) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.865,1.131) {\footnotesize $0.94$};
\filldraw[draw=black, fill=hot] (4.865,0.288) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (4.865,0.288) {\footnotesize $0.62$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.30$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.46s = "true", 2.68s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.49,1.15); \fill[mid] (0.49,1.15) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.84,2.27); \fill[mid] (0.84,2.27) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.73,2.07); \fill[mid] (1.73,2.07) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.65,1.50); \fill[mid] (0.65,1.50) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.48,3.05); \fill[mid] (1.48,3.05) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.17,1.21); \fill[mid] (1.17,1.21) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.39,3.02); \fill[mid] (0.39,3.02) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.13,0.89); \fill[mid] (1.13,0.89) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.95,1.26); \fill[mid] (0.95,1.26) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.948 and 0.393);
\draw[->, thick] (2.0,1.0) -- (1.655,1.100);
\filldraw[draw=black, fill=hot] (1.655,1.100) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.655,-1.100);
\filldraw[draw=black, fill=hot] (-1.655,-1.100) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.100,1.655);
\filldraw[draw=black, fill=hot] (1.100,1.655) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.100,-1.655);
\filldraw[draw=black, fill=hot] (-1.100,-1.655) circle (2.4pt);
\draw[mid, thick] (5.020,-1.4) -- (5.020,1.30);
\filldraw[draw=black, fill=hot] (5.020,1.080) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.020,1.080) {\footnotesize $0.92$};
\filldraw[draw=black, fill=hot] (5.020,0.100) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.020,0.100) {\footnotesize $0.56$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.40$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 2.68s = "true", 5.28s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.43,1.05); \fill[mid] (0.43,1.05) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.82,2.30); \fill[mid] (0.82,2.30) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.81,2.08); \fill[mid] (1.81,2.08) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.60,1.44); \fill[mid] (0.60,1.44) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.54,3.17); \fill[mid] (1.54,3.17) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.20,1.12); \fill[mid] (1.20,1.12) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.31,3.15); \fill[mid] (0.31,3.15) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.15,0.76); \fill[mid] (1.15,0.76) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.94,1.17); \fill[mid] (0.94,1.17) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.909 and 0.354);
\draw[->, thick] (2.0,1.0) -- (1.600,1.100);
\filldraw[draw=black, fill=hot] (1.600,1.100) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.600,-1.100);
\filldraw[draw=black, fill=hot] (-1.600,-1.100) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.100,1.600);
\filldraw[draw=black, fill=hot] (1.100,1.600) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.100,-1.600);
\filldraw[draw=black, fill=hot] (-1.100,-1.600) circle (2.4pt);
\draw[mid, thick] (5.175,-1.4) -- (5.175,1.30);
\filldraw[draw=black, fill=hot] (5.175,1.030) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.175,1.030) {\footnotesize $0.90$};
\filldraw[draw=black, fill=hot] (5.175,-0.050) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.175,-0.050) {\footnotesize $0.50$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.50$. The weak direction is halved; the strong one keeps $90\%$.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.28s = "true", 5.5s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.30,0.84); \fill[mid] (0.30,0.84) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.78,2.37); \fill[mid] (0.78,2.37) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.00,2.10); \fill[mid] (2.00,2.10) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.52,1.31); \fill[mid] (0.52,1.31) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.66,3.43); \fill[mid] (1.66,3.43) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.24,0.92); \fill[mid] (1.24,0.92) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.16,3.40); \fill[mid] (0.16,3.40) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.18,0.48); \fill[mid] (1.18,0.48) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.93,0.98); \fill[mid] (0.93,0.98) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.818 and 0.283);
\draw[->, thick] (2.0,1.0) -- (1.486,1.086);
\filldraw[draw=black, fill=hot] (1.486,1.086) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.486,-1.086);
\filldraw[draw=black, fill=hot] (-1.486,-1.086) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.086,1.486);
\filldraw[draw=black, fill=hot] (1.086,1.486) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.086,-1.486);
\filldraw[draw=black, fill=hot] (-1.086,-1.486) circle (2.4pt);
\draw[mid, thick] (5.562,-1.4) -- (5.562,1.30);
\filldraw[draw=black, fill=hot] (5.562,0.914) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.562,0.914) {\footnotesize $0.86$};
\filldraw[draw=black, fill=hot] (5.562,-0.320) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.562,-0.320) {\footnotesize $0.40$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 0.75$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.5s = "true", 5.72s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.19,0.66); \fill[mid] (0.19,0.66) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.75,2.43); \fill[mid] (0.75,2.43) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.15,2.11); \fill[mid] (2.15,2.11) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.44,1.21); \fill[mid] (0.44,1.21) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.76,3.65); \fill[mid] (1.76,3.65) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.28,0.75); \fill[mid] (1.28,0.75) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.03,3.62); \fill[mid] (0.03,3.62) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.21,0.25); \fill[mid] (1.21,0.25) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.92,0.82); \fill[mid] (0.92,0.82) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.736 and 0.236);
\draw[->, thick] (2.0,1.0) -- (1.394,1.061);
\filldraw[draw=black, fill=hot] (1.394,1.061) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.394,-1.061);
\filldraw[draw=black, fill=hot] (-1.394,-1.061) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.061,1.394);
\filldraw[draw=black, fill=hot] (1.061,1.394) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.061,-1.394);
\filldraw[draw=black, fill=hot] (-1.061,-1.394) circle (2.4pt);
\draw[mid, thick] (5.950,-1.4) -- (5.950,1.30);
\filldraw[draw=black, fill=hot] (5.950,0.809) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.950,0.809) {\footnotesize $0.82$};
\filldraw[draw=black, fill=hot] (5.950,-0.500) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (5.950,-0.500) {\footnotesize $0.33$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 1.00$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.72s = "true", 5.94s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.09,0.50); \fill[mid] (0.09,0.50) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.72,2.48); \fill[mid] (0.72,2.48) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.29,2.12); \fill[mid] (2.29,2.12) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.37,1.11); \fill[mid] (0.37,1.11) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.85,3.85); \fill[mid] (1.85,3.85) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.31,0.60); \fill[mid] (1.31,0.60) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (-0.08,3.81); \fill[mid] (-0.08,3.81) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.23,0.04); \fill[mid] (1.23,0.04) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.91,0.68); \fill[mid] (0.91,0.68) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.660 and 0.202);
\draw[->, thick] (2.0,1.0) -- (1.317,1.031);
\filldraw[draw=black, fill=hot] (1.317,1.031) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.317,-1.031);
\filldraw[draw=black, fill=hot] (-1.317,-1.031) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.031,1.317);
\filldraw[draw=black, fill=hot] (1.031,1.317) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.031,-1.317);
\filldraw[draw=black, fill=hot] (-1.031,-1.317) circle (2.4pt);
\draw[mid, thick] (6.338,-1.4) -- (6.338,1.30);
\filldraw[draw=black, fill=hot] (6.338,0.713) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (6.338,0.713) {\footnotesize $0.78$};
\filldraw[draw=black, fill=hot] (6.338,-0.629) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (6.338,-0.629) {\footnotesize $0.29$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 1.25$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 5.94s = "true", 6.16s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (0.01,0.36); \fill[mid] (0.01,0.36) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.69,2.52); \fill[mid] (0.69,2.52) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.41,2.14); \fill[mid] (2.41,2.14) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.31,1.03); \fill[mid] (0.31,1.03) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.93,4.03); \fill[mid] (1.93,4.03) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.34,0.47); \fill[mid] (1.34,0.47) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (-0.19,3.98); \fill[mid] (-0.19,3.98) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.25,-0.15); \fill[mid] (1.25,-0.15) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.90,0.56); \fill[mid] (0.90,0.56) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.591 and 0.177);
\draw[->, thick] (2.0,1.0) -- (1.250,1.000);
\filldraw[draw=black, fill=hot] (1.250,1.000) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.250,-1.000);
\filldraw[draw=black, fill=hot] (-1.250,-1.000) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (1.000,1.250);
\filldraw[draw=black, fill=hot] (1.000,1.250) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-1.000,-1.250);
\filldraw[draw=black, fill=hot] (-1.000,-1.250) circle (2.4pt);
\draw[mid, thick] (6.725,-1.4) -- (6.725,1.30);
\filldraw[draw=black, fill=hot] (6.725,0.625) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (6.725,0.625) {\footnotesize $0.75$};
\filldraw[draw=black, fill=hot] (6.725,-0.725) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (6.725,-0.725) {\footnotesize $0.25$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 1.50$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.16s = "true", 6.38s = "false", 8.98s = "false", repeats}}}]
\draw[mid] (1.0,2.0) -- (-0.07,0.23); \fill[mid] (-0.07,0.23) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.67,2.56); \fill[mid] (0.67,2.56) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.52,2.15); \fill[mid] (2.52,2.15) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.26,0.95); \fill[mid] (0.26,0.95) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.00,4.19); \fill[mid] (2.00,4.19) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.37,0.35); \fill[mid] (1.37,0.35) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (-0.28,4.14); \fill[mid] (-0.28,4.14) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.27,-0.32); \fill[mid] (1.27,-0.32) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.89,0.44); \fill[mid] (0.89,0.44) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.527 and 0.157);
\draw[->, thick] (2.0,1.0) -- (1.191,0.969);
\filldraw[draw=black, fill=hot] (1.191,0.969) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.191,-0.969);
\filldraw[draw=black, fill=hot] (-1.191,-0.969) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (0.969,1.191);
\filldraw[draw=black, fill=hot] (0.969,1.191) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-0.969,-1.191);
\filldraw[draw=black, fill=hot] (-0.969,-1.191) circle (2.4pt);
\draw[mid, thick] (7.113,-1.4) -- (7.113,1.30);
\filldraw[draw=black, fill=hot] (7.113,0.544) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (7.113,0.544) {\footnotesize $0.72$};
\filldraw[draw=black, fill=hot] (7.113,-0.800) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (7.113,-0.800) {\footnotesize $0.22$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 1.75$. The noise grows.};
\end{scope}
\begin{scope}[animate = {myself: = {:visible = {0s = "false", 6.38s = "true", 8.98s = "true", repeats}}}]
\draw[mid] (1.0,2.0) -- (-0.15,0.10); \fill[mid] (-0.15,0.10) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.64,2.60); \fill[mid] (0.64,2.60) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.63,2.16); \fill[mid] (2.63,2.16) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.21,0.88); \fill[mid] (0.21,0.88) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (2.07,4.34); \fill[mid] (2.07,4.34) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.39,0.23); \fill[mid] (1.39,0.23) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (-0.37,4.29); \fill[mid] (-0.37,4.29) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (1.29,-0.48); \fill[mid] (1.29,-0.48) circle (1.4pt);
\draw[mid] (1.0,2.0) -- (0.88,0.33); \fill[mid] (0.88,0.33) circle (1.4pt);
\draw[hot, very thick, rotate=45] (0,0) ellipse (1.469 and 0.141);
\draw[->, thick] (2.0,1.0) -- (1.138,0.938);
\filldraw[draw=black, fill=hot] (1.138,0.938) circle (2.4pt);
\draw[->, thick] (-2.0,-1.0) -- (-1.138,-0.938);
\filldraw[draw=black, fill=hot] (-1.138,-0.938) circle (2.4pt);
\draw[->, thick] (1.0,2.0) -- (0.938,1.138);
\filldraw[draw=black, fill=hot] (0.938,1.138) circle (2.4pt);
\draw[->, thick] (-1.0,-2.0) -- (-0.938,-1.138);
\filldraw[draw=black, fill=hot] (-0.938,-1.138) circle (2.4pt);
\draw[mid, thick] (7.500,-1.4) -- (7.500,1.30);
\filldraw[draw=black, fill=hot] (7.500,0.469) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (7.500,0.469) {\footnotesize $0.69$};
\filldraw[draw=black, fill=hot] (7.500,-0.860) circle (2.6pt);
\node[anchor=south west, inner sep=2pt] at (7.500,-0.860) {\footnotesize $0.20$};
\node[anchor=west] at (-3.1,-3.55) {$\tau^2 = 2.00$. Both shrink, the weak direction much more.};
\end{scope}
\node[anchor=west] at (-3.1,-4.15) {\footnotesize blue: data, \ gray: noisy copies $\mathbf x + \mathbf n$ of one input, \ red: outputs $\mathbf W\mathbf x$};
\end{tikzpicture}
\end{document}

(Memorization Through a Small Code) A powerful enough encoder and decoder can memorize the training set through a one-number code.

Not Taught in Lecture

This failure mode is from Goodfellow, Bengio and Courville (2016), section 14.1.

The encoder could map the -th training example to the number . The decoder could then map back to . The training loss would be zero, and the code would describe nothing about the data. This extreme is a thought experiment, but the risk grows with the size of the encoder and decoder. A small code alone therefore does not guarantee useful features. A memorized lookup fails on new inputs, so its reconstruction error on held-out data is large.

(Encoder as Feature Extractor) After training, the decoder is usually discarded and the code feeds another task.

A classifier trained on the codes can need far fewer labeled examples than one trained on raw pixels. This holds only if the code kept the information the classifier needs. Pretraining an encoder this way is the main use of autoencoders in self-supervised learning. The decoder is there only to train the encoder. Under the reconstruction loss, the code keeps whatever contributes most to the squared error. That need not match what the later task needs. An image code may spend capacity on background brightness that a classifier ignores.

Derivation

Not Taught in Lecture

The lecture stated the Eckart-Young theorem next to the linear autoencoder but did not prove that their optima agree. The result is from Baldi and Hornik (1989), Neural Networks and Principal Component Analysis: Learning from Examples Without Local Minima. They also studied the other critical points. Suppose the eigenvalues of are distinct and nonzero. Then every critical point other than the global minima is a saddle point.

We want the global minima of the total squared error , starting from the Eckart-Young theorem. The product has rank at most , because every input passes through numbers. Hence has rank at most , and Eckart-Young gives the lower bound

The choice and gives , which meets the bound. The bound’s value follows from . Its terms are orthogonal, so its squared Frobenius norm is .

When , is the unique best rank- approximation. Every global minimum therefore satisfies . If has rank , multiplying on the left by gives . This has rank , so and both have rank . The columns of then span the column space of , which is the span of . So for an invertible . The same argument on rows gives . Substituting,

after multiplying by on the left and on the right. Hence , which is the form stated in the callout.

Examples

(Easy) Compressing Two Quiz Scores Into One Number

Four students take two quizzes. After subtracting the class average from each quiz, their scores form the rows of

(Medium) Two Linear Autoencoders on the Same Data

A linear autoencoder with and is trained on the quiz data above. One training run ends at and . A second design fixes the encoder to , which reads only the first quiz. It then fits the best decoder for that encoder.

(Hard) A Curve That PCA Cannot Compress

Five sensor readings lie on a parabola, at the points for . After centering, the second coordinate becomes .

See Also

0 items under this folder.