Analyst Dojo
Lesson 2 of 8 11–14% of the exam

Unconditional expected value, variance and standard deviation

The unconditional mean, or expected value, weights each outcome by its probability: E[X] = Σ x × P(x). The variance is E[X²] − (E[X])², the probability-weighted squared distance from the mean, and the standard deviation is its square root. Probabilities do the averaging, so there is no n − 1.

6 min cram, 26 min full read. Based on the 2027 CFA® Program Level I curriculum, Quantitative Methods, Learning Module 6. Sitting in November 2026? The 2026 version of this lesson is still available.

Tailor this to you: take the self-assessment

Watch the lesson 19 min

This lesson's video is for Plus members. The written lesson below is free, as always.

See Plus

Before this: Random variables and distribution functions, Statistical Characteristics of Asset Returns

On the exam

  • Calculate, interpret, and evaluate unconditional expected values for mean, variance, and covariance

Calculate, interpret and evaluate the unconditional mean, variance and standard deviation of a random variable from its probabilities. Expect a three- or four-scenario table where the simple average, the variance instead of the standard deviation, or E[X²] without subtracting (E[X])² are answer options.

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.

What is an expected value?

The unconditional mean of a random variable (also called the unconditional expectation, or simply the expected value) is the probability-weighted average of its possible outcomes. Take each outcome, multiply by its probability, and add. “Unconditional” means it is computed over all outcomes, without assuming that any particular scenario has happened. The contrast, a forecast given a scenario, comes in Lesson 6. The mean looks forward: it is a forecast built from a probability distribution , a list of outcomes with the probability of each, summing to 1. Laying out the outcomes as a short table of scenarios, such as recession, normal and boom, is scenario analysis .

Expected value Memorize
E[X]=P(x1) x1+P(x2) x2+⋯+P(xn) xn=∑i=1nP(xi) xiE[X] = P(x_1)\,x_1 + P(x_2)\,x_2 + \cdots + P(x_n)\,x_n = \sum_{i=1}^{n} P(x_i)\,x_i
Rearrange itExpected value: solve for E[X] or for a missing outcome
The question asks for
A forecast gives −12% with probability 0.25, 8% with probability 0.5 and 20% with probability 0.25. The expected value is closest to:

0.25 × (−12) + 0.5 × 8 + 0.25 × 20 = 6.00%

Expected value, E[X]6.00%

On your calculator
  1. 0.25×12+|-+(0.5×8)+(0.25×20)=

+|- change sign

  1. 0.25ENTER12CHS×0.5ENTER8×+0.25ENTER20×+

ENTER enter (on the HP, puts the number on the stack) · CHS change sign

The 6% is a balance point: if the outcomes were weights on a seesaw, the board would balance at 6. It is not the return you should expect in any one year. No scenario returns exactly 6%.

Exam tip On the BA II Plus in chain mode, wrap each product in brackets after the first one. Otherwise 0.25 × 12 + 0.5 is evaluated before the 0.5 is multiplied.

How do you measure how uncertain a forecast is?

The unconditional variance is the probability-weighted average of the squared deviations from the expected value. The unconditional standard deviation is its square root, in the same units as the outcomes, so it is the figure to quote.

Variance of a forecast Memorize
Var(X)=σX2=∑i=1nP(xi) [xi−E[X]]2\mathrm{Var}(X) = \sigma_X^2 = \sum_{i=1}^{n} P(x_i)\,[x_i - E[X]]^2

There is a faster equivalent that needs no deviations. Square each outcome, weight it by its probability, add, and subtract the squared mean. The deviation form shows what variance means; the shortcut is quicker on a table with many scenarios.

Variance shortcut Memorize
Var(X)=E[(X−E[X])2]=E[X2]−(E[X])2\mathrm{Var}(X) = E\big[(X - E[X])^2\big] = E[X^2] - (E[X])^2
Standard deviation of a forecast Memorize
σX=Var(X)\sigma_X = \sqrt{\mathrm{Var}(X)}
Rearrange itVariance and standard deviation of a forecast: solve for either
The question asks for
A forecast gives −12% (probability 0.25), 8% (0.5) and 20% (0.25), with an expected value of 6.00%. The variance, in %², is closest to:

0.25 × (−12 − 6)² + 0.5 × (8 − 6)² + 0.25 × (20 − 6)² = 132 (%²)

Variance (in %²)132

