AP Statistics · Unit 2 · Lesson 5

Random Variables & Probability Distributions

随机变量、概率分布与期望

Topic 2.8 Intro to Random Variables & Probability Distributions · Topic 2.9 Parameters of Random Variables

45 min core+ Bonus practiceCED 2026TPS 6.1
MG · AP Statistics→ next · O contents · N notes · F fullscreen
Unit 2 · Roadmap

Where we are in Unit 2 单元路线图

Probability, Random Variables, and Probability Distributions · 15–25% of the AP exam

12.1 + 2.2 Two Categorical VariablesTPS 1.1
22.3 + 2.4 Simulation & Intro to ProbabilityTPS 5.1
32.5 Mutually Exclusive EventsTPS 5.2
42.6 + 2.7 Conditional Prob. & IndependenceTPS 5.3
52.8 + 2.9 Random VariablesTPS 6.1
62.10 The Binomial DistributionTPS 6.3
72.11 The Normal DistributionTPS 2.2
82.12 Sampling Distributions & CLTTPS 7.1
💡 So far: probabilities of events. Now: outcomes become numbers, and we describe their distribution with shape, center, and variability. 把结果变成数字。
Unit 2 · Lesson 5
Lesson 5 · Learning Objectives (CED)

By the end of today, you can… 学习目标

2.8.A · Skill 3.A

Construct ★★★★

Construct a probability distribution for a discrete random variable (table, graph, function, cumulative).

构建离散随机变量的概率分布

2.9.A · Skill 3.B

Calculate ★★★★

Calculate the mean (expected value) and standard deviation of a discrete random variable.

计算期望和标准差

2.9.B · Skill 4.D

Interpret ★★★★

Interpret the mean and standard deviation in context.

结合语境解释期望和标准差

From TPS 6.1

Describe ★★★★

Make a histogram of a probability distribution and describe its shape; find the median.

画概率直方图并描述形状

Unit 2 · Lesson 5
Lesson 5 · Agenda

Today's plan 课堂安排

3'
Warm-up: counting heads
17' · 2.8
Random variable → probability distribution → graphs → cumulative
15' · 2.9
Parameter → expected value → standard deviation → interpret
7'
Practice: mini-FRQ + AP-style MCQ
3'
Summary & exit ticket
Bonus
Distribution generator · calculator steps · extra MCQ
📝 Example 例题 — think first!✅ Answers 答案 — click 👁 under each question 点击显示🎮 Simulator 模拟器★★★★ basic → ★★★★ AP challenge

CED order: 2.8.A.1 → 2.8.A.5 → 2.9.A.1 → 2.9.A.2 → 2.9.A.3 → 2.9.B.1

Unit 2 · Lesson 5
Lesson 5 · Simulators

🎮 Simulators in this lesson 本节模拟器

Look for the navy 🎮 SIMULATOR banner. Click to jump there. 深蓝色横幅 = 模拟器,点击可直接跳转。

Unit 2 · Lesson 5
📝 Warm-up · 例题★★★★Warm-up

Toss a fair coin 3 times 热身:抛三次硬币

Let X = the number of heads. X = 正面的次数。

Q1What values can X take?
X = 0, 1, 2, or 3.
Q2Are these values equally likely?
No! Only one way to get 0 heads (TTT) but three ways to get 1 head (HTT, THT, TTH).
Q3Guess: which value of X is most likely?
X = 1 and X = 2 are tied as most likely (3 of 8 outcomes each).
🔑 X = number of heads in 3 tosses.
💡 Outcomes → numbers. That is a random variable.
Unit 2 · Lesson 5
Topic
2.8

Random Variables & Probability Distributions

随机变量与概率分布
2.8.A.1 Random variable2.8.A.2 Probability distribution2.8.A.3 Rules or simulation2.8.A.4 Table · graph · function2.8.A.5 Cumulative
Unit 2 · Lesson 5
2.8 · Key ConceptEK 2.8.A.1
Difficulty 难度 ★★★★

Random Variable 随机变量

Definition定义
A random variable is a variable whose values are numerical outcomes that result from a random phenomenon. Random variables are named with capital letters (X, Y, C…).
随机变量:取值为随机现象所产生的数值结果的变量,通常用大写字母表示。
Discrete离散型
Takes a countable set of values — e.g., number of heads.
取值可数(有限或可列出)。
Continuous · Lesson 7连续型
Takes any value in an interval — e.g., height, time.
可取某区间内任意值(第 7 课)。

