Probability distributions: expected value and variance
IB Mathematics AI HLΒ· 6 min read
1. Expected Value of a Random Variableβ β ββββ± 15 min
The expected value of a random variable , written , is the theoretical long-run average value of over many independent trials. It is also called the expectation or theoretical mean of the distribution.
Expected Value
or
For a discrete random variable with probability mass function : . For a continuous random variable with probability density function :
Example:
Expected value of a fair 6-sided die roll is
A discrete random variable has probability distribution: , , . Calculate .
- 1
Recall the formula for expected value of a discrete random variable:
- 2
- 3
Substitute the values from the distribution:
- 4
- 5
Calculate the final result:
- 6
Exam tip:
Always check that the total probability of the distribution sums to 1 before calculating expected value to catch errors from missing values.
2. Variance and Standard Deviationβ β β βββ± 15 min
Variance measures how spread out the outcomes of a random variable are around the expected value. Standard deviation is the square root of variance, and is measured in the same units as the original random variable.
Variance
or
Variance is the expected value of the squared deviation from the mean: . The identity on the right is almost always easier for calculations.
Example:
A distribution where all outcomes are equal has variance .
For the distribution , , , calculate and the standard deviation.
- 1
We already know from the previous example. First calculate :
- 2
- 3
Substitute values:
- 4
- 5
Apply the variance identity:
- 6
- 7
Calculate standard deviation as the square root of variance:
- 8
Exam tip:
Never forget to square in the variance formula. This is one of the most common errors marked down in IB exams.
3. Linear Transformation Rulesβ β β βββ± 20 min
A linear transformation of a random variable is a new variable , where and are constants. Simple rules exist for and that let you avoid recalculating the entire distribution, a key exam skill.
Linear Transformation Rules
For expectation: . For variance: . Shifting the distribution by a constant does not change its spread.
Daily profit for a cafe has and . The owner pays 10% tax plus a fixed \$15 daily fee. Find the expected value and variance of net profit.
- 1
Write net profit as a linear transformation of (the owner keeps 90% of profit minus the fixed fee):
- 2
- 3
Calculate expected net profit using the expectation rule:
- 4
- 5
Calculate variance, remembering to square the coefficient 0.9:
- 6
Exam tip:
Only the scaling factor affects variance. Adding or subtracting a constant never changes variance, because it just shifts all outcomes without changing how spread out they are.
4. Interpretation in Contextβ β ββββ± 10 min
IB exams frequently ask for interpretation of calculated expected value or variance/standard deviation in the context of the problem, not just for a numerical answer. Full marks require a correct contextual interpretation.
Interpret the expected net profit of \$93 from the cafe example in context.
- 1
Correct interpretation (full marks): Over a large number of days, the average daily net profit for the cafe owner is approximately \$93.
- 2
Incorrect interpretation (no marks): The cafe owner will make \$93 every day. This is wrong because expected value is a long-run average, not a guaranteed outcome for one day.
Exam tip:
Always mention "long run" or "over many repeated trials" when interpreting expected value to get full marks.
5. Common Pitfalls
Wrong move:
Forgetting to square in the variance formula, writing
Why:
Variance is defined as the expected squared deviation from the mean, so the entire mean term must be squared
Correct move:
Always write the formula explicitly as to remember the square
Wrong move:
Forgetting to square the coefficient when calculating , writing
Why:
Variance depends on squared deviations, so scaling by scales deviations by and squared deviations by
Correct move:
Memorize:
Wrong move:
Including the constant in variance:
Why:
Confusing the rules for expectation and variance
Correct move:
Shifting the entire distribution by a constant does not change spread, so does not affect variance
Wrong move:
Interpreting expected value as the most likely outcome or the outcome of a single trial
Why:
Confusion between expected value and mode, misunderstanding the definition of expectation
Correct move:
Always interpret expected value as the long-run average over many repeated trials
Wrong move:
Using summation to calculate expected value for a continuous distribution
Why:
Over-practice with discrete distributions leads to automatic use of summation
Correct move:
For continuous random variables, use integration:
6. Quick Reference Cheatsheet
Concept | Formula | Key Note |
|---|---|---|
Discrete | Sum over all outcomes | |
Continuous | Integrate over domain | |
Variance | Always use this identity | |
Expectation (linear transform) | Works for all distributions | |
Variance (linear transform) | does not affect variance | |
Standard Deviation | Same units as |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2025 Β· 1
Calculate E(X) and Var(X) for discrete distribution
- 2024 Β· 2
Linear transformation of net profit expectation
- 2023 Β· 1
Interpret expected value in context
What's Next
Expected value and variance are foundational concepts for all further statistical work in IB AI HL. These descriptors underpin all common named probability distributions you will study next, including binomial, Poisson, and normal distributions, and are core to inferential statistics topics like confidence intervals and hypothesis testing. The linear transformation rules you learned here also apply to coded data in descriptive statistics and are used repeatedly for probability problem solving. Mastery of this sub-topic is essential for success on both Paper 1 and Paper 2 exams.