On your calculator
  1. (12+|-−6)x²×0.25+((8−6)x²×0.5)+((20−6)x²×0.25)=

+|- change sign · x² square

  1. 12CHSENTER6−ENTER×0.25×8ENTER6−ENTER×0.5×+20ENTER6−ENTER×0.25×+

CHS change sign · ENTER enter (on the HP, puts the number on the stack)

InteractiveExpected value: where the scenarios balance

Try this 0 of 3

  • Show the equal-weighting trap and compare it with E[R]
  • Change only the boom outcome until the expected return is 8%
  • Keep E[R] at 6% but bring the standard deviation below 8%
−1σ+1σ−20%−10%0%10%20%30%0.25−12%0.58%0.2520%E = 6.00%

Each block sits at its outcome; its height is its probability. The triangle is the balance point, E[X]. The shaded band runs from one standard deviation below it to one above.

Expected return, E[R]6.00%
Variance, Var(R)132.00 (%²)
Standard deviation, σ11.49%
Boom: distance from E[R], in σ+1.22σ

The beam balances at 6.00%. Recession adds the most to the variance (61% of it); a typical miss from the balance point is about 11.49 percentage points.

Show working

E[R] = 0.25 × (−12) + 0.5 × 8 + 0.25 × 20 = (−3) + 4 + 5 = 6.00%.

Shortcut: E[R²] = 0.25 × (−12)² + 0.5 × 8² + 0.25 × 20² = 36 + 32 + 100 = 168; Var(R) = E[R²] − (E[R])² = 168 − 6² = 168 − 36 = 132.00 (%²).

Deviations from E[R]: −18, +2, +14.

Deviation form: Var(R) = 0.25 × (−18)² + 0.5 × 2² + 0.25 × 14² = 81 + 2 + 49 = 132.00 (%²).

σ = √132.00 = 11.49%.

Boom: (x − E[R]) ÷ σ = (20 − 6) ÷ 11.49 = 1.22, so 1.22 standard deviations above E[R].

These are forecasts, so the probabilities are the weights: no n − 1 anywhere.

Expected value and σ on your calculator
  1. 2NDDATA2NDCLR WORKclear old data
  2. 12+|-ENTER↓25ENTER↓X01, Y01 = probability × 100
  3. 8ENTER↓50ENTER↓X02, Y02 = probability × 100
  4. 20ENTER↓25ENTER↓X03, Y03 = probability × 100
  5. 2NDSTATpress 2ND SET until 1-V shows
  6. ↓n = 100, the sum of the weights
  7. ↓X̄ = 6.00, the expected value
  8. ↓Sx: ignore it, it divides by n − 1
  9. ↓σx = 11.49, the standard deviation
  10. x²132.00, the variance

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

  1. fCLEAR Σ
  2. 12CHSENTER0.25Σ+outcome, then its probability
  3. 8ENTER0.5Σ+outcome, then its probability
  4. 20ENTER0.25Σ+outcome, then its probability
  5. gx̄w6.00, the expected value
  6. 18CHSENTER×0.25×2ENTER×0.5×+14ENTER×0.25×+132.00, the variance
  7. g√x11.49, the standard deviation

f gold shift key · CLEAR Σ clear the statistics registers · CHS change sign · ENTER enter (on the HP, puts the number on the stack) · Σ+ add a data point · g blue shift key · x̄w weighted mean · √x square root

On the TI the probabilities go in as whole-number frequencies (× 100); read σx, not Sx. The HP 12C has no weighted standard deviation, so the variance is summed term by term.

The expected value is a balance point, weighted by how likely each outcome is.

Drag a probability up and watch the balance point move toward its outcome. Spread the outcomes apart and the shaded band widens even though the expected value does not change.

Why is there no n − 1 here?

In Learning Module 5 (Statistical Characteristics of Asset Returns) the data were past returns, so the mean was estimated from the sample and the deviations were averaged with n − 1. Here nobody has estimated anything from a sample. The probabilities are your forecast of how often each outcome occurs, and they already do the averaging.

Historical data (Learning Module 5)Forecast with probabilities (this lesson)
CenterSample mean, equal weightsExpected value, weights = probabilities
VarianceΣ(X − X̄)² ÷ (n − 1)Σ P × (X − E[X])²
Standard deviationSquare root of the varianceSquare root of the variance

Notice the shape is the same: a weighted average of squared deviations. Equal weights of 1/n (or 1/(n − 1)) are replaced by the probabilities.

