← Statistical Analysis (ME-S1)

NSWMaths Extension 1Syllabus dot point

What is a Bernoulli trial, and what are its mean and variance?

Define a Bernoulli random variable, compute its mean and variance, and recognise scenarios that fit the model

A focused answer to the HSC Maths Extension 1 dot point on Bernoulli trials. The definition, mean pp, variance p(1βˆ’p)p (1 - p), and the role of Bernoulli trials as the building block of the binomial distribution.

Generated by Claude OpusReviewed by Better Tuition Academy6 min answer

Have a quick question? Jump to the Q&A page

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 11) and "failure" (value 00), where success occurs with probability pp and failure with probability q=1βˆ’pq = 1 - p.

If XX is a Bernoulli random variable with parameter pp (written X∼B(p)X \sim B(p) or Bern(p)\text{Bern}(p)):

P(X=1)=p,P(X=0)=1βˆ’p.P(X = 1) = p, \qquad P(X = 0) = 1 - p.

Mean (expected value)

E(X)=1β‹…p+0β‹…(1βˆ’p)=p.E(X) = 1 \cdot p + 0 \cdot (1 - p) = p.

The expected value of a single Bernoulli trial is its success probability.

Variance

E(X2)=12β‹…p+02β‹…(1βˆ’p)=p.E(X^2) = 1^2 \cdot p + 0^2 \cdot (1 - p) = p.

Var(X)=E(X2)βˆ’[E(X)]2=pβˆ’p2=p(1βˆ’p).\text{Var}(X) = E(X^2) - [E(X)]^2 = p - p^2 = p(1 - p).

Equivalently, Οƒ=p(1βˆ’p)\sigma = \sqrt{p (1 - p)}.

Standard examples

  • Flipping a fair coin with X=1X = 1 if heads: p=12p = \tfrac{1}{2}.
  • Rolling a die and checking for a 66: p=16p = \tfrac{1}{6}.
  • Asking a random voter if they support a policy with pp 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 nn independent identically distributed Bernoulli trials, where Xi=1X_i = 1 if the ii-th trial is a success and 00 otherwise, has total S=X1+X2+β‹―+Xn∼B(n,p)S = X_1 + X_2 + \dots + X_n \sim B(n, p).

By linearity of expectation, E(S)=npE(S) = n p. By independence and the variance addition rule, Var(S)=np(1βˆ’p)\text{Var}(S) = n p (1 - p).

Related dot points