Session 13: Gaussian Vectors and Conditioning

Movement IV: Gaussian Vectors and Linear Estimation

EE 520: Random Processes (Fall 2026). Instructor: John Lipor.

Launch

Session 2’s update rule was arithmetic on a handful of cell probabilities: a prior over four regions, a failed look, a renormalization. Today the latent world is not four cells but a vector in ℝn\mathbb{R}^n, several coupled unknowns at once, and the observation is another such vector. In general, updating belief on a continuous vector means integrating a joint density, hard work with no closed form. But for one distinguished family, the Gaussian vectors of Session 12’s covariance matrix, the very same update, condition and renormalize, collapses to two matrix formulas you can memorize by lunch: a linear correction to the mean and a fixed shrinkage of the covariance. This session earns those two formulas and reads what they mean.

Development

The Gaussian vector

We keep Session 12’s objects, a mean vector μX\mu_X and a covariance matrix ΣX\Sigma_X, and single out the distributions that live comfortably on them. The cleanest definition does not write a density at all.

Definition 1 (Gaussian vector). A random vector X=(X1,…,Xn)TX = (X_1, \dots, X_n)^T is a Gaussian vector (equivalently, jointly Gaussian) if every linear combination aTX=∑i=1naiXia^T X = \sum_{i=1}^n a_i X_i, for a∈ℝna \in \mathbb{R}^n, is a scalar Gaussian random variable. If XX has mean μX\mu_X and covariance ΣX\Sigma_X, we write X∼𝒩(μX,ΣX)X \sim {\mathcal N}(\mu_X, \Sigma_X).

When ΣX\Sigma_X is nonsingular, this definition is equivalent to XX having the density fX(x)=(2π)−n/2det⁡(ΣX)−1/2exp⁡(−12(x−μX)TΣX−1(x−μX)),\begin{equation} f_X(x) = (2\pi)^{-n/2} \det(\Sigma_X)^{-1/2} \exp\!\left(-\tfrac{1}{2}(x - \mu_X)^T \Sigma_X^{-1} (x - \mu_X)\right), \label{eq:mvn} \end{equation} the direct matrix generalization of the scalar bell curve: the scalar variance σ2\sigma^2 becomes the matrix ΣX\Sigma_X, division by σ2\sigma^2 becomes multiplication by ΣX−1\Sigma_X^{-1}, and 1/2πσ21/\sqrt{2\pi\sigma^2} becomes (2π)−n/2det⁡(ΣX)−1/2(2\pi)^{-n/2}\det(\Sigma_X)^{-1/2}. We state [eq:mvn] and will not derive its constant.

Which definition is the honest one. The definition by linear combinations is primary; the density [eq:mvn] is a consequence of it (and needs ΣX\Sigma_X nonsingular even to be written down). Two payoffs follow immediately. First, “Gaussian” is now a property preserved by linear algebra, not by integrals, which is why every closure result below is a one-liner. Second, the family is fixed by just two numbers, μX\mu_X and ΣX\Sigma_X, so to know a Gaussian vector is to know its mean and covariance and nothing else.

Closure under affine maps

Let X∼𝒩(μX,ΣX)X \sim {\mathcal N}(\mu_X, \Sigma_X), A∈ℝr×nA \in \mathbb{R}^{r \times n}, b∈ℝrb \in \mathbb{R}^r, and set Y=AX+bY = AX + b. Then YY is again Gaussian. The proof is one line from the definition: for any c∈ℝrc \in \mathbb{R}^r, cTY=cT(AX+b)=(ATc)TX+cTb,\begin{equation*} c^T Y = c^T(AX + b) = (A^T c)^T X + c^T b, \end{equation*} which is a linear combination of the entries of XX (namely with coefficient vector ATcA^T c) plus the constant cTbc^T b. A linear combination of a Gaussian vector’s entries is scalar Gaussian by definition, and adding a constant keeps it Gaussian, so cTYc^T Y is scalar Gaussian for every cc; hence YY is a Gaussian vector. Its mean and covariance are Session 12’s affine-propagation formulas, no new work: Y=AX+b∼𝒩(AμX+b,AΣXAT).\begin{equation} Y = AX + b \sim {\mathcal N}\!\left(A\mu_X + b,\; A\Sigma_X A^T\right). \label{eq:affine} \end{equation}

