IB Maths Analysis and Approaches SL
Discrete random variables and expected value: question types and practice
Discrete random variables and expected value carried 4% of the marks in the 20 recent exams, through 3 kinds of question. The one worth the most marks is Probability distribution tables.
The 3 question types
The ideas you need
Discrete random variables and their distributions
Discrete random variables and their distributions
A random variable is a number decided by chance: the score on a die, the number of heads in three tosses, a player's gain in a game. It is discrete when its values can be listed, such as or . Capital is the variable and small is one of its values, so is "the probability that takes the value ".
Its probability distribution gives every value with its probability, as a table or as a formula (SL 4.7). Two fair coins, with the number of heads (; or ; ):
A formula does the same job: , for .
The two facts every distribution obeys (neither is in the booklet):
- Each probability is between and : .
- The probabilities add up to : , because exactly one of the values happens. For the formula above, ✓.
Fact 2 turns a table with an unknown into an equation; fact 1 decides which of its solutions are allowed. A table with an entry of , or with entries that add up to , is not a distribution.
- The value still counts. Its probability is part of the total of , even though it adds nothing to .
- The mode is the value of with the greatest probability. For the coins it is (the value), not (its probability).
- A formula is a table in disguise. Work out for each value of and write the table before doing anything else.
Mini-example: is , for , a probability distribution? The probabilities are . Each is between and (a probability of is allowed), and they add up to ✓. So yes, and its mode is .
for : every bar is between and (a bar of height is allowed) and the four add to , so it is a distribution. The tallest bar is at : the mode is .
Inequality words for a whole-number variable
Inequality words for a whole-number variable
When takes whole-number values, each phrase has an exact translation, and "fewer than" and "at most" are different. Translate before adding anything up. Binomial probabilities uses the same translations, with the binomial cdf (, from the GDC's binomial probabilities) in place of adding the entries.
- exactly
- Means
- Values, when can be
- at most , no more than
- Means
- Values, when can be
- fewer than , less than
- Means
- Values, when can be
- at least , no fewer than
- Means
- Values, when can be
- more than , greater than
- Means
- Values, when can be
- between and inclusive
- Means
- Values, when can be
| Words | Means | Values, when can be |
|---|---|---|
| exactly | ||
| at most , no more than | ||
| fewer than , less than | ||
| at least , no fewer than | ||
| more than , greater than | ||
| between and inclusive |
- A cut-off that isn't a whole number can't be a value of , so strict and non-strict agree: means , and means .
- The complement is often shorter: , and "at least one" is . Markschemes accept the direct sum or the complement.
- Continuous variables are different. For a normal variable , so and give the same probability (Normal probabilities). The care over strict and non-strict is for discrete variables.
- A data boundary is different again. An outlier fence, such as , is built from the quartiles of a data set, not translated from words. A value exactly on it is not an outlier, because an outlier is more than beyond its quartile (Outliers: the 1.5 × IQR fences).
Mini-example:
- fewer than :
- at least : (the complement of the line above)
- more than :
- between and inclusive:
- : the same event as "at least ", so
"At least " is the marked bars, , which add to ; "fewer than " is the three bars before them, ; "more than " drops the bar at and leaves ; and is the same event as "at least ".
Expected value
Expected value
Multiply each value by its probability, then add. This one is in the booklet (SL 4.7).
- A long-run average. Repeat the experiment many times, and the mean of the results gets closer and closer to . It need not be a value can take: a fair six-sided die has .
- The same sum as the mean of a frequency table. : the relative frequencies play the part of the probabilities (Averages and spread). That is why a question can call the mean of a survey an "expected" value.
- Sense check. lies between the smallest and the largest value of , pulled towards the values with large probabilities. Don't divide by the number of values: the probabilities already do the averaging.
- A fair game. If is a player's gain (prize minus the cost to play), the game is fair when : in the long run the player neither wins nor loses. Equivalently, the expected prize equals the cost. favours the organiser.
- Totals over repeats. Over independent repeats, the expected total is . The expected number of occurrences, , is the special case where is when happens and otherwise.
- Technology. On P2 the GDC can do the arithmetic (one-variable statistics gives from the values and their probabilities), but write the sum with its terms first: that line is the method mark.
Mini-example: a game costs to play. The player wins with probability , and nothing otherwise. The gain is (probability ) or (probability ):
The player loses a game on average, so over games the expected loss is . The game is not fair: the expected prize, , is less than the cost. A prize of makes it fair when , so a prize of .
Scope: the variance of , and the general rules and , are AHL 4.14. At SL, work from the table of the variable you need (the gain rather than the prize, say), and write a new table when the prizes change. Two shortcuts are fine, and this guide uses them: a fixed cost comes straight off the expected prize (expected gain expected prize cost, so a fair game has expected prize cost, as SL markschemes use), and the other side of the same deal has the opposite expected value (the organiser's expected profit is the players' expected loss).
Table, experiment or context: which type?
- a table or a formula for , with an unknown
- Asked for
- the unknown, a probability,
- First move
- total
- a frequency table of data
- Asked for
- an "expected" value per person or item
- First move
- relative frequencies as probabilities
- an experiment: dice, spins or a few rounds with a score, total or count; or draws, when the whole distribution is asked
- Asked for
- the distribution, or the probability of a value or range of the score
- First move
- list the outcomes that qualify
- draws without replacement, or stages that change, with no distribution asked
- Asked for
- one probability
- First move
- a tree: multiply along, add across
- a game with a cost and prizes, or sales with costs
- Asked for
- fair or not, an expected total, a least number or prize
- First move
- define the gain, then find its expected value
- independent trials with the same probability, on P2
- Asked for
- the probability of a count
- First move
- a table, and a condition on the range of
- Asked for
- a conditional probability
- First move
- the overlap of the two ranges
- in Venn regions, tree branches or table cells for events
- Asked for
- First move
- an equation from the given fact
| Given | Asked for | First move | Type |
|---|---|---|---|
| a table or a formula for , with an unknown | the unknown, a probability, | total | Probability distribution tables |
| a frequency table of data | an "expected" value per person or item | relative frequencies as probabilities | Probability distribution tables |
| an experiment: dice, spins or a few rounds with a score, total or count; or draws, when the whole distribution is asked | the distribution, or the probability of a value or range of the score | list the outcomes that qualify | Build the distribution from the experiment |
| draws without replacement, or stages that change, with no distribution asked | one probability | a tree: multiply along, add across | Tree diagrams and repeated draws |
| a game with a cost and prizes, or sales with costs | fair or not, an expected total, a least number or prize | define the gain, then find its expected value | Expected value in context |
| independent trials with the same probability, on P2 | the probability of a count | Binomial probabilities | |
| a table, and a condition on the range of | a conditional probability | the overlap of the two ranges | Given that X is in a range |
| in Venn regions, tree branches or table cells for events | an equation from the given fact | Probabilities in terms of an unknown |
The gain is with probability and with probability : the expected value, , is the balance point of the bars, pulled towards the taller one. It is not a value can take, and the game is not fair.
Where discrete random variables hide in other topics
Where discrete random variables hide in other topics
A random variable often arrives inside a question that seems to belong to another topic, and other topics' methods turn up inside this guide's questions. The first move is to notice a list of values whose probabilities must add up to , or an average of an uncertain amount.
- It becomes
- Probability distribution tables: the sum of the four terms is , so and
- Watch for
- every term must be between and ; then
- A jackpot that grows each week it is not won, inside a game (Arithmetic sequences, or geometric)
- It becomes
- Expected value in context, with the week number as the unknown. A jackpot rising by a week is in week ; won with probability , it is worth on average. With other prizes worth on average and a ticket, the first week with a positive expected gain needs
- Watch for
- a least , so round up and check both sides, as in Find n: gives an expected prize of and gives , so week
- It becomes
- Probability distribution tables
- Watch for
- reject any root that puts an entry outside , even a positive one: the same check-the-context step as rejecting in Quadratic in disguise
- On P1, an outcome that can happen in several orders (Factorials and nCr)
- It becomes
- Build the distribution from the experiment: one order's probability times the number of orders ( for of one result and of the other)
- Watch for
- wins in rounds, each won with probability :
- The mean of a frequency table (Averages and spread)
- It becomes
- the same sum as , with the relative frequencies as probabilities (Probability distribution tables)
- Watch for
- a question may call the survey mean an "expected" number
- A count of successes read from a tree, such as the number of red counters in two draws (Tree diagrams and repeated draws)
- It becomes
- Build the distribution from the experiment: collect the paths by the value of the count
- Watch for
- "one of each" has two paths
- On P2, the number of successes in a fixed number of independent trials with the same probability
- It becomes
- Binomial probabilities, not a list of orders
- Watch for
- drawing without replacement breaks the binomial: that is a tree
- A table of with "given that"
- It becomes
- Given that X is in a range
- Watch for
- the numerator is the overlap of the two ranges, not the event alone
- The fewest games so that the probability of at least one prize passes a target
- It becomes
- Find n: , where is the probability of no prize in one game
- Watch for
- an expected total is ; the probability of at least one prize is
| You see | It becomes | Watch for |
|---|---|---|
| The probabilities form a geometric sequence with common ratio (Geometric sequences) | Probability distribution tables: the sum of the four terms is , so and | every term must be between and ; then |
| A jackpot that grows each week it is not won, inside a game (Arithmetic sequences, or geometric) | Expected value in context, with the week number as the unknown. A jackpot rising by a week is in week ; won with probability , it is worth on average. With other prizes worth on average and a ticket, the first week with a positive expected gain needs | a least , so round up and check both sides, as in Find n: gives an expected prize of and gives , so week |
| A quadratic in from "total " (Solving quadratic equations) | Probability distribution tables | reject any root that puts an entry outside , even a positive one: the same check-the-context step as rejecting in Quadratic in disguise |
| On P1, an outcome that can happen in several orders (Factorials and nCr) | Build the distribution from the experiment: one order's probability times the number of orders ( for of one result and of the other) | wins in rounds, each won with probability : |
| The mean of a frequency table (Averages and spread) | the same sum as , with the relative frequencies as probabilities (Probability distribution tables) | a question may call the survey mean an "expected" number |
| A count of successes read from a tree, such as the number of red counters in two draws (Tree diagrams and repeated draws) | Build the distribution from the experiment: collect the paths by the value of the count | "one of each" has two paths |
| On P2, the number of successes in a fixed number of independent trials with the same probability | Binomial probabilities, not a list of orders | drawing without replacement breaks the binomial: that is a tree |
| A table of with "given that" | Given that X is in a range | the numerator is the overlap of the two ranges, not the event alone |
| The fewest games so that the probability of at least one prize passes a target | Find n: , where is the probability of no prize in one game | an expected total is ; the probability of at least one prize is |
More in Statistics and probability
Every topic of the course
- The binomial theorem
- Exponents and logarithms
- Proof
- Sequences and series
- Exponential and logarithmic functions
- Composite and inverse functions
- Lines and graphs of functions
- Quadratics
- Reciprocal and rational functions
- Transformations of graphs
- Radians, arcs and sectors
- 3D geometry: solids and triangles in 3D
- Triangle trigonometry
- The unit circle, identities and trig equations
- Trig graphs and sinusoidal models
- Differentiation
- Integration and areas
- Kinematics
- Stationary points and optimisation