Statistics
Foundations
9 min

Mean, Variance and Covariance

The core summary statistics of a distribution: variance measures spread, covariance measures co-movement, correlation normalizes it.

1. The idea

Variance measures how spread out a random variable is around its mean: . The second form is usually faster to compute because it avoids centering first.

Covariance extends this to two variables: measures whether and tend to move together (positive), oppositely (negative), or show no linear relationship (zero).

Correlation rescales covariance to lie in , making it comparable across variables measured in different units.

2. Why it matters

Variance and covariance are the building blocks of portfolio risk, regression, and every statistical test asked about in research-oriented interviews.

3. Core mathematics

Variance (computational form)

Covariance

Correlation

Variance of a sum

Independence special case

4. How to recognize it

Think of this when…

  • The problem asks for variance, standard deviation, or 'spread' of a quantity
  • You need Var(X+Y) for dependent variables — covariance term cannot be dropped
  • Portfolio risk or hedge ratio questions involving two or more assets
  • You're asked whether zero correlation implies independence (it does not, in general)

5. Worked example

Worked example

Two assets have , , and . Find and the correlation .

  1. 1

    Apply the variance-of-a-sum formula.

  2. 2

    Compute standard deviations: , .

  3. 3

    Divide covariance by the product of standard deviations.

  4. Answer: ,

6. Common mistakes

  • Forgetting the cross term when computing variance of a sum
  • Assuming zero covariance implies independence — it only rules out a linear relationship
  • Using without subtracting the covariance term (it should be minus )
  • Confusing covariance's units (product of the two variables' units) with correlation's unitless scale

7. Quick check

If X and Y are independent with Var(X)=2 and Var(Y)=5, what is Var(X−Y)?

Does Cov(X,Y) = 0 imply X and Y are independent?

8. Practice

24 QuantSolve questions use this concept.

Practice this concept

9. Related methods