Discrete Random Variables (AA HL)
A discrete random variable takes separate values, each with its own probability, and the probabilities in its distribution always sum to 1. Write the distribution as a table, use to find any missing probability, and find the expected value with . It also covers interpreting as a fair game. It's part of the broader Probability Distributions topic.
11 questions on this sub-topic.
Syllabus
| Code | Syllabus content |
|---|---|
| SL4.7 | Concept of discrete random variables and their probability distributions. Expected value (mean) for discrete data. indicates a fair game where is a player's gain. |
Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).
Skills practised on this page:
- Construct a discrete probability distribution table given a rule or context, using the fact that probabilities sum to 1.
- Calculate the expected value E(X) of a discrete random variable, and interpret E(X) = 0 as indicating a fair game.
Expectation and variance
Both formulas below are in the formula booklet.
Expected value
Multiply each value by its probability and add the results. doesn't have to equal any value can actually take.
Variance
Find first, then subtract the square of .
Need the full syllabus wording and formula-booklet reference table? See Probability Distributions.
Key terms
What is a probability distribution table?
It lists each value that the variable can take, with its probability . Every probability lies between and , and together they sum to .
e.g. , and is valid because .
What does represent?
The expected value is the mean of the distribution: the average outcome over a very large number of trials. It is a weighted average, with each value weighted by its probability.
e.g. If and , then , although can never equal .
What makes a game fair?
A game is fair when , where is the player's gain. Neither the player nor the organiser is expected to win or lose in the long run.
e.g. If the gain is with probability and with probability , then , so the game is fair.
What does mean for a discrete variable?
It is the probability that takes the value or any smaller value. Add the probabilities of every value up to and including .
e.g. If , and , then .
Worked examples
A discrete random variable takes the values shown in the table.
| 1 | 2 | 3 | |
| 0.2 | 0.5 | ? |
Find .
Worked solution
Probabilities sum to 1: M1
A1
A spinner has the payouts and probabilities shown in the table.
| Payout | $10 | $2 | $0 |
|---|---|---|---|
| Probability | 0.1 | 0.4 | 0.5 |
Find the expected payout.
Worked solution
M1
A1
M1
A1
A1On the GDC. Find the expected payout. The calculator shows about 1.80.
A discrete variable has for
| 0 | 1 | 2 | 3 | |
(a) Find .
(b) Find .
Worked solution
(a) M1
A1
(b) M1
A1
Common mistakes
- Forgetting probabilities must sum to 1. This is the standard way to find an unknown constant or a missing probability in a discrete distribution - if the values you've written down don't sum to 1, something upstream is wrong.
- Treating as the most likely outcome. is a long-run average, not the value with the highest probability - it can easily land between two values never actually takes.
- Applying incorrectly. A shift by changes but has no effect on the spread, so drops out of the variance formula entirely - only the scale factor survives, and it gets squared.
Quick questions
How do you find a missing probability in a discrete distribution?
Use the fact that all the probabilities in a discrete probability distribution must sum to 1, then solve for the unknown value.
What is the expected value of a discrete random variable?
, summed over every value can take. It is the long-run average outcome, not necessarily a value actually takes. GDC guidance for computing it is covered on the Probability Distributions page.
Can the expected value be a number that X cannot take?
Yes. is a weighted average, not a value you expect to see on any single trial. For a fair six-sided die, , which is not a possible score.
Can a probability in a distribution be negative or greater than 1?
No, every probability lies between and inclusive. If solving for an unknown constant gives a probability outside this range, check your working or reject that value of the constant.
How do I find P(X > 2) from a distribution table?
Add the probabilities of every value greater than , or use the complement . Either route gives the same answer.
Ready to practise properly?
11 discrete-random-variable questions, marked instantly like the real exam.