Skip to main content

The Bernoulli and binomial distributions (SACE Stage 2 Mathematical Methods)

Syllabus dot point

“The Bernoulli distribution models a single success/failure trial, and the binomial distribution counts successes across n independent trials with constant probability.”

9 min read

Quick answer

A Bernoulli trial has two outcomes - success (probability pp) or failure (1−p1-p). If you run nn independent Bernoulli trials with constant pp and count the successes XX, then X∼B(n,p)X\sim B(n,p) and P(X=x)=(nx)px(1−p)n−xP(X=x)=\binom{n}{x}p^x(1-p)^{n-x}, with mean npnp and variance np(1−p)np(1-p).

Jump to a section
  1. What this dot point is asking
  2. The four binomial conditions
  3. The binomial probability formula
  4. "At least" and "at most" probabilities
  5. Mean and variance
  6. The shape of the binomial distribution
  7. Common errors
  8. Why it matters
  9. Exam-style questions

What this dot point is asking

A Bernoulli trial is a single experiment with exactly two outcomes, labelled success and failure. The binomial distribution arises when you repeat such a trial a fixed number of times and count how many successes occur.

Bernoulli random variable

A Bernoulli random variable takes the value 11 (success) with probability pp and 00 (failure) with probability 1−p1-p. It has mean pp and variance p(1−p)p(1-p).

The four binomial conditions

You may only use the binomial model when all four hold:

  1. A fixed number nn of trials.
  2. Each trial has only two outcomes (success/failure).
  3. Trials are independent.
  4. The probability of success pp is constant across trials.
Recognising a binomial situation

If any condition fails - for example, sampling without replacement from a small population (which changes pp between draws) - the distribution is not binomial. Look explicitly for "fixed nn, two outcomes, independent, constant pp".

The binomial probability formula

If X∼B(n,p)X\sim B(n,p), the probability of exactly xx successes is:

Binomial probability

P(X=x)=(nx)px(1−p)n−x,x=0,1,2,…,n,P(X=x)=\binom{n}{x}p^x(1-p)^{n-x}, \qquad x=0,1,2,\dots,n,

where (nx)=n!x! (n−x)!\binom{n}{x}=\dfrac{n!}{x!\,(n-x)!} counts the arrangements of xx successes among nn trials.

The three pieces are: (nx)\binom{n}{x} (how many ways to choose which trials succeed), pxp^x (those successes), and (1−p)n−x(1-p)^{n-x} (the remaining failures).

Exactly three successes

A multiple-choice quiz has 88 questions, each with 44 options. A student guesses every answer. Find the probability of getting exactly 33 correct.

Step 1: Identify the binomial parameters

Each question is an independent trial with two outcomes: correct (success) or incorrect (failure). There are n=8n = 8 trials, and since each question has 4 options and one correct answer, the probability of success on any one trial is p=14=0.25p = \tfrac{1}{4} = 0.25. So X∼B(8,0.25)X \sim B(8, 0.25) counts the number correct.

Step 2: Write the binomial probability formula

The formula for exactly xx successes in nn trials is:

P(X=x)=(nx)px(1−p)n−x.P(X = x) = \binom{n}{x} p^x (1-p)^{n-x}.

Here x=3x = 3, n=8n = 8, p=0.25p = 0.25, and 1−p=0.751 - p = 0.75. Substituting:

P(X=3)=(83)(0.25)3(0.75)5.P(X = 3) = \binom{8}{3}(0.25)^3(0.75)^{5}.

Step 3: Evaluate each component

The binomial coefficient (83)\binom{8}{3} counts the number of ways to choose which 3 of the 8 questions are correct.

(83)=8!3! 5!=56.\binom{8}{3} = \frac{8!}{3!\,5!} = 56.

The probability factors are (0.25)3=0.015625(0.25)^3 = 0.015625 and (0.75)5≈0.237305(0.75)^5 \approx 0.237305.

Step 4: Multiply to get the final probability

P(X=3)=56×0.015625×0.237305≈0.2076.P(X = 3) = 56 \times 0.015625 \times 0.237305 \approx 0.2076.

Final answer: There is about a 20.8%20.8\% chance of exactly three correct.

"At least" and "at most" probabilities

For cumulative questions, add the relevant terms - and use the complement when it is shorter.

At least one success

Worked example

For the same quiz, find the probability the student gets at least one question correct.

