Topic 4 · Lesson 1 of 4
Discrete distributions and the binomial
Random variables and discrete distributions
A random variable is a quantity whose value depends on chance, such as the score on a dice. Capital is the variable; lower-case is a particular value. It is discrete if it takes separate values (counts, scores) and continuous if it can take any value in a range (heights, times).
A probability distribution gives for every possible , and these probabilities must add up to 1. That fact lets you find unknowns. For example, if for , then , so , and .
In a discrete uniform distribution, every value is equally likely, like the score on a fair dice: for .
The binomial distribution: where it comes from
Suppose a basketball player scores each free throw with probability 0.3 and takes 10 throws. What is the probability of exactly 3 scores? One particular order, such as SSSFFFFFFF, has probability . But the 3 scores could be any 3 of the 10 throws, and the number of ways to choose them is (see the binomial expansion). Each way has the same probability, so
In general, if is the number of successes in trials, each with success probability , then (" has a binomial distribution") and
The bar chart shows the whole distribution . It peaks near 3, which is : on average you expect successes.
The conditions for a binomial model come straight from that derivation:
- A fixed number of trials, .
- Each trial has two outcomes (success or failure).
- The probability of success, , is the same for each trial.
- The trials are independent.
In context questions, you must say what these mean for the situation, for example "each seed germinates independently of the others, with the same probability".
Calculating binomial probabilities
For a single value use the formula or your calculator's binomial probability function. For ranges use the cumulative function, which gives (it is also in the tables in the formula booklet for some values of and ). Every other range can be built from it:
- , because only takes whole numbers.
- .
- .
Converting "at least", "more than" and "fewer than" into is where most errors happen, so write each step down.
Try it: move n and p and see which bars make up P(X = r), P(X ≤ r) or P(X ≥ r), with the working.
Try it: simulation
Binomial distribution and hypothesis tests
Loading the simulation…
Worked example
Binomial calculationsAS standard
The probability that a seed germinates is 0.3, independently. Ten seeds are planted. Find the probability that a) exactly 3 germinate, b) at most 3 germinate, c) at least 4 germinate, d) between 2 and 5 inclusive germinate.
Show solutionHide solution
- Let be the number that germinate: .
- a) .
- b) (cumulative function: the solid bars in the chart).
- c) .
- d) .
Worked example
Finding top grade
A machine makes items, of which 10% are faulty, independently. How many items must be checked so that the probability of finding at least one faulty item is more than 0.95?
Show solutionHide solution
- If items are checked, , so .
- Need , so .
- Take logs (dividing by , which is negative, reverses the inequality): .
- So at least 29 items. Check: , ✓.
Practise this topic
Both are part of Premium.