The workhorse, now with a distribution attached. Session 12 showed μY=AμX+b\mu_Y = A\mu_X + b and ΣY=AΣXAT\Sigma_Y = A\Sigma_X A^T propagate the first two moments through any affine map. The Gaussian family adds the sentence those formulas were missing: for a Gaussian XX, [eq:affine] is not just the mean and covariance of YY, it is the entire distribution of YY. Two formulas now carry the whole probability model through every linear operation of Movement IV.

Marginals

Marginals are a special case of [eq:affine]. To extract XiX_i, take AA to be the iith coordinate-selector row eiTe_i^T; then Xi=eiTXX_i = e_i^T X is scalar Gaussian with mean (μX)i(\mu_X)_i and variance (ΣX)ii(\Sigma_X)_{ii}. Stacking several selector rows shows every subvector of a Gaussian vector is itself Gaussian, with the mean and covariance simply read off the corresponding entries of μX\mu_X and ΣX\Sigma_X. So marginalization, which for a general density means an integral, is here just crossing out rows and columns.

Uncorrelated implies independent (here, and essentially only here)

For a general pair of random variables, independence implies zero covariance but not conversely (Session 12’s unit-circle counterexample). Inside a Gaussian vector the converse holds too, and this is the convenience that makes the Gaussian own this subject.

Proposition 1. If X=(X1,…,Xn)TX = (X_1, \dots, X_n)^T is a Gaussian vector with ΣX\Sigma_X diagonal (all pairwise covariances zero), then X1,…,XnX_1, \dots, X_n are independent.

Proof. Take the two-variable case; the general case is identical entry by entry. Let (X1,X2)(X_1, X_2) be jointly Gaussian, zero-mean without loss of generality, with ΣX=diag⁡(σ12,σ22)\Sigma_X = \operatorname{diag}(\sigma_1^2, \sigma_2^2). A diagonal matrix has det⁡ΣX=σ12σ22\det \Sigma_X = \sigma_1^2 \sigma_2^2 and inverse diag⁡(1/σ12,1/σ22)\operatorname{diag}(1/\sigma_1^2, 1/\sigma_2^2), so the quadratic form in the exponent of [eq:mvn] splits, (x−μ)TΣX−1(x−μ)=x12σ12+x22σ22,\begin{equation*} (x - \mu)^T \Sigma_X^{-1} (x - \mu) = \frac{x_1^2}{\sigma_1^2} + \frac{x_2^2}{\sigma_2^2}, \end{equation*} and therefore the joint density factors: fX1,X2(x1,x2)=12πσ1σ2exp⁡(−x122σ12−x222σ22)=12πσ1exp⁡(−x122σ12)⏟fX1(x1)⋅12πσ2exp⁡(−x222σ22)⏟fX2(x2).\begin{align*} f_{X_1, X_2}(x_1, x_2) &= \frac{1}{2\pi \sigma_1 \sigma_2} \exp\!\left(-\frac{x_1^2}{2\sigma_1^2} - \frac{x_2^2}{2\sigma_2^2}\right) \\ &= \underbrace{\frac{1}{\sqrt{2\pi}\,\sigma_1} \exp\!\left(-\frac{x_1^2}{2\sigma_1^2}\right)}_{f_{X_1}(x_1)} \cdot \underbrace{\frac{1}{\sqrt{2\pi}\,\sigma_2} \exp\!\left(-\frac{x_2^2}{2\sigma_2^2}\right)}_{f_{X_2}(x_2)}. \end{align*} A joint density that factors into the product of the marginals is exactly the statement that X1X_1 and X2X_2 are independent. ◻

