· Xiaojing Yang · Statistics · 2 min read

中文

PCA: From Variance to Representation

PCA explains how variance, projection, and representation are connected.

Core idea

PCA finds directions where the data varies the most, then uses those directions as a simpler representation.

1. The geometric idea

PCA starts with a cloud of points and asks: along which directions does the data vary most? Those directions become principal components.

PCA workflow
Data matrix
Examples by features
Center
Remove the mean
Covariance
Measure shared variation
Eigenvectors
Find main directions
Projection
Represent data in fewer dimensions

2. Why variance matters

If a direction has high variance, points are spread out along it. PCA keeps high-variance directions because they preserve more structure under a linear projection.

Original space

Many dimensions, often hard to inspect.

PCA space

Fewer dimensions that preserve dominant variation.

3. AI/NLP example

Embedding spaces are high-dimensional. PCA can project word, sentence, or document embeddings into 2D or 3D for inspection. It will not fully explain a neural representation, but it can reveal clusters, domain shift, outliers, and artifacts.

4. Cautions

CautionMeaning
PCA is linearIt may miss nonlinear structure
High variance is not always semanticFrequency or style can dominate
Visualization can mislead2D projection loses information
Scaling mattersFeature scale can change components

Takeaway

PCA is useful because it turns variance into representation. For AI research, it is often an exploratory lens, not final proof.

References and learning path

This note uses the statistics-to-machine-learning route that fits my AI/NLP research goals: build intuition with Seeing Theory and StatQuest, connect it to Python practice with Think Stats, then deepen the ML connection with ISLR/ISLP, CS229, and selected statistical inference references.

Share:
Back to Blog

Related Posts

View All Posts »
FoundationsStatistics中文

PCA:从方差到表示空间

PCA 连接了方差、投影和表示空间,是理解 embedding 与降维的重要入口。

FoundationsStatisticsEN

Bias-Variance Trade-off

Bias and variance explain why both too-simple and too-flexible models can fail.