Discrete or continuous?

Unit 2 · Lesson 5
📝 Example 2 · 例题★★★★EK 2.8.A.2 · 2.8.A.3

Build the distribution of X 构建 X 的分布

Toss a fair coin 3 times; X = number of heads.

aList the 8 equally likely outcomes and the value of X for each.
X = 0: TTT · X = 1: HTT, THT, TTH · X = 2: HHT, HTH, THH · X = 3: HHH
bMake a table of the probability distribution of X.
x0123
P(x)1/83/83/81/8
cDraw a probability histogram.
Histogram → symmetric, peaks at 1 and 2. The bars add to 1.
🔑 Using the rules of probability (8 equally likely outcomes).
Unit 2 · Lesson 5 · Example from TPS 6.1
🎮Simulator 模拟器Simulate: toss 3 coins模拟抛三枚硬币Try it! 动手试试
EK 2.8.A.3

CED 2.8.A.3: a distribution can come from the rules of probability or be estimated by simulation. 分布可以由概率法则得到,也可以用模拟估计。

Pink outline = theoretical probability

Unit 2 · Lesson 5
2.8 · Key ConceptEK 2.8.A.2
Difficulty 难度 ★★★★

Probability Distribution 概率分布

Definition定义
A probability distribution for a discrete random variable shows the probability associated with every possible value of the random variable. The sum of the probabilities over all possible values is 1.
离散随机变量的概率分布给出它每一个可能取值对应的概率;所有概率之和为 1。
Valuex₁x₂x₃…
Probabilityp₁p₂p₃…
Every pᵢ is between 0 and 1, and p₁ + p₂ + p₃ + … = 1. 与第 2 课的概率模型一致。
Unit 2 · Lesson 5
2.8 · RepresentationsEK 2.8.A.4
Difficulty 难度 ★★★★

Three ways to show a distribution 三种表示方式

A discrete probability distribution can be represented as a table, a graph, or a function. 可以用表格、图形或函数表示。

Table 表格
x0123
P(x)1/83/83/81/8
Graph 图形 (probability histogram)
Function 函数

P(X = x) = C(3, x) / 8

for x = 0, 1, 2, 3. C(3, x) counts the ways to get x heads. (第 6 课二项分布会用到)

Unit 2 · Lesson 5
📝 Example 3 · 例题★★★★EK 2.8.A.2 · 2.8.A.4

Apgar scores of newborns 新生儿 Apgar 评分

Doctors rate a newborn’s health on a 0–10 scale. Let X = Apgar score of a randomly selected newborn.

x012345678910
P(x)0.0010.0060.0070.0080.0120.0200.0380.0990.3190.4370.053
aShow that this is a valid probability distribution.
Every probability is between 0 and 1, and they add to 1 ✓
bFind and interpret P(X > 7).
P(X > 7) = 0.319 + 0.437 + 0.053 = 0.809. About 81% of newborns have Apgar scores greater than 7.
cFind P(X ≥ 7). dDescribe the shape.
Step 1. P(X ≥ 7) = 0.099 + 0.809 = 0.908 — “≥” includes 7!
Step 2. Skewed to the left, single peak at 9.
🔑 X = Apgar score of a randomly selected newborn.
💡 Discrete: P(X > 7) ≠ P(X ≥ 7). List the values!
Unit 2 · Lesson 5 · Example from TPS 6.1
🎮Simulator 模拟器Apgar event explorerApgar 事件探索Try it! 动手试试
EK 2.8.A.2
Click an event.
Unit 2 · Lesson 5
2.8 · Key ConceptEK 2.8.A.5
Difficulty 难度 ★★★★

Cumulative Probability Distribution 累积概率分布

Definition定义
A cumulative probability distribution can be represented as a table or function and shows the probability of being less than or equal to each value: P(X ≤ x).
累积概率分布给出随机变量小于或等于每个值的概率 P(X ≤ x),可以用表格或函数表示。
Unit 2 · Lesson 5
📝 Example 4 · 例题★★★★EK 2.8.A.5

Cumulative distribution & median 累积分布与中位数

Use the Apgar distribution.

x012345678910
P(x)0.0010.0060.0070.0080.0120.0200.0380.0990.3190.4370.053
aBuild the cumulative row P(X ≤ x).
P(X ≤ 0) = 0.001, P(X ≤ 1) = 0.007, … keep adding (table →).
bFind the median Apgar score (the smallest value whose cumulative probability is ≥ 0.5).
P(X ≤ 7) = 0.191 < 0.5 but P(X ≤ 8) = 0.510 ≥ 0.5 → median = 8.
🔑 Running total of the probabilities.
Unit 2 · Lesson 5
📝 Example 5 · 例题★★★★EK 2.8.A.4

