Discrete random variables and the binomial distribution

Maths: Analysis and Approaches · Statistics and probability. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths: Analysis and Approaches topics

The idea

A discrete random variable X takes separate values, each with its own probability. A table of the values and their probabilities is the probability distribution, and the probabilities must add up to 1.

The expected value E(X) is the long-run average of X: multiply each value by its probability and add. A game is fair when the expected gain is zero, so the expected winnings equal the cost of playing.

The binomial distribution B(n, p) counts the number of successes in n trials. It fits only when the number of trials is fixed, each trial has two outcomes, the trials are independent, and the probability of success p stays the same.

In simpler words

A discrete random variable takes separate values, each with its own chance. All the chances add to 1. The expected value is the long-run average. Multiply each value by its chance and add. A game is fair if you expect to win nothing on average. The binomial counts successes in a fixed number of trials with the same chance each time.

An everyday comparison

Expected value is like the average score of a dice game played thousands of times. One game might win or lose, but over many games the average settles to the expected value. A fair game averages zero gain. The comparison is limited, because any single game can be far from the expected value.

Rules to remember

Common mistake

Leaving out the nCr term in a binomial probability. pr(1 − p)n − r is the probability of only one order of successes and failures, so multiply by the number of orders.

In the exam

For a distribution, use ΣP = 1 to find any unknown. For expected value, write E(X) = Σx × P(X = x) and show the sum. For the binomial, state X ~ B(n, p) and check the four conditions. Use your calculator for P(X = r) or cumulative probabilities, writing the expression you entered. Give the mean np and variance np(1 − p). For P(X ≥ 1), use 1 − P(X = 0).

Worked example

X ~ B(4, 0.3). Find P(X = 1), and the mean and variance of X.

  1. P(X = 1) = 4C1 × 0.31 × 0.73 = 4 × 0.3 × 0.343
  2. 4 × 0.3 = 1.2 and 1.2 × 0.343 = 0.4116
  3. Mean = np = 4 × 0.3 = 1.2
  4. Variance = np(1 − p) = 1.2 × 0.7 = 0.84

Answer: P(X = 1) = 0.4116 (0.412 to 3 significant figures), mean 1.2, variance 0.84

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Conditional probability and independenceThe normal distribution →Take a Maths: Analysis and Approaches test