Pitfall. The proposition’s hypothesis is that XX is jointly Gaussian, and it cannot be dropped. Two random variables can each be Gaussian on their own (Gaussian marginals) yet fail to form a Gaussian vector, and for such a pair zero correlation proves nothing about independence. “Each one is Gaussian” is weaker than “the pair is jointly Gaussian”: the definition demands that every linear combination be Gaussian, not just the two coordinate projections. Constructing such a pair, uncorrelated, marginally Gaussian, but dependent, is HW6 Problem 2(b). The lesson worth carrying: “uncorrelated ⇒\Rightarrow independent” is a theorem about the joint distribution, never about the marginals alone.

Conditioning: the headline theorem

Now the update itself. Partition a Gaussian vector into two blocks: the coordinates we have measured, the sampled block XsX_s, and the ones we have not, the unsampled block XuX_u that we want to learn about. The subscripts are mnemonics, ss for sampled and uu for unsampled (or unknown); in Sessions 15 and 18 the sampled coordinates will be the places where we chose to look. Write X=(Xu,Xs)X = (X_u, X_s), with the matching partition of the mean and covariance, μ=[μuμs],Σ=[ΣuuΣusΣsuΣss],Σsu=ΣusT.\begin{equation*} \mu = \begin{bmatrix} \mu_u \\ \mu_s \end{bmatrix}, \qquad \Sigma = \begin{bmatrix} \Sigma_{uu} & \Sigma_{us} \\ \Sigma_{su} & \Sigma_{ss} \end{bmatrix}, \qquad \Sigma_{su} = \Sigma_{us}^T. \end{equation*}

Theorem 1 (Gaussian conditioning). With the partition above and Σss\Sigma_{ss} nonsingular, the conditional distribution of XuX_u given the observation Xs=xsX_s = x_s is Gaussian: Xu|Xs=xs∼𝒩(μu∣s,Σu∣s),\begin{equation} X_u \,|\,X_s = x_s \;\sim\; {\mathcal N}\!\left(\mu_{u \mid s},\; \Sigma_{u \mid s}\right), \label{eq:condgauss} \end{equation} with μu∣s=μu+ΣusΣss−1(xs−μs),Σu∣s=Σuu−ΣusΣss−1Σsu.\begin{equation} \mu_{u \mid s} = \mu_u + \Sigma_{us}\Sigma_{ss}^{-1}(x_s - \mu_s), \qquad \Sigma_{u \mid s} = \Sigma_{uu} - \Sigma_{us}\Sigma_{ss}^{-1}\Sigma_{su}. \label{eq:condformulas} \end{equation}

