Origin based reconstruction and variance are different objectives
The source derivation uses X directly and does not introduce mean subtraction. Its decoder reconstructs through the origin. The common centered covariance interpretation needs an extra operation. With μ equal to the sample mean and X_c=X−1_Nμᵀ, an affine reconstruction is μ+DDᵀ(x−μ). Then the eigenvectors of X_cᵀX_c also diagonalize the sample covariance X_cᵀX_c/(N−1), for N>1.
XᵀX=X_cᵀX_c+Nμμᵀ. Cov_sample=X_cᵀX_c/(N−1). x̂_affine=μ+DDᵀ(x−μ).
Independent example: four observations are (3,10), (−3,10), (0,11) and (0,9). Their mean is (0,10). The centered observations are (3,0), (−3,0), (0,1) and (0,−1). The table gives all quantities needed to compare a single retained direction. The two residuals optimize different decoder families, so they are not a matched algorithm benchmark.
Exact arithmetic for the note constructed dataset. The final percentage is rounded. These are not original chapter experiment results.| Quantity | Centered affine PCA | Uncentered origin PCA |
|---|
| Scatter matrix | diag(18,2) | diag(18,402) |
|---|
| Leading direction | (1,0)ᵀ | (0,1)ᵀ |
|---|
| Total squared magnitude | 20 | 420 |
|---|
| Retained squared magnitude | 18 | 402 |
|---|
| Minimum squared reconstruction error | 2 | 18 |
|---|
| Retained fraction | 18/20 = 90% | 402/420 ≈ 95.7143% |
|---|
Centered PCA preserves the horizontal variation and reconstructs the last two observations at (0,10), with squared errors 1 and 1. Uncentered PCA preserves the large vertical offset and reconstructs the first two at (0,10), with squared errors 9 and 9. A larger retained fraction can describe the mean rather than the variation that matters for a task.
Costs and checks have explicit boundaries
Direct dense encoding and decoding: O(dk) work per example. Stored decoder and codes: dk+Nk numbers, versus Nd data numbers, excluding a mean and metadata. Compression requires k(N+d)<Nd under this accounting.
The storage comparison counts the shared decoder as well as all codes. It excludes precision changes, means and metadata. A dense SVD that computes the nonzero singular triplets can have arithmetic cost O(min(Nd²,N²d)); partial or iterative methods have different costs and convergence conditions. Forming XᵀX also squares the nonzero singular value ratio, which can worsen numerical conditioning. These are analytical observations, not measured runtime or memory results in the book.
The mathematical checks are dimension consistency, DᵀD≈I, reconstruction residual, and agreement between retained energy plus residual and total energy. Application questions remain separate. Rescaling a feature changes the objective. An outlier can dominate squared error. A small variance direction can still contain the label. PCA therefore needs a stated centering and scaling policy, an error target and an evaluation beyond training reconstruction when used for prediction.
Coverage ends at the final paragraph of Chapter 2, printed page 50. The note has no replicated experiments, new data collection or resource allocation. The original figures retain their labels and source pages. Added proofs and worked examples establish only the stated mathematical claims. Completion of this assistant prepared unit does not establish completion of any user reading pass.