Skip to main content

Binomial probability calculations: exact values, cumulative probabilities and complements

Syllabus dot point

“Compute exact probabilities for the binomial distribution including P(X=k)P(X = k), P(X≤k)P(X \le k), P(X≥k)P(X \ge k), and use complementary counting”

HSCMaths Extension 1Statistical Analysis (ME-S1)11 min read

Quick answer

Compute binomial probabilities with P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}; for cumulative or ranged probabilities, sum the pmf; for "at least" with small kk, use complementary counting P(X≥k)=1−P(X≤k−1)P(X \ge k) = 1 - P(X \le k - 1).

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Exam-style questions

What this dot point is asking

NESA wants you to compute binomial probabilities of every type: exact P(X=k)P(X = k), ranges P(X≤k)P(X \le k) or P(X≥k)P(X \ge k), and at-least/at-most using complementary counting.

The answer

Exact probability

For X∼B(n,p)X \sim B(n, p),

P(X=k)=(nk)pk(1−p)n−k,k=0,1,…,n.P(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}, \quad k = 0, 1, \dots, n.

Cumulative probability (sum of pmf values)

P(X≤k)=∑i=0k(ni)pi(1−p)n−i.P(X \le k) = \sum_{i = 0}^{k} \binom{n}{i} p^i (1 - p)^{n - i}.

For HSC problems with small nn, sum the pmf values up to kk.

Complementary probability

For "at least kk":

P(X≥k)=1−P(X≤k−1)=1−∑i=0k−1P(X=i).P(X \ge k) = 1 - P(X \le k - 1) = 1 - \sum_{i = 0}^{k - 1} P(X = i).

For small kk (like k=1k = 1 or k=2k = 2), this is much faster than summing kk to nn.

Key fact

Every binomial probability is built from P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}. A cumulative probability is a sum of these terms; an "at least" probability is fastest as a complement, P(X≥k)=1−P(X≤k−1)P(X \ge k) = 1 - P(X \le k - 1). The complement is worth using whenever the tail you keep is shorter than the tail you would otherwise sum, and the two special cases worth memorising are P(X=0)=(1−p)nP(X = 0) = (1 - p)^n and P(X≥1)=1−(1−p)nP(X \ge 1) = 1 - (1 - p)^n.

Standard problem patterns

Exact number of successes: P(X=k)P(X = k) directly from the pmf.

At least one success: P(X≥1)=1−P(X=0)=1−(1−p)nP(X \ge 1) = 1 - P(X = 0) = 1 - (1 - p)^n.

No successes: P(X=0)=(1−p)nP(X = 0) = (1 - p)^n.

All successes: P(X=n)=pnP(X = n) = p^n.

Between two values: P(j≤X≤k)=∑i=jkP(X=i)P(j \le X \le k) = \sum_{i = j}^{k} P(X = i).

Choosing the easier sum

If asked P(X≥k)P(X \ge k) and n−k+1n - k + 1 is small, sum directly. If n−k+1n - k + 1 is large, use 1−P(X≤k−1)1 - P(X \le k - 1) (complementary).

For "at most kk", consider whether kk or n−kn - k is smaller. If kk is smaller, sum directly.

Complementary counting, stage by stage

The single most useful move in these questions is to count the complement when it is shorter. Take a five-question multiple-choice test with four options each, guessed at random, so X∼B(5,0.25)X \sim B(5, 0.25), and suppose the question asks for P(X≥2)P(X \ge 2), the probability of getting at least two right. The three panels show why the complement wins.

Stage 1, picture the whole distribution. The bars are the six probabilities P(X=0)P(X = 0) through P(X=5)P(X = 5) from the pmf. Getting "at least 22" right means the bars from k=2k = 2 rightward, which is four terms to add. That is doable but slow.

Complementary counting on B(5, 0.25)A bar chart of P(X equals k) for five trials with success probability 0.25, used to show that P(X at least 2) equals 1 minus P(X equals 0) minus P(X equals 1).kP(X = k)00.23710.39620.26430.08840.01550.001Stage 1The full distribution of X for five guesses. We want P(X at least 2).

