Skip to content
Probability, Statistics and Financial Data / Multivariate and Derived Distributions

Covariance and Correlation

A portfolio risk calculation needs the covariances between its asset returns. This lesson derives covariance, correlation and the variance of a sum. It proves that independence implies zero covariance, then shows why the converse fails. A dependent-indicator example develops the same accounting used in joint portfolio-return calculations.
Learning objectives. By the end of this note you should be able to:
  • compute covariance from its definition and from the shortcut formula E[XY]−E[X]E[Y]\mathbb{E}[XY]-\mathbb{E}[X]\mathbb{E}[Y];
  • prove independence implies zero covariance, and produce a counterexample to the converse;
  • state and apply the general variance-of-a-sum formula, including for a sum of dependent indicator variables;
  • compute and interpret the correlation coefficient, including the perfect-correlation (ρ=±1\rho=\pm1) case.

In this lesson

  1. Covariance
  2. Variance of a sum — the general (dependent) case
  3. Correlation

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Probability, Statistics and Financial Data syllabus.