The Bernoulli distribution: WACE Year 12 Mathematics Methods Unit 3
“Use the Bernoulli distribution to model a single two-outcome trial and find its mean and variance”
A Bernoulli random variable models a single trial with two outcomes, success () with probability and failure () with probability . Its mean is and its variance is . It is the building block of the binomial distribution.
Jump to a section
What this dot point is asking
SCSA Unit 3 introduces the Bernoulli distribution as the simplest discrete model: one trial, two outcomes. This dot point asks you to state its distribution and derive its mean and variance, which then generalise directly to the binomial distribution. It supports questions in both examination sections.
The Bernoulli model
A Bernoulli trial has exactly two outcomes, conventionally labelled success and failure. The random variable records for success and for failure. This -or- coding is what makes the algebra so clean: the mean of turns out to be exactly the success probability, and because squaring and leaves them unchanged, the variance simplifies neatly as well. The Bernoulli distribution is the simplest possible non-trivial probability distribution, which is why the whole of discrete probability in the course can be built up from it.
For a single trial with success probability ,
where . This is written .
Examples include a single coin toss (success = heads), one inspected item (success = defective), or one penalty kick (success = goal). The choice of which outcome to call "success" is a labelling decision; swapping the labels simply replaces with . The variable is sometimes called an indicator variable, because it indicates whether the event of interest occurred, recording if it did and if it did not.
Mean and variance
Because takes only the values and , the mean and variance follow directly from the definitions of expected value and variance.
The mean is
For the variance, note that since and , so . Then
Step 1: State the mean using the Bernoulli formula
A component is defective with probability , and if defective. For any Bernoulli variable, the mean equals the success probability, so no calculation beyond substitution is needed:
Step 2: Compute the variance using
The Bernoulli variance formula follows from the shortcut . Substituting :
Step 3: Find the standard deviation
Taking the square root of the variance gives the standard deviation in the same units as :
Final answer: , ,
Where the variance is largest
The Bernoulli variance is a downward parabola in , zero at and and largest at , where it equals . This matches intuition: a trial that is almost certain to succeed (or fail) carries little uncertainty, while a fair trial is the least predictable. The same shape carries through to the binomial, whose variance is also maximised at for fixed .
Compare two Bernoulli trials
Trial A has ; trial B has . Compare their variances.
For trial A,
For trial B,
Trial A is far more uncertain even though both are single trials, because its success probability sits at the peak of . Markers reward both variance calculations and the observation that the fair trial has the larger spread.
Link to the binomial distribution
A binomial random variable counts the number of successes in independent Bernoulli trials, each with the same . Adding independent Bernoulli variables gives the binomial, which is why the binomial mean and variance are simply times the Bernoulli values. Understanding the single-trial case makes the binomial formulae intuitive rather than memorised.
- Using a variance formula with
- For a single Bernoulli trial the variance is , not ; the factor appears only for the binomial sum of trials.
- Treating as the variance
- is the mean of a Bernoulli variable; the variance is .
- Forgetting the variance is maximised at
- Since peaks at , a fair trial has the most uncertainty.
- Confusing the labels
- By convention is success with probability ; mixing up which outcome is the success changes to .
Exam-style questions
Questions in the style of SCSA 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.
WACE 2021-style4 marksCalculator-free. A single random voter supports a policy with probability . Let if the voter supports it and otherwise. (a) State and . (b) Explain how this Bernoulli trial relates to the binomial distribution for a sample of voters.Show worked answer →
A definition-and-link question.
(a) and .
(b) A sample of independent voters, each modelled by the same Bernoulli trial, gives a binomial variable counting total supporters. Summing independent Bernoulli variables produces with mean and variance , that is times the single-trial values.
Markers reward stating and and explaining the binomial as a sum of Bernoulli trials.
WACE 2023-style3 marksCalculator-free. For a Bernoulli random variable, show that the variance is greatest when , and state the maximum value.Show worked answer →
A short reasoning question about the variance.
The variance . Differentiating, , which is zero at . Since , this is a maximum.
The maximum value is .
Markers reward differentiating , solving , confirming a maximum, and the value .