Stage 2, identify the shorter complement. The complement of "at least 22" is "fewer than 22", that is X=0X = 0 or X=1X = 1, the two leftmost bars (shown in accent). Only two terms: P(X=0)=(0.75)5≈0.2373P(X = 0) = (0.75)^5 \approx 0.2373 and P(X=1)=(51)(0.25)(0.75)4≈0.3955P(X = 1) = \binom{5}{1}(0.25)(0.75)^4 \approx 0.3955.

Complementary counting on B(5, 0.25)A bar chart of P(X equals k) for five trials with success probability 0.25, used to show that P(X at least 2) equals 1 minus P(X equals 0) minus P(X equals 1).kP(X = k)012345Stage 2The complement (accent) is the short tail X = 0 and X = 1: only two terms.

Stage 3, subtract from one. The answer is everything that is not the complement: P(X≥2)=1−P(X=0)−P(X=1)≈1−0.2373−0.3955=0.3672P(X \ge 2) = 1 - P(X = 0) - P(X = 1) \approx 1 - 0.2373 - 0.3955 = 0.3672. The accent bars now mark the region you actually wanted, found with two terms instead of four.

Complementary counting on B(5, 0.25)A bar chart of P(X equals k) for five trials with success probability 0.25, used to show that P(X at least 2) equals 1 minus P(X equals 0) minus P(X equals 1).kP(X = k)012345Stage 3P(X at least 2) (accent) = 1 minus the complement = 1 - 0.2373 - 0.3955 = 0.367.

Why the binomial coefficient appears

The factor (nk)\binom{n}{k} in the probability formula counts the number of distinct orderings in which exactly kk successes can fall among nn trials. Each specific ordering has probability pk(1−p)n−kp^k (1 - p)^{n - k}, and there are (nk)\binom{n}{k} of them, so the total probability of exactly kk successes multiplies the two. This is also why binomial probabilities and the binomial theorem share the same coefficients: expanding (p+q)n(p + q)^n produces exactly the terms (nk)pkqn−k\binom{n}{k} p^k q^{n - k}, and summing them over all kk gives (p+q)n=1(p + q)^n = 1, confirming the whole distribution has total probability one.

How exam questions ask about binomial probabilities

Half the difficulty in these questions is converting English into the right probability statement, then choosing the shorter calculation. The wordings, and the inequality each one means, are:

  • "exactly kk": P(X=k)P(X = k) straight from the pmf.
  • "at least kk": P(X≥k)P(X \ge k). For small kk use the complement 1−P(X≤k−1)1 - P(X \le k - 1).
  • "at most kk": P(X≤k)P(X \le k), a direct sum from 00 to kk.
  • "more than kk": P(X≥k+1)P(X \ge k + 1), one step further than "at least kk".
  • "fewer than kk" / "less than kk": P(X≤k−1)P(X \le k - 1), stopping one short of kk.
  • "between jj and kk (inclusive)": P(j≤X≤k)=∑i=jkP(X=i)P(j \le X \le k) = \sum_{i=j}^{k} P(X = i).
  • "at least one": the most common complement of all, P(X≥1)=1−(1−p)nP(X \ge 1) = 1 - (1 - p)^n.

Misreading "more than" as "at least" shifts the boundary by one and is a frequent source of lost marks. Once the inequality is fixed, decide whether a direct sum or a complement is the shorter calculation, and state which you are using.

Exam technique

Translate the words into an inequality before you touch the calculator, and write that inequality down: it is usually a mark on its own and stops boundary slips. Watch the strict-versus-inclusive line, "more than kk" excludes kk (X≥k+1X \ge k + 1), while "at least kk" includes it (X≥kX \ge k). When you use a complement, write the line P(X≥k)=1−P(X≤k−1)P(X \ge k) = 1 - P(X \le k - 1) explicitly so the marker sees the logic, and double-check you have not double-counted X=kX = k. Keep each pmf term as a substituted expression before its decimal value, and give a final answer to three or four decimal places unless told otherwise. For large nn where even the complement is many terms, say so and reach for the normal approximation instead.