How far is an outcome from the forecast?

Divide an outcome’s distance from the expected value by the standard deviation. The answer counts how many standard deviations the outcome sits above (positive) or below (negative) the mean.

Distance from the mean in standard deviations Use it
x−E[X]σX\dfrac{x - E[X]}{\sigma_X}

How do you use these in a decision?

Compare the expected value for reward and the standard deviation for risk. Suppose stock B returns 4% or 8%, each with probability 0.5. Its expected return is 6%, the same as the share above, but its standard deviation is only 2%. Two forecasts with the same reward can carry very different risk, and a risk-averse investor prefers the lower standard deviation. The same arithmetic applies to any forecast: earnings per share, revenue growth, project cash flows or credit losses. With two variables, the same table gives the unconditional covariance, E[XY] − E[X]E[Y]: Lesson 7.

From a table of scenarios to risk and reward
Probability distribution of outcomeseach outcome with its probability; probabilities add to 1
  • Unconditional mean (expected value) Memorize Σ P × x, the probability-weighted average
    • Reads as the forecast, not a promised outcome
  • Unconditional variance Memorize E[X²] − (E[X])², units are squared
    • Weights probabilities, so no n − 1
  • Unconditional standard deviation Memorize √variance, same units as the outcomes
    • Reads as the typical distance from the forecast
Go deeper Why a fair bet can still be a bad idea

A coin flip that wins 100 or loses 100 has an expected value of zero, so it is “fair”. It still has a standard deviation of 100. A risk-averse investor needs a positive expected return to accept that spread, which is why an investment’s reward has to be judged against its risk and not on its own. Portfolio risk in Learning Module 8 builds on exactly these two numbers.

Go deeper Why this variance is the one used in portfolios

Learning Module 8 combines the variances and the covariance of several assets into a portfolio variance. Each of those inputs is a probability-weighted quantity of this form when it comes from a forecast, so the formula in this lesson is the building block. Lesson 7 of this module computes the covariance from the same kind of table.

Memorize this

MemorizeForecast formulas

MeasureFormulaWeights
Expected valueΣ P(x) × xprobabilities
VarianceΣ P(x) × (x − E[X])²probabilities
Variance (shortcut)E[X²] − (E[X])²probabilities
Std. deviation√variancesame units as x
Distance in σ(x − E[X]) ÷ σstandard deviations

Memory hook Same shapes as the historical formulas of Learning Module 5, with the weight 1/n (or 1/(n − 1)) swapped for the probability P.

Know it cold Forecast with probabilities: weight by P, never divide by n − 1. History: sample formulas with n − 1.

From a table of scenarios to risk and reward
Probability distribution of outcomeseach outcome with its probability; probabilities add to 1
  • Unconditional mean (expected value) Memorize Σ P × x, the probability-weighted average
    • Reads as the forecast, not a promised outcome
  • Unconditional variance Memorize E[X²] − (E[X])², units are squared
    • Weights probabilities, so no n − 1
  • Unconditional standard deviation Memorize √variance, same units as the outcomes
    • Reads as the typical distance from the forecast
Expected value Memorize
E[X]=P(x1) x1+P(x2) x2+⋯+P(xn) xn=∑i=1nP(xi) xiE[X] = P(x_1)\,x_1 + P(x_2)\,x_2 + \cdots + P(x_n)\,x_n = \sum_{i=1}^{n} P(x_i)\,x_i
Quick example

A return is 11% with probability 0.4 and 5% with probability 0.6. E = 0.4 × 11 + 0.6 × 5 = 7.4%.

On your calculator
  1. 0.4×11+(0.6×5)= 7.4
  1. 0.4ENTER11×0.6ENTER5×+ 7.4

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

Variance of a forecast Memorize
Var(X)=σX2=∑i=1nP(xi) [xi−E[X]]2\mathrm{Var}(X) = \sigma_X^2 = \sum_{i=1}^{n} P(x_i)\,[x_i - E[X]]^2
Quick example

Same forecast, E[X] = 7.4. 0.4 × (11 − 7.4)² + 0.6 × (5 − 7.4)² = 5.184 + 3.456 = 8.64 (%²).

On your calculator
  1. (11−7.4)x²×0.4+((5−7.4)x²×0.6)= 8.64

x² square

  1. 11ENTER7.4−ENTER×0.4×5ENTER7.4−ENTER×0.6×+ 8.64

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

