Skip to main content

Bernoulli trials and the binomial distribution: VCE Math Methods Unit 3

Syllabus dot point

“Bernoulli trials, the binomial distribution X∼Bi(n,p)X \sim \mathrm{Bi}(n, p), its probability function P(X=x)=(nx)px(1−p)n−xP(X = x) = \binom{n}{x} p^x (1-p)^{n-x}, mean E(X)=npE(X) = np, and variance Var(X)=np(1−p)\mathrm{Var}(X) = np(1-p)”

9 min read

Quick answer

The binomial distribution X∼Bi(n,p)X \sim \mathrm{Bi}(n, p) models the total number of successes in nn independent Bernoulli trials with constant success probability pp, with probability function P(X=x)=(nx)px(1−p)n−xP(X = x) = \binom{n}{x} p^x (1 - p)^{n - x}, mean npnp and variance np(1−p)np(1 - p); Paper 1 expects by-hand calculations for small nn and Paper 2 expects fluent CAS use of binomPdf and binomCdf.

Jump to a section
  1. What this dot point is asking
  2. Bernoulli trials
  3. The binomial distribution
  4. The binomial probability formula
  5. Mean and variance
  6. Cumulative binomial probabilities
  7. Worked example: solving for the parameter
  8. Examples in context
  9. Try this
  10. Exam-style questions

What this dot point is asking

VCAA wants you to recognise when a situation is binomial, write down X∼Bi(n,p)X \sim \mathrm{Bi}(n, p), compute exact binomial probabilities by hand using (nx)px(1−p)n−x\binom{n}{x} p^x (1-p)^{n-x} for small nn on Paper 1, and use CAS on Paper 2 to compute cumulative probabilities. The mean npnp and variance np(1−p)np(1-p) are essential shortcuts.

Bernoulli trials

A Bernoulli trial is a single experiment with exactly two outcomes (commonly called "success" and "failure"), where the probability of success is some fixed pp (and probability of failure is 1−p1 - p).

A Bernoulli random variable takes the value 1 for success and 0 for failure, with probability distribution P(Y=1)=pP(Y = 1) = p and P(Y=0)=1−pP(Y = 0) = 1 - p. Its mean is pp and its variance is p(1−p)p(1 - p).

The binomial distribution

When nn Bernoulli trials are performed under the four binomial conditions, the total number of successes follows a binomial distribution.

The four conditions for a binomial

  1. Fixed number of trials nn.
  2. Each trial has only two outcomes, success or failure.
  3. The probability of success pp is constant across trials.
  4. The trials are independent.

If any one of these fails, XX is not binomial. The most common failure is sampling without replacement (which breaks independence for finite populations).

Notation: X∼Bi(n,p)X \sim \mathrm{Bi}(n, p). The two parameters nn and pp fully determine the distribution.

The binomial probability formula

For X∼Bi(n,p)X \sim \mathrm{Bi}(n, p) and x∈{0,1,2,…,n}x \in \{0, 1, 2, \dots, n\}:

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

where (nx)=n!x!(n−x)!\binom{n}{x} = \frac{n!}{x! (n - x)!} counts the number of ways to choose which xx of the nn trials are successes.

The three factors have natural interpretations:

  • (nx)\binom{n}{x}: number of distinct orderings of xx successes and n−xn - x failures.
  • pxp^x: probability of xx specific successes occurring.
  • (1−p)n−x(1 - p)^{n - x}: probability of the remaining n−xn - x trials being failures.

Worked example

A biased coin lands heads with probability 0.60.6. It is tossed 5 times. Find the probability of exactly 3 heads.

X∼Bi(5,0.6)X \sim \mathrm{Bi}(5, 0.6).

P(X=3)=(53)(0.6)3(0.4)2=10⋅0.216⋅0.16=0.3456P(X = 3) = \binom{5}{3} (0.6)^3 (0.4)^2 = 10 \cdot 0.216 \cdot 0.16 = 0.3456.

Mean and variance

For X∼Bi(n,p)X \sim \mathrm{Bi}(n, p):

E(X)=npE(X) = n p

Var(X)=np(1−p)\mathrm{Var}(X) = n p (1 - p)

