Count successes in a fixed number of yes-or-no trials. Bernoulli trials, the binomial formula, and the mean and variance np and np(1 - p).
Statistical Analysis · 3 min read ·13 questions ·Jump to quiz
I am in
On this page
Starting point: what you already know
Probability basics:P(not A)=1−P(A), and for independent events P(A and B)=P(A)×P(B).
Combinations (Combinations chapter): (rn)=r!(n−r)!n! counts the ways to choose r things from n.
Discrete random variables (Mathematics Advanced): a table of values and probabilities that add to 1, with mean E(X)=∑xP(X=x) and variance Var(X)=E(X2)−[E(X)]2.
The binomial theorem:(q+p)n=∑(rn)prqn−r.
Bernoulli trials
A Bernoulli trial has exactly two outcomes, called success and failure. The probability of success is p, and of failure is 1−p, sometimes written q.
Let X=1 for a success and X=0 for a failure. Then:
E(X)=0×(1−p)+1×p=p
Var(X)=E(X2)−p2=p−p2=p(1−p)
The binomial distribution
Now repeat a Bernoulli trial n times and count the successes, X. This is a binomial distribution, written X∼Bin(n,p), when:
there are a fixed numbern of trials,
each has only two outcomes,
the trials are independent,
p is the same every time.
Why it works: one particular order of r successes and n−r failures has probability pr(1−p)n−r. There are (rn) different orders.
Bin(10, 0.3). The most likely number of successes is 3, which is also the mean, 10 × 0.3.
Mean and variance
This makes sense: X is the sum of n separate Bernoulli trials, each with mean p and variance p(1−p).
For the basketball player: E(X)=3 shots, Var(X)=2.1, σ≈1.45 shots.
Binomial distribution
Bernoulli trial
Two outcomes
Mean p
Variance p(1 - p)
Conditions
Fixed n
Two outcomes
Independent
Same p
Formula
nCr p^r (1 - p)^(n - r)
nCr counts the orders
Summary numbers
Mean np
Variance np(1 - p)
Tricks
At least one: 1 - P(none)
Use complements
Quick summary
A Bernoulli trial has two outcomes, with mean p and variance p(1−p).
Binomial needs: fixed n, two outcomes, independent trials, same p.
P(X=r)=(rn)pr(1−p)n−r.
E(X)=np and Var(X)=np(1−p).
"At least one" is 1−P(X=0).
Quiz
Sign in to take the quiz
13 questions with instant marking. It is free, and your scores are saved to your account so you can carry on from any device.