Each point is one flight: flight time and fuel burned, as deviations from a typical flight. The cloud is tilted (correlation 0.79).
Multivariate analysis: explain a cloud of correlated data by a few simpler, unobserved movements.
Two independent shocks per flight, a round cloud:
Press Play: the aircraft turns these shocks into flight time and fuel, and we get the tilted cloud of the 200 flights.
Correlated data can come from independent forces: the aircraft combines them into flight time and fuel.
\[ \begin{aligned} X_1 = \text{time} &= 1.20\,\varepsilon_1 + 0.20\,\varepsilon_2\\ X_2 = \text{fuel} &= 1.20\,\varepsilon_1 + 1.30\,\varepsilon_2 \end{aligned} \]
Each variable: a weighted sum of the same two shocks.
\[ \underset{X}{\begin{pmatrix} X_1\\ X_2\end{pmatrix}} = \underset{A}{\begin{pmatrix} 1.20 & 0.20\\ 1.20 & 1.30\end{pmatrix}} \underset{\varepsilon}{\begin{pmatrix} \varepsilon_1\\ \varepsilon_2\end{pmatrix}} \]
Row \(i\) of \(A\): how \(X_i\) responds to each shock.
Column \(j\): how shock \(j\) moves all variables.
Capitals (\(X_1\), \(X_2\)): random, they change from flight to flight. Lower case (\(x_1\), \(x_2\)): the values recorded for one flight.
\(A\) moves the whole plane: lines stay straight, grid lines parallel and evenly spaced, the origin stays put.
The basis vectors land on the columns of \(A\): \[Ae_1=\begin{pmatrix}1.20\\1.20\end{pmatrix},\quad Ae_2=\begin{pmatrix}0.20\\1.30\end{pmatrix}\]
Every other point follows: \(X = \varepsilon_1\,Ae_1 + \varepsilon_2\,Ae_2\).
Idea from 3Blue1Brown, Essence of Linear Algebra.
The inverse matrix moves the plane back: \[\varepsilon = A^{-1}X\]
For every flight: how much headwind, how much load?
Whitening: turning correlated variables into uncorrelated, unit-variance shocks (“white noise”).
The data pin down only three numbers, the covariance matrix:
\[ \Sigma=\begin{pmatrix}\sigma_1^2 & \sigma_{12}\\ \sigma_{12} & \sigma_2^2\end{pmatrix} =\begin{pmatrix}1.48 & 1.70\\ 1.70 & 3.13\end{pmatrix} \]
The black ellipse is a picture of \(\Sigma\).
\[ \begin{aligned} \sigma_1^2 &= a_{11}^2+a_{12}^2\\ \sigma_2^2 &= a_{21}^2+a_{22}^2\\ \sigma_{12} &= a_{11}a_{21}+a_{12}a_{22} \end{aligned} \]
or in short \(\;\boxed{\Sigma=AA'}\;\): 3 equations, 4 unknowns.
All four \(A\)’s fit the same cloud.
One extra restriction is needed: which \(A\) is useful?
Uncorrelated coordinates that stay closest to the original variables.
Order the variables; \(X_1\) responds only to the first shock.
Regression (\(X_1\) education, \(X_2\) earnings): \[ \begin{aligned} X_2 &= \beta X_1 + \sigma_2\varepsilon_2\\ X_1 &= \sigma_1\varepsilon_1 \end{aligned} \] \[ \Rightarrow\quad \begin{pmatrix}X_1\\X_2\end{pmatrix}= \begin{pmatrix}\sigma_1 & 0\\ \beta\sigma_1 & \sigma_2\end{pmatrix} \begin{pmatrix}\varepsilon_1\\\varepsilon_2\end{pmatrix} \]
Squared column length = that shock’s share of the total variance. PCA makes the first column longest; the second is perpendicular.
Engineering or economics, not statistics, supplies the restriction.
Choose latent coordinates that make some feature of the data simple or meaningful.
The shocks generate the random vector \(X = A\varepsilon\); we sample 200 flights from it.
We only ever see the orange points.
\[ \begin{aligned} X_1&=\sigma_1\varepsilon_1+\lambda_1 f\\ X_2&=\sigma_2\varepsilon_2+\lambda_2 f \end{aligned} \] \[ A=\begin{pmatrix}\sigma_1 & 0 & \lambda_1\\ 0 & \sigma_2 & \lambda_2\end{pmatrix} \]
3 reduced + 1 free = 4 par. (\(\lambda_1, \lambda_2, \sigma_1, \sigma_2\)). Open: how the noise is split.
MDS turns travel times into coordinates whose straight-line distances reproduce them.
A construction-site wait opens the ring; beyond 27.9 min nobody drives through it, and one dimension suffices.
First turn the distances we care about into coordinates, then treat them like any data.
First the sample (looking at data), then the reduced form (distributions), then structural models, each with its own identifying assumptions.
Which latent coordinates make the multivariate data easier to understand?