T3-L03: PCA & SVD

Tìm hướng variance lớn nhất trong data. Kéo slider xoay để thấy projection thay đổi.

1. PCA trực tiếp — Point Cloud & Principal Components

PCA tính eigenvector của covariance matrix. Mũi tên đỏ = PC1 (variance lớn nhất), xanh = PC2. Độ dài tỷ lệ với √eigenvalue (standard deviation theo hướng đó).

Data gốc + PC axes

Projection lên PC1

2. Projection — Xoay Trục để Thấy Variance

Kéo slider để xoay trục chiếu. Quan sát variance của data chiếu (histogram). PCA tự động tìm góc có variance max.

Scatter + projection line

Histogram của Z (projected)

3. Scree Plot & Variance Explained

Tìm "khuỷu tay" trên scree plot để chọn số component k. Đường nét đứt = cumulative variance explained (CVE).