To calculate the expected value (mean) of a discrete random variable, multiply each possible value by its probability and add the products. For a discrete random variable ,
This is part of IB Mathematics: Analysis and Approaches, SL 4.7: Discrete random variables, and is core content for both SL and HL.
How the calculation works
A discrete random variable takes separate, countable values, each with an associated probability. Before calculating the mean, check that every probability satisfies and that the probabilities sum to .
The calculation is a weighted mean: outcomes with larger probabilities contribute more strongly to the result. Because positive and negative values can offset one another, include signs carefully. The expected value must lie between the smallest and largest possible values, providing a useful check on your answer.
| Step | Action |
|---|---|
| 1 | Verify that the probabilities total . |
| 2 | Compute each product . |
| 3 | Add the products and state the appropriate units. |
Suppose a player's gain , in dollars, has this probability distribution:
Therefore,
The expected gain is therefore \1.60$1.60$ in one game. It represents the gain per game over many repetitions. Conceptually, expected value is not a prediction of the next outcome. It is the theoretical average approached when the same probability experiment is repeated many times under unchanged conditions. This distinction matters in context.
A common misconception is to calculate the ordinary mean of the possible values. The values are not necessarily equally likely, so they must be weighted by their probabilities. If represents a player's gain, indicates a fair game.
IB exam technique
This content can appear on AA Paper 1 or Paper 2. Show the substitution into , not only the final answer. If a probability is unknown, first use , then calculate the expected value and interpret it in context.
