Exam PMultivariate probabilityFree to read

Covariance, correlation and sums

Covariance measures joint movement, correlation rescales it to [−1, 1], and the variance of a sum is where both actually get used.

The formulas

Covariance
Cov⁡(X,Y)=E[XY]−E[X]E[Y]\operatorname{Cov}(X,Y) = E[XY] - E[X]E[Y]
Correlation
ρ=Cov⁡(X,Y)σXσY,−1≤ρ≤1\rho = \dfrac{\operatorname{Cov}(X,Y)}{\sigma_X\sigma_Y}, \quad -1 \le \rho \le 1
Variance of a sum
Var⁡(aX+bY)=a2σX2+b2σY2+2abCov⁡(X,Y)\operatorname{Var}(aX+bY) = a^{2}\sigma_X^{2} + b^{2}\sigma_Y^{2} + 2ab\operatorname{Cov}(X,Y)
Bilinearity
Cov⁡(aX+b, cY+d)=acCov⁡(X,Y)\operatorname{Cov}(aX+b,\,cY+d) = ac\operatorname{Cov}(X,Y)
Independence
X⊥Y⇒Cov⁡(X,Y)=0X \perp Y \Rightarrow \operatorname{Cov}(X,Y)=0

the converse is false

Where it comes from

  1. Expanding E[(X−μX)(Y−μY)]E[(X-\mu_X)(Y-\mu_Y)] and using linearity gives E[XY]−μXμYE[XY] - \mu_X\mu_Y.
  2. Dividing by σXσY\sigma_X\sigma_Y makes the measure scale-free, and Cauchy-Schwarz forces ∣ρ∣≤1|\rho|\le 1.
  3. Var⁡(X+Y)=Cov⁡(X+Y,X+Y)\operatorname{Var}(X+Y) = \operatorname{Cov}(X+Y, X+Y), and bilinearity expands it into the three-term formula.

Worked example

Two claim severities have variances 25 and 36 and covariance 12. Find the correlation coefficient.

  1. σX=25=5\sigma_X = \sqrt{25} = 5 and σY=36=6\sigma_Y = \sqrt{36} = 6.
  2. ρ=Cov⁡(X,Y)σXσY=125×6\rho = \dfrac{\operatorname{Cov}(X,Y)}{\sigma_X\sigma_Y} = \dfrac{12}{5 \times 6}.
  3. ρ=0.40\rho = 0.40.
  4. Note the covariance had to be divided by STANDARD deviations, not variances.

Answer: 0.40

This answer is recomputed from the site’s own interest-theory and probability functions every time the test suite runs, so the page and the mathematics cannot drift apart.

Memory hooks

  • For a DIFFERENCE the cross term is −2ab·Cov. Subtracting flips the sign, not the variance terms.
  • Zero correlation does not mean independent - the standard counterexample is Y = X² with X symmetric about 0.

Traps

  • Dividing the covariance by the variances instead of the standard deviations.
  • Dropping the covariance term when the variables are merely uncorrelated in the question's wording but not stated independent.

Related

Drill this: the Exam P question bank has original questions on this topic, and today’s free round is open to everyone.