Proof (scalar case, by completing the square). Take Xu=X1X_u = X_1 and Xs=X2X_s = X_2 scalar, zero-mean (restore means at the end by shifting), with Σ=[σu2σusσusσs2].\begin{equation*} \Sigma = \begin{bmatrix} \sigma_u^2 & \sigma_{us} \\ \sigma_{us} & \sigma_s^2 \end{bmatrix}. \end{equation*} By definition fXu∣Xs(xu∣xs)=fXu,Xs(xu,xs)/fXs(xs)f_{X_u \mid X_s}(x_u \mid x_s) = f_{X_u, X_s}(x_u, x_s)/f_{X_s}(x_s). The denominator does not depend on xux_u, so as a function of xux_u the conditional density is proportional to the joint density, and by [eq:mvn] that means proportional to exp⁡(−12Q)\exp(-\tfrac12 Q) with Q=[xuxs]Σ−1[xuxs],Σ−1=1σu2σs2−σus2[σs2−σus−σusσu2].\begin{equation*} Q = \begin{bmatrix} x_u & x_s \end{bmatrix} \Sigma^{-1} \begin{bmatrix} x_u \\ x_s \end{bmatrix}, \qquad \Sigma^{-1} = \frac{1}{\sigma_u^2\sigma_s^2 - \sigma_{us}^2} \begin{bmatrix} \sigma_s^2 & -\sigma_{us} \\ -\sigma_{us} & \sigma_u^2 \end{bmatrix}. \end{equation*} Write d=σu2σs2−σus2d = \sigma_u^2\sigma_s^2 - \sigma_{us}^2 for the determinant. It is positive: covariances obey σus2≤σu2σs2\sigma_{us}^2 \le \sigma_u^2\sigma_s^2 (Session 12’s |ρ|≤1\left\lvert \rho \right\rvert \le 1), so d≥0d \ge 0, and d≠0d \ne 0 because Σ\Sigma is nonsingular. Then σu2σs2>σus2≥0\sigma_u^2\sigma_s^2 > \sigma_{us}^2 \ge 0 forces σs2>0\sigma_s^2 > 0 as well. Both signs matter below: they make the coefficient σs2/d\sigma_s^2/d positive, so the exponent describes a bell, not an upside-down one. Expanding, Q=1d(σs2xu2−2σusxuxs+σu2xs2).\begin{equation*} Q = \frac{1}{d}\left(\sigma_s^2 x_u^2 - 2\sigma_{us} x_u x_s + \sigma_u^2 x_s^2\right). \end{equation*} We collect the terms in xux_u and complete the square. Keeping only the xux_u-dependent part (constants in xux_u fold into the normalizer), Q=σs2d(xu2−2σusσs2xuxs)+(const in xu)=σs2d(xu−σusσs2xs)2+(const in xu).\begin{equation*} Q = \frac{\sigma_s^2}{d}\left(x_u^2 - 2\frac{\sigma_{us}}{\sigma_s^2}x_u x_s\right) + (\text{const in } x_u) = \frac{\sigma_s^2}{d} \left(x_u - \frac{\sigma_{us}}{\sigma_s^2}x_s\right)^{\!2} + (\text{const in } x_u). \end{equation*} So fXu∣Xs(xu∣xs)∝exp⁡[−12⋅σs2d(xu−σusσs2xs)2]f_{X_u \mid X_s}(x_u \mid x_s) \propto \exp\!\left[-\tfrac{1}{2}\cdot \frac{\sigma_s^2}{d} \left(x_u - \frac{\sigma_{us}}{\sigma_s^2}x_s\right)^2\right], the shape of a Gaussian density in xux_u. Shape determines the density here. Everything we dropped along the way (the constant (2π)−1d−1/2(2\pi)^{-1}d^{-1/2} in [eq:mvn], the denominator fXs(xs)f_{X_s}(x_s), and the xux_u-free part of QQ) depends on xsx_s but not on xux_u, so the conditional density equals this exponential times a factor C(xs)C(x_s). A conditional density integrates to 11 over xux_u, and that forces C(xs)C(x_s) to be the one constant that makes the exponential integrate to 11, namely the normalizing constant of the Gaussian with this center and variance. So the conditional density is exactly that Gaussian density, not merely shaped like it. Reading off its center and its variance (the variance is the reciprocal of the coefficient multiplying 12\tfrac12 in the exponent), μu∣s=σusσs2xs,Σu∣s=dσs2=σu2σs2−σus2σs2=σu2−σus2σs2.\begin{equation*} \mu_{u \mid s} = \frac{\sigma_{us}}{\sigma_s^2}\, x_s, \qquad \Sigma_{u \mid s} = \frac{d}{\sigma_s^2} = \frac{\sigma_u^2\sigma_s^2 - \sigma_{us}^2}{\sigma_s^2} = \sigma_u^2 - \frac{\sigma_{us}^2}{\sigma_s^2}. \end{equation*} These are exactly [eq:condformulas] in the scalar case, with ΣusΣss−1=σus/σs2\Sigma_{us}\Sigma_{ss}^{-1} = \sigma_{us}/\sigma_s^2; restoring the means shifts xs↦xs−μsx_s \mapsto x_s - \mu_s and adds μu\mu_u, giving the stated form. ◻

Remark 1. The block case [eq:condformulas] is proved by the identical completion of the square, now with vectors and matrices in place of scalars, so that σus/σs2\sigma_{us}/\sigma_s^2 becomes the matrix ΣusΣss−1\Sigma_{us}\Sigma_{ss}^{-1} (a genuine matrix inverse, hence the nonsingularity hypothesis on the observed block) and the squared term becomes a quadratic form; the algebra is the same with transposes in the right places.1

Reading the two formulas

The two lines of [eq:condformulas] are worth slowing down over, because between them they say everything Movement IV has to say.

