In simple terms
A friendly intro before the formal notes — no formulas yet.
The Blueprint of Chance
A discrete random variable is just a number that changes by chance, like the score on a die. We can map out its probabilities and calculate its average outcome (expectation) and how spread out the results are (variance).
Imagine a game where you're paid based on a die roll. A discrete random variable is the 'score' you get. The probability distribution is the 'rulebook' telling you how likely each score is. The expectation is the average amount of money you'd expect to win per game if you played thousands of times.
- 1
A discrete variable X has specific values 'x'. Each value has a probability P(X=x), and all probabilities must sum to 1.
- 2
The expectation E(X) is the weighted average. Multiply each value 'x' by its probability and sum them up: E(X) = Σx P(X=x).
- 3
The variance Var(X) measures spread. First find E(X²), the average of the squared values, then use Var(X) = E(X²) − [E(X)]².
- 4
If you transform X into a new variable Y = aX + b, the new expectation is E(Y) = aE(X) + b, but the new variance is Var(Y) = a²Var(X).
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Tap a symbol — great for exam definitions
Tap a symbol — great for exam definitions
Full topic notes
Formal explanation with the rigour you need for the exam.
Defining a Discrete Random Variable
A random variable is a variable whose value is a numerical outcome of a random phenomenon. We use a capital letter, like , to denote a random variable. A discrete random variable is one that can only take on a finite or countably infinite number of distinct values. For example, the score when rolling a standard six-sided die can only be {1, 2, 3, 4, 5, 6}. You cannot roll a 2.5. In contrast, a continuous random variable, which we will see later, can take any value in a given range (e.g., height or weight).
Probability Distributions
A probability distribution for a discrete random variable is a list, table, or formula that specifies all possible values of the variable and their corresponding probabilities. It's a complete picture of the random variable's behaviour. We denote the probability that the random variable takes a specific value as .
For any valid probability distribution, two conditions must be met:
- The probability of each outcome must be between 0 and 1 inclusive: .
- The sum of all probabilities must be exactly 1: .
Expectation and Variance
The expectation of a random variable, denoted or , is its theoretical mean value. It's what you'd expect the average outcome to be if you repeated the random experiment an infinite number of times. The variance, denoted or , measures the spread of the distribution. It tells us, on average, how far the values are from the mean. A small variance means the outcomes are clustered tightly around the expectation, while a large variance means they are more spread out.
Always show your working for and . While you can use your calculator's statistics mode to verify your final answer, you won't get method marks in an exam without showing the '' and '' calculations.
Linear Transformations: E(aX + b) and Var(aX + b)
Often in real-world problems, we need to adjust a random variable. For instance, if is a score in a game, might be the prize money in pounds. If there is a £5 entry fee, the profit would be . This is a linear transformation of the form . Fortunately, there are simple rules to find the new expectation and variance without having to recalculate from the probability distribution.
Expectation is linear. Both scaling by 'a' and shifting by 'b' affect the mean in a straightforward way.
Variance is only affected by scaling. Shifting the data by 'b' moves the entire distribution but doesn't change its spread, so 'b' has no effect on variance.
The scaling factor 'a' is squared for variance () because variance is calculated using squared differences. The standard deviation is therefore scaled by : .
A very common error is forgetting to square the 'a' term when calculating . Always write to remind yourself. Another trap is when 'a' is negative, for example . Here , so . The variance will be .
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A biased four-sided die has scores 1, 2, 3, and 4. The probability distribution of the score, , is given in the table. The probability of scoring a 2 is twice the probability of scoring a 1.
| x | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| P(X=x) | p | 2p | 0.4 | 0.1 |
(i) Find the value of . (ii) Find .
- 1
(i) The sum of probabilities must be 1.
A discrete random variable has the following probability distribution:
| y | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| P(Y=y) | 0.1 | 0.3 | 0.4 | 0.2 |
(i) Find and . (ii) A new random variable is defined as . Find and .
- 1
(i) First, calculate .
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
What is a discrete random variable?
A variable whose value is a numerical outcome of a random phenomenon, which can only take a countable number of values.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
For any valid probability distribution, two conditions must be met:
- ✓
- The probability of each outcome must be between 0 and 1 inclusive: .
- ✓
- The sum of all probabilities must be exactly 1: .
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Practice Questions
Practice Questions
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Practice Questions on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.