Worked example

Compute an exact probability using the pmf

For X∼B(8,0.3)X \sim B(8, 0.3), find P(X=3)P(X = 3). Substitute n=8n = 8, k=3k = 3, p=0.3p = 0.3 directly into P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}:

P(X=3)=(83)(0.3)3(0.7)5=56⋅0.027⋅0.16807≈56⋅0.004538≈0.2541.P(X = 3) = \binom{8}{3} (0.3)^3 (0.7)^5 = 56 \cdot 0.027 \cdot 0.16807 \approx 56 \cdot 0.004538 \approx 0.2541.

The binomial coefficient (83)=56\binom{8}{3} = 56 counts the arrangements of 33 successes in 88 trials; the rest of the expression is the probability of each specific ordering.

Sum pmf values for a cumulative probability

For X∼B(4,0.5)X \sim B(4, 0.5), find P(X≤2)P(X \le 2) by summing the pmf at k=0,1,2k = 0, 1, 2. With p=0.5p = 0.5 the formula simplifies because pk(1−p)n−k=(0.5)4p^k(1-p)^{n-k} = (0.5)^4 regardless of kk:

P(X=0)=(40)(0.5)4=(0.5)4=0.0625,P(X = 0) = \binom{4}{0}(0.5)^4 = (0.5)^4 = 0.0625,

P(X=1)=(41)(0.5)4=4⋅0.5⋅0.125=0.25,P(X = 1) = \binom{4}{1}(0.5)^4 = 4 \cdot 0.5 \cdot 0.125 = 0.25,

P(X=2)=(42)(0.5)4=6⋅0.25⋅0.25=0.375.P(X = 2) = \binom{4}{2}(0.5)^4 = 6 \cdot 0.25 \cdot 0.25 = 0.375.

Summing: P(X≤2)=0.0625+0.25+0.375=0.6875P(X \le 2) = 0.0625 + 0.25 + 0.375 = 0.6875.

Use complementary counting for an "at least" problem

For X∼B(10,0.1)X \sim B(10, 0.1), find P(X≥1)P(X \ge 1). Computing P(X=1)+⋯+P(X=10)P(X = 1) + \cdots + P(X = 10) requires ten terms. Instead, use the complement: the only alternative to getting at least one success is getting none at all.

P(X≥1)=1−P(X=0)=1−(0.9)10≈1−0.3487=0.6513.P(X \ge 1) = 1 - P(X = 0) = 1 - (0.9)^{10} \approx 1 - 0.3487 = 0.6513.

Find a between-values probability by summing three terms

For X∼B(6,0.4)X \sim B(6, 0.4), find P(2≤X≤4)P(2 \le X \le 4). There is no shortcut here; sum the pmf at k=2,3,4k = 2, 3, 4:

P(X=2)=(62)(0.4)2(0.6)4=15⋅0.16⋅0.1296≈0.3110,P(X = 2) = \binom{6}{2}(0.4)^2(0.6)^4 = 15 \cdot 0.16 \cdot 0.1296 \approx 0.3110,

P(X=3)=(63)(0.4)3(0.6)3=20⋅0.064⋅0.216≈0.2765,P(X = 3) = \binom{6}{3}(0.4)^3(0.6)^3 = 20 \cdot 0.064 \cdot 0.216 \approx 0.2765,

P(X=4)=(64)(0.4)4(0.6)2=15⋅0.0256⋅0.36≈0.1382.P(X = 4) = \binom{6}{4}(0.4)^4(0.6)^2 = 15 \cdot 0.0256 \cdot 0.36 \approx 0.1382.

P(2≤X≤4)≈0.3110+0.2765+0.1382≈0.7257.P(2 \le X \le 4) \approx 0.3110 + 0.2765 + 0.1382 \approx 0.7257.

Apply the special case P(X≥1)=1−(1−p)nP(X \ge 1) = 1 - (1-p)^n