The posterior mean is a prior mean plus a correction: μu∣s⏟posterior mean=μu⏟prior mean+ΣusΣss−1⏟gain(xs−μs)⏟innovation.\begin{equation*} \underbrace{\mu_{u \mid s}}_{\text{posterior mean}} = \underbrace{\mu_u}_{\text{prior mean}} + \underbrace{\Sigma_{us}\Sigma_{ss}^{-1}}_{\text{gain}} \underbrace{(x_s - \mu_s)}_{\text{innovation}}. \end{equation*} The innovation xs−μsx_s - \mu_s is the surprise in the data, how far the observation landed from what we expected before seeing it. The gain ΣusΣss−1\Sigma_{us}\Sigma_{ss}^{-1} is a fixed matrix, set entirely by the covariance structure, that translates surprise in the observed block into a correction of the unknown block. Belief moves linearly in the data, and it moves proportionally to how surprising the data were: no surprise (xs=μsx_s = \mu_s) means no update, exactly as a failed look that told us nothing would leave Session 2’s posterior unmoved.

The posterior covariance is stranger and more powerful: Σu∣s=Σuu−ΣusΣss−1Σsu\begin{equation*} \Sigma_{u \mid s} = \Sigma_{uu} - \Sigma_{us}\Sigma_{ss}^{-1}\Sigma_{su} \end{equation*} does not contain xsx_s at all. The amount an observation reduces your uncertainty is settled by the covariance structure alone, before the observation is taken. You know in advance how much a measurement will teach you; you just do not yet know which way it will move your estimate.

One theorem, three costumes. The gain ΣusΣss−1\Sigma_{us}\Sigma_{ss}^{-1} is, read one way, the best linear estimator’s coefficient: Session 14 rederives [eq:condformulas] from a purely geometric principle (the error is uncorrelated with the data) and finds the same formula, now called the LMMSE estimator, valid even when nothing is Gaussian. Session 15 stacks the same formula over a continuum of indices and calls it Gaussian-process regression. Gaussian conditioning, linear estimation, and GP regression are one theorem wearing three costumes; the phrase to watch for at each reappearance is “the same formula.” The data-independence of Σu∣s\Sigma_{u \mid s}, meanwhile, is what lets Session 18 plan where to measure: if the value of a measurement can be scored before taking it, you can choose the most informative measurement in advance.

AI corner: honest uncertainty. Corner 3 asked whether a model’s reported confidence can be believed; here is what believable looks like. Gaussian conditioning returns a full posterior, a mean and a variance, and that variance is correct by construction and, this session’s remark, known before the data arrive. Contrast a language model: it emits a probability for each next token, but no posterior over the facts it asserts; its “confidence” is a score produced by the same machinery that produces the answer, not a variance you can plan against. The Gaussian-process machinery of Movement V is the working standard of honest uncertainty against which such systems are measured, and Session 18 will show what honest uncertainty buys: the ability to plan measurements before taking them. One frontier caveat: giving systems at the scale of modern language models calibrated, plannable uncertainty of this kind is an open research problem, not a solved one.

Worked example

Drawing from the posterior by correcting prior draws

Session 12 built a Gaussian vector with any prescribed covariance as an affine map of independent standard normals, and Session 15 will use exactly that construction to draw random functions. Suppose drawing from the prior is all your software can do. After observing Xs=xsX_s = x_s, can you produce draws from the posterior without first computing Σu∣s\Sigma_{u \mid s} and building a new generator for it? You can, and the recipe is gain times innovation, applied to a simulated world.

Proposition 2 (Posterior draws from prior draws). Partition as in Theorem 1, with Σss\Sigma_{ss} nonsingular, and write G=ΣusΣss−1G = \Sigma_{us}\Sigma_{ss}^{-1} for the gain. Let (X̃u,X̃s)∼𝒩(μ,Σ)(\tilde X_u, \tilde X_s) \sim {\mathcal N}(\mu, \Sigma) be a draw from the prior and set X̃u*=X̃u+G(xs−X̃s).\begin{equation} \tilde X_u^{*} = \tilde X_u + G\,(x_s - \tilde X_s). \label{eq:pathwise} \end{equation} Then X̃u*∼𝒩(μu∣s,Σu∣s)\tilde X_u^{*} \sim {\mathcal N}(\mu_{u \mid s}, \Sigma_{u \mid s}): it is an exact draw from the posterior of Theorem 1.

