Syllabus coverage
- Draw up a probability distribution table relating to a given situation involving a discrete random variable X, and calculate and
- Use the formulae for probabilities for the binomial and geometric distributions, and recognise practical situations where these distributions are suitable models, including the notations and
- Use the formulae for the expectation and variance of the binomial distribution and for the expectation of the geometric distribution (proofs of the formulae are not required)
Part of the AS & A Level Maths syllabus 9709.
What a discrete random variable is
A random variable is a numerical value that depends on the outcome of an experiment. A discrete random variable takes values that can be listed one by one, and each of those values has a probability attached to it. If is the number of heads when three coins are tossed, then can be 0, 1, 2 or 3, and each of those four values has its own probability.
The method never changes: write the possible values down in order, then attach a probability to each one. If a value can happen it must appear in the list, each value appears once, and the probabilities must account for the whole experiment.
Variables that are measured rather than counted - a waiting time, a height, the mass of a bag of flour - are continuous, and they belong to the normal distribution later in the course.
| Situation | The random variable | Possible values |
|---|---|---|
| A fair die is thrown | = the score shown | 1, 2, 3, 4, 5, 6 |
| Three fair coins are tossed | = the number of heads | 0, 1, 2, 3 |
| A box holds 20 components | = the number of faulty components in the box | 0, 1, 2, ..., 20 |
| A counter is drawn from a bag and returned | = 1 if it is red and 0 otherwise | 0, 1 |
Probability distribution tables
A probability distribution of a discrete random variable is the list of its values together with their probabilities. It is written as a table whose top row is the values and whose bottom row is . Sometimes the probabilities are given by a formula instead, such as , and then the table is built from the formula.
Every distribution must satisfy two conditions. Each probability lies between 0 and 1, and the probabilities add up to exactly 1, because between them the values cover everything that can happen. Those two conditions are the whole of the theory, and the second one is how an unknown constant in a distribution is found.
So if a variable takes the values 1, 2, 3 and 4 with , then , giving . Only then can any probability be worked out: and .
The distribution of the total when two fair dice are thrown is worth knowing by heart, because it shows how unevenly a distribution can be spread. There are 36 equally likely outcomes and the totals run from 2 to 12, with the counts 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1.
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | |
|---|---|---|---|---|---|---|---|---|---|---|---|
Expectation E(X)
The expectation of a discrete random variable is : multiply every value by its probability and add the results. It is the average value of over a very large number of repetitions of the experiment, and it is the point at which the distribution would balance.
For a fair die, . Notice that 3.5 is not a face of the die. An expectation does not have to be a value the variable can actually take, and it does not have to be a whole number: it is an average, not an outcome.
For the total when two dice are thrown, without any arithmetic at all, because the distribution is symmetrical about 7. Symmetry is worth looking for before you start multiplying, and it also gives you a free check on a sum you have already done.
The probabilities act as weights, so values with larger probabilities pull the mean towards them: in the two-dice table the value 7 carries the largest probability and the mean sits exactly there.
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 |
Variance and standard deviation
The variance measures how spread out the values are, and the formula list gives it as , usually written . There are two separate sums: one for the mean of the values, , and one for the mean of the squares, .
For a fair die, , so , correct to 4 decimal places. The standard deviation is the square root of the variance, , and it is measured in the same units as .
A small variance means the values cluster near the mean; a large one means they are spread wide. Because every squared term is positive, a variance can never be negative - if you get a negative value you have subtracted the square of the mean from too small an , which usually means the two sums have been swapped.
Working in exact fractions and rounding only at the end keeps the last figure right. is exactly ; writing 15.17 and 12.25 and subtracting gives 2.92, which is close but not the value the mark scheme prints.
| 1 | |||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | |||
| Total | 1 |
The binomial distribution B(n, p)
The binomial distribution counts the number of successes in a fixed number of independent trials, where every trial has the same probability of success. Four conditions have to hold: a fixed number of trials, independent trials, two possible outcomes per trial, and the same probability of success every time. When they do, we write , where is the number of trials and is the probability of success on one trial.
The probability formula is for . The two parts do different jobs. The term is the probability of one particular order of successes and failures, and the coefficient counts how many different orders there are. Leaving out the coefficient is the commonest way to lose the accuracy mark.
For , , correct to 4 decimal places. Reading it back: 120 orders of three successes among ten trials, each order having probability 0.00222357.
Both numbers in the notation have a meaning that the question tests. means 20 trials with a probability of 0.15 of success; is not the same thing at all, and 20 is not a probability.
| Situation | Binomial? | Why |
|---|---|---|
| The number of sixes in 20 throws of a fair die | Yes | fixed, throws independent, constant |
| The number of questions a student guesses correctly in a test of 12 with 4 options each | Yes | if the answers are all guesses |
| The number of red counters in 5 counters drawn without replacement | No | the probability changes after each draw, so the trials are not independent |
| The number of throws until the first six appears | No | the number of trials is not fixed - that is the geometric distribution |
Binomial probabilities for at least, at most and exactly
Most questions ask for a range rather than a single value, and the answer is a sum of the terms the formula gives. There are no binomial tables in the 9709 formula booklet, so the terms are added by hand - which is why the questions keep the numbers small.
'At least one' is the case worth memorising: , because the only way to fail is for every trial to fail. With , , one line instead of eight terms.
'At least two' needs the terms for 0 and for 1: . With , , so to 4 decimal places.
'At most' and 'fewer than' go the other way. is the sum of the terms for 0, 1 and 2 with no subtraction, while is the sum of the terms for 0 and 1 only, because the value 2 is excluded by the strict inequality.
- , and
- , the quickest of all the range formulae
- , one term more than
- Every range probability is a sum of terms of the form
The mean and variance of the binomial distribution
For the formula list gives and , with standard deviation . Proofs are not required, so these are substituted into directly - but the meaning is worth holding on to: on average a proportion of the trials succeed.
For , prizes on average and , so the standard deviation is . The mean and the variance are close here because is small; when the variance is at its largest for a given , and it falls away towards 0 as approaches 0 or 1.
The two formulae are also used backwards, which is where marks are usually lost. If and , then , so , and the variance follows at once: . If instead the variance is given as 2.1 with , then , so and .
| Quantity | Formula | For |
|---|---|---|
| Mean | ||
| Variance | ||
| Standard deviation |
The geometric distribution Geo(p)
The geometric distribution counts the number of trials up to and including the first success. The trials are independent, the probability of success is the same on every trial, and the experiment stops as soon as a success occurs. We write , and the formula list gives for together with .
Read the formula as a story: failures, each with probability , followed by one success with probability . The smallest possible value of is 1, because the first trial could succeed, and there is no upper limit, because the first success might be a long way off.
For , and trials. The mean is worth reading as a sentence: with a probability of 0.2 of success, you expect to wait five trials.
A related probability comes up often: , because means the first trials all fail. For the same distribution, , and , since allows the third trial to succeed. The variance of the geometric distribution is not required at 9709 - the formula list gives only its mean - so never reach for a geometric variance formula.
| for | |
|---|---|
| 1 | 0.2 |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 |
Choosing the right model
'Recognise practical situations where these distributions are suitable models' is an objective in its own right, so the choice of model is often worth a mark. The question to ask first is whether the number of trials is fixed. If it is fixed, and the trials are independent with a constant probability of success, the model is binomial. If the trials continue until the first success, the model is geometric.
The condition that is most often broken is independence. Drawing counters from a bag without replacement changes the probability after every draw, so a binomial model is not suitable, however much the question looks like one. Sampling without replacement from a very large population is the exception: the probability changes so little that the binomial is used as a good approximation, which is why 'a large population' appears in the wording of those questions.
Two more situations do not fit either model and are outside this syllabus: counting successes in a sample from a small population without replacement, and counting events that occur independently in time or space. If a question describes one of those, it will give you the distribution table instead.
Whatever the model, the working starts the same way: define the variable in words, name the distribution with its parameters, and then substitute into the formula.
| The situation | The model | The parameters |
|---|---|---|
| A fixed number of independent trials, counting the successes | trials, probability of success on each | |
| Independent trials repeated until the first success, counting the trials | probability of success on each trial | |
| Sampling without replacement from a small population | neither - the trials are not independent | use the probability distribution table instead |
| Sampling from a large population, or from a small sample of a large one | as a good approximation | the probability is treated as constant |
Key terms you must be able to define
- Random variable
- A numerical value determined by the outcome of an experiment.
- Discrete random variable
- A random variable whose possible values can be listed one by one, each with its own probability.
- Probability distribution
- The table or formula that gives the probability of each value of a discrete random variable. The probabilities are all between 0 and 1 and add up to 1.
- Expectation
- , the mean value of X over a very large number of repetitions. It need not be a value X can take.
- , the mean of the squares of the values, used in the variance formula.
- Variance
- , a measure of how spread out the distribution is. It is never negative.
- Standard deviation
- The square root of the variance, in the same units as X. For a fair die it is .
- Trial
- One performance of the experiment: one throw of a die, one toss of a coin, one item inspected.
- Success
- The outcome a trial is being counted for. The other outcome is a failure, and its probability is .
- Binomial distribution
- , the number of successes in independent trials with constant probability . , and .
- Geometric distribution
- , the number of trials up to and including the first success. for and .
- Independent trials
- Trials where the outcome of one does not change the probability of the next. Both the binomial and the geometric models need them.
- Cumulative probability
- A probability of the form , found by adding the individual probabilities from the smallest value up to .
- Complement of an event
- In this topic, the quickest route to an 'at least' probability: .
Applied
At AS & A Level the marks sit in the setup: choosing the model, stating the variable and writing the equation before any working. These show the shape of a full-mark answer, then you do the algebra yourself.
Three fair coins are tossed and is the number of heads. The values are 0, 1, 2, 3 with probabilities , , , , which add to 1. Then , , and .
A multiple-choice test has 10 questions with 4 options each, and a student guesses every answer. With , . The coefficient 210 is the number of ways the four correct guesses can be arranged among the ten questions.
Five per cent of the items from a machine are defective, independently. With the number of items inspected up to and including the first defective one, , and items.
Two hundred seeds are sown, each germinating with probability 0.85, independently. With , seeds and , so the standard deviation is seeds.
A random variable has the distribution and . Then , so , and with standard deviation . Working backwards is the same substitution read in the other direction.
Flashcards
Click a card to flip it. Mark honestly — the tracker uses this.
Exam-style questions
8 questions, 33 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.
Mark scheme — tick each point you actually made
- M1
- A1not checked yet
- M1
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- A1not checked yet
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1
- A10.2362not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1
- A1not checked yet
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- A1not checked yet
- A1not checked yet
Mark scheme — tick each point you actually made
- M1
- M1
- M1
- A1
- A1
Mark scheme — tick each point you actually made
- B1
- B1
- B1
- B1
Mark scheme — tick each point you actually made
- M1
- A1not checked yet
- M1
- A1not checked yet
Exam technique for this topic
- Define the variable in words and name its distribution before calculating: 'Let be the number of seeds that germinate, so '. That sentence shows which model you are using and usually carries a mark.
- Check that a probability distribution table adds to 1 before you use it. A table adding to 0.9 has a missing value, and one adding to 1.1 has counted a value twice.
- Use the complement for 'at least one': . It is one term instead of n terms, and it removes the risk of leaving a term out.
- Substitute into and for a binomial, but remember that only the mean is available for a geometric distribution. Never use a geometric variance formula - it is not on the formula list.
- Give probabilities to three significant figures unless the question asks for more, keep full accuracy in the working, and check the answer is between 0 and 1.