sd(X)=np(1−p)\mathrm{sd}(X) = \sqrt{n p (1 - p)}

These shortcut formulas come directly from the linearity rule applied to the sum of nn Bernoulli trials.

For the biased coin above: E(X)=5⋅0.6=3E(X) = 5 \cdot 0.6 = 3, Var(X)=5⋅0.6⋅0.4=1.2\mathrm{Var}(X) = 5 \cdot 0.6 \cdot 0.4 = 1.2.

Cumulative binomial probabilities

For "at least", "at most" or "between" probabilities, you sum binomial terms.

  • P(X≤k)=∑x=0k(nx)px(1−p)n−xP(X \leq k) = \sum_{x = 0}^{k} \binom{n}{x} p^x (1 - p)^{n - x}
  • P(X≥k)=1−P(X≤k−1)P(X \geq k) = 1 - P(X \leq k - 1)
  • P(a≤X≤b)=P(X≤b)−P(X≤a−1)P(a \leq X \leq b) = P(X \leq b) - P(X \leq a - 1)

On Paper 1, nn is small enough to compute terms by hand. On Paper 2, use the CAS binomCdf(n, p, lower, upper) function (or its equivalent on your model).

Worked example

A fair die is rolled 10 times. Find the probability of at least 3 sixes.

X∼Bi(10,1/6)X \sim \mathrm{Bi}(10, 1/6) where XX is the number of sixes.

P(X≥3)=1−P(X≤2)=1−[P(X=0)+P(X=1)+P(X=2)]P(X \geq 3) = 1 - P(X \leq 2) = 1 - [P(X = 0) + P(X = 1) + P(X = 2)].

P(X=0)=(5/6)10P(X = 0) = (5/6)^{10}.

P(X=1)=10(1/6)(5/6)9P(X = 1) = 10 (1/6)(5/6)^9.

P(X=2)=45(1/6)2(5/6)8P(X = 2) = 45 (1/6)^2 (5/6)^8.

Sum these (or use CAS) and subtract from 1. The result is approximately 0.22480.2248.

Worked example: solving for the parameter

A biased coin is tossed 10 times. The probability of getting exactly 7 heads is 0.2150.215. Find pp.

P(X=7)=(107)p7(1−p)3=120p7(1−p)3=0.215P(X = 7) = \binom{10}{7} p^7 (1 - p)^3 = 120 p^7 (1 - p)^3 = 0.215.

This is a one-variable equation in pp. Use CAS solve, restricting to p∈(0,1)p \in (0, 1): p≈0.6p \approx 0.6.

Common Paper 1 traps
Including the constant term twice
The formula has (nx)\binom{n}{x} once. Writing (nx)px(1−p)n−x\binom{n}{x} p^x (1 - p)^{n - x} but then "rounding up" the binomial coefficient is a sign of confusion.
Forgetting independence
Drawing balls without replacement breaks independence; the resulting distribution is hypergeometric, not binomial.
Wrong formula direction
E(X)=npE(X) = n p, not E(X)=pE(X) = p or E(X)=nE(X) = n. Likewise variance has both nn and p(1−p)p(1 - p).
Boundary errors on cumulative probabilities
"At least 3" means X≥3X \geq 3, which is 1−P(X≤2)1 - P(X \leq 2). Subtracting P(X≤3)P(X \leq 3) instead loses the P(X=3)P(X = 3) term.
Squaring the standard deviation incorrectly
Var(X)=np(1−p)\mathrm{Var}(X) = n p (1 - p); do not omit the (1−p)(1 - p) factor.

Examples in context

Example 1. Germination rate of seedlings. A nursery plants 66 seeds, each germinating independently with probability p=0.8p = 0.8. Let XX be the number that germinate, so X∼Bi(6,0.8)X \sim \mathrm{Bi}(6, 0.8). The probability that all six germinate is P(X=6)=(0.8)6=0.2621P(X = 6) = (0.8)^6 = 0.2621. The expected number is E(X)=6×0.8=4.8E(X) = 6 \times 0.8 = 4.8 and the variance is Var(X)=6×0.8×0.2=0.96\mathrm{Var}(X) = 6 \times 0.8 \times 0.2 = 0.96.