Pete's Jeep Tours 皮特的吉普车之旅

A trip runs with 2–6 passengers; Pete charges $150 per passenger. Let C = total money Pete collects on a randomly selected trip.

Passengers23456
C$300$450$600$750$900
P(C)0.150.250.350.200.05
aMake a probability histogram and describe its shape.
Roughly symmetric with a single peak at $600.
bFind P(Pete collects at least $600).
0.35 + 0.20 + 0.05 = 0.60
🔑 C = amount collected on a randomly selected trip.
Unit 2 · Lesson 5 · Example from TPS 6.1
Topic
2.9

Parameters of Random Variables

随机变量的参数:期望与标准差
2.9.A.1 Parameter2.9.A.2 Expected value μ2.9.A.3 Standard deviation σ2.9.B.1 Interpret in context
Unit 2 · Lesson 5
2.9 · ConceptEK 2.9.A.1
Difficulty 难度 ★★★★

Parameter 参数

Definition定义
A numerical value measuring a characteristic of a probability distribution of a random variable, or of a population, is a parameter. The value of a parameter is a single, fixed value.
描述随机变量的概率分布(或总体)某一特征的数值叫作参数。参数是一个固定的值。
Today’s two parameters: the mean μ_{X} (center) and the standard deviation σ_{X} (variability). Greek letters → parameters. 希腊字母表示参数。
Unit 2 · Lesson 5
2.9 · Key ConceptEK 2.9.A.2
Difficulty 难度 ★★★★

Expected Value (Mean) 期望(均值)

Definition定义
The expected value (or mean) of a discrete random variable, written E(X) or μ_{X}, is μ_{X} = Σ xᵢ · P(xᵢ). It is a weighted average of the possible values, each weighted by its probability, and is interpreted as the long-run average outcome.
期望 E(X) 或 μ_{X} = 每个取值 × 其概率,再求和。它是以概率为权重的加权平均,可解释为大量重复后的长期平均结果。
The mean is the balance point of the distribution. 均值是分布的平衡点。
Unit 2 · Lesson 5
📝 Example 6 · 例题★★★★EK 2.9.A.2

Pete's expected earnings 计算期望

Passengers23456
C$300$450$600$750$900
P(C)0.150.250.350.200.05
aCalculate the expected value μ_{C}.
Step 1. 300(0.15) + 450(0.25) + 600(0.35) + 750(0.20) + 900(0.05)
Step 2. = 45 + 112.5 + 210 + 150 + 45 = $562.50 (the balance point →)
bCan Pete ever collect exactly μ_{C} on one trip?
No — μ need not be a possible value. It is a long-run average.
🔑 μ = Σ c · P(c).
Unit 2 · Lesson 5
🎮Simulator 模拟器Expected value: row by row逐行计算期望Try it! 动手试试
EK 2.9.A.2 · 2.9.B.1
Unit 2 · Lesson 5
2.9 · Key ConceptEK 2.9.A.3
Difficulty 难度 ★★★★

Standard Deviation 标准差

Definition定义
The standard deviation of a discrete random variable, SD(X) or σ_{X}, is σ_{X} = √[ Σ (xᵢ − μ_{X})² · P(xᵢ) ]. It is the typical deviation of the values from the mean over the long run. Its square is the variance, V(X) or σ_{X}².
标准差 σ_{X}:长期来看,随机变量的取值与均值之间的典型偏离。标准差的平方叫方差,记作 V(X) 或 σ_{X}²。
Unit 2 · Lesson 5
Behind the Formula · 公式背后的逻辑
3–4 min · formula reasoning

Where Does Standard Deviation Come From? 标准差的由来

1 · Measure distance from the mean

Start with the signed deviation. Averaging it gives zero: positive and negative deviations cancel.

直接平均偏差会正负抵消,不能衡量离散程度。

2 · Square, then weight by probability

Variance is the probability-weighted average of squared deviations. Each squared deviation is weighted by its probability.

3 · Take the square root

Squaring changes the units; the square root restores the units of X.

标准差是“平方偏差加权平均后开方”,不是平均绝对偏差。

Unit 2 · Lesson 5 · Optional Extension
📝 Example 7 · 例题★★★★EK 2.9.A.3

