Movement IV: Gaussian Vectors and Linear Estimation
EE 520: Random Processes (Fall 2026). Instructor: John Lipor.
The course thesis, once more. A probability model answers three questions: What is uncertain? What is observed? How should observation change belief and action? Movement IV keeps all three but lets the uncertain thing be a vector: several coupled quantities at once, whose shared uncertainty is the new object of study.
Two hydrophones listen for one whale. Each reading is the whale’s call plus noise, and the noise is not private to each sensor: a passing boat, a swell, a thermal layer all push both readings the same way at once. So the two numbers are entangled, and the entanglement is exactly what we must model to fuse them well. A single variance cannot capture it, because variance describes one quantity in isolation. What we need is a matrix whose off-diagonal entries record how each pair of quantities moves together. Today we build that matrix, the covariance matrix, learn the one property that makes it legal, and learn how it transforms when we combine or filter the measurements. Everything from here to the end of the course (Gaussian inference, sensor fusion, filtered noise) runs on the two formulas we prove today.
Everything today is written with vectors and matrices, so we begin with a brief review of the linear algebra we will use. We write a matrix as By convention, any vector is a column vector, .
Definition 1 (Transpose). The transpose of a matrix is the matrix whose th entry is the th entry of .
For example, We say that is symmetric if . Some properties of the transpose operation are as follows.
.
.
whenever the product is defined (, ). The order reverses, and that reversal is why the transposes in today’s formula sit where they do.
Definition 2 (Inner and outer products). The inner product (or dot product) of two vectors is The outer product of and is the matrix
Note that the inner product is a scalar, while the outer product is a matrix. Both appear today: the covariance matrix will be an expected outer product, and every variance we compute from it will be a scalar of the form .
We sometimes use Matlab notation for pieces of a matrix: is the th column of and is its th row. Let and . We can think of the product in two ways. In the first, each entry of is an inner product between the corresponding row of and the vector , Alternatively, is a sum of scaled columns of , Deciding which view is most useful is a skill that is acquired over time, and I encourage you to begin by always writing both views when working on a problem.
For and , the standard definition of the product sets its th entry to This is not an intuitive definition, so we instead consider two alternative views.
View 1: inner products. Think of as a stack of rows and as a row of columns. Then is the matrix of inner products between the rows of and the columns of , Taking gives , the matrix of inner products between the rows of , called the Gram matrix of those rows.
View 2: outer products. Think of in terms of its columns and in terms of its rows. Then is a sum of outer products, This view is the one behind the sample covariance matrix: if the columns of are centered data vectors , then is an average of outer products, the data version of the expected outer product defined below.
Definition 3 (Inverse; positive (semi)definite). A square matrix is invertible if there exists a matrix such that , where is the identity matrix. A symmetric matrix is positive semidefinite (PSD, written ) if and positive definite (PD, written ) if for all .
One fact we will lean on in Session 13: a positive semidefinite matrix is invertible if and only if it is positive definite. Today’s main result is that every covariance matrix is PSD; whether it is also PD decides whether it can be inverted.
Finally, the Euclidean or 2-norm of a vector is . The norm is a notion of length, so it is nonnegative. The Cauchy–Schwarz inequality for vectors states that Its random-variable version, in which plays the role of the inner product, is what bounds the correlation coefficient later today.
A random vector is a vector whose entries are random variables. Its mean vector stacks the componentwise means, and expectation of a random vector or matrix is entrywise. The single number “variance” is replaced by a whole matrix of pairwise second moments.
Definition 4 (Covariance matrix). The covariance matrix of is an matrix whose entry is . Its diagonal holds the variances , and it is symmetric because .
The off-diagonal entries are the point of the object: they record the shared motion the launch described. A positive means the two tend to rise and fall together; a negative one, in opposition; zero, no linear co-movement (but read the warning in Subsection 2.6 before reading “zero” as “unrelated”).
Not every symmetric matrix is a covariance matrix. The constraint comes from one computation: the variance of any linear combination.
Proposition 1 (Variance of a linear combination). For any fixed ,
Proof. The scalar has mean , so pulling the constant outside the expectation. ◻
Corollary 1 (Covariance matrices are positive semidefinite). : for every , .
Proof. By [eq:quadform], , since a variance is never negative. ◻
Read the corollary as a modeling law: a proposed covariance matrix is legal only if no linear combination (no “portfolio”) of the variables it describes has negative variance. That single requirement, positive semidefiniteness, is the complete legality test. For a matrix it reduces to a check you can do by eye: iff and , i.e. the off-diagonal cannot exceed the geometric mean of the diagonals.
Example 1 (Two quick legality checks). is legal, since (eigenvalues and ). But is illegal: , and the portfolio exposes it, claiming a variance of for , which is impossible.
We rarely observe the raw vector; we observe linear combinations of it (sums, differences, filtered versions). How does the covariance transform?
Proposition 2 (Affine propagation). For a fixed matrix and vector , the vector has
Proof. The mean follows from linearity of expectation. For the covariance, the shift cancels in the centering, , so ◻
Key idea. The pair and is the workhorse of the rest of the course. Gaussian closure (Session 13), sensor fusion (Session 14), and filtered noise (Session 17, in its continuous form) are all this one pair of lines. Keep the transpose habit: is the only arrangement whose dimensions match, and writing or is the most common slip.
To compare co-movements across different scales we normalize covariance into a unitless correlation coefficient, The Cauchy–Schwarz inequality , applied to the centered variables and , gives and hence . Worked example 3.2 proves the same bound a second way, from the corollary above, and collects the two facts Session 8 left for today: exactly when one variable is an affine function of the other, and is the cosine of an angle.
Zero covariance says the two variables carry no linear co-movement. It does not say they are unrelated.
Example 2 (Uncorrelated but dependent: the unit circle). Let be uniform on the unit circle . By symmetry and (writing , with , we get ). So . Yet the two are as dependent as can be: forces , so knowing pins to two values. Zero correlation, total dependence.
Correlation is blind to any relationship that is not straight-line. Session 13 identifies the one distinguished family, the Gaussian, in which zero correlation does imply independence, and that convenience is half the reason the Gaussian owns the rest of this course.
For two random vectors and , the cross-covariance matrix is It records how the components of one vector co-move with those of the other; it need not be square and is not required to be positive semidefinite (that property belongs to the symmetric matrices alone). This block is the raw material of fusion in Session 14.
Finally, one sentence for the record: because is symmetric and positive semidefinite, it diagonalizes as with nonnegative eigenvalues, so there is always a rotated coordinate system in which the components are uncorrelated; the systematic use of that fact (decorrelation, whitening, principal components) belongs to a later machine-learning course and we will not pursue it here.
A source emits an amplitude with mean and . Two hydrophones report with zero-mean noises of unequal quality: (the good sensor) and (the noisy one), correlated with each other through , and both uncorrelated with the source . We assemble the covariance of entry by entry, straight from the description:
;
;
; likewise ;
.
Hence
Rather than expand a determinant, use affine propagation backwards. Writing , we have with the invertible matrix Since is invertible, if and only if . The source block () is fine, so legality rests entirely on the noise block, which is positive semidefinite iff The legal range for the noise cross-covariance is capped by , the geometric mean of the two noise variances. That is this session’s pitfall, landing on the worked example itself: push past and you have written down noise whose stated co-movement is impossible for its stated strengths. At the boundary the matrix is singular (one eigenvalue is exactly ), so some nonzero linear combination of , , carries no variance at all. It is not a combination of the readings alone: their block has determinant . The vanishing combination must involve the source itself. This exact source-plus-two-sensors setup returns in Session 14, where we fuse and into a best estimate of , one reading at a time; keep it in mind.
The Development stated a test you can do by eye: with positive diagonal entries, is a legal covariance matrix iff , that is, iff the would-be correlation lies in . We prove both directions. The proofs settle two debts: Session 8 deferred to today the reason means an exact line, and the Development called positive semidefiniteness the complete legality test without showing that a matrix passing it actually belongs to some random vector.
Suppose is the covariance of , and write . The standardized variables and have mean , variance , and . Apply the corollary to the portfolios and , that is, on : Hence , which is : the Cauchy–Schwarz bound again, now as a consequence of “no portfolio has negative variance.” The equality cases come with it. A random variable with zero variance equals its mean with probability one (its squared deviation is never negative and has mean zero). So iff iff , that is, an exact line of positive slope; and iff , a line of negative slope. Conversely, if with , then and , so .
Equation [eq:upmv] also says why is a cosine. Read standard deviation as length, so that and are unit vectors. Then is the law of cosines, , with in the place of . Correlation is angle or (parallel vectors, an exact line); correlation is a right angle. Session 14 turns this geometry into estimation.
Now suppose only that and . Take with mean and (two uncorrelated unit-variance variables), and set The square root is real precisely because . By affine propagation, So every matrix that passes the test is the covariance of an actual random vector, and is legal. Read as a recipe for building correlated variables: is a shared part , a multiple of ’s own source, plus a private part of variance . The legality test says exactly that the private variance cannot be negative. At the boundary the private part vanishes and exactly: the line of the necessity half. For the legal matrix of the Development the recipe reads , ; for the illegal one it asks for , and breaks exactly where legality does. The lower-triangular is how correlated noise is simulated in practice, and it returns in Session 15, for any , as the Cholesky factor that draws random functions. (The pitfall below explains why, beyond , no pairwise check can stand in for .)
Because the midterm is next meeting, we keep this short; the remaining time is for your questions on Sessions 1–9 (this session, like Sessions 10 and 11, is not on the midterm).
(Affine propagation.) Let be zero-mean with . Form the sum and difference , , i.e. with . Compute , and note that the sum and difference are correlated even though are not. (Answer: .)
(Uncorrelated or independent?) The hydrophone description assumed only that the noises are uncorrelated with . Would any entry of change if they were independent of instead? Then what does independence add? (Answer: no entry changes, because is built from second moments alone and uncorrelatedness is exactly the second-moment statement; today’s calculus needs nothing more. Independence adds control of every function of the variables, not just linear ones. On the unit circle, for instance, and are uncorrelated, yet makes and perfectly anti-correlated, , which independence would forbid.)
Movement IV asks the three questions of the thesis about a vector of coupled unknowns, and today supplied the grammar. The covariance matrix is the geometry of shared uncertainty: its diagonal is the old per-variable variance, its off-diagonals are the entanglement a single number could not hold, and its one law, positive semidefiniteness, is not a technicality but the statement that no combination of the variables can have negative variance (and, for a pair, it is also exactly what lets us build the variables from uncorrelated pieces). Two formulas carry that geometry through every linear operation, and , and one warning guards the reader: zero correlation is not independence. Next session hands one distinguished distribution, the Gaussian, to this same covariance matrix, and belief-updating becomes two matrix formulas.
Why must a covariance matrix be positive semidefinite, and what real quantity would a violation claim to be negative?
You transform by . Write , and say in one phrase why the constant does not appear.
Give a pair of variables with that are nonetheless completely dependent, and name the family in which this cannot happen.
Pitfall. Three slips recur. (i) Illegal off-diagonals: a covariance needs , the geometric mean of the diagonals; the hydrophone bound is this same rule on the noise block. Beware that this pairwise check is the whole story only for (worked example 3.2 proved that much): in three or more dimensions a matrix can pass every pairwise check and still fail to be positive semidefinite, so the complete test is always for all (equivalently, all eigenvalues nonnegative). (ii) Reading as independence: it means no linear co-movement only (the unit circle). (iii) Dropping the transpose: covariance propagates as ; make the dimension check a habit.