= Conditional multivariate normal distribution
Partition a jointly <multivariate normal distribution> into <vector>[vectors] $X$ and $Y$ with <mean>[means] $\mu_X,\mu_Y$ and <covariance> blocks $\Sigma_{XX},\Sigma_{XY},\Sigma_{YX},\Sigma_{YY}$. If $\Sigma_{XX}$ is <invertible matrix>[invertible], then the <Conditional multivariate normal distribution> is
$$
Y\mid X=x\sim N\!\left(\mu_Y+\Sigma_{YX}\Sigma_{XX}^{-1}(x-\mu_X),\;\Sigma_{YY}-\Sigma_{YX}\Sigma_{XX}^{-1}\Sigma_{XY}\right).
$$
The <covariance> is a <Schur complement>. To see why, subtract the linear prediction from $Y$: $R=Y-\mu_Y-\Sigma_{YX}\Sigma_{XX}^{-1}(X-\mu_X)$. Direct <covariance> calculation gives $\operatorname{Cov}(R,X)=0$. Since $R$ and $X$ are jointly Gaussian, they are <independent random variables>[independent]; the <covariance> of $R$ is exactly the displayed <Schur complement>. Conditioning therefore changes the <mean> but leaves that <regression residual>[residual] <covariance> fixed.
For two <standard normal distribution>[standard normal] variables with correlation $\rho$, $Y\mid X=x$ has <mean> $\rho x$ and <variance> $1-\rho^2$. If $|\rho|=1$, the conditional law is degenerate: the same formula still gives a zero <variance>. A singular $\Sigma_{XX}$ requires conditioning on its supported subspace rather than taking an ordinary <matrix inverse>.
Back to article page