BRAGA

02 Writing02-02 Notes02-02-463

PPCA MLE Parameters

Published 16 Apr 20263 min read
Contents
  1. 01Deep Breakdown
  2. 02Flowchart
WMLE=Uk(Λk−σMLE2I)1/2R,σMLE2=1d−k∑j=k+1dλjW_{\text{MLE}} = U_k(\Lambda_k - \sigma^2_{\text{MLE}} I)^{1/2}R,\quad \sigma^2_{\text{MLE}} = \frac{1}{d-k}\sum_{j=k+1}^{d}\lambda_j
(1)

We are working on maximum likelihood estimation in Probabilistic PCA, where the loading matrix WW and isotropic noise variance σ2\sigma^2 are estimated from the sample covariance eigenstructure. The canonical formulas are

WMLE=Uk(Λk−σMLE2I)1/2RW_{\text{MLE}} = U_k(\Lambda_k - \sigma^2_{\text{MLE}} I)^{1/2}R
(2)

and

σMLE2=1d−k∑j=k+1dλj,\sigma^2_{\text{MLE}} = \frac{1}{d-k}\sum_{j=k+1}^{d}\lambda_j,
(3)

where λ1≥⋯≥λd\lambda_1 \ge \dots \ge \lambda_d are sample covariance eigenvalues, UkU_k contains the top kk eigenvectors, and RR is an arbitrary orthogonal rotation matrix. This is the closed-form bridge between PPCA and standard PCA directions.

Deep Breakdown

Probabilistic PCA, PPCA, starts from a latent variable model:

z∼N(0,I),x∣z∼N(Wz+μ,σ2I)z \sim \mathcal{N}(0, I), \qquad x \mid z \sim \mathcal{N}(Wz + \mu, \sigma^2 I)
(4)

If we integrate out the latent variable zz, the marginal distribution of the observed vector becomes:

x∼N(μ,WW⊤+σ2I)x \sim \mathcal{N}(\mu, WW^\top + \sigma^2 I)
(5)

So the core estimation problem in PPCA is:

  • estimate the mean μ\mu,
  • estimate the loading matrix WW,
  • estimate the isotropic noise variance σ2\sigma^2, from observed data.

The surprising and important result is that the maximum likelihood estimates are directly connected to the eigenvalues and eigenvectors of the sample covariance matrix. That is why PPCA is often described as the probabilistic version of PCA.

Inputs:

  • centered data matrix or sample covariance matrix,
  • chosen latent dimension kk.

Outputs:

  • μMLE\mu_{\text{MLE}}, usually the sample mean,
  • WMLEW_{\text{MLE}},
  • σMLE2\sigma^2_{\text{MLE}}.

Why this matters in DA/DS:

  • it explains why PCA directions appear naturally in a likelihood-based model,
  • it gives a probabilistic interpretation to a classical dimensionality reduction method,
  • it provides a noise estimate σ2\sigma^2 that classical PCA does not explicitly define,
  • it lets analysts use PCA-like embeddings while still having a valid data likelihood,
  • it supports likelihood-based comparison across latent dimensions.

The key idea is this:

  • standard PCA finds directions of maximal variance,
  • PPCA asks for the Gaussian latent variable model that most likely generated the data,
  • the solution uses the same principal directions,
  • but now those directions live inside a covariance model WW⊤+σ2IWW^\top + \sigma^2 I.

The isotropic noise term is crucial. In PPCA, the variation not explained by the first kk principal directions is summarized by a single average residual variance, σMLE2\sigma^2_{\text{MLE}}.

This connects PPCA to three core PCA objects:

  1. Principal directions: the columns of UkU_k.
  2. Explained variances: the leading eigenvalues in Λk\Lambda_k.
  3. Residual variance: the average of discarded eigenvalues.

So PPCA retains the geometry of PCA, but embeds it in a probabilistic model.

Flowchart

Start withobserved datamatrix XComputesample meanμ_hatCenter the dataComputesamplecovariance SEigen-decompose S = UΛUᵀSort eigenvaluesλ1 ≥ λ2 ≥ ... ≥ λdChoose latentdimension kTake top keigenvectors Ukand eigenvaluesΛkEstimateisotropic noiseσ²_MLE fromdiscardedeigenvaluesBuild W_MLE =Uk(Λk - σ²_MLEI)^(1/2)RObtain PPCAmaximumlikelihoodparametersUse for latentembeddings,likelihood, andprobabilisticPCA

#machine-learning#machine-learning-algorithms#probabilistic-pca-ppca

Keyboard shortcuts

Single keys, ignored while typing in a field or with Cmd, Ctrl or Alt held.

0
Home
1 2 3 4
Work, Writing, Tools, About
j / k
Next / previous section on this page
n / p
Next / previous project or essay
u
Up one level
l
Deutsch
t
Light or dark theme
?
This list
Esc
Close