Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 4.8 · SL and HL
The binomial distribution
When the same chance event is tried a fixed number of times, how likely is each possible number of successes, and how many should you expect?
What you will learn
- Know the four conditions that make a binomial model appropriate.
- Understand where binomial probabilities come from, by counting routes through a tree.
- Know the mean np and variance np(1 − p) of a binomial distribution.
- Understand how words such as "at least" and "fewer than" become whole-number ranges.
You must be able to
- Calculate binomial probabilities, single and cumulative, with a GDC.
- State the assumptions for a binomial model in the context of the question.
- Calculate the mean, variance and standard deviation of a binomial variable.
- Calculate n and p from a given mean and variance.
- Solve for the least number of trials so that at least one success passes a given probability.
- Solve two-stage problems where a binomial probability feeds a conditional or a second model.
In the exam. almost always Paper 2, as 4 to 7 marks inside a longer probability question: define the variable, find , or a range with your GDC, then use the answer in a later part. Some parts are pure algebra, such as finding and from a given mean and variance. Section B questions often join this page to the normal distribution (4.9): a normal model gives the probability of one item being faulty, and the binomial counts the faulty items in a batch.
1When the binomial model fits
A binomial random variable = the number of successes in a set of trials. It is the right model only when all four of these hold. Figure 1 lays them out as a checklist.
- A fixed number of trials, , decided before you start.
- Two outcomes per trial, success or failure. "Success" is just the outcome you are counting. It can be a faulty bulb.
- The same probability of success, , on every trial.
- The trials are independent. The result of one does not change the probability for another.
- Practise judging examples, because the exam asks you to.
- Binomial: guessing a test. A student guesses every answer on a 10-question test with 4 options each. is the number correct. is fixed, each answer is correct or wrong, each time, and one guess does not affect the next. .
- Not binomial: rolling for a six. You roll a die until you get a six, and is the number of rolls. There is no fixed . The count of trials is the thing that varies.
- Not binomial: tiles without replacement. You take 4 tiles from 12, of which 5 are blue, without putting any back. The first is blue with probability , the next if a blue has gone. changes, so the trials are not independent. Put each back and it would be binomial.
- Doubtful: ferry cancellations. is the number of days in a week on which a ferry is cancelled. is fixed, with two outcomes. But one storm can cancel several days running, so independence is doubtful. A binomial model is a weak assumption you would have to state.
- Real samples are usually drawn without replacement. Choose 12 people from a city of 600 000: removing one changes the proportion of the rest negligibly. The binomial is then an excellent approximation, and the exam treats it as the model.
- When the population is small, as with the 12 tiles, it is not.
- When a question asks you to state an assumption, name the condition that could fail, in the context's own words.
- Example: "the probability that a seed germinates is the same for every seed." And: "seeds germinate independently of one another." A bare list of the four conditions does not answer the question.
needs: fixed , two outcomes, constant , independent trials. Define in words every time: " is the number of seeds, out of 20, that germinate."
2Where the probabilities come from
Example: a student guesses three questions, each with four options. The probability of guessing a question correctly is and of getting it wrong is . Let be the number correct. Figure 2 draws the tree.
There are routes. Take the three routes with exactly two correct: CCW, CWC and WCC. Each has two C branches and one W branch, so each has probability , whatever the order. There are three of them, so
Every route with successes out of has the same probability, . The number of such routes is the number of ways to choose which of the trials are the successes, . So
- The four values for three guesses are , , and for . They add to , as a probability distribution must.
- The numbers of routes, , are the row of binomial coefficients you met in 1.9. That is why it is the binomial distribution: the probabilities are the terms of the expansion of , where .
- The triangle of these coefficients carries Pascal's name. The Chinese mathematician Yang Hui wrote about it in the 13th century, long before Pascal.
- You need this formula to understand the distribution and for the few cases that need no calculator.
- , because every trial must fail.
- , because every trial must succeed.
- A small case like the one above.
- The guide says binomial probabilities in examinations are found with technology, so in the exam you use the GDC.
3Using the GDC, and turning words into numbers
Every GDC has two binomial functions. Their names differ by model, but they do the same two jobs.
| What you want | Function | TI-84 Plus name | Casio name |
|---|---|---|---|
| , one value | binomial pdf | Binomial PD | |
| , everything up to and including | binomial cdf | Binomial CD |
- Some models (TI-Nspire, Casio) let the cumulative function take a lower and an upper bound. Others take only the upper bound, and you subtract. Either way, the cumulative function counts up from 0 and includes itself. Every mistake here comes from forgetting half of that sentence.
- Turn the exam's wording into whole numbers first. can only be . So "fewer than 4" and "at most 3" are the same event, and "more than 4" is "at least 5".
- Figure 3 rings the values for each range phrase. "Between 2 and 6 inclusive" is most often got wrong: it is the cdf at minus the cdf at , not at .
| Words | Values of | On the GDC |
|---|---|---|
| exactly 4 | pdf at | |
| at most 4, no more than 4 | to | cdf at |
| fewer than 4, less than 4 | to | cdf at |
| at least 4, no fewer than 4 | to | cdf at |
| more than 4 | to | cdf at |
| between 2 and 6 inclusive | to | cdf at cdf at |
The "at least" line uses the complement. is everything from upwards, which is everything except , , and . So . The number after "" is always one less than the number in the question.
Worked example 1: ten guesses. A student guesses all 10 questions on a test where each has four options. Let be the number correct, so . Figure 4 shows the whole distribution.
So a student who passes by getting at least half the questions right has less than an 8% chance of doing it by pure guessing.
Worked example 2: vending machine. A machine hands over the right drink with probability on each purchase, independently. During a morning 30 people use it. Let be the number served correctly, so .
Write the probability statement, such as , before the number. It shows the whole numbers you chose, so a keying slip can still earn the method mark.
Worked example 3: given that. A lab sets up 14 bacterial cultures. Each grows with probability , independently. Let be the number that grow, so . Given that at least 8 grow, find the probability that fewer than 12 grow.
This is conditional probability (4.6) with binomial numbers. The condition is the denominator. The numerator is the part of it that also meets , which is .
The usual slip is to divide by instead, or to leave the denominator out.
A fixed position for the last success
- Some questions say when a success arrives. Example: "the second hit comes on the sixth shot" for a shooter who hits with probability .
- That means exactly one hit in the first five shots, in any order, and then a hit on shot six. The first five shots are binomial. The sixth is a single fixed outcome.
- Do not use for six shots here. That allows the second hit to come earlier or later.
Percentages and the model
- Thresholds are often stated as a percentage of the sample. Turn it into a whole number of successes.
- Example: a survey team phones 40 households, each answering with probability , independently. The results count only if at least 25% of the households answer. , so the results count when , where . Then .
- If the percentage is not a whole number, use the whole number the words allow. "More than 20% of 25" is more than 5, so .
4Mean and variance
The formula booklet gives, for :
and . The standard deviation is .
- The mean is the expected number of occurrences from 4.5 under a new name. Example: guess 10 questions with and you expect correct.
- No single test gives . is the long-run average, so it need not be a whole number and is not rounded to one. Figure 4 marks it as the balance point of the bars.
- For ten guesses, , and the standard deviation is (3 s.f.). For the vending machine, and .
- The most likely value is a whole number next to the mean: here, for .
- Counting failures instead of successes swaps the roles of and . If is the number of wrong drinks, then .
- Its mean is , so the two means add to . Its variance is the same , because does not change when and trade places.
When is not given
- Sometimes the probability has to come from data. The relative frequency of success in a long run of trials is the best estimate of .
- Example: in a sample of 80 roof tiles, 14 are cracked, so take . In the next 40 tiles, . The expected number of cracked tiles is and the variance is .
- The first 80 tiles only fixed . The in the model is the number of tiles you are now asked about.
- The factor is largest when and shrinks towards 0 as approaches 0 or 1. When success is almost certain, or almost impossible, the results hardly vary. Figure 5 shows three distributions with .
- The peak sits at or next to .
- The distribution is symmetric when .
- Otherwise its bulk sits towards whichever end is close to, with the longer tail stretching the other way.
The guide does not ask you to prove these formulas, only to use them. A common use is finding and from a given mean and variance. Divide the variance by the mean and cancels.
Worked example 4: find n and p. with and .
Check: . On Paper 2 the question might go on: find . With , that is (3 s.f.).
- Two variations are examined.
- Variance and given. comes from a quadratic, so there are two values. For and , see below.
- The mean limits . Because , the mean can never exceed . A binomial with mean needs .
Both give the same variance, since swapping success and failure does not change the spread. The context picks one: a given mean, or a statement that .
5Finding n: "the least number of trials so that…"
The most common version asks for the smallest that makes "at least one success" likely enough. The complement makes it neat: "at least one" is "not none".
Worked example 5: scratch cards. Each card in a scratch game wins a prize with probability , independently. Find the least number of cards a player must buy so that the probability of at least one win is greater than .
Let be the number of winning cards out of , so .
- The logarithm step reverses the inequality because is negative.
- The GDC is a safer route: tabulate and read down the table. At the value is , just short. At it is . Figure 6 plots those values.
- Either way, show both neighbours in your working. fails and works is what proves is the least.
The same GDC table method handles harder versions where the complement is not a single term, such as "the least so that ". Tabulate against and find the first value that passes.
Reliability
- A system that works as long as at least one part works is an "at least one" problem.
- Example: an alarm relies on independent sensors, each of which detects a fault with probability . Find the least number of sensors that makes the alarm work with probability above . Here , so and .
- Check the neighbours: gives , which falls short, and gives . So .
- Questions of this kind often ask you to justify a choice between two set-ups. Compute the same probability for each and compare the numbers.
Two-stage problems
- A binomial count often sits on top of another probability.
- Example: a machine fills bottles, and the probability that one is underfilled comes first from a normal model (4.9). The number of underfilled bottles in a crate of 24 is then that probability. The expected number is times it.
- Keep the first probability to full calculator accuracy when you use it as . Rounding it to two figures can change the third figure of the final answer.
- When some trials have already happened, only the remaining ones are random. Example: a target of at least 17 successes in 20 trials, with 12 banked from the first 14, needs at least 5 more from the last 6.
Practice questions
39 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.