From a Geometric Decomposition to a Probability Model
Principal component analysis (PCA) describes directions of variation in a collection of profiles. Probabilistic PCA (PPCA) gives a probability model for that variation: each profile is generated from a lower-dimensional latent score plus feature-level noise. This formulation makes the assumptions behind the low-rank representation explicit and provides a likelihood for assessing how well the model describes profiles.
Suppose each observation is a profile of \(d\) features, such as measurements on \(d\) genes. Write the profile for observation \(i\) as \(x_i\), a \(d\)-dimensional vector. PPCA uses \(q\) latent variables per observation, where \(q<d\) is treated as fixed here. The matrix \(W\) maps latent scores into feature space; its \(d\) rows correspond to features.
The Gaussian distributions and independence assumptions matter: they determine both the profile distribution and the likelihood used to fit the model. The latent scores have mean zero and unit variance in each direction, while \(\mu\) accounts for the feature means. Conditional on a latent score, the remaining errors have mean zero and covariance \(\sigma^2I_d\). Thus, the model does not allow a gene-specific noise variance or residual correlation between different genes.
The Implied Covariance and the Meaning of Isotropic Noise
Because a linear transformation of Gaussian variables is Gaussian, the model gives a multivariate normal distribution for each profile. Taking expectations gives \(E(x_i)=\mu\). For the covariance, independence makes the cross-covariance terms zero:
The matrix \(WW^T\) is positive semidefinite and has rank at most \(q\); it describes covariance represented through the latent scores. The term \(\sigma^2I_d\) adds the same variance to every feature and zero covariance between distinct features. Consequently,
Isotropic means that the noise covariance is the same in every direction in feature space: for any unit vector \(a\), the noise projection \(a^T\epsilon_i\) has variance \(\sigma^2\). In the original feature coordinates, this entails equal residual variances and zero residual covariances. It does not mean that the observed profiles have equal variances or are uncorrelated. The low-rank term \(WW^T\) can create different marginal variances and correlations across features.
Worked Example: Computing the Model Covariance
Consider a hypothetical standardized profile with three features and one latent score. Let \(\mu=0\), \(W=(1,-0.5,0.8)^T\), and \(\sigma^2=0.36\). The latent score has variance 1, and the noise standard deviation is \(0.6\) standardized units for each feature.
First calculate the contribution from the latent score: $$ WW^T= \begin{pmatrix} 1&-0.5&0.8\\ -0.5&0.25&-0.4\\ 0.8&-0.4&0.64 \end{pmatrix}. $$ Adding \(0.36I_3\) gives $$ \operatorname{Cov}(x_i)= \begin{pmatrix} 1.36&-0.5&0.8\\ -0.5&0.61&-0.4\\ 0.8&-0.4&1.00 \end{pmatrix}. $$ For example, the model variance of feature 2 is \(0.25+0.36=0.61\), and the model covariance between features 1 and 3 is \(0.8\). Noise adds \(0.36\) to each diagonal element but adds nothing to the off-diagonal elements. The resulting observed features are therefore neither equal in variance nor independent, even though the noise is isotropic.
The noise assumption concerns variation left after accounting for latent structure. For genomic profiles, this may be a useful approximation when residual variation is roughly comparable across the analyzed features. It can be strained when genes have markedly different measurement precision, different residual variability, or remaining correlated technical effects. If profiles have been standardized, \(\sigma^2\) is in squared standardized units; if measured in original units, it is in squared units of the corresponding feature measurements. Standardization changes the substantive interpretation of equal noise and should be considered before fitting.
Latent Scores Given an Observed Profile
The model also gives a distribution for the latent score conditional on an observed profile. For \(x_i\), let \(r_i=x_i-\mu\). Combining the standard normal density for \(z_i\) with the Gaussian density for \(r_i\) given \(z_i\), the terms involving \(z_i\) in the log density are proportional to $$ -\frac{1}{2}\left[z_i^Tz_i+\frac{(r_i-Wz_i)^T(r_i-Wz_i)}{\sigma^2}\right]. $$ Collecting the quadratic and linear terms in \(z_i\), and completing the square, gives
The conditional mean is a model-based estimate of the latent score, and the conditional covariance represents uncertainty about that score. Both depend on the fitted loadings and noise variance. A score is therefore not treated as an error-free observed quantity: uncertainty is larger when the profile contains little information about its latent coordinates relative to the noise.
Worked Example: A Conditional Latent-Score Distribution
For a hypothetical two-feature profile, let \(q=1\), \(W=(1,2)^T\), \(\sigma^2=1\), and \(x_i-\mu=(2,1)^T\). Then \(W^TW=1^2+2^2=5\), and \(W^T(x_i-\mu)=1(2)+2(1)=4\). The conditional variance and mean are $$ \operatorname{Var}(z_i\mid x_i)=\frac{1}{1+5}=\frac{1}{6}\approx0.167, \qquad E(z_i\mid x_i)=\frac{4}{1+5}=\frac{2}{3}\approx0.667. $$ Thus the conditional distribution is \(N(0.667,0.167)\), where the second argument is the variance. This is a posterior distribution for the latent score under the stated PPCA model, not a statement that the score was directly measured.
Fitting PPCA and Its Connection to PCA
For independent profiles under the Gaussian model, fitting by maximum likelihood amounts to fitting the covariance \(WW^T+\sigma^2I_d\), along with the mean. To describe the covariance fit, let \(\bar{x}\) be the sample mean and define the maximum-likelihood sample covariance using divisor \(n\): $$ S=\frac{1}{n}\sum_{i=1}^n(x_i-\bar{x})(x_i-\bar{x})^T. $$ Let its eigenvalues be \(\lambda_1\geq\lambda_2\geq\cdots\geq\lambda_d\geq0\), with corresponding unit eigenvectors \(u_1,\ldots,u_d\). The following interior solution applies for a fixed \(q<d\), when the residual variance is positive and the leading eigenvalues exceed it.
A short justification follows from the covariance likelihood. For a candidate covariance \(C\), the part of the negative twice log likelihood that depends on \(C\), apart from a positive constant factor, is \(\log|C|+\operatorname{tr}(SC^{-1})\). The best-fitting covariance aligns its directions with those of \(S\); in the \(q\) directions allowed to have extra variance, the fitted eigenvalues match the corresponding sample eigenvalues. In each remaining direction the model requires the same eigenvalue, \(\sigma^2\). If that shared value is \(v\), the terms involving the remaining eigenvalues are $$ (d-q)\log(v)+\frac{\sum_{j=q+1}^{d}\lambda_j}{v}. $$ Differentiating with respect to \(v\) and setting the derivative to zero yields $$ \frac{d-q}{v}-\frac{\sum_{j=q+1}^{d}\lambda_j}{v^2}=0 \quad\Longrightarrow\quad v=\frac{1}{d-q}\sum_{j=q+1}^{d}\lambda_j. $$ In the leading directions, \(WW^T\) must supply the excess over the common noise eigenvalue, so the loading magnitudes are \(\sqrt{\lambda_j-\hat{\sigma}^2}\). This gives the stated representative for \(\hat W\). If the estimated residual variance is zero or the required excesses are not positive, this interior formula does not describe a regular positive-noise solution.
Worked Example: A Fixed-Factor PPCA Fit
Suppose a hypothetical covariance matrix for \(d=3\) standardized profile features has eigenvalues \(4,2,1\), and fit PPCA with \(q=1\). The residual variance estimate is the average of the two trailing eigenvalues: $$ \hat{\sigma}^2=\frac{2+1}{3-1}=1.5. $$ Because \(4>1.5\), the leading direction can have positive signal variance. If \(u_1\) is its unit eigenvector, one loading vector is $$ \hat{W}=\sqrt{4-1.5}\,u_1=\sqrt{2.5}\,u_1\approx1.581u_1. $$ The fitted covariance has eigenvalues \(1.5+2.5=4\) in direction \(u_1\), and \(1.5\) in each of the two remaining directions. The model therefore reproduces the leading sample eigenvalue but replaces the trailing values 2 and 1 with their average, 1.5. This fit treats their difference as sampling variation around a common residual variance; whether that approximation is adequate requires diagnostic scrutiny.
Diagnostics, Alternatives, and Limitations
The eigenvalue calculation makes clear what PPCA gains and what it constrains. Ordinary PCA gives a low-rank geometric summary but does not, by itself, specify a probability distribution for residuals. PPCA supplies a Gaussian likelihood and a common residual variance. A factor model with feature-specific uniquenesses relaxes the equal-residual-variance constraint, but uses a more flexible residual covariance structure. Neither model is automatically appropriate: the choice depends on whether its assumptions describe the profile measurements well.
Useful diagnostics focus on what remains after fitting the latent structure. Examine residual variance by feature and residual correlations across features; systematic differences or persistent correlations challenge \(\sigma^2I_d\). Also inspect unusually large residuals and patterns associated with batches or other technical variables. Such patterns may indicate that a low-rank Gaussian model with isotropic noise is missing structure. These diagnostics are warnings about model fit, not proof of a particular biological mechanism.
A common mistake is to interpret isotropic noise as saying that all genes have the same total variance or that observed genes are independent. That is incorrect: the assumption says the residual noise covariance, conditional on the latent score, is \(\sigma^2I_d\). The marginal covariance is \(WW^T+\sigma^2I_d\), which can have unequal variances and substantial correlation. A second pitfall is to read \(\sigma^2\) as a universal biological variability parameter. It is a model-based residual variance in the analyzed feature scale; preprocessing, measurement technology, and omitted structure all affect its interpretation.
PPCA is useful when a probabilistic low-dimensional representation is desired and a shared residual variance is a defensible approximation. It is limited when residual variation is strongly feature-dependent, non-Gaussian, or structured by effects outside the latent representation. The fixed \(q\) is an input to the fit; this covariance derivation does not determine which value should be used.
Worked Example: Checking Whether Isotropic Noise Is Plausible
Suppose a hypothetical PPCA fit to standardized gene profiles leaves residuals for two genes with sample variances \(0.20\) and \(1.40\), and residual covariance \(0.45\). Under isotropic noise, the residual covariance should be \(\sigma^2I_2\): its diagonal entries should be equal and its off-diagonal entry should be zero. Here, \(0.20\ne1.40\) and \(0.45\ne0\). The residual pattern is inconsistent with the model’s population covariance assumption, although finite-sample variation means these differences alone do not establish a formal rejection. A sensible follow-up is to check scaling, technical batches, and whether the fitted latent structure leaves systematic residual patterns. It would be incorrect to conclude that the genes must be biologically connected; the observed residual covariance could have several sources.
Check Your Understanding
Answer each question, then compare with the solutions.
- In PPCA, what does isotropic noise imply about the residual covariance, and what does it not imply about the marginal profile covariance?
- If \(W\) is \(d\times q\), what is the maximum rank of the latent covariance contribution \(WW^T\)?
- A hypothetical PPCA fit has \(d=4\), \(q=1\), and sample covariance eigenvalues \(6,2,1,1\). Calculate \(\hat{\sigma}^2\) and the loading magnitude in the leading direction.
- Why is a large difference between residual variances across genes a potential warning for PPCA?
Solutions. (1) The residual covariance is \(\sigma^2I_d\), so residual variances are equal and residual covariances are zero. The marginal covariance \(WW^T+\sigma^2I_d\) can still have unequal variances and nonzero covariances. (2) Its rank is at most \(q\), since \(WW^T\) is formed from a matrix with \(q\) columns. (3) The residual estimate is \((2+1+1)/(4-1)=4/3\approx1.333\). The leading loading magnitude is \(\sqrt{6-4/3}=\sqrt{14/3}\approx2.160\); the leading eigenvalue exceeds the estimated noise variance. (4) PPCA assumes one shared residual variance for every feature. Markedly unequal residual variances suggest that this assumption may not describe the fitted profiles well.