Example 2. Defective components. A batch of electronic components has a 3%3\% defect rate. In a random sample of 1515, let XX be the number defective, X∼Bi(15,0.03)X \sim \mathrm{Bi}(15, 0.03). The probability of no defectives is P(X=0)=(0.97)15=0.6333P(X = 0) = (0.97)^{15} = 0.6333, so the probability of at least one defective is 1−0.6333=0.36671 - 0.6333 = 0.3667.

Try this

Q1. For X∼Bi(8,0.5)X \sim \mathrm{Bi}(8, 0.5), find P(X=4)P(X = 4). [2 marks]

  • Cue. (84)(0.5)4(0.5)4=70×1256=70256=0.2734\binom{8}{4}(0.5)^4(0.5)^4 = 70 \times \frac{1}{256} = \frac{70}{256} = 0.2734.

Q2. A goalkeeper saves 20%20\% of shots. In 1010 shots, find E(X)E(X) and Var(X)\mathrm{Var}(X) for the number saved. [2 marks]

  • Cue. E(X)=10×0.2=2E(X) = 10 \times 0.2 = 2; Var(X)=10×0.2×0.8=1.6\mathrm{Var}(X) = 10 \times 0.2 \times 0.8 = 1.6.

Q3. A quiz has 1212 true/false questions answered by guessing. Find the probability of at least 1010 correct. [3 marks]

  • Cue. X∼Bi(12,0.5)X \sim \mathrm{Bi}(12, 0.5); P(X≥10)=(1210)+(1211)+(1212)212=66+12+14096=794096≈0.0193P(X \ge 10) = \frac{\binom{12}{10} + \binom{12}{11} + \binom{12}{12}}{2^{12}} = \frac{66 + 12 + 1}{4096} = \frac{79}{4096} \approx 0.0193.

Exam-style questions

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

2023 VCAA-style (Exam 1)3 marks
A fair coin is tossed 4 times. Let XX be the number of heads. Find P(X=2)P(X = 2), E(X)E(X) and Var(X)\mathrm{Var}(X).
Show worked answer →

Each toss is a Bernoulli trial with p=1/2p = 1/2, and the trials are independent and identical. So X∼Bi(4,1/2)X \sim \mathrm{Bi}(4, 1/2).

P(X=2)=(42)(1/2)2(1/2)2=6⋅116=38P(X = 2) = \binom{4}{2} (1/2)^2 (1/2)^2 = 6 \cdot \frac{1}{16} = \frac{3}{8}.

E(X)=np=4⋅12=2E(X) = np = 4 \cdot \frac{1}{2} = 2.

Var(X)=np(1−p)=4⋅12⋅12=1\mathrm{Var}(X) = np(1 - p) = 4 \cdot \frac{1}{2} \cdot \frac{1}{2} = 1.

Markers reward identifying the binomial setup, the formula for P(X=2)P(X = 2), and both shortcut formulas with values.

2024 VCAA-style (Exam 2)3 marks
A multiple-choice exam has 20 questions, each with 4 options. A student guesses every answer. Find the probability that the student gets at least 8 correct, giving the answer to 4 decimal places.
Show worked answer →

Each question is a Bernoulli trial: correct with probability p=1/4p = 1/4, incorrect with probability 3/43/4. The trials are independent. So XX (number correct out of 20) is Bi(20,1/4)\mathrm{Bi}(20, 1/4).

P(X≥8)=1−P(X≤7)P(X \geq 8) = 1 - P(X \leq 7).

On the CAS, compute 1−binomCdf(20,0.25,0,7)1 - \mathrm{binomCdf}(20, 0.25, 0, 7), or equivalently the upper-tail binomCdf(20,0.25,8,20)\mathrm{binomCdf}(20, 0.25, 8, 20).

The result is approximately 0.04090.0409.

Markers reward identifying the binomial setup with parameters n=20n = 20 and p=0.25p = 0.25, choosing the complement (or upper tail), and the correct CAS output to 4 decimal places.

Practise this

Sources & how we know this

ExamExplained