Pete's standard deviation 计算标准差

Passengers23456
C$300$450$600$750$900
P(C)0.150.250.350.200.05
aUsing μ_{C} = $562.50, calculate the variance and the standard deviation σ_{C}.
Step 1.
Step 2.
Step 3. — don’t forget the square root!
bApgar: μ = 8.128 and σ ≈ 1.437. Which distribution is more spread out relative to its scale?
Pete: σ is about 29% of μ; Apgar: about 18% of μ → Pete’s amounts vary more relative to their size.
🔑 σ² = Σ (c − μ)² · P(c), μ = 562.5.
💡 Variance → take the square root → standard deviation (same units as X).
Unit 2 · Lesson 5
🎮Simulator 模拟器Build your own distribution自己设计一个分布Try it! 动手试试
EK 2.8.A.2 · 2.9.A.2–3

Drag the weights — probabilities are rescaled so they always sum to 1.

Challenge: make σ as large as possible. Then as small as possible.

Pink band = μ ± σ

Unit 2 · Lesson 5
2.9 · InterpretEK 2.9.B.1 · Skill 4.D
Difficulty 难度 ★★★★

Interpreting μ and σ in context 结合语境解释

Sentence frames 句型

Mean: If we [repeat the random process] many, many times, the average [variable in context] will be about μ.
SD: The [variable in context] typically varies from the mean of μ by about σ.
⚠️ The expected value doesn’t have to be a possible value. 期望不一定是可能取到的值。
Unit 2 · Lesson 5
📝 Example 8 · 例题★★★★EK 2.9.B.1

Interpret in context 结合语境解释

Pete’s Jeep Tours: μ_{C} = $562.50, σ_{C} ≈ $163.46. Apgar: μ_{X} = 8.128, σ_{X} ≈ 1.437.

aInterpret μ_{C}.
If we randomly select many, many jeep tours, Pete will collect about $562.50 per trip, on average.
bInterpret σ_{C}.
The amount Pete collects on randomly selected trips typically varies from the mean ($562.50) by about $163.46.
cInterpret σ_{X} for the Apgar scores.
The Apgar scores of randomly selected newborns typically vary from the mean (8.128) by about 1.44 points.
🔑 Mean = long-run average · SD = typical distance from the mean.
Unit 2 · Lesson 5
📝 Example 9 · 例题★★★★EK 2.9.A.2 · 2.3.A.7

Is this game worth playing? 这个游戏值得玩吗?

Pay $2 to roll a fair die. Roll a 6 → win $10 (net +$8). Otherwise you lose your $2. Let X = net gain.

x+$8−$2
P(x)1/65/6
aFind E(X).
E(X) = 8(1/6) + (−2)(5/6) = −2/6 ≈ −$0.33
bInterpret it. Should you play?
In the long run, you lose about 33 cents per game. The path of the running average settles near −0.33 (law of large numbers →).
🔑 X = net gain per game.
Unit 2 · Lesson 5
🎮Simulator 模拟器Play the dice game玩骰子游戏Try it! 动手试试
EK 2.9.A.2 · 2.3.A.7

Average net gain per game

—

Unit 2 · Lesson 5
2.8–2.9 · AP Exam Tips

Common mistakes 常见错误

✗ Mistake 1

Unweighted average

The mean is not (x₁ + x₂ + …)/n — weight each value by its probability.

期望要用概率加权。

✗ Mistake 2

Forgetting the square root

Σ(x − μ)²P(x) is the variance; take the square root for σ.

方差开根号才是标准差。

✗ Mistake 3

"≤" vs "<"

For discrete variables, P(X < 3) ≠ P(X ≤ 3). List the values!

离散型要注意是否包含端点。

✗ Mistake 4

No context

"The mean is 8.128" earns nothing — say what it means for the newborns in the long run.

解释必须结合语境。

Unit 2 · Lesson 5
📝 Example 10 · 例题★★★★EK 2.8.A.2 · 2.9.A.2–3 · 2.9.B.1

Cars per household 每户汽车数量(mini-FRQ)

Choose a household at random in a city. Let X = the number of cars it owns. (illustrative)

