BRAGA

02 Writing02-02 Notes02-02-461

Latent Variable Prior

Published 16 Apr 20263 min read
Contents
  1. 01Deep Breakdown
  2. 02Flowchart
p(z)=N(z∣0,I)p(z) = \mathcal{N}(z \mid 0, I)
(1)

We are working on the latent variable prior in Probabilistic PCA, where the hidden low-dimensional vector zz is assigned a standard multivariate Gaussian distribution. The canonical formula is

p(z)=N(z∣0,I),p(z) = \mathcal{N}(z \mid 0, I),
(2)

under the assumptions that the latent space is isotropic, centered at zero, and has identity covariance. This prior is the probabilistic starting point for PPCA and supports closed-form inference and likelihood-based dimensionality reduction.

Deep Breakdown

In Probabilistic PCA, the observed data vector xx is assumed to come from an unobserved latent vector zz through a linear Gaussian generative process. Before we observe any data point, we need to specify what kinds of latent vectors are plausible. That is the role of the latent variable prior.

The PPCA latent prior is:

p(z)=N(z∣0,I)p(z) = \mathcal{N}(z \mid 0, I)
(3)

This means the latent vector:

  • has mean zero,
  • has unit variance in every latent dimension,
  • has no covariance across latent dimensions.

Inputs:

  • latent dimension kk.

Output:

  • a probability distribution over the latent variable z∈Rkz \in \mathbb{R}^k.

Why it matters:

  • it defines the geometry of the latent space,
  • it regularizes the hidden factors,
  • it makes the model identifiable up to rotations typical in latent factor models,
  • it keeps the model mathematically tractable,
  • it allows the marginal distribution of the observed variable to have the PPCA form.

This prior says that before seeing any particular observation, the latent coordinates are centered around the origin and spread equally in all latent directions. There is no preferred latent axis, no prior correlation, and no prior shift away from zero. In PPCA, this prior combines with the observation model

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

to create a full latent variable model. Once the prior and conditional likelihood are defined, we can derive:

  • the marginal distribution of xx,
  • the posterior distribution p(z∣x)p(z \mid x),
  • the likelihood-based estimation procedure for WW, μ\mu, and σ2\sigma^2.

In DA/DS terms, the latent prior provides a disciplined probabilistic definition of the embedding space. Instead of saying “the data has some hidden coordinates,” PPCA says exactly how those hidden coordinates are distributed before the data is observed.

This object links directly to:

  • Generative Model, because the prior is one half of the PPCA generative specification,
  • Posterior over zz, because inference updates this prior after observing xx,
  • standard PCA, because the isotropic latent prior helps recover a PCA-like subspace,
  • probabilistic factor models, because many such models begin by assigning structured priors to latent factors.

Flowchart

Choose latentdimension kDefine latentvector z in R^kAssign prior p(z)= N(0, I)Interpret zeromean and unitvarianceInterpret no priorcovarianceacross latentdimensionsCombine withobservationmodel x | z ~N(Wz + μ, σ²I)Obtain fullPPCAgenerativemodelDerive marginaldistribution of xInfer posteriorp(z | x)Use latentembeddings forprobabilisticdimensionalityreduction

#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