LearnViz Math
Expert 📊 Probability & Statistics Topic 66 of 98

Covariance

How two variables vary together.

Key idea

How two variables vary together.

In depth

Cov(X, Y) = E[(X − μₓ)(Y − μᵧ)] measures whether variables move together. Positive means they rise together; negative means opposite. Scaling by SDs gives the correlation.

Worked example

X and Y = 2X have covariance 2Var(X) > 0.

Formula

Cov(X,Y) = E[XY] − E[X]E[Y]

Real-world uses

Common mistake

Reading covariance size without scale, and treating zero covariance as independence.

How to learn this

  1. Read the key idea and say it in your own words.
  2. Work through the worked example, then try a similar problem.
  3. Use the interactive lesson’s visual and mini-quiz to check the pattern.

Frequently asked questions

What is Covariance?

How two variables vary together. It is a topic at the expert level in Probability & Statistics.

What is the formula for Covariance?

The key formula is Cov(X,Y) = E[XY] − E[X]E[Y].

Where is Covariance used in real life?

Real-world examples: Measuring whether two stock prices tend to move together when building a portfolio.

What should I learn before Covariance?

Make sure you are comfortable with Joint and Marginal Distributions, the previous topic in Probability & Statistics.

What is a common mistake with Covariance?

Reading covariance size without scale, and treating zero covariance as independence.

How can I practise Covariance?

Open the interactive lesson, play with the visual, then answer the three-question mini-quiz. Getting two right marks the topic complete.

What comes after Covariance?

Move on to Law of Large Numbers next.

Related expert topics in Probability & Statistics