Introduction to Bernoulli sequences and the binomial distribution
In Year 12 Mathematical Methods (Queensland, QCAA), a Bernoulli trial is a single trial with two outcomes — success or failure — with success probability \(p\). A Bernoulli sequence is \(n\) independent such trials, all with the same \(p\); the number of successes \(X\) is a binomial random variable \(X\sim B(n,p)\), with probability function \(P(X=x)=\dbinom{n}{x}p^{x}(1-p)^{n-x}\).
A Bernoulli trial is a single trial with exactly two outcomes, a success (probability \(p\)) or a failure (probability \(1-p\)) — a coin toss, or testing whether one item is defective.
A Bernoulli sequence is a run of \(n\) Bernoulli trials that are independent and all have the same success probability \(p\). The number of successes in the sequence, \(X\), is a binomial random variable, written
\(X\sim B(n,p),\)
with parameters \(n\) (the number of trials) and \(p\) (the success probability). \(X\) can take the values \(0,1,2,\dots,n\), and its probability function is \(P(X=x)=\dbinom{n}{x}p^{x}(1-p)^{n-x}\). The binomial model applies only when there are two outcomes, a fixed \(n\), independent trials, and a constant \(p\).
The binomial probability function, for \(X\sim B(n,p)\) and \(x=0,1,\dots,n\):
where the binomial coefficient counts the arrangements of the \(x\) successes:
Cumulative and interval probabilities (found with technology):
How to work with a binomial distribution
- Check the conditions. Two outcomes per trial, a fixed number \(n\) of trials, independent trials, and a constant success probability \(p\). If all hold, \(X\sim B(n,p)\).
- Identify \(n\), \(p\) and \(x\). \(n\) is how many trials, \(p\) is the success probability, and \(x\) is the number of successes you want.
- Apply the formula. For a single value, \(P(X=x)=\dbinom{n}{x}p^{x}(1-p)^{n-x}\).
- Translate the language. Rewrite “at least”, “at most”, “more than” or “between” as a range of \(x\)-values, then add the terms or use cumulative technology (e.g. \(\texttt{binomcdf}\)).
Check the four conditions: two outcomes (head/tail), \(n=20\) fixed, tosses independent, and \(p=\tfrac12\) constant.
All four hold, so \(X\sim B(20,0.5)\) — yes, binomial.
Use the formula with \(n=6\), \(x=2\).
| \(P(X=2)\) | \(=\) | \(\dbinom{6}{2}(0.4)^{2}(0.6)^{4}\) |
| \(=\) | \(15\times 0.16\times 0.1296\) | |
| \(=\) | \(0.3110\) |
Here \(X\sim B(5,\tfrac16)\). Use the complement of “no sixes”.
| \(P(X\ge 1)\) | \(=\) | \(1-P(X=0)\) |
| \(=\) | \(1-\left(\dfrac{5}{6}\right)^{5}\) | |
| \(=\) | \(\dfrac{4651}{7776}\approx 0.598\) |
An inclusive range: keep \(x=3,4,5\). Use a difference of cumulative values from technology.
| \(P(3\le X\le 5)\) | \(=\) | \(P(X\le 5)-P(X\le 2)\) |
| \(=\) | \(0.8338-0.1673\) | |
| \(=\) | \(0.6665\) |
Common pitfalls
Frequently asked questions
What is a Bernoulli trial?
A single trial with exactly two outcomes — a success (probability \(p\)) or a failure (probability \(1-p\)). A coin toss or a single pass/fail test is a Bernoulli trial.
When does X have a binomial distribution?
When there is a fixed number \(n\) of independent trials, each a Bernoulli trial with the same success probability \(p\), and \(X\) counts the successes. Then \(X\sim B(n,p)\).
What is the binomial probability formula?
\(P(X=x)=\dbinom{n}{x}p^{x}(1-p)^{n-x}\) for \(x=0,1,\dots,n\). The \(\dbinom{n}{x}\) factor counts the arrangements of the \(x\) successes.
How do you find “at least” and “at most” probabilities?
“At most \(k\)” is \(P(X\le k)\); “at least \(k\)” is \(P(X\ge k)=1-P(X\le k-1)\). Use cumulative technology such as \(\texttt{binomcdf}\).
Why is sampling without replacement not binomial?
Removing each item changes what is left, so \(p\) is not constant and the trials are not independent. That breaks the binomial conditions.
What does the column graph show?
Each column's height is \(P(X=x)\), and the columns add to \(1\). The tallest column is the most likely number of successes; \(p=\tfrac12\) gives a symmetric graph.