China Senior-Secondary Mathematics: Vectors, Conics and Complex Numbers

Lesson 16: Random Variables and Distributions (随机变量及其分布)Gaokao

A random variable (随机变量) turns the outcomes of an experiment into numbers, and its distribution (分布列) lists the values with their probabilities. Once you have the distribution, the expectation (期望) and variance (方差) summarise it in two numbers, and the binomial and normal distributions give you the two standard models Gaokao expects you to use.

Key Terms.
  • Random variable (随机变量) — A variable whose value is determined by the outcome of a random experiment.
  • Distribution (分布列) — The list of possible values of a discrete random variable with their probabilities.
  • Expectation (期望) — E(X) = Σ xᵢpᵢ, the long-run average value of X.
  • Variance (方差) — Var(X) = E((X − E(X))²) = E(X²) − (E(X))², measuring spread.
  • Binomial distribution (二项分布) — X ~ B(n, p): the number of successes in n independent trials, each with success probability p.
  • Normal distribution (正态分布) — X ~ N(μ, σ²): the bell-shaped distribution with mean μ and standard deviation σ.
  • Standard deviation (标准差) — The square root of the variance, σ = √Var(X).

The key ideas

For a discrete random variable X taking values x₁, …, xₙ with probabilities p₁, …, pₙ, the probabilities must add to 1, and the expectation is E(X) = Σxᵢpᵢ. The expectation is the value you would average over many repetitions: a fair die has expectation (1 + 2 + 3 + 4 + 5 + 6)/6 = 3.5, even though 3.5 is not a possible roll. The variance is Var(X) = Σ(xᵢ − E(X))²pᵢ, and the shortcut Var(X) = E(X²) − (E(X))² usually makes the arithmetic easier. Expectation is linear: E(aX + b) = aE(X) + b, and Var(aX + b) = a²Var(X).

The binomial distribution models counting successes. If X ~ B(n, p), then P(X = k) = C(n, k)p^k(1 − p)^(n−k), with E(X) = np and Var(X) = np(1 − p). For example, the number of heads in 10 tosses of a fair coin is B(10, 1/2), with expectation 5 and variance 2.5. The binomial formula is a combination count times a probability: choose which k trials succeed, then multiply the probabilities of k successes and n − k failures.

The normal distribution N(μ, σ²) is the bell curve. Its mean is μ, its standard deviation is σ, and it is symmetric about μ. The empirical rule says about 68% of the mass lies within one standard deviation of the mean, about 95% within two, and about 99.7% within three. To find probabilities you standardise: Z = (X − μ)/σ follows the standard normal N(0, 1), and you read probabilities from the standard normal table. Gaokao usually asks for P(μ − σ < X < μ + σ) = 0.6827 and the two-standard-deviation version, 0.9545.

Worked example 1 — expectation and variance of a die

A fair die is rolled once and X is the number shown. Find E(X) and Var(X). The distribution is P(X = k) = 1/6 for k = 1, …, 6. The expectation is E(X) = (1 + 2 + 3 + 4 + 5 + 6)/6 = 21/6 = 7/2. For the variance, E(X²) = (1 + 4 + 9 + 16 + 25 + 36)/6 = 91/6, so Var(X) = 91/6 − 49/4 = (182 − 147)/12 = 35/12. The standard deviation is √(35/12) ≈ 1.71. The variance is large because the die’s values spread from 1 to 6 around the mean 3.5.

Worked example 2 — a binomial probability

A basketball player scores a free throw with probability 0.8. She takes 5 free throws. What is the probability she scores exactly 4? The number of scores is X ~ B(5, 0.8), so P(X = 4) = C(5, 4) × 0.8⁴ × 0.2¹ = 5 × 0.4096 × 0.2 = 0.4096. The expectation is 5 × 0.8 = 4, so exactly 4 is the most likely outcome, and its probability 0.4096 is indeed the largest of the six. The probability of at least 4 is P(X = 4) + P(X = 5) = 0.4096 + 0.32768 = 0.73728.

A deeper look — why the normal distribution appears everywhere

The normal distribution appears whenever many small independent effects add up: heights, measurement errors, test scores. This is the central limit theorem, which says the sum of many independent random variables is approximately normal, whatever the individual distributions look like. That is why Gaokao can ask normal questions about real-world quantities like the weights of apples or the lifetimes of batteries. If a quantity is normal with mean 100 and standard deviation 10, then about 68% of values lie between 90 and 110, and the probability of a value above 120 is about 2.3%, since 120 is two standard deviations above the mean and the tail beyond two standard deviations is (1 − 0.9545)/2 ≈ 0.0228.

Common mistakes

  • Forgetting that probabilities in a distribution must sum to 1. If they do not, the distribution is wrong.
  • Using Var(X) = E(X²) − E(X) instead of E(X²) − (E(X))². The square is on the expectation, not on X.
  • Confusing the binomial mean np with the probability p. The mean is a count; p is a probability.
  • Reading a normal probability from the wrong tail. P(X > μ + 2σ) is about 0.023, not 0.046; the 0.046 is both tails together.

Discussion questions

  1. A game pays you the number on a die in yuan, and costs 4 yuan to play. Is the game fair? What would the entry fee have to be for it to be fair?
  2. Two shooters each hit with probability 0.7. One shoots 10 times, the other 100 times. Whose number of hits has the larger variance, and why?
  3. Heights in a population are approximately N(170, 25) in centimetres. What proportion of people are taller than 180 cm? What does the answer assume?

Practice questions

  1. X takes values 0 and 1 with probabilities 0.3 and 0.7. Find E(X). Answer: 0.7. Explanation: E(X) = 0 × 0.3 + 1 × 0.7 = 0.7.
  2. X ~ B(4, 1/2). Find P(X = 2). Answer: 3/8. Explanation: C(4, 2)(1/2)⁴ = 6/16 = 3/8.
  3. X ~ B(10, 0.3). Find E(X) and Var(X). Answer: E = 3, Var = 2.1. Explanation: E = 10 × 0.3 = 3; Var = 10 × 0.3 × 0.7 = 2.1.
  4. X ~ N(50, 16). Find P(46 < X < 54). Answer: About 0.6827. Explanation: 46 and 54 are one standard deviation (4) from the mean 50.
  5. If E(X) = 3 and Var(X) = 2, find E(2X + 1) and Var(2X + 1). Answer: E = 7, Var = 8. Explanation: E(2X + 1) = 2 × 3 + 1 = 7; Var(2X + 1) = 4 × 2 = 8.

✅ Check your understanding

Quick recall check, generated from this lesson’s key terms. It is practice only and is not graded.

Keep reading to complete this lesson