The Binomial Distribution
Counting successes across a fixed number of identical, independent trials happens so often it earns its own named distribution — and its own one-line formula.
The binomial conditions
A random variable follows a binomial distribution, written $X \sim B(n,p)$, when four conditions all hold:
$X$ then counts the number of successes across the $n$ trials.
Before using the binomial formula, exam questions frequently require you to justify that a scenario is binomial — and to flag when it isn't. Sampling without replacement from a small population, for instance, breaks the "constant $p$" and "independent" conditions simultaneously, since removing an item changes the proportions left for the next draw.
The binomial probability formula
For $X \sim B(n,p)$, the probability of exactly $r$ successes is
Each part has a role: $\binom{n}{r}$ counts how many ways $r$ successes can be arranged among $n$ trials; $p^r$ is the probability of those $r$ successes all happening; $(1-p)^{n-r}$ is the probability of the remaining $n-r$ trials all being failures.
Mean and using tables or a calculator
For $X\sim B(n,p)$, the mean is simply $E(X) = np$ — the number of trials times the probability of success, matching intuition directly. Cumulative probabilities such as $P(X\le r)$ are usually found from a calculator's binomial cumulative distribution function, or from statistical tables, rather than by adding individual terms by hand.
$P(X\ge r)$, $P(X\le r)$, $P(X>r)$ and $P(X<r)$ are all subtly different, and each needs converting to a form a cumulative table or calculator function actually computes. A reliable approach: rewrite everything in terms of $P(X\le k)$ for some $k$, using $P(X\ge r)=1-P(X\le r-1)$ and $P(X>r)=1-P(X\le r)$.
Worked example 1
State the distribution ($X\sim B(8,0.5)$) explicitly before calculating — this is often a method mark on its own, and forces you to double-check $n$, $p$, and what counts as "success" before the arithmetic begins.
Worked example 2
In practice, a calculator's binomial cumulative distribution function returns $P(X\le 2)$ directly from $n$, $p$ and $2$ in a single step — the term-by-term addition here shows what that function is doing internally, but exam technique should default to the calculator function once the distribution is correctly identified.
Worked example 3
"Without replacement" is the single most common way a scenario fails to be binomial — always check for it explicitly. (This kind of situation instead follows a different model, the hypergeometric distribution, which sits beyond this course.)
Worked example 4
With $n=30$ and $p=0.3$, the mean number of successes is $9$ — so $X=3$ is far below the "typical" outcome, and its probability is correspondingly small. Values of $X$ close to $np$ carry the most probability; values far from it, in either direction, are increasingly unlikely, which is exactly the shape shown in the bar chart earlier in this lesson.
$\binom{n}{r}$ counts arrangements, not probability — never forget it, or the formula collapses into "probability of one specific sequence of successes and failures" rather than "probability of $r$ successes in any order". And always double check whether a question wants $P(X=r)$ (exact) or a cumulative probability — these need entirely different calculator functions.
Check yourself
$X\sim B(10, 0.4)$. Find $P(X=4)$ and $E(X)$.
(Hint: use the binomial formula for P(X=4), and E(X)=np for the mean.)