Use the complement - "at least one" is the opposite of "none":

P(X≥1)=1−P(X=0)=1−(80)(0.25)0(0.75)8.P(X\ge 1)=1-P(X=0)=1-\binom{8}{0}(0.25)^0(0.75)^8.

Since (80)=1\binom{8}{0}=1 and (0.75)8≈0.100113(0.75)^8\approx 0.100113,

P(X≥1)=1−0.100113≈0.8999.P(X\ge 1)=1-0.100113\approx 0.8999.

So the student is almost 90%90\% likely to get at least one right.

Mean and variance

The binomial mean and variance follow directly from the parameters:

Binomial mean and variance

E(X)=np,Var⁡(X)=np(1−p),σ=np(1−p).E(X)=np, \qquad \operatorname{Var}(X)=np(1-p), \qquad \sigma=\sqrt{np(1-p)}.

For the quiz, E(X)=8×0.25=2E(X)=8\times 0.25=2 correct on average, and Var⁡(X)=8×0.25×0.75=1.5\operatorname{Var}(X)=8\times 0.25\times 0.75=1.5, giving a standard deviation of 1.5≈1.22\sqrt{1.5}\approx 1.22.

The shape of the binomial distribution

The value of pp controls the shape. When p=0.5p=0.5 the distribution is symmetric about the mean npnp. When p<0.5p<0.5 it is skewed to the right (a long tail of higher values), and when p>0.5p>0.5 it is skewed to the left. As nn grows large, the binomial distribution becomes increasingly bell-shaped, which is exactly why a binomial with large nn can be approximated by the normal distribution you meet in Topic 5. Recognising this link helps you sanity-check answers: the most probable outcome (the mode) always sits at or next to npnp, so a computed probability that peaks far from npnp signals an arithmetic error.

Finding n from a probability condition

An archer hits the bullseye with probability 0.30.3 on each independent shot. How many shots are needed so that the probability of at least one bullseye exceeds 0.90.9?

Step 1: Use the complement to write the probability

Calculating "at least one bullseye" directly requires adding P(X=1)+P(X=2)+⋯P(X=1) + P(X=2) + \cdots, which is tedious. It is far easier to use the complement: "at least one" is the opposite of "none at all."

P(at least one)=1−P(none)=1−(0.7)n,P(\text{at least one}) = 1 - P(\text{none}) = 1 - (0.7)^n,

since each shot independently misses with probability 1−0.3=0.71 - 0.3 = 0.7, and all nn shots must miss for the "none" event.

Step 2: Set up and simplify the inequality

We need P(at least one)>0.9P(\text{at least one}) > 0.9, so:

1−(0.7)n>0.9⇒(0.7)n<0.1.1 - (0.7)^n > 0.9 \quad\Rightarrow\quad (0.7)^n < 0.1.

Step 3: Solve for nn using logarithms

Taking the natural logarithm of both sides turns the exponential inequality into a linear one.

nln⁡(0.7)<ln⁡(0.1).n \ln(0.7) < \ln(0.1).

Because ln⁡(0.7)<0\ln(0.7) < 0, dividing both sides by a negative number reverses the inequality.

n>ln⁡(0.1)ln⁡(0.7)≈−2.3026−0.3567≈6.46.n > \frac{\ln(0.1)}{\ln(0.7)} \approx \frac{-2.3026}{-0.3567} \approx 6.46.

Step 4: Round up to the nearest whole number

Since nn must be a whole number of shots and n>6.46n > 6.46, the smallest valid value is n=7n = 7.

Final answer: n=7n = 7 shots are needed.

Common errors

Swapping the exponents or omitting the coefficient

A frequent error is writing pn−x(1−p)xp^{n-x}(1-p)^{x} - the exponent of pp must match the number of successes xx, and (1−p)(1-p) takes the remaining n−xn-x. Another is dropping (nx)\binom{n}{x} entirely, which only gives the probability of one specific ordering rather than any ordering of xx successes.

Always state n, p and x first

Before substituting, write "n=…, p=…, x=…n=\dots,\ p=\dots,\ x=\dots" and confirm the four binomial conditions hold. This catches misread questions (e.g. probability of failure given instead of success) and stops you applying the binomial model where it does not fit.

Why it matters

