Probabilistic PCA models with and . The maximum-likelihood solution is and . (a) For and sample covariance eigenvalues , find and the scale of each column of for . (b) Why does the covariance of the model match the data in the top directions? (c) How does PPCA relate to ordinary PCA as ?
Unsupervised learning, Probabilistic PCA
Level L3 Intermediate. Length Long. Nature Th+Mat Both.
What's being asked
Whether you can interpret the closed-form PPCA solution, evaluate it numerically, and connect it to PCA.
Key idea
The model covariance is ; its eigenvalues are in the top directions and elsewhere, so the ML fit sets to the average discarded eigenvalue.
Steps
- Marginalising out gives with . The ML solution matches to the sample covariance with eigenpairs .
- Noise: . It is the variance left over in the discarded directions, averaged.
- Loadings: column of (before the arbitrary rotation ) is . So the scales are and .
- Check: has eigenvalues . The top two agree with exactly, and the trace is , the same as the trace of , which is .
- The latent posterior is with .
- As , and , so the posterior mean becomes the whitened PCA projection, with the posterior variance shrinking to . This is ordinary PCA.
- Advantages over PCA: a proper likelihood (model comparison, choosing ), handling of missing data by EM, and mixtures of PPCA.
Common mistakes
- Saying that the columns of are the eigenvectors. They are rescaled, and may be rotated by any orthogonal .
- Setting equal to the smallest eigenvalue, or the sum of the discarded ones, instead of their average.
- Taking without the square root in the loadings. is a variance, the loading is its square root.
How long your answer should be
One page; 7–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: In alternating least squares (ALS) for matrix factorisation, a user has rated two items, with item vectors and fixed and ratings and . (a) Derive the update that minimises for the user vector . (b) Compute for , and for . (c) Why is ALS attractive for large recommenders?
Next in Unsupervised learning: A variational autoencoder's encoder outputs, for a 1-D latent code, a mean and standard deviation . (a) Compute . (b) Draw by the reparameterisation trick if the noise sample is . (c) Why do we need this trick, and what role does the KL term play compared with a plain autoencoder?