Sampling With Replacement - The Binomial Distribution
Meet the binomial distribution for Victorian Year 11 Mathematical Methods (VCAA) — the pattern of probabilities for the number of successes in a fixed number of independent trials.
You will learn to recognise when a situation is binomial, identify the number of trials and the success probability, and calculate probabilities for exactly, at most and at least a given number of successes.
Theory
In Year 11 Mathematical Methods (Unit 2), a binomial distribution describes the number of successes \(X\) in a fixed number of independent trials, each with the same success probability. We write \(X\sim\text{Bi}(n,\,p)\). This page sets out the binomial conditions, the probability formula \(P(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k}\), and how to find exact, “at least” and cumulative probabilities.
A binomial experiment is a fixed number \(n\) of trials that each meet four conditions:
- there are exactly two outcomes each trial — a success or a failure;
- the trials are independent (one outcome does not affect the next);
- the success probability \(p\) is constant across all trials;
- the number of trials \(n\) is fixed in advance.
Let \(X\) be the number of successes in the \(n\) trials. Then \(X\) has a binomial distribution, written \(X\sim\text{Bi}(n,\,p)\), and \(X\) can take the whole-number values \(0,1,2,\dots,n\). The failure probability is \(1-p\), sometimes written \(q\).
For \(X\sim\text{Bi}(n,\,p)\), the probability of exactly \(k\) successes is:
where the binomial coefficient counts the arrangements of the \(k\) successes:
For “at least one” use the complement, and for a range add the terms:
How to find a binomial probability
- Check it is binomial: fixed \(n\) trials, two outcomes, independent, constant \(p\).
- Identify \(n\), \(p\), \(k\): \(n\) is the number of trials, \(p\) the success probability on one trial, \(k\) the number of successes asked for.
- Apply the formula: substitute into \(P(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k}\) and evaluate (usually to \(4\) decimal places).
- Handle words: “at least one” \(\Rightarrow 1-P(X=0)\); “at most” or “fewer than” \(\Rightarrow\) add the separate terms.
Identify the parameters:
| \(n\) | \(=\) | \(6\) |
| \(p\) | \(=\) | \(0.25\) |
| \(k\) | \(=\) | \(2\) |
Substitute into \(P(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k}\):
| \(P(X=2)\) | \(=\) | \(\binom{6}{2}(0.25)^{2}(0.75)^{4}\) |
Evaluate each factor, then multiply:
| \(=\) | \(15\times 0.0625\times 0.316406\ldots\) | |
| \(=\) | \(0.2966\) |
\(P(X=2)=0.2966\).
“At least one” is easiest by the complement:
| \(P(X\ge 1)\) | \(=\) | \(1-P(X=0)\) |
Find \(P(X=0)\) — no successes, so all five fail:
| \(P(X=0)\) | \(=\) | \(\binom{5}{0}(0.3)^{0}(0.7)^{5}\) |
| \(=\) | \(0.16807\) |
Subtract from \(1\):
| \(P(X\ge 1)\) | \(=\) | \(1-0.16807\) |
| \(=\) | \(0.8319\) |
\(P(X\ge 1)=0.8319\).
“At most one” means \(0\) or \(1\) success:
| \(P(X\le 1)\) | \(=\) | \(P(X=0)+P(X=1)\) |
Compute each term separately:
| \(P(X=0)\) | \(=\) | \((0.8)^{6}=0.262144\) |
| \(P(X=1)\) | \(=\) | \(\binom{6}{1}(0.2)(0.8)^{5}=0.393216\) |
Add the two probabilities:
| \(P(X\le 1)\) | \(=\) | \(0.262144+0.393216\) |
| \(=\) | \(0.6554\) |
\(P(X\le 1)=0.6554\).
(i) Exactly four heads — substitute \(k=4\):
| \(P(X=4)\) | \(=\) | \(\binom{8}{4}(0.5)^{4}(0.5)^{4}\) |
| \(=\) | \(70\times (0.5)^{8}\) | |
| \(=\) | \(0.2734\) |
(ii) “At least six” sums the upper tail \(k=6,7,8\):
| \(P(X\ge 6)\) | \(=\) | \(\big(\tbinom{8}{6}+\tbinom{8}{7}+\tbinom{8}{8}\big)(0.5)^{8}\) |
| \(=\) | \((28+8+1)\times 0.00390625\) | |
| \(=\) | \(0.1445\) |
\(P(X=4)=0.2734\) and \(P(X\ge 6)=0.1445\).
Common pitfalls
Frequently asked questions
When is a distribution binomial?
When there is a fixed number \(n\) of independent trials, each with only two outcomes and the same success probability \(p\), and \(X\) counts the successes. Then \(X\sim\text{Bi}(n,\,p)\).
What is the binomial probability formula?
\(P(X=k)=\binom{n}{k}p^{k}(1-p)^{n-k}\), the number of arrangements \(\binom{n}{k}\) times \(k\) successes \(p^{k}\) times \(n-k\) failures \((1-p)^{n-k}\).
How do I find “at least one”?
Use the complement: \(P(X\ge 1)=1-P(X=0)\), where \(P(X=0)=(1-p)^{n}\). This avoids adding every other term.
What do n, p and k mean?
\(n\) is the number of trials, \(p\) is the probability of success on a single trial, and \(k\) is the number of successes whose probability you want.
What is the shape of a binomial distribution?
The histogram is symmetric when \(p=0.5\), skewed right when \(p<0.5\), and skewed left when \(p>0.5\).