Discrete probability distributions, expectation and variance
IB Mathematics: Analysis and Approaches SLΒ· Unit 4: Statistics & Probability, Topic 6Β· 15 min read
1. Discrete Random Variables and Valid Distributionsβ β ββββ± 4 min
Discrete random variable
A variable that takes a countable set of distinct values, where each value corresponds to a random outcome.
Example:
Number of heads in 3 coin flips, number of customers entering a shop per hour
A discrete probability distribution is described by a probability mass function (PMF) , which gives the probability of the random variable taking each value . For a PMF to be valid, it must satisfy two core conditions:
All probabilities satisfy
The sum of all probabilities equals 1:
A random variable has PMF for , and 0 otherwise. Find the value of that makes this a valid distribution.
- 1
Use the condition that the sum of all probabilities must equal 1:
- 2
- 3
Substitute the PMF into the equation:
- 4
- 5
Solve for , then check all probabilities are between 0 and 1:
- 6
Exam tip:
Always check both conditions (sum to 1, all probabilities between 0 and 1) when asked to find a constant in an exam.
2. Expectation of a Discrete Distributionβ β ββββ± 5 min
Expected Value (Expectation)
or
The long-run average value of the random variable over many repeated trials, calculated as a weighted average of outcomes weighted by their probability.
For any discrete random variable , expectation is calculated with the formula:
For the valid distribution for , calculate the expected value of .
- 1
Substitute into the expectation formula:
- 2
- 3
Simplify the sum:
- 4
3. Variance and Standard Deviationβ β β βββ± 5 min
Variance
or
A measure of the spread of the distribution around the expected value, equal to the expected value of the squared deviation from the mean.
For IB exams, the computational formula below is almost always faster and less error-prone than the definition formula:
Standard deviation is also a measure of spread, in the same units as the original variable .
Given for for , calculate the variance of .
- 1
First calculate , the expected value of :
- 2
- 3
Substitute into the variance formula:
- 4
Exam tip:
If you are running low on time, use the computational formula to avoid mistakes with squared deviations.
4. Properties of Expectation and Varianceβ β β βββ± 5 min
For any constants and , the following linear properties hold for transformed random variables , and are heavily tested in IB exams:
Given has and , find and for .
- 1
Calculate expectation using the linear property:
- 2
- 3
Calculate variance, note the constant term disappears:
- 4
5. Common Pitfalls
Wrong move:
Forgetting to square the scaling factor when calculating
Why:
Variance measures squared spread, so scaling by changes variance by , not
Correct move:
Always use , the constant term is removed completely
Wrong move:
Only checking that probabilities sum to 1 when finding a constant , ignoring the condition
Why:
Solving for can give a value that produces negative probabilities or probabilities greater than 1
Correct move:
Always verify that all individual probabilities are between 0 and 1 after solving for
Wrong move:
Calculating expectation as an unweighted average of values, ignoring their probabilities
Why:
Confusing the sample mean of data with the expected value of a distribution
Correct move:
Always multiply each by its probability before summing to get expectation
Wrong move:
Mixing up the variance formula to get
Why:
Misremembering where the square goes in the computational formula
Correct move:
The square is only on the second term:
Wrong move:
Expecting expectation to always be one of the possible values of
Why:
Thinking expectation is a possible outcome, not a long-run average
Correct move:
It is completely acceptable for expectation to be a non-integer or value not in the sample space of
6. Quick Reference Cheatsheet
Concept | Formula | Exam Note |
|---|---|---|
Valid PMF | , | Check both conditions |
Expectation | Weighted average of outcomes | |
Variance | Use this formula for exams | |
Intermediate step for variance | ||
Linear Expectation | Always holds for any constants | |
Linear Variance | Constant does not change variance |
7. Frequently Asked
Do I need to calculate expectation and variance for continuous distributions in AA SL?
No, for IB AA SL you are only required to calculate expectation and variance explicitly for discrete probability distributions.
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.
- 2023 Β· 1
6 mark variance calculation question
- 2022 Β· 2
5 mark expectation of transformed X
- 2021 Β· 1
4 mark valid distribution check
Going deeper
What's Next
This sub-topic lays the foundation for all named discrete probability distributions you will study next in IB AA SL, including the binomial and Poisson distributions. The expectation and variance rules you learned here apply directly to these distributions, and you can use them to derive the standard formulas for named distributions. These concepts also form the basis for statistical inference, where you use sample statistics to estimate unknown population parameters like the true population mean. Mastery of these calculation methods is required for almost all probability questions on both Paper 1 and Paper 2 of the IB AA SL exam.
