Analyst Dojo
Lesson 6 of 6 6–9% of the exam

You are reading the 2026 curriculum (exams up to November 2026). Sitting in February 2027 or later? Go to the 2027 Quantitative Methods guide.

Covariance and correlation

Covariance measures whether two variables move together, but its size depends on their units. Correlation scales it: r = covariance ÷ (sₓ × s_y), always between −1 and +1. It captures linear association only, can be distorted by outliers, and never proves causation.

6 min cram, 24 min full read. Based on the 2026 CFA® Program Level I curriculum, Quantitative Methods, Learning Module 3. This is the 2026 version of the lesson. Sitting in February 2027 or later? Read the updated 2027 version.

Tailor this to you: take the self-assessment

Before this: Range, mean absolute deviation, variance and standard deviation

On the exam

  • Interpret correlation between two variables to address an investment problem

Interpret the correlation between two variables. Expect r from a covariance and two standard deviations, a scatter plot to read, and a limitation to spot: nonlinearity, an outlier or a spurious correlation.

How deeply to learn each part
Know the idea
Understand it in general. It frames other topics, but you will not calculate with it.
Use it
Understand it well enough to solve a question with it. Recognize when it applies.
Memorize
Learn it by heart. The exam will not give it to you.

You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.

You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.

Cram mode: the one-screen version of this lesson. Switch to Full for the explanations, worked examples and interactives.

How do you measure whether two returns move together?

Start with a picture. A scatter plot puts one variable on each axis, one dot per pair of observations. An upward drift means they tend to rise together, a downward drift means they move opposite ways, and a shapeless cloud means no clear pattern.

The sample covariance puts a number on that drift. For each pair, multiply how far X is above its mean by how far Y is above its mean, then average, using n − 1.

Sample covariance Memorize
sxy=∑i=1n(Xi−Xˉ)(Yi−Yˉ)n−1s_{xy} = \frac{\sum_{i=1}^{n} (X_i - \bar{X})(Y_i - \bar{Y})}{n - 1}

Covariance is positive when the variables tend to be above or below their means together, and negative when one is above while the other is below. Its size, though, depends on the units, so it cannot tell you how strong the link is.

How does correlation fix the size problem?

The sample correlation coefficient divides the covariance by the product of the two standard deviations. The units cancel, and the result lies between −1 and +1.

Sample correlation coefficient Memorize
r=sxysx syr = \frac{s_{xy}}{s_x\, s_y}

Correlation of +1 means the dots lie on an upward-sloping straight line, −1 on a downward-sloping one, and 0 means there is no straight-line pattern.

Often the exam hands you the covariance and the standard deviations instead.

Rearrange itCorrelation: solve for r, the covariance or a standard deviation
The question asks for
Two assets have a covariance of returns of 0.0024 and standard deviations of 8.00% and 5.00%. Their correlation is closest to:

0.0024 ÷ (0.08 × 0.05) = 0.6

Correlation, r0.6

On your calculator
  1. 0.0024÷(0.08×0.05)=
  1. 0.0024ENTER0.08ENTER0.05×÷

ENTER enter (on the HP, puts the number on the stack)

InteractiveDrag the points: what correlation sees, and what fools it

Try this 0 of 3

  • Load “One outlier” and drag the ringed point until r reaches 0.60 or more.
  • Load the U-shape and show the straight line: r is about 0, yet Y clearly depends on X.
  • Switch to returns as decimals and compare covariance and r with the percent version.

Worked example: 4 pairs, covariance 3.33 (%²), correlation r = 0.85, a strong positive straight-line relation. Correlation measures straight-line association only, and a single extreme point can change it.

04812Return on Y (%)04812Return on X (%)

Drag a point, or focus it and use the arrow keys.

  • Pair of returns
Correlation r0.85
Covariance3.33 (%²)
Std dev of X · Y2.16% · 1.83%
Pairs n4
Show
Show working

Means: X̄ = 2.00, Ȳ = 2.00 (n = 4).

Deviations X: 0.00, 2.00, −3.00, 1.00; Y: −1.00, 1.00, −2.00, 2.00.

Cross-products: 0.00 + 2.00 + 6.00 + 2.00 = 10.00.

Covariance = 10.00 ÷ (4 − 1) = 3.33.

sₓ = √(14.00 ÷ 3) = 2.1602; s_y = √(10.00 ÷ 3) = 1.8257.

r = 3.33 ÷ (2.1602 × 1.8257) = 0.8452: a strong positive straight-line relation.

r on your calculator (two-variable statistics)
  1. 2NDDATA2NDCLR WORKclear old data
  2. 2ENTER↓1ENTER↓X01, Y01
  3. 4ENTER↓3ENTER↓X02, Y02
  4. 1+|-ENTER↓0ENTER↓X03, Y03
  5. 3ENTER↓4ENTER↓X04, Y04
  6. 2NDSTATpress 2ND SET until LIN shows
  7. ↓↓↓↓↓↓↓↓a = 0.5714 (intercept)
  8. ↓b = 0.7143 (slope)
  9. ↓r = 0.8452

