
ECE 57000 — September 4, 2026
We began with data that computers can process but people cannot inspect directly:
\(500\) cells \(\times\) \(20{,}000\) measurements per cell
Reveal clusters, unusual points, and other hidden structure.
Use fewer features for cheaper computation and potentially more reliable statistical estimation.
The unresolved question is what useful structure the reduced representation should retain.

Groups and neighborhoods. Keep nearby points close and distinct groups separate when those relationships matter.

Spread. Retain directions in which the observations vary rather than compressing meaningful variation.

Reconstruction. Prefer features that can recover points close to their original 2D locations when reconstruction matters.
How do we formalize these criteria?
We need the language of vectors, geometry, and linear transformations.
For cell \(i\), collect its \(d\) measured features into a vector:
\[ \boldsymbol{x}_i = \begin{bmatrix} x_{i1} & x_{i2} & \cdots & x_{id} \end{bmatrix}^{T} \in \mathbb{R}^{d} \]
Stack \(n\) observations as rows:
\[ X = \begin{bmatrix} ---\boldsymbol{x}_1^T---\\ ---\boldsymbol{x}_2^T---\\ \vdots\\ ---\boldsymbol{x}_n^T--- \end{bmatrix} \in \mathbb{R}^{n\times d} \]
rows \(=\) observations
columns \(=\) measured features

Both datasets have two measured features; only one needs two independent directions to describe its variation.
For each observation, seek
\[ f:\mathbb{R}^{d}\rightarrow\mathbb{R}^{k}, \qquad \boldsymbol{z}_i=f(\boldsymbol{x}_i), \qquad k\ll d, \]
where \(\boldsymbol{x}_i\in\mathcal{X}\subseteq\mathbb{R}^{d}\) contains the observed features and \(\boldsymbol{z}_i\in\mathcal{Z}\subseteq\mathbb{R}^{k}\) contains the reduced features.
For now, assume \(f\) is linear. Later, we will learn nonlinear representation functions—but linear transformations are the foundation for analyzing both.
To define, analyze, and choose this \(f\), we need linear algebra for geometry, transformations, and lower-dimensional structure.
We began with a need: make high-dimensional relationships inspectable without pretending every relationship survives.
We now have:
We began with a representation function:
\[ f:\mathbb{R}^{d}\rightarrow\mathbb{R}^{m}, \qquad \boldsymbol{y}=f(\boldsymbol{x}). \]
For this first representation model, assume \(f\) is linear:
\[ \boldsymbol{y}=A\boldsymbol{x}, \qquad A\in\mathbb{R}^{m\times d}. \]
What can this transformation do to a high-dimensional feature space?
\[ y=ax \]
\[ \boldsymbol{y}=A\boldsymbol{x} \]
\(a\) becomes \(A\): one scalar action becomes a transformation of a feature space.

\[ A= \begin{bmatrix} 2 & -1 & 0.5\\ 1 & 0 & -2 \end{bmatrix} \]
\[ \begin{aligned} y_1 &=2x_1-x_2+0.5x_3\\ &=2(1)-2+0.5(-1)\\ &=-0.5 \end{aligned} \]
\[ \begin{aligned} y_2 &=x_1+0x_2-2x_3\\ &=1+0-2(-1)\\ &=3 \end{aligned} \]
\[ \underbrace{ \begin{bmatrix}-0.5\\3\end{bmatrix} }_{\boldsymbol{y}} = \underbrace{ \begin{bmatrix}2&-1&0.5\\1&0&-2\end{bmatrix} }_{A} \underbrace{ \begin{bmatrix}1\\2\\-1\end{bmatrix} }_{\boldsymbol{x}} \]
For observation \(i\):
\[ \boldsymbol{y}_i=A\boldsymbol{x}_i, \qquad \boldsymbol{x}_i\in\mathbb{R}^{d}, \quad \boldsymbol{y}_i\in\mathbb{R}^{m}. \]
The same entries of \(A\) define every output feature for every observation.
One linear operator gives a consistent representation rule for the entire dataset.
Observations are rows:
\[ X=\begin{bmatrix} 1&2&-1\\ 0&1&2\\ 2&-1&1 \end{bmatrix} \]
Use the same transformation:
\[ A=\begin{bmatrix} 2&-1&0.5\\ 1&0&-2 \end{bmatrix} \]
\[Y=\text{???}\]
\[ \underbrace{Y}_{3\times2} =\underbrace{X}_{3\times3}\underbrace{A^T}_{3\times2} =\begin{bmatrix} -0.5&3\\ 0&-4\\ 5.5&0 \end{bmatrix} \]
Each row of \(Y\) is \((A\boldsymbol{x}_i)^T\).
\[ A(B\boldsymbol{x})=(AB)\boldsymbol{x} \]
\[ A(\boldsymbol{x}+\boldsymbol{z}) =A\boldsymbol{x}+A\boldsymbol{z} \]
\[ AI=A \]
\[ AB\ne BA \quad \text{in general} \]
\[ (AB)^T=B^TA^T \]
Changing the order can change the value or make the product undefined.
Let \(A\in\mathbb{R}^{m\times d}\) and \(B\in\mathbb{R}^{d\times p}\).
\[ AB\in\mathbb{R}^{m\times p} \]
\[ (AB)^T=B^TA^T \]
\[ BA \]
The inner dimensions would require \(p=m\).
Shape is part of the mathematical claim, not an implementation detail.

A zero diagonal entry behaves like \(a=0\): one direction becomes a partial zero.
For \(\boldsymbol{x}\in\mathbb{R}^{d}\):
\[ \lVert\boldsymbol{x}\rVert_2 =\sqrt{x_1^2+x_2^2+\cdots+x_d^2} \]
For two points \(\boldsymbol{x}_i\) and \(\boldsymbol{x}_j\):
\[ \operatorname{dist}(\boldsymbol{x}_i,\boldsymbol{x}_j) =\lVert\boldsymbol{x}_i-\boldsymbol{x}_j\rVert_2 \]
The subscript \(2\) identifies the Euclidean norm. Other norms measure size differently.