Interactive demo · Bayesian and Probabilistic Machine Learning · Chapter 12

Bayesian PCA, automatic relevance determination and factor analysis

Ten-dimensional data with standard deviation 1 along three directions and 0.5 along the other seven are fitted by probabilistic PCA with M = 9 latent dimensions, using EM. Each square of the Hinton diagram is one element of W (white positive, black negative, area proportional to size). Maximum likelihood spreads the three real directions over all nine columns. Bayesian PCA puts a prior N(0, αi−1I) on each column and re-estimates αi = D/‖wi‖2 after every EM step: columns the data do not need are shrunk, their αi grows, and they switch off (Bishop 2006, Section 12.2.3). The last view compares factor analysis with PPCA (Section 12.2.4).

Method

Data points (N)

Data set

EM

Rescale variable x₁ by

Scoreboard

Try these

EM uses the sample covariance S directly: the E step (12.54), (12.55) and the M step (12.56), (12.57) only need SW, so each step costs O(D²M). Bayesian PCA replaces (12.56) by (12.63). Columns with αi above 1012 are treated as switched off (α is capped there).

In the lecture notes