Proof. Three steps, each using one tool we already have.

It is Gaussian. In block form, X̃u*=[I−G][X̃uX̃s]+Gxs,\begin{equation*} \tilde X_u^{*} = \begin{bmatrix} I & -G \end{bmatrix} \begin{bmatrix} \tilde X_u \\ \tilde X_s \end{bmatrix} + G x_s, \end{equation*} an affine map of a Gaussian vector (xsx_s is a fixed number, not random). By closure [eq:affine] it is Gaussian, so it remains only to match its mean and covariance.

Its mean. By linearity, 𝔼[X̃u*]=μu+G(xs−μs)=μu∣s\mathbb{E}[\tilde X_u^{*}] = \mu_u + G(x_s - \mu_s) = \mu_{u \mid s}.

Its covariance. By Session 12’s propagation formula with A=[I−G]A = \begin{bmatrix} I & -G \end{bmatrix}, cov⁡(X̃u*)=[I−G][ΣuuΣusΣsuΣss][I−GT]=Σuu−ΣusGT−GΣsu+GΣssGT.\begin{equation*} \operatorname{cov}(\tilde X_u^{*}) = \begin{bmatrix} I & -G \end{bmatrix} \begin{bmatrix} \Sigma_{uu} & \Sigma_{us} \\ \Sigma_{su} & \Sigma_{ss} \end{bmatrix} \begin{bmatrix} I \\ -G^T \end{bmatrix} = \Sigma_{uu} - \Sigma_{us}G^T - G\Sigma_{su} + G\Sigma_{ss}G^T. \end{equation*} Since Σss−1\Sigma_{ss}^{-1} is symmetric, GT=Σss−1ΣsuG^T = \Sigma_{ss}^{-1}\Sigma_{su}, and each of the last three terms equals ΣusΣss−1Σsu\Sigma_{us}\Sigma_{ss}^{-1}\Sigma_{su} (for the last one, GΣssGT=ΣusΣss−1ΣssΣss−1ΣsuG\Sigma_{ss}G^T = \Sigma_{us}\Sigma_{ss}^{-1}\Sigma_{ss} \Sigma_{ss}^{-1}\Sigma_{su}). Two minus signs and one plus sign leave cov⁡(X̃u*)=Σuu−ΣusΣss−1Σsu=Σu∣s\operatorname{cov}(\tilde X_u^{*}) = \Sigma_{uu} - \Sigma_{us}\Sigma_{ss}^{-1}\Sigma_{su} = \Sigma_{u \mid s}. ◻

By hand.

Take scalar XuX_u and XsX_s, zero mean, unit variances, correlation 0.80.8, and observe xs=1.5x_s = 1.5. The gain is G=0.8/1=0.8G = 0.8/1 = 0.8, so the posterior is 𝒩(0.8⋅1.5,1−0.82)=𝒩(1.2,0.36){\mathcal N}(0.8 \cdot 1.5,\ 1 - 0.8^2) = {\mathcal N}(1.2,\ 0.36). Now correct two prior draws:

The first draw’s simulated observation fell short of the real one, so its unknown is pushed up; the second overshot, so its unknown is pulled down. Each draw keeps its own idiosyncratic part, and only the part the data can explain is replaced. Corrected over many draws, the values have mean 1.21.2 and variance 0.360.36 (a simulation with 400,000400{,}000 draws reproduces both to three decimals), with no generator for the posterior ever built.

Corrected draws pass through the data.