Variance shortcut Memorize
Var(X)=E[(X−E[X])2]=E[X2]−(E[X])2\mathrm{Var}(X) = E\big[(X - E[X])^2\big] = E[X^2] - (E[X])^2
Quick example

Returns 11% (0.4) and 5% (0.6). E[X] = 7.4, E[X²] = 0.4 × 121 + 0.6 × 25 = 63.4. Var = 63.4 − 54.76 = 8.64 (%²).

On your calculator
  1. 0.4×11x²+(0.6×5x²)=−7.4x²= 8.64

x² square

  1. 11ENTER×0.4×5ENTER×0.6×+7.4ENTER×− 8.64

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

Standard deviation of a forecast Memorize
σX=Var(X)\sigma_X = \sqrt{\mathrm{Var}(X)}
Quick example

Variance 8.64 (%²). √8.64 = 2.94%.

On your calculator
  1. 8.64√x 2.94

√x square root

  1. 8.64g√x 2.94

g blue shift key · √x square root

Distance from the mean in standard deviations Use it
x−E[X]σX\dfrac{x - E[X]}{\sigma_X}
Quick example

E[X] = 7.4%, σ = 2.94%. An outcome of 2%: (2 − 7.4) ÷ 2.94 = −1.84.

On your calculator
  1. 2−7.4=÷2.94= -1.8367
  1. 2ENTER7.4−2.94÷ -1.8367

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

How it is asked

  1. Expected value with unequal probabilities

    Returns 17% (0.35), 5% (0.45), −9% (0.20). Expected return?

    5.95 + 2.25 − 1.80 = 6.40%. Trap: 4.33% (simple average).

  2. Standard deviation of a two-outcome forecast

    12% and 2%, each with probability 0.5. Standard deviation?

    E = 7, variance = 0.5 × 25 + 0.5 × 25 = 25, σ = 5.00%. Traps: 25 (variance), 7.07% (÷ n − 1).

  3. Variance by the shortcut

    Returns 14% (0.15), 6% (0.60), −2% (0.25). Variance?

    E[X] = 5.2; E[X²] = 29.4 + 21.6 + 1 = 52; 52 − 27.04 = 24.96 (%²). Trap: 52.00 (forgot to subtract).

  4. Which formula applies?

    Variance computed from forecast probabilities: how are the squared deviations treated?

    Weighted by their probabilities. Not divided by n or n − 1.

Exam traps

  • Equal-weighting the outcomes. A simple average ignores that some scenarios are likelier than others.
  • Dividing the weighted squared deviations by n − 1. The probabilities already do the averaging.
  • Reporting the variance when the question asks for the standard deviation (the variance is in %²).
  • Treating the expected value as the most likely outcome. It can be a value that never occurs.
  • Stopping at E[X²]: the variance is E[X²] minus the squared mean.
  • Dividing a squared deviation by the variance when asked how many standard deviations away an outcome is. Use the deviation ÷ σ.

Checkpoint

6 exam-style questions. About 90 seconds each.

  1. 1An analyst forecasts earnings per share of INR 2.40 (probability 0.3), INR 2.00 (probability 0.5) or INR 1.50 (probability 0.2). Expected EPS is closest to:

  2. 2For the same forecast (INR 2.40 with probability 0.3, INR 2.00 with 0.5, INR 1.50 with 0.2), the standard deviation of EPS is closest to:

  3. 3When variance is computed from forecast probabilities rather than from a historical sample, the squared deviations from the expected value are:

  4. 4A fund manager assigns these probabilities to next year's return: −10% (0.1), 0% (0.4), 10% (0.3) and 20% (0.2). The standard deviation of the return is closest to:

  5. 5A portfolio manager forecasts a return of 4% with probability 0.5, 10% with probability 0.3 and −6% with probability 0.2. The variance of the return (in %²) is closest to:

  6. 6For the same forecast (expected return 3.8%, standard deviation 5.55%), a return of −6% lies how many standard deviations below the expected return? Closest to:

Key takeaways

  • E[X] = Σ P × x: the probability-weighted average of the outcomes.
  • Var(X) = Σ P × (x − E[X])² = E[X²] − (E[X])², and σ = √Var(X).
  • Probabilities are the weights, so a forecast has no n − 1.
  • Two forecasts with the same expected value can carry very different risk: compare σ.
  • An outcome's distance from the forecast is (x − E[X]) ÷ σ.
Expected value Memorize
E[X]=P(x1) x1+P(x2) x2+⋯+P(xn) xn=∑i=1nP(xi) xiE[X] = P(x_1)\,x_1 + P(x_2)\,x_2 + \cdots + P(x_n)\,x_n = \sum_{i=1}^{n} P(x_i)\,x_i
Quick example

A return is 11% with probability 0.4 and 5% with probability 0.6. E = 0.4 × 11 + 0.6 × 5 = 7.4%.

On your calculator
  1. 0.4×11+(0.6×5)= 7.4
  1. 0.4ENTER11×0.6ENTER5×+ 7.4

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

Variance of a forecast Memorize
Var(X)=σX2=∑i=1nP(xi) [xi−E[X]]2\mathrm{Var}(X) = \sigma_X^2 = \sum_{i=1}^{n} P(x_i)\,[x_i - E[X]]^2
Quick example

Same forecast, E[X] = 7.4. 0.4 × (11 − 7.4)² + 0.6 × (5 − 7.4)² = 5.184 + 3.456 = 8.64 (%²).

On your calculator
  1. (11−7.4)x²×0.4+((5−7.4)x²×0.6)= 8.64

x² square

  1. 11ENTER7.4−ENTER×0.4×5ENTER7.4−ENTER×0.6×+ 8.64

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

Variance shortcut Memorize
Var(X)=E[(X−E[X])2]=E[X2]−(E[X])2\mathrm{Var}(X) = E\big[(X - E[X])^2\big] = E[X^2] - (E[X])^2
Quick example

Returns 11% (0.4) and 5% (0.6). E[X] = 7.4, E[X²] = 0.4 × 121 + 0.6 × 25 = 63.4. Var = 63.4 − 54.76 = 8.64 (%²).

On your calculator
  1. 0.4×11x²+(0.6×5x²)=−7.4x²= 8.64

x² square

  1. 11ENTER×0.4×5ENTER×0.6×+7.4ENTER×− 8.64

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

Standard deviation of a forecast Memorize
σX=Var(X)\sigma_X = \sqrt{\mathrm{Var}(X)}
Quick example

Variance 8.64 (%²). √8.64 = 2.94%.

On your calculator
  1. 8.64√x 2.94

√x square root

  1. 8.64g√x 2.94

g blue shift key · √x square root

Distance from the mean in standard deviations Use it
x−E[X]σX\dfrac{x - E[X]}{\sigma_X}
Quick example

E[X] = 7.4%, σ = 2.94%. An outcome of 2%: (2 − 7.4) ÷ 2.94 = −1.84.

On your calculator
  1. 2−7.4=÷2.94= -1.8367
  1. 2ENTER7.4−2.94÷ -1.8367

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

All Quantitative Methods formulas, every lesson

Practice exam-style questions on Statistical Distributions

Questions about this lesson?

Where this comes back

Questions candidates ask

How do you calculate expected return with probabilities?

Multiply each possible return by its probability and add the products: E[R] = Σ P × R. A 25% chance of −12%, a 50% chance of 8% and a 25% chance of 20% give −3 + 4 + 5 = 6%. The probabilities must add to 1.

What is the difference between sample variance and the variance of a probability distribution?

Sample variance averages squared deviations of past observations, equal-weighted, using n − 1. The variance of a probability distribution weights each squared deviation from the expected value by its probability. Forecasts use the second form, so there is no n − 1.

What is an unconditional expected value?

It is the probability-weighted average of all possible outcomes, computed without assuming that any particular scenario happens. Once you condition on a scenario, say a recession, you get a conditional expected value instead (Lesson 6).

What does expected value mean in finance?

It is the probability-weighted average of the possible outcomes: a forecast of the long-run average, not a prediction of what will happen. A 6% expected return can come from a share that returns −12%, 8% or 20% and never exactly 6%.

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

  1. Random variables and distribution functions
  2. Unconditional expected value, variance and standard deviation
  3. Discrete distributions: uniform, binomial and Poisson
  4. Continuous distributions: uniform, normal and logistic
  5. Why asset prices are log-normal
  6. Probability trees, conditional expectations and conditional variance
  7. Covariance and correlation from a joint probability table
  8. Bayes' theorem: updating a probability with new information

Ask Sensei Listen instead

Questions on Unconditional expected value, variance and standard deviation

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