Random Variables
Senior 6 · Mathematics
Random Variables
Lesson 3 of 5
40 min
Many random counts come from one of two situations. In the first, a fixed number of independent attempts each succeed or fail with the same probability: seeds that germinate or not, questions answered right or wrong, items that pass or fail an inspection. That count follows a binomial distribution. In the second, events happen one at a time, at random moments, at a steady average rate: customers arriving at a counter, calls reaching a switchboard, typing errors on a page. That count follows a Poisson distribution, named after the French mathematician Siméon Denis Poisson (1781–1840).
Definition
A Bernoulli trial is an experiment with two outcomes, "success" (probability ) and "failure" (probability ).
Let be the number of successes in Bernoulli trials that are independent and all have the same . Then has the binomial distribution , written :
Example: the number of sixes in 5 rolls of a fair die is .
Important
Why the formula holds. Any particular order of successes and failures has probability (independence), and there are ways to choose which trials are the successes. By the binomial theorem, the probabilities add up to .
Mean and variance. If , then
( is a sum of independent Bernoulli variables, each with mean and variance ; means and, for independent variables, variances add.)
Worked example 1: germinating seeds
Suppose (illustratively) that each bean seed in a batch germinates with probability 0.8, independently. A farmer plants 10 seeds. Find the probability that exactly 8 germinate, the probability that at least 9 germinate, and the mean and standard deviation of the number that germinate.
Solution. .
, , .
Worked example 2: guessing in a test
A pupil guesses all 10 questions of a multiple-choice test, each with 4 options. Find the probability of no correct answers, and of at least 5.
Solution. . . For at least 5, add for : . Guessing gives on average correct answers, and passing with half marks happens fewer than 8 times in 100.
Definition
Let count the events in a fixed interval (of time, length, area …) when events occur singly, independently of each other, and at a constant average rate. If the mean number per interval is , has the Poisson distribution :
with . The probabilities add up to 1 because . Example: if a page has on average 1.5 typing errors, the number of errors on a page is modelled by .
Worked example 3: customers at an agent
In an illustrative model, customers reach a mobile-money agent at an average rate of 3 per 10 minutes. Find the probability that (a) no customer arrives in a 10-minute period; (b) at least 2 arrive in 10 minutes; (c) exactly 4 arrive in 20 minutes.
Solution. (a) : .
(b) .
(c) The rate scales with the interval: in 20 minutes the mean is . .
Important
Poisson approximation to the binomial. If is large and is small, then is close to with . A common working rule is and .
Reason. With , . As , the first and last factors tend to 1 and .
Worked example 4: defective items
A machine makes items of which 1% are defective, independently. Estimate the probability that a box of 200 items contains at most 2 defective ones.
Solution. with large and small, so use :
The exact binomial value is also 0.677 to three decimal places, as the figure shows.
Warning
Check the conditions before using a model. Drawing 5 cards from 52 without replacement is not binomial: changes after every draw. Arrivals that come in groups (a bus unloading passengers) are not Poisson: events must occur singly.
Match to the interval asked about. A rate of 3 per 10 minutes is a mean of 6 per 20 minutes and 0.3 per minute.
Tip
"At least one" is almost always quickest through the complement: . For this is ; for it is .
Khan Academy: Poisson process 1 (about 11 min). Watch how counting cars passing a point is first modelled as a binomial with many small time slots, and how letting the number of slots grow leads to the Poisson formula, as in the approximation above.
Practice
Questions 1 to 3 are routine; 4 to 6 need more care; 7 asks you to reason.
Sources and credits