Correct the observed coordinates by the same recipe: their gain on themselves is ΣssΣss−1=I\Sigma_{ss}\Sigma_{ss}^{-1} = I, so x̃s+(xs−x̃s)=xs\tilde x_s + (x_s - \tilde x_s) = x_s, the data exactly. Figure 1 runs the recipe on a 60-coordinate zero-mean Gaussian vector with Σij=e−(i−j)2/128\Sigma_{ij} = e^{-(i-j)^2/128}, which makes neighboring coordinates nearly equal and distant ones nearly independent, so a single draw looks like a smooth random curve. Two coordinates are observed, x15=1.5x_{15} = 1.5 and x45=−1x_{45} = -1. Every corrected draw threads both observations and the draws bunch together near them. Away from them, including midway at coordinate 30 and at both ends, the posterior spread is almost back to the prior’s. That is a picture of Session 15’s Gaussian-process posterior, drawn with nothing but this session’s formula.

Posterior draws by correction. Left: three draws from a zero-mean Gaussian vector with Σij=e−(i−j)2/128\Sigma_{ij} = e^{-(i-j)^2/128}. Right: the same draws after [eq:pathwise] with x15=1.5x_{15} = 1.5, x45=−1x_{45} = -1 observed; the shaded band is the posterior mean ±2\pm 2 standard deviations from Theorem 1.

Why the posterior variance cannot see the data. Add and subtract GX̃sG\tilde X_s to write the prior draw as X̃u=GX̃s+R\tilde X_u = G\tilde X_s + R, with residual R=X̃u−GX̃sR = \tilde X_u - G\tilde X_s. This is only a rewriting, but a useful one, since in these terms the recipe [eq:pathwise] reads X̃u*=X̃u+G(xs−X̃s)=Gxs+R.\begin{equation*} \tilde X_u^{*} = \tilde X_u + G(x_s - \tilde X_s) = Gx_s + R. \end{equation*} The correction swaps the prediction from the simulated observation, GX̃sG\tilde X_s, for the prediction from the real one, GxsGx_s, and leaves RR alone. And RR carries no trace of the data: cov⁡(R,X̃s)=Σus−GΣss=0\operatorname{cov}(R, \tilde X_s) = \Sigma_{us} - G\Sigma_{ss} = 0, and since (R,X̃s)(R, \tilde X_s) is an affine image of a Gaussian vector, uncorrelated means independent (the factorization proof of Subsection 2.4 works block by block). So the posterior spread is the spread of RR, which never sees xsx_s: the data-independence of Σu∣s\Sigma_{u \mid s}, now as a mechanism instead of an algebraic accident. Applied to XX itself, the same rewriting proves the block case of Theorem 1 in one line: given Xs=xsX_s = x_s, Xu=Gxs+RX_u = Gx_s + R with RR independent of XsX_s, and RR has mean μu−Gμs\mu_u - G\mu_s and covariance Σu∣s\Sigma_{u \mid s} by the computation above. Session 14 promotes “the residual is uncorrelated with the data” to the defining principle of the best linear estimator.