2ND second function (the shifted label above a key) · DATA data worksheet · CLR WORK clear the worksheet · ENTER enter (on the HP, puts the number on the stack) · +|- change sign · STAT statistics worksheet

  1. fCLEAR Σ
  2. 1ENTER2Σ+Y first, then X
  3. display1
  4. 3ENTER4Σ+Y first, then X
  5. display2
  6. 0ENTER1CHSΣ+Y first, then X
  7. display3
  8. 4ENTER3Σ+Y first, then X
  9. display4
  10. 0gŷ,rSTO7a = 0.5714 (intercept: ŷ at x = 0
  11. storeitinR7,sinceΣ+keepsnandthesumsinR1toR6)
  12. x≷yr = 0.8452
  13. 1gŷ,rRCL7−b = 0.7143 (slope: ŷ at x = 1 minus ŷ at x = 0)

f gold shift key · CLEAR Σ clear the statistics registers · ENTER enter (on the HP, puts the number on the stack) · Σ+ add a data point · CHS change sign · g blue shift key · ŷ,r estimated y and correlation · STO store · x≷y swap the last two numbers · RCL recall a stored number

Display: b₀ 0.5714, b₁ 0.7143, r 0.8452

Correlation sees straight lines only, and one point can fool it.

Drag a point and watch r and the covariance. Try the U-shape preset, then the One outlier preset.

Exam tip Rearranged, covariance = r × sₓ × s_y. Keep standard deviations as decimals (8% is 0.08) when the covariance is a decimal.

What are the limits of correlation?

A correlation is a summary of a straight-line pattern. Before relying on it, check four things.

What a correlation cannot tell you
Correlation coefficient rbetween −1 and +1, no units
  • Reading r Memorize +1 upward line, −1 downward line, 0 no linear pattern
  • Limitations Use it check these before trusting r
    • Linear only a strong curve can give r near 0
    • Outliers one point can create or hide correlation
    • Spurious correlation chance, or a hidden third variable
    • Not causation association says nothing about cause
LimitationWhat happensExample
Nonlinear relationr near 0 despite a strong relationAn option’s payoff against the share price around the strike
Outlier One point creates or hides correlationA single crash month
Spurious correlation Chance, or a hidden third variableIce-cream sales and sunburn cases, both driven by summer
Not causationAssociation onlyA high r never shows which variable moves the other
Go deeper Why covariance has such awkward units

Covariance multiplies two deviations, so for two return series its unit is percent times percent, or %². That is why a covariance of 0.0024 tells you nothing until you set it against the two standard deviations. It is also why you should never compare covariances across asset pairs with different volatilities: a bigger covariance may only mean the assets are more volatile.

Go deeper Where this goes next

Correlation is the input that makes diversification work: the lower the correlation between assets, the more portfolio risk falls (portfolio mathematics). Whether a sample correlation is statistically different from zero is a hypothesis test (tests of independence), and the square of the correlation between two variables is the R² of a simple regression.

Memorize this

MemorizeCorrelation at a glance

rScatter plotMeaning
+1points on an upward lineperfect positive linear link
0no straight-line patternno linear link (curves possible)
−1points on a downward lineperfect negative linear link

Memory hook Correlation is covariance with the units divided out: that is why it is stuck between −1 and +1.

Know it cold r=sxy÷(sxsy)r = s_{xy} \div (s_x s_y), so sxy=r sxsys_{xy} = r\,s_x s_y. Sample covariance divides by n−1n - 1.

What a correlation cannot tell you
Correlation coefficient rbetween −1 and +1, no units
  • Reading r Memorize +1 upward line, −1 downward line, 0 no linear pattern
  • Limitations Use it check these before trusting r
    • Linear only a strong curve can give r near 0
    • Outliers one point can create or hide correlation
    • Spurious correlation chance, or a hidden third variable
    • Not causation association says nothing about cause
Sample covariance Memorize
sxy=∑i=1n(Xi−Xˉ)(Yi−Yˉ)n−1s_{xy} = \frac{\sum_{i=1}^{n} (X_i - \bar{X})(Y_i - \bar{Y})}{n - 1}
Quick example

Cross-products of the deviations add to 10 over n = 4 pairs. 10 ÷ (4 − 1) = 3.33 (%²).

On your calculator
  1. 10÷(4−1)= 3.33
  1. 10ENTER4ENTER1−÷ 3.33

ENTER enter (on the HP, puts the number on the stack)

Sample correlation coefficient Memorize
r=sxysx syr = \frac{s_{xy}}{s_x\, s_y}
Quick example

Covariance 0.0045, standard deviations 15% and 10%. r = 0.0045 ÷ (0.15 × 0.10) = 0.30.

