A11 · Lesson 22 · Covariance and correlation
When two noises move together
A differential pair carries a signal as the difference between two wires. Interference couples into both wires, 10 mV of noise on each. If the two noises were unrelated, the difference would carry 14 mV of noise. But the wires run side by side, so the noise on them rises and falls together, and the difference carries much less. How much less depends on one number, the correlation between the two noises. It also explains when adding noisy signals helps and when it hurts.
- The shading is the joint density of two noise voltages and , each with standard deviation 1, and correlation .
- At the contours are circles. Raise : the density stretches along the line , because the two tend to move together.
- The readouts give the spread of the sum and of the difference. Which one a differential receiver uses explains why twisted pairs work.
Predict
Each wire of a differential pair picks up noise of 10 mV RMS, with correlation 0.9 between the wires. What noise is left in the difference?
About 4.5 mV. The variance of a difference is mV², so the RMS is mV. Unrelated noises would give mV; perfectly correlated ones would cancel completely. Twisting the pair raises the correlation, which is the whole point of twisting.
Name it
Covariance
It's positive when and tend to be above their means together, negative when one tends to be high while the other is low. .
Correlation
Covariance depends on units. Dividing by both standard deviations gives a pure number, the correlation coefficient:
means is exactly a straight-line function of . means uncorrelated.
Variance of sums and differences
- Sum: . Correlated noises add more than in quadrature.
- Difference: . Positively correlated noise cancels: common-mode rejection.
The root-sum-square rule of lesson 9 is the special case .
Independent versus uncorrelated
Independent variables have , because when the joint density factors. The reverse fails: correlation only measures straight-line association. With uniform on and , is completely determined by , yet . For jointly Gaussian variables, and only then in general, uncorrelated does mean independent.
Worked example
Two sensors read the same temperature. Each has noise of 0.2 °C RMS, and their noises have correlation 0.3 (they share a power supply). How noisy is their average?
Show the solution
- Variance of the average. so the RMS is 0.161 °C.
- Compare with uncorrelated sensors. They would give
- Why. The shared noise doesn't average away.
Answer their average has 0.161 °C RMS of noise, against 0.141 °C for uncorrelated sensors.
Worked example
has mean 2 and has mean 3, with , and . Find the covariance and correlation.
Show the solution
- Covariance. Subtract the product of the means from :
- Correlation. Divide by the two standard deviations:
Answer the covariance is 1 and the correlation 0.5.
Worked example
Two sensors each have 0.2 °C of noise, with correlation 0.5. How noisy is the difference of their readings?
Show the solution
- Variance of the difference. so the difference has 0.2 °C of noise, the same as either sensor alone.
- Why. Positive correlation helps differences and hurts sums: common-mode noise cancels when you subtract, which is why differential measurements are used.
Answer the difference has 0.2 °C of noise, the same as either sensor alone.
Check
= 7, = 2 and = 4. What is ?
Check
= 0.5, = 1 and = 3. What is the correlation coefficient?
Check
Noises with RMS 3 and 2 mV and correlation −0.5 add. What is the RMS of the sum?
Check
Both wires of a differential pair pick up 5 mV RMS of noise, with correlation 0.8. How much noise is in the difference?
Check
and are independent with standard deviations 2 and 3. What is the standard deviation of ?
Check
and have zero covariance. What follows?
Check
Two sensors each have noise 0.1 with correlation 0.3.
(a)
What is the noise of their difference?
(b)
What is the noise of their average?
Check
and have means and and .
Step 1
What is their covariance?
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°.
Explain why
Why does a differential receiver reject noise that couples equally into both wires?
The receiver outputs the difference of the two wire voltages. Noise that couples into both wires alike shows up as nearly the same voltage on each, so the two noises are strongly positively correlated. The variance of a difference is , and a large positive covariance cancels most of the two variances. The signal, by contrast, is driven in opposite directions on the two wires, so it doubles in the difference.
Practice
Keep practicing
9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.