The binomial distribution is the most heavily examined discrete model in Stage 2 and is the bridge to the normal distribution in Topic 5, where a binomial with large nn is approximated by a normal curve. Recognising the four conditions also trains the modelling judgement assessed in the Mathematical Investigation.

Exam-style questions

Questions in the style of SACE Board 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.

SACE 2023-style4 marks
Calculator-assumed. Gold cards occur by chance in packs of 10 trading cards, with the probability that a single card is gold being 0.0350.035. Modelling the number of gold cards in a pack with a binomial distribution, calculate (a) the expected number of gold cards, (b) the probability of exactly one gold card, and (c) the probability of more than two gold cards.
Show worked answer →

Here X∼B(10,0.035)X \sim B(10, 0.035).

(a) Expected number =np=10×0.035=0.35= np = 10 \times 0.035 = 0.35 gold cards. (1 mark)

(b) P(X=1)=(101)(0.035)1(0.965)9=10×0.035×0.7238≈0.253P(X = 1) = \binom{10}{1}(0.035)^1(0.965)^9 = 10 \times 0.035 \times 0.7238 \approx 0.253. (1 mark)

(c) P(X>2)=1−P(0)−P(1)−P(2)P(X > 2) = 1 - P(0) - P(1) - P(2) where P(0)=(0.965)10≈0.6983P(0) = (0.965)^{10} \approx 0.6983, P(1)≈0.253P(1) \approx 0.253, and P(2)=(102)(0.035)2(0.965)8≈0.0413P(2) = \binom{10}{2}(0.035)^2(0.965)^8 \approx 0.0413. So P(X>2)≈1−0.6983−0.253−0.0413≈0.00686P(X > 2) \approx 1 - 0.6983 - 0.253 - 0.0413 \approx 0.00686. (2 marks)

Markers reward the binomial formula with correct nn and pp, and computing "more than two" as the complement of P(0)+P(1)+P(2)P(0) + P(1) + P(2).

SACE 2022-style2 marks
Calculator-assumed. A seed distributor claims 60%60\% of seeds are viable. Let XX be the number of viable seeds in a planting of 8 seeds, modelled by a binomial distribution. (a) State the expected number of viable seeds. (b) State the most likely number of viable seeds.
Show worked answer →

X∼B(8,0.6)X \sim B(8, 0.6).

(a) Expected number =np=8×0.6=4.8= np = 8 \times 0.6 = 4.8 viable seeds. (1 mark)

(b) The most likely value is the mode. Comparing the values nearest the mean: P(X=4)=(84)(0.6)4(0.4)4≈0.232P(X = 4) = \binom{8}{4}(0.6)^4(0.4)^4 \approx 0.232 and P(X=5)=(85)(0.6)5(0.4)3≈0.279P(X = 5) = \binom{8}{5}(0.6)^5(0.4)^3 \approx 0.279. Since P(X=5)P(X = 5) is larger, the most likely number is 55. (1 mark)

Note the mode (55) differs from the mean (4.84.8): the expected value need not be a whole number, whereas the most likely outcome must be.

SACE 2021-style3 marks
Calculator-assumed. A test has 12 multiple-choice questions, each with 5 options. A student guesses every answer. Let XX be the number correct. (a) State the distribution of XX. (b) Find P(X≥3)P(X \ge 3).
Show worked answer →

(a) Each guess succeeds with p=15=0.2p = \tfrac{1}{5} = 0.2, so X∼B(12,0.2)X \sim B(12, 0.2). (1 mark)

(b) Use the complement: P(X≥3)=1−P(0)−P(1)−P(2)P(X \ge 3) = 1 - P(0) - P(1) - P(2). With P(0)=(0.8)12≈0.0687P(0) = (0.8)^{12} \approx 0.0687, P(1)=(121)(0.2)(0.8)11≈0.2062P(1) = \binom{12}{1}(0.2)(0.8)^{11} \approx 0.2062, and P(2)=(122)(0.2)2(0.8)10≈0.2835P(2) = \binom{12}{2}(0.2)^2(0.8)^{10} \approx 0.2835,

P(X≥3)≈1−0.0687−0.2062−0.2835≈0.442.P(X \ge 3) \approx 1 - 0.0687 - 0.2062 - 0.2835 \approx 0.442.

Marks: one for stating B(12,0.2)B(12, 0.2), one for the complement set-up, one for the value. (2 marks for part b.)

Practise this

Sources & how we know this

ExamExplained