A coin is flipped 55 times. The complement of "at least one head" is "no heads at all", which requires every flip to land tails:

P(at least 1 head)=1−P(no heads)=1−(0.5)5=1−0.03125=0.96875.P(\text{at least 1 head}) = 1 - P(\text{no heads}) = 1 - (0.5)^5 = 1 - 0.03125 = 0.96875.

Recognise when the complement requires summing several terms

A class of 2525 students each independently has a 20%20\% chance of passing the test. Find the probability that more than 55 students pass. The event "more than 55" means X≥6X \ge 6, so use the complement:

X∼B(25,0.2),P(X>5)=1−P(X≤5).X \sim B(25, 0.2), \qquad P(X > 5) = 1 - P(X \le 5).

This still requires computing and summing P(X=0),P(X=1),…,P(X=5)P(X = 0), P(X = 1), \ldots, P(X = 5), which is calculator-heavy. The practical approach for large nn is to use the normal approximation described in the next dot point.

Final answer: use P(X≥k)=1−P(X≤k−1)P(X \ge k) = 1 - P(X \le k-1) and choose whichever tail is shorter to compute.

Common traps
Wrong direction in cumulative
P(X≤k)P(X \le k) means up to and including kk; P(X<k)P(X < k) means strictly less than kk, so up to k−1k - 1.
Forgetting the binomial coefficient
P(X=k)=(nk)pkqn−kP(X = k) = \binom{n}{k} p^k q^{n - k}, not pkqn−kp^k q^{n - k}.
Wrong complement
P(X≥k)=1−P(X≤k−1)P(X \ge k) = 1 - P(X \le k - 1), not 1−P(X≤k)1 - P(X \le k) (which would double-count X=kX = k).
Using pk(1−p)kp^k (1 - p)^k
The exponents are kk and n−kn - k, not both kk.
Calculator overflow
For large nn (say n=100n = 100), 0.51000.5^{100} is small but not zero. Many calculators handle this fine; some need scientific notation.

Exam-style questions

Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.

HSC-style4 marks
A test has 55 multiple-choice questions, each with 44 options. A student guesses randomly. Find the probability they get at least 22 correct.
Show worked answer →

X∼B(5,0.25)X \sim B(5, 0.25). Use complementary counting.

P(X≥2)=1−P(X=0)−P(X=1)P(X \ge 2) = 1 - P(X = 0) - P(X = 1).

P(X=0)=(50)(0.25)0(0.75)5=0.755≈0.2373P(X = 0) = \binom{5}{0} (0.25)^0 (0.75)^5 = 0.75^5 \approx 0.2373.

P(X=1)=(51)(0.25)1(0.75)4=5⋅0.25⋅0.754≈5⋅0.25⋅0.3164≈0.3955P(X = 1) = \binom{5}{1} (0.25)^1 (0.75)^4 = 5 \cdot 0.25 \cdot 0.75^4 \approx 5 \cdot 0.25 \cdot 0.3164 \approx 0.3955.

P(X≥2)≈1−0.2373−0.3955≈0.3672P(X \ge 2) \approx 1 - 0.2373 - 0.3955 \approx 0.3672.

Markers reward using complementary counting, computing P(X=0)P(X = 0) and P(X=1)P(X = 1), and the subtraction.

HSC-style3 marks
A factory produces items, 5%5\% of which are defective. A sample of 2020 items is checked. Find the probability that exactly 11 item is defective.
Show worked answer →

X∼B(20,0.05)X \sim B(20, 0.05). P(X=1)=(201)(0.05)1(0.95)19P(X = 1) = \binom{20}{1} (0.05)^1 (0.95)^{19}.

=20⋅0.05⋅0.9519=1⋅0.9519≈0.3774= 20 \cdot 0.05 \cdot 0.95^{19} = 1 \cdot 0.95^{19} \approx 0.3774.

Markers reward setting up the binomial, the formula, and a numerical answer to 33 or 44 decimal places.

Practise this

Sources & how we know this

ExamExplained