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.
x
0
1
2
3
P(x)
1/8
3/8
3/8
1/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).
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。
Value
x₁
x₂
x₃
…
Probability
p₁
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 表格
x
0
1
2
3
P(x)
1/8
3/8
3/8
1/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.
x
0
1
2
3
4
5
6
7
8
9
10
P(x)
0.001
0.006
0.007
0.008
0.012
0.020
0.038
0.099
0.319
0.437
0.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.
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).
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.
Passengers
2
3
4
5
6
C
$300
$450
$600
$750
$900
P(C)
0.15
0.25
0.35
0.20
0.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.
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}².
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 计算标准差
Passengers
2
3
4
5
6
C
$300
$450
$600
$750
$900
P(C)
0.15
0.25
0.35
0.20
0.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. 期望不一定是可能取到的值。