4.9.12 · D5Probability Theory & Statistics

Question bank — Covariance and correlation

1,178 words5 min readBack to topic

Two shorthands used below (both defined in the parent note):

  • — the average product of deviations from the mean.
  • — that same quantity ==put on a leash== by dividing out both standard deviations .

True or false — justify

If then and are independent.
False. only kills linear co-movement; a symmetric quadratic link like (with symmetric about 0) has yet is fully determined by . See Independence of Random Variables.
If are independent then .
True. Independence gives , so . The arrow runs only this direction, never back.
A covariance of means a stronger relationship than a covariance of .
False. Covariance carries units and scales with the variables' magnitudes; vs aren't comparable. Only the unitless measures strength.
can be negative.
False. ; a variable always "agrees" perfectly with itself.
means the data points lie exactly on a straight line.
True. is the equality case of Cauchy–Schwarz, which forces exactly; means positive slope, negative. See Cauchy–Schwarz Inequality.
Multiplying by flips the sign of the correlation but not its magnitude.
True. ; the factor cancels in numerator and denominator, only the sign of survives.
always.
False. It equals ; the identity only holds when (e.g. under independence).
Correlation of between ice-cream sales and drownings proves ice cream causes drowning.
False. Correlation is not causation; a lurking common cause (hot summer weather) can drive both variables up together with no direct link.
Adding a constant to every value of changes .
False. Covariance ignores location: because the shift cancels inside the deviation .
means of the points show the trend.
False. is not a percentage of points; it is a scaled average of deviation products. The "variance explained" quantity is , and even that is not a count of points. See Linear Regression.

Spot the error

"."
Wrong. Shifts contribute nothing: the correct value is . The constants vanish by bilinearity.
"Since , covariance also lives in ."
Wrong. Only is bounded (it's the rescaled version). Covariance is unbounded and can be any real number, positive or negative, of any magnitude.
" have , so ."
Wrong. Variance never subtracts: , and with that's — a sum.
" is weaker than because it's negative."
Wrong. Strength is ; both and are perfectly linear. The sign only says which direction (opposite vs same), not how strong.
"They computed ."
Wrong. The subtracted term is the product of the means, not their difference: .
" for this dataset."
Wrong. Impossible: forces . A value above signals an arithmetic error, likely dividing by a wrong .

Why questions

Why do we multiply the two deviations instead of, say, adding them?
Multiplication is the cheapest operation that returns when both deviations share a sign (agreement) and when they differ (disagreement); adding would just recover the separate means and lose the co-movement.
Why divide covariance by to get correlation?
To strip out units and scale, so relationships in kg·cm and rupees·seconds become comparable; the division caps the result in by Cauchy–Schwarz.
Why does the Cauchy–Schwarz proof start from ?
A squared quantity is never negative for any , so this quadratic-in- can never dip below zero, forcing its discriminant — exactly the inequality . See Cauchy–Schwarz Inequality.
Why is covariance called a generalisation of variance?
Setting collapses the definition to ; variance is just covariance of a variable with itself. See Variance and Standard Deviation.
Why can independence force but cannot force independence?
Independence controls the whole joint distribution ( and much more), while covariance only inspects the linear/first-moment co-movement — a narrow slice that can be zero while nonlinear dependence survives.
Why does correlation ignore how big the swings are?
Because dividing by each normalises each variable to its own spread, leaving only how well they match, not how far they move.
Why is preferred over when comparing two different relationships?
changes if you merely rescale units (multiply by 1000 and it jumps 1000×), whereas is scale-invariant, so it isolates genuine strength.

Edge cases

What is when is a constant (say always)?
Undefined. A constant has , so we'd divide by zero; also since a constant never deviates. There is simply no linear trend to measure.
What is if the entire distribution sits at a single point ?
Zero (in fact degenerate): both deviations are always , and both variances are , so covariance is and is undefined.
If exactly, what are 's sign and ?
(perfect negative linear); , negative because the slope is negative and .
Can while the two variables live on wildly different scales (heights in mm vs km)?
Yes. is scale-invariant, so a perfect line gives regardless of units — only the sign of the slope matters.
For symmetric (say uniform on ) and , is ?
Yes, , yet is fully determined by . Like , the dependence is symmetric and nonlinear, so it's invisible to covariance.
What does become in the extreme with ?
— the two variables cancel perfectly, so their sum is a constant with no spread.
If you scale by a factor , what happens to versus ?
blows up like , while stays fixed — the cancels between numerator and .

Connections