Consolidation

  1. (Mechanical.) Let (X,Y)(X, Y) be zero-mean Gaussian with Σ=[2111]\Sigma = \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}. Compute 𝔼[X|Y=y]\mathbb{E}[X \,|\,Y = y] as a function of yy, and var⁡(X|Y)\operatorname{var}(X \,|\,Y). By what factor did conditioning on YY shrink the variance of XX? (Answer: 𝔼[X|Y=y]=y\mathbb{E}[X\,|\,Y=y] = y, var⁡(X|Y)=2−1=1\operatorname{var}(X\,|\,Y) = 2 - 1 = 1, half of var⁡(X)=2\operatorname{var}(X) = 2.)

  2. (Conceptual.) You are told UU and VV are each Gaussian and that cov⁡(U,V)=0\operatorname{cov}(U, V) = 0. Can you conclude UU and VV are independent? State the exact extra hypothesis that would make the conclusion valid. (Answer: no, not from the marginals alone; you need (U,V)(U, V) to be a jointly Gaussian vector, and then Subsection 2.4 applies.)

  3. (Conceptual.) A colleague is about to take a Gaussian measurement and asks whether it is worth the cost. Which of the two conditioning outputs can you hand them before the measurement is taken, and which must wait for the data? (Answer: the posterior variance Σu∣s\Sigma_{u \mid s} is knowable in advance, it never depended on xsx_s; the posterior mean μu∣s\mu_{u \mid s} needs the observed value.)

  4. (Conceptual.) One scalar look. Suppose the observed block is a single coordinate, so Σss=σs2\Sigma_{ss} = \sigma_s^2 is a number and Σus=v\Sigma_{us} = v is a column vector. Show that the theorem needs no matrix inverse and that Σu∣s=Σuu−vvTσs2.\begin{equation*} \Sigma_{u \mid s} = \Sigma_{uu} - \frac{v v^T}{\sigma_s^2}. \end{equation*} Every column of the subtracted matrix is a multiple of the one vector vv (it has rank one). Use this to show that if a combination cTXuc^T X_u of the unknowns is uncorrelated with the observed coordinate, then the look leaves var⁡(cTXu)\operatorname{var}(c^T X_u) exactly where it was. (Answer: with Σss=σs2\Sigma_{ss} = \sigma_s^2 the inverse is a division and Σsu=vT\Sigma_{su} = v^T. Then var⁡(cTXu|Xs)=cTΣu∣sc=cTΣuuc−(cTv)2/σs2\operatorname{var}(c^T X_u \,|\,X_s) = c^T\Sigma_{u \mid s}c = c^T\Sigma_{uu}c - (c^T v)^2/\sigma_s^2, and cTv=cov⁡(cTXu,Xs)c^T v = \operatorname{cov}(c^T X_u, X_s), so the variance is unchanged exactly when that covariance is zero. One scalar observation shrinks uncertainty along the single direction vv and nowhere else.)

Synthesis

Session 2 asked the three questions of the course thesis about a handful of cells and answered them by renormalizing a list. This session asked them about a vector, and for the Gaussian family the answer stayed in closed form: what is uncertain is XuX_u with prior 𝒩(μu,Σuu){\mathcal N}(\mu_u, \Sigma_{uu}); what is observed is Xs=xsX_s = x_s; and how belief changes is the two lines of [eq:condformulas], a mean corrected by gain times innovation and a covariance that shrinks by a fixed, data-independent amount. The closure properties are what make this work: Gaussian in, linear map, Gaussian out; Gaussian in, condition on part, Gaussian out. Because the family is pinned by a mean and a covariance, updating belief never leaves it. Session 14 will show that the gain in these formulas is the best linear estimator from any distribution, and Session 15 will let the index run over a continuum; both are the same theorem, and you will hear “the same formula” each time it returns.

Self-check questions

  1. State the definition of a Gaussian vector without writing a density. Why is “each coordinate is Gaussian” not enough?

  2. In μu∣s=μu+ΣusΣss−1(xs−μs)\mu_{u \mid s} = \mu_u + \Sigma_{us}\Sigma_{ss}^{-1}(x_s - \mu_s), name the gain and the innovation, and say what the posterior mean equals when the innovation is zero.

  3. True or false: the conditional covariance Σu∣s\Sigma_{u \mid s} depends on the observed value xsx_s. Justify in one sentence, and say what this buys a measurement-planner.

Pitfall. Three slips recur. (i) The marginally-Gaussian-but-not-jointly trap: worth saying twice, uncorrelated implies independent only inside a Gaussian vector; two separately Gaussian variables can be uncorrelated and still dependent (HW6 Problem 2(b)). (ii) Inverting the wrong block: the formulas invert Σss\Sigma_{ss}, the covariance of the observed block, not Σuu\Sigma_{uu}; a dimension check (ΣusΣss−1\Sigma_{us}\Sigma_{ss}^{-1} must be dim⁡u×dim⁡s\dim u \times \dim s) catches the error. (iii) Expecting the posterior variance to move with the data: Σu∣s\Sigma_{u \mid s} has no xsx_s in it; if your conditional variance depends on the observed value, you have made an algebra mistake.


  1. The posterior covariance Σuu−ΣusΣss−1Σsu\Sigma_{uu} - \Sigma_{us}\Sigma_{ss}^{-1}\Sigma_{su} is the Schur complement of Σss\Sigma_{ss} in Σ\Sigma; the name is optional and we use only the formula.↩︎