A11 · Lesson 23 · Gaussian random vectors
Correlated noise, error ellipses and the envelope of I/Q noise
Two sensors share a power supply, so their noise rises and falls together. A radio receiver's noise has an in-phase part and a quadrature part, and what you see on a scope is their combined size. A GPS fix comes with an error ellipse, not a single error bar. Each case is a vector of Gaussian variables, and a vector of jointly Gaussian variables is described completely by its means and its covariance matrix, the table of lesson 22's covariances. Linear algebra then does the rest: sums, differences, rotations and whitening are all matrix products.
- The shading is the joint density of two Gaussian variables with standard deviations , and correlation . The curve is the 2σ ellipse, , drawn as twice the Cholesky factor applied to a unit circle.
- Correlation tilts and stretches the ellipse, but it always holds the same 86% of the draws.
Predict
A receiver's noise has independent in-phase and quadrature parts, each Gaussian with standard deviation 1 mV. How often does the noise envelope, , exceed 3 mV?
About 1.1%: . The envelope of two independent Gaussians is Rayleigh, with tail , which falls more slowly than one Gaussian's because two components each contribute. It's four times as likely to cross 3σ as a single Gaussian's size, which matters when a detector's threshold is set against noise.
Name it
The covariance matrix
For a random vector with mean , the covariance matrix is : variances on the diagonal, covariances off it. It's symmetric, and positive semidefinite, since every weighted sum has a variance that can't be negative:
For two variables, .
Jointly Gaussian vectors
is jointly Gaussian when every weighted sum is Gaussian. Then:
- and say everything about it;
- a linear transform is jointly Gaussian with mean and covariance ;
- uncorrelated means independent, which is false for variables that aren't jointly Gaussian.
Making and undoing correlation
Factor (Cholesky). If holds independent standard Gaussians, has covariance : that's how simulations make correlated noise. Running it backward, whitens it: independent, unit variance.
Ellipses
The density is constant on the ellipses . Their axes point along 's eigenvectors, with half-lengths . In two dimensions the chance of landing inside is : 39% inside , 86% inside , 99% inside .
The envelope: Rayleigh and Rice
If and are independent, each , the envelope has
and the phase is uniform. Add a steady carrier and the envelope becomes Rician, the distribution behind a receiver's signal-plus-noise and fading with a direct path.
Worked example
Two sensors have noise of 1 mV and 2 mV, correlated with = 0.5. What noise is on their sum, and on their difference?
Show the solution
- The sum. so 2.65 mV.
- The difference. so 1.73 mV.
- Why the difference is quieter. With positive correlation the difference is quieter than the sum and, here, than the larger sensor alone: shared noise cancels. That's why differential measurements, and the driven-right-leg trick in ECGs, work.
Answer 2.65 mV of noise on the sum and 1.73 mV on the difference.
Worked example
A receiver's I and Q noise are independent with 1 mV each. Find the envelope's mean and the chance it exceeds 3 mV.
Show the solution
- The envelope's distribution. The envelope is Rayleigh with = 1 mV.
- Mean.
- Tail above 3 mV.
- Setting a threshold. A threshold detector watching the envelope needs its threshold set from the Rayleigh tail. Set from a single Gaussian's tail instead, its false-alarm rate comes out four times too high.
Answer the envelope averages 1.25 mV and exceeds 3 mV with chance 0.011.
Worked example
A GPS position error, east and north, has covariance m². Find its 1σ error ellipse and the chance the error falls within twice that ellipse.
Show the solution
- Eigenvalues. 's eigenvalues satisfy so = 4.42 and 0.579 m².
- Half-axes. The 1σ ellipse has half-axes
- Tilt. Its long axis is tilted north of east by
- Within twice the ellipse.
- Why the ellipse matters. Quoting "±2 m east, ±1 m north" separately would miss both the tilt and the true 86%.
Answer the 1σ ellipse has half-axes of 2.10 m and 0.76 m, with its long axis 19.3° north of east, and the error falls within twice that ellipse with chance 0.865.
Check
and have standard deviations 2 and 3 and correlation −0.5. What is the variance of ?
Check
I/Q noise has independent components with standard deviation 1 mV each. What's the chance its envelope exceeds 1 mV?
Check
A pair of jointly Gaussian variables is drawn many times. What fraction of the draws lands inside the ellipse ?
Check
A position error has covariance m².
(a)
What is the half-length of the 1σ ellipse's long axis?
Write units the way you normally would: 1.5 m, 1500 mm and 0.0015 km are the same answer.
(b)
And of the short axis?
Check
Build the covariance matrix C for standard deviations s1 = 1, s2 = 1 and correlation r = 0.9. Using L = np.linalg.cholesky(C) and rng = np.random.default_rng(0), draw 200 000 correlated pairs as X = (L @ rng.standard_normal((2, 200000))).T. Set Chat to their sample covariance (np.cov(X.T)), and inside to the fraction with .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Derive the variance of for two variables with standard deviations , (written sx, sy) and correlation (written r).
Step 1
Expand and use . What is it?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is the variance of ?
Check
and are uncorrelated. When can you conclude they're independent?
Explain why
Why does a differential measurement, taking the difference of two sensors, reduce noise that both sensors pick up from the same source?
Noise from a shared source appears in both sensors with the same sign, so it's positively correlated. The variance of a difference is , and a positive makes the cross term subtract: the shared part cancels and only the independent parts remain. If the two sensors see the shared noise equally and nothing else, is 1 and the difference is noise-free. The signal, meanwhile, is arranged to appear with opposite signs, so it adds in the difference.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.