A1123 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 σ1, σ2 and correlation ρ. The curve is the 2σ ellipse, 𝐱TC−1𝐱=4, 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, I2+Q2, exceed 3 mV?

Name it

The covariance matrix

For a random vector 𝐗=(X1,…,Xn) with mean 𝝁, the covariance matrix is Cij=Cov(Xi,Xj): 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:

Var(𝐚T𝐗)=𝐚TC𝐚≥0

For two variables, Var(aX+bY)=a2σX2+b2σY2+2abρσXσY.

Jointly Gaussian vectors

𝐗 is jointly Gaussian when every weighted sum 𝐚T𝐗 is Gaussian. Then:

  • 𝝁 and C say everything about it;
  • a linear transform 𝐘=A𝐗+𝐛 is jointly Gaussian with mean A𝝁+𝐛 and covariance ACAT;
  • uncorrelated means independent, which is false for variables that aren't jointly Gaussian.

Making and undoing correlation

Factor C=LLT (Cholesky). If 𝐙 holds independent standard Gaussians, 𝐗=𝝁+L𝐙 has covariance C: that's how simulations make correlated noise. Running it backward, L−1(𝐗−𝝁) whitens it: independent, unit variance.

Ellipses

The density is constant on the ellipses (𝐱−𝝁)TC−1(𝐱−𝝁)=k2. Their axes point along C's eigenvectors, with half-lengths kλi. In two dimensions the chance of landing inside is 1−e−k2/2: 39% inside k=1, 86% inside k=2, 99% inside k=3.

The envelope: Rayleigh and Rice

If I and Q are independent, each N(0,σ2), the envelope R=I2+Q2 has

P(R>r)=e−r2/2σ2E[R]=σπ/2

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
  1. The sum. Var(X+Y)=1+4+2(0.5)(1)(2)=7mV2 so 2.65 mV.
  2. The difference. Var(X−Y)=1+4−2=3mV2 so 1.73 mV.
  3. 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
  1. The envelope's distribution. The envelope is Rayleigh with σ = 1 mV.
  2. Mean. E[R]=π/2mV=1.25mV
  3. Tail above 3 mV. P(R>3 mV)=e−9/2=0.011
  4. 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 C=[41.21.21] m². Find its 1σ error ellipse and the chance the error falls within twice that ellipse.

Show the solution
  1. Eigenvalues. C's eigenvalues satisfy λ2−5λ+2.56=0 so λ = 4.42 and 0.579 m².
  2. Half-axes. The 1σ ellipse has half-axes 4.42=2.10m 0.579=0.76m
  3. Tilt. Its long axis is tilted north of east by 12arctan⁡2(1.2)4−1=19.3∘
  4. Within twice the ellipse. 1−e−2=0.865
  5. 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

X and Y have standard deviations 2 and 3 and correlation −0.5. What is the variance of 2X+−1Y?

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 𝐱TC−1𝐱=1.52?

Check

A position error has covariance [4114] 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 𝐱TC−1𝐱<4.

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 X+Y for two variables with standard deviations σX, σY (written sx, sy) and correlation ρ (written r).

Step 1

Expand E[(X−μX+Y−μY)2] and use Cov(X,Y)=ρσXσY. 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°.

Check

X and Y 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?

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.