Bernoulli trials: definition, parameters, mean and variance
“Define a Bernoulli random variable, compute its mean and variance, and recognise scenarios that fit the model”
A Bernoulli trial is a single experiment with success probability and failure probability ; the random variable that is on success and on failure has mean and variance , and the binomial distribution counts successes over independent Bernoulli trials.
Jump to a section
What this dot point is asking
NESA wants you to recognise a Bernoulli trial (a single experiment with two outcomes), state its probability mass function, compute its mean and variance, and see it as the unit of a sequence used to build the binomial distribution.
The answer
Definition
A Bernoulli trial is a random experiment with exactly two possible outcomes, conventionally labelled "success" (value ) and "failure" (value ), where success occurs with probability and failure with probability .
If is a Bernoulli random variable with parameter (written or ):
The whole distribution is just two bars: a bar of height at and a bar of height at . Because something must happen, the two heights add to , which is the only consistency check a Bernoulli variable needs.
Mean (expected value)
The expected value of a single Bernoulli trial is its success probability.
Variance
Equivalently, .
A Bernoulli random variable takes the value with probability and with probability . Its mean is and its variance is . Stacking independent copies gives the binomial , whose mean and variance are simply times these, so there is nothing extra to memorise.
Standard examples
- Flipping a fair coin with if heads: .
- Rolling a die and checking for a : .
- Asking a random voter if they support a policy with unknown.
- A medical test giving a positive result on someone with the condition (sensitivity).
Why this matters
A Bernoulli trial is the simplest non-trivial random variable. The binomial distribution counts the number of successes in a fixed number of independent Bernoulli trials.
A sequence of independent identically distributed Bernoulli trials, where if the -th trial is a success and otherwise, has total .
By linearity of expectation, . By independence and the variance addition rule, .
Recognising a Bernoulli model
The examinable judgement is whether a described situation fits the Bernoulli model at all. Three conditions must hold: there is a single trial (or you are looking at one trial in a sequence), there are exactly two outcomes, and a fixed probability is attached to success. If the experiment has three or more outcomes, or a continuous range of outcomes, it is not Bernoulli. Where an outcome with many categories is reframed as "the event of interest happened, or it did not", a Bernoulli model is recovered. This reframing (success versus everything-else) is how almost every binomial question is built.
From one trial to many
The reason this small model matters is that it is the atom from which the binomial distribution is built. Each of independent, identically distributed Bernoulli trials contributes its mean and variance , and because expectation is linear and variance adds for independent variables, the totals are and . Understanding that the binomial mean and variance are just copies of the Bernoulli mean and variance removes any need to memorise them as separate facts.
Where the variance is largest, stage by stage
A favourite short proof question asks you to show that is greatest at . The variance is a function of , and seeing its shape makes the result obvious before you differentiate anything. The three panels build that picture up.
Stage 1, pin down the certain cases. At failure is guaranteed and at success is guaranteed; either way the outcome is certain, so there is no spread and and . The variance curve must therefore touch zero at both ends of the interval .
Stage 2, fill in the shape between the ends. Because is a quadratic with a negative leading coefficient, it is a downward parabola. Pinned to at each end and opening downward, it must bulge up in the middle: uncertainty is small near the certain ends and grows as the two outcomes become more evenly matched.
Stage 3, locate the peak. By symmetry of a parabola the maximum sits exactly halfway between the roots, at . Differentiating confirms it: gives , and the second derivative makes it a maximum. The peak value is , so a fair trial () is the most uncertain Bernoulli trial of all.
How exam questions ask about Bernoulli trials
Bernoulli rarely gets a question to itself; it is usually the setup line of a binomial question, or a short part that tests whether you know the parameters and formulas. The wordings to recognise:
- "A Bernoulli random variable has " or "a single trial succeeds with probability ": state and and substitute. These are usually 1 to 2 mark recall parts.
- "Show that the variance is greatest / maximised when ": differentiate , set , and confirm a maximum with before stating .
- "Does this situation fit a Bernoulli model?" or "explain why X is (not) a Bernoulli variable": check the three conditions out loud, that there is one trial, exactly two outcomes, and a fixed . Continuous quantities (a time, a height) and three-or-more-outcome experiments are not Bernoulli unless reframed as "event happened or it did not".
- " counts successes in trials": this is the cue that you have left a single Bernoulli trial and entered the binomial; the mean becomes and the variance .
Write the two formulas and before substituting; markers reward the formula even if the arithmetic slips. Keep and distinct: the mean is , the variance carries the extra factor. For a "show the maximum" part, the full-mark route is the calculus one (derivative zero, second-derivative sign), not just "by symmetry". For a "does it fit" part, name each of the three conditions explicitly rather than giving a one-word yes or no. Finally, if asked for the standard deviation, take the square root of the variance and keep it to the accuracy the question asks for.
Find the mean and variance of a single Bernoulli trial
A biased coin lands heads with probability . Let be if heads, if tails. For any Bernoulli variable, and .
Final answer: , .
Show the variance is greatest at
Recognise that the variance is a quadratic function of : The variance is a downward-opening parabola in . Its maximum occurs at the vertex, where , giving .
Evaluate the maximum variance:
A fair coin flip has the highest possible variance among all Bernoulli trials.
Final answer: variance is maximised at , with maximum variance .
Find the mean and variance of a sum of identical Bernoulli trials
Three independent fair coin flips each have . The total counts the number of successes in three independent identical Bernoulli trials, so . By linearity of expectation and the variance-addition rule for independent variables:
Final answer: , .
Decide whether a situation fits the Bernoulli model
"The time until the next bus arrives" takes a continuous range of positive values, not just two outcomes. This is not a Bernoulli trial.
"Did the bus arrive on time?" has exactly two outcomes: on time or not on time. With a fixed probability of arriving on time, this is a Bernoulli trial.
Final answer: continuous-outcome scenarios are not Bernoulli; binary-outcome scenarios with fixed are.
Find the mean and variance of a sum of non-identical Bernoulli trials
Two independent Bernoulli trials with and are not identically distributed, so their sum is not a binomial. However, expectation is always linear and variances add for independent variables.
Final answer: , .
- Variance is , not
- A common slip in HSC questions.
- Mean is , not
- is the mean number of trials until the first success (geometric distribution), which is a different model.
- Forgetting independence
- Sum of two Bernoullis has variance equal to the sum of variances only if they are independent.
- Confusing Bernoulli with binomial
- A single Bernoulli trial has parameter alone; a binomial has parameters (count) and (success probability).
- Range of
- . If a calculation gives or , something is wrong.
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 2023-style2 marksA Bernoulli random variable has . Find and .Show worked answer →
For a Bernoulli variable, and .
Here , so .
.
HSC 2020-style3 marksA Bernoulli trial has success probability . Show that the variance is greatest when , and state the maximum variance.Show worked answer →
The variance is , a downward parabola in .
Differentiate: . Setting gives .
Since , this is a maximum.
Maximum variance: .