On your calculator
  1. 0.0045÷(0.15×0.1)= 0.3
  1. 0.0045ENTER0.15ENTER0.1×÷ 0.3

ENTER enter (on the HP, puts the number on the stack)

How it is asked

  1. Correlation from covariance

    Covariance 0.0024, standard deviations 8% and 5%. Correlation?

    0.0024 ÷ (0.08 × 0.05) = 0.60. Traps: 0.38 (÷ variance of X), 0.02 (÷ sum of the standard deviations).

  2. U-shaped scatter with r near 0

    A clear U-shape in the scatter plot, correlation 0.02. Conclusion?

    Any relationship is not linear. Not "unrelated".

  3. Two series that rise together for no reason

    Umbrella sales and taxi rides are highly correlated.

    Spurious correlation, driven by a third variable (rain). Not causation.

Exam traps

  • Reading r = 0 as 'no relationship' rather than 'no linear relationship'.
  • Inferring causation from a high correlation.
  • Comparing covariances across pairs of assets with different volatilities. Compare correlations instead.
  • Forgetting that one outlier can swing r from near 0 to high.

Checkpoint

5 exam-style questions. About 90 seconds each.

  1. 1Two assets have a covariance of returns of 0.0024 and standard deviations of 8% and 5%. Their correlation is closest to:

  2. 2A scatter plot shows a clear U-shaped pattern between two variables and a correlation of 0.02. The analyst should most appropriately conclude that:

  3. 3Monthly sales of umbrellas and of taxi rides are highly correlated. This is most likely an example of:

  4. 4Two assets have a correlation of −0.40, and their standard deviations are 5% and 10%. The covariance of their returns is closest to:

  5. 5An analyst finds that adding a single extreme month to a data set raises the correlation between two return series from 0.1 to 0.7. The analyst should most appropriately conclude that:

Key takeaways

  • r = covariance ÷ (sₓ × s_y), between −1 and +1, with no units.
  • Correlation measures linear association only.
  • Outliers, nonlinearity and hidden variables can mislead.
  • Correlation is not causation.
Sample covariance Memorize
sxy=∑i=1n(Xi−Xˉ)(Yi−Yˉ)n−1s_{xy} = \frac{\sum_{i=1}^{n} (X_i - \bar{X})(Y_i - \bar{Y})}{n - 1}
Quick example

Cross-products of the deviations add to 10 over n = 4 pairs. 10 ÷ (4 − 1) = 3.33 (%²).

On your calculator
  1. 10÷(4−1)= 3.33
  1. 10ENTER4ENTER1−÷ 3.33

ENTER enter (on the HP, puts the number on the stack)

Sample correlation coefficient Memorize
r=sxysx syr = \frac{s_{xy}}{s_x\, s_y}
Quick example

Covariance 0.0045, standard deviations 15% and 10%. r = 0.0045 ÷ (0.15 × 0.10) = 0.30.

On your calculator
  1. 0.0045÷(0.15×0.1)= 0.3
  1. 0.0045ENTER0.15ENTER0.1×÷ 0.3

ENTER enter (on the HP, puts the number on the stack)

Questions about this lesson?

Where this comes back

Questions candidates ask

What is the difference between covariance and correlation?

Both show whether two variables move together. Covariance is in the product of their units (%² for two returns), so its size is hard to interpret. Correlation divides covariance by the two standard deviations, so it is unit-free and always between −1 and +1.

Does zero correlation mean no relationship?

No. It means no linear relationship. Two variables can have a strong curved relationship, such as a U-shape, and still show a correlation near zero. Look at a scatter plot as well as the number.

What is spurious correlation?

A correlation that appears by chance or because both variables respond to a hidden third variable. Ice-cream sales and sunburn cases both rise in summer. They are correlated, but neither causes the other. A high correlation alone never proves a causal link.

Spotted an error? Tell us and we will fix it.

  1. Mean, median, mode and what outliers do to them
  2. Quartiles, percentiles and box plots
  3. Range, mean absolute deviation, variance and standard deviation
  4. Downside deviation and coefficient of variation
  5. Skewness and kurtosis
  6. Covariance and correlation

Ask Sensei Listen instead

Questions on Covariance and correlation

Learn with Sensei, out loud The voice tutor, in early access

Sensei teaches the lesson aloud and stops when you interrupt: "wait, why is the geometric mean lower?" It answers with the lesson's own example, then quizzes you by voice. Every account can try Sensei on one module, with one voice question.

USD 149 a month founding price (regular USD 199), kept for as long as you stay subscribed. Everything in Plus included.

In active development and improving every day. Send feedback · Plans and pricing

Analyst Dojo Plus

Your free review list holds 10 items.

Plus keeps everything you save, for USD 19 a month. To make room on the free plan, remove something from your review list.

See Plus

Lessons, checkpoints and the lesson questions in practice stay free. Compare plans