x01234
P(x)0.080.300.380.18?
aFind P(X = 4).   bFind P(X ≥ 2).
Step 1. 1 − (0.08 + 0.30 + 0.38 + 0.18) = 0.06
Step 2. 0.38 + 0.18 + 0.06 = 0.62
cCalculate and interpret μ_{X}.   dCalculate σ_{X}.
Step 1. 0(0.08) + 1(0.30) + 2(0.38) + 3(0.18) + 4(0.06) = 1.84. If we randomly select many, many households, they will own about 1.84 cars on average.
Step 2. Σ(x − 1.84)²P(x) ≈ 1.014 → σ ≈ 1.007 cars
🔑 X = number of cars in a randomly selected household.
Unit 2 · Lesson 5
📝 AP Practice 11 · AP 选择题★★★★EK 2.9.B.1

Raffle ticket

A raffle ticket has expected winnings of $1.50. Which is the best interpretation?
  • (A) Every ticket wins $1.50.
  • (B) Most tickets win $1.50.
  • (C) If you bought many, many tickets, you would win about $1.50 per ticket, on average.
  • (D) There is a 1.5% chance of winning.
  • (E) The median prize is $1.50.

Expected value = long-run average outcome → (C).

Most tickets may win $0 — a few big prizes pull the mean up.

Unit 2 · Lesson 5
📝 AP Practice 12 · AP 选择题★★★★EK 2.9.A.2

Find the mean

The random variable X has the distribution below. What is μ_{X}?
x1234
P(x)0.10.30.40.2
  • (A) 2.5
  • (B) 2.7
  • (C) 3.0
  • (D) 0.25
  • (E) 10

1(0.1) + 2(0.3) + 3(0.4) + 4(0.2) = 2.7 → (B).

(A) is the unweighted average of 1, 2, 3, 4.

Unit 2 · Lesson 5
🎮Simulator 模拟器Distribution generator随机练习(Bonus)Try it! 动手试试
EK 2.8.A.2 · 2.8.A.5 · 2.9.A.2

Unit 2 · Lesson 5
Bonus · TechnologyEK 2.9.A.2–3
Difficulty 难度 ★★★★
Bonus

TI-83/84: mean & SD of a random variable 计算器步骤

1

STAT → Edit. Values in L1, probabilities in L2.

2

STAT → CALC → 1-Var Stats

3

List: L1, FreqList: L2 → Calculate.

4

x̄ = μ_{X}, σx = σ_{X}. (Ignore Sx and n.)

⚠️ On the AP exam, show the formula with numbers substituted (at least the first few terms), not just "1-Var Stats". 考试要写出代入数字的公式。
Unit 2 · Lesson 5
Bonus
📝 AP Practice 13 · AP 选择题★★★★EK 2.8.A.5

Reading a cumulative distribution

The cumulative distribution of X is shown. What is P(X = 2)?
x0123
P(X ≤ x)0.200.500.851.00
  • (A) 0.15
  • (B) 0.35
  • (C) 0.50
  • (D) 0.85
  • (E) 1.35

P(X = 2) = P(X ≤ 2) − P(X ≤ 1) = 0.85 − 0.50 = 0.35 → (B).

Each jump in the step graph is one probability (pink jump →).

Unit 2 · Lesson 5
Wrap-up · Summary

Key vocabulary 本课词汇

English中文Remember… / 记住Level
Random variable (discrete)(离散)随机变量Numerical outcome; countable values★★★★
Probability distribution概率分布Every value + its probability; sum = 1★★★★
Cumulative distribution累积分布P(X ≤ x)★★★★
Parameter参数A single, fixed value describing a distribution★★★★
Expected value (mean)期望(均值)μ = Σ x·P(x) — long-run average★★★★
Standard deviation · variance标准差 · 方差 — typical deviation★★★★
Unit 2 · Lesson 5
📝 Exit ticket · 例题★★★★2.8.A · 2.9.A

Exit ticket 🎟️ 离堂小测

A student’s number of AP classes, X, has this distribution:

x123
P(x)0.20.5?
1Find P(X = 3).
1 − 0.7 = 0.3
2Calculate μ_{X}.
1(0.2) + 2(0.5) + 3(0.3) = 2.1
3Calculate σ_{X}.
(1−2.1)²(0.2) + (2−2.1)²(0.5) + (3−2.1)²(0.3) = 0.242 + 0.005 + 0.243 = 0.49 → σ = 0.7
🔑 X = number of AP classes.
Unit 2 · Lesson 5
Next time · Lesson 6

The Binomial Distribution

二项分布 · Topic 2.10

Counting successes in n independent trials: P(X = x) = C(n, x) pˣ(1 − p)ⁿ⁻ˣ

MG · AP Statistics
课件目录