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.
Watch the lesson 19 min
This lesson's video is for Plus members. The written lesson below is free, as always.
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.
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 .
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%
- 0.25×12+|-+(0.5×8)+(0.25×20)=
+|- change sign
- 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.
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.
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
- (12+|-−6)x²×0.25+((8−6)x²×0.5)+((20−6)x²×0.25)=
+|- change sign · x² square
- 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)
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%
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.
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.
- 2NDDATA2NDCLR WORKclear old data
- 12+|-ENTER↓25ENTER↓X01, Y01 = probability × 100
- 8ENTER↓50ENTER↓X02, Y02 = probability × 100
- 20ENTER↓25ENTER↓X03, Y03 = probability × 100
- 2NDSTATpress 2ND SET until 1-V shows
- ↓n = 100, the sum of the weights
- ↓X̄ = 6.00, the expected value
- ↓Sx: ignore it, it divides by n − 1
- ↓σx = 11.49, the standard deviation
- 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
- fCLEAR Σ
- 12CHSENTER0.25Σ+outcome, then its probability
- 8ENTER0.5Σ+outcome, then its probability
- 20ENTER0.25Σ+outcome, then its probability
- gx̄w6.00, the expected value
- 18CHSENTER×0.25×2ENTER×0.5×+14ENTER×0.25×+132.00, the variance
- 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.
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) | |
|---|---|---|
| Center | Sample mean, equal weights | Expected value, weights = probabilities |
| Variance | Σ(X − X̄)² ÷ (n − 1) | Σ P × (X − E[X])² |
| Standard deviation | Square root of the variance | Square 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.
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.
- 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
| Measure | Formula | Weights |
|---|---|---|
| Expected value | Σ P(x) × x | probabilities |
| Variance | Σ P(x) × (x − E[X])² | probabilities |
| Variance (shortcut) | E[X²] − (E[X])² | probabilities |
| Std. deviation | √variance | same 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.
- 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
-
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%.
- 0.4×11+(0.6×5)= 7.4
- 0.4ENTER11×0.6ENTER5×+ 7.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Same forecast, E[X] = 7.4. 0.4 × (11 − 7.4)² + 0.6 × (5 − 7.4)² = 5.184 + 3.456 = 8.64 (%²).
- (11−7.4)x²×0.4+((5−7.4)x²×0.6)= 8.64
x² square
- 11ENTER7.4−ENTER×0.4×5ENTER7.4−ENTER×0.6×+ 8.64
ENTER enter (on the HP, puts the number on the stack)
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 (%²).
- 0.4×11x²+(0.6×5x²)=−7.4x²= 8.64
x² square
- 11ENTER×0.4×5ENTER×0.6×+7.4ENTER×− 8.64
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 8.64 (%²). √8.64 = 2.94%.
- 8.64√x 2.94
√x square root
- 8.64g√x 2.94
g blue shift key · √x square root
Quick example
E[X] = 7.4%, σ = 2.94%. An outcome of 2%: (2 − 7.4) ÷ 2.94 = −1.84.
- 2−7.4=÷2.94= -1.8367
- 2ENTER7.4−2.94÷ -1.8367
ENTER enter (on the HP, puts the number on the stack)
How it is asked
-
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).
-
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).
-
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).
-
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.
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:
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:
3When variance is computed from forecast probabilities rather than from a historical sample, the squared deviations from the expected value are:
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:
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:
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]) ÷ σ.
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%.
- 0.4×11+(0.6×5)= 7.4
- 0.4ENTER11×0.6ENTER5×+ 7.4
ENTER enter (on the HP, puts the number on the stack)
Quick example
Same forecast, E[X] = 7.4. 0.4 × (11 − 7.4)² + 0.6 × (5 − 7.4)² = 5.184 + 3.456 = 8.64 (%²).
- (11−7.4)x²×0.4+((5−7.4)x²×0.6)= 8.64
x² square
- 11ENTER7.4−ENTER×0.4×5ENTER7.4−ENTER×0.6×+ 8.64
ENTER enter (on the HP, puts the number on the stack)
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 (%²).
- 0.4×11x²+(0.6×5x²)=−7.4x²= 8.64
x² square
- 11ENTER×0.4×5ENTER×0.6×+7.4ENTER×− 8.64
ENTER enter (on the HP, puts the number on the stack)
Quick example
Variance 8.64 (%²). √8.64 = 2.94%.
- 8.64√x 2.94
√x square root
- 8.64g√x 2.94
g blue shift key · √x square root
Quick example
E[X] = 7.4%, σ = 2.94%. An outcome of 2%: (2 − 7.4) ÷ 2.94 = −1.84.
- 2−7.4=÷2.94= -1.8367
- 2ENTER7.4−2.94÷ -1.8367
ENTER enter (on the HP, puts the number on the stack)
Questions about this lesson?
Where this comes back
- Portfolio Return and Risk Quantitative Methods
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.