All datasets, summary values and scenarios in this guide are synthetic illustrative teaching examples, not reports of actual research.
本指南所有数据、汇总值和情境均为合成教学示例,不是真实研究报告。
AP Statistics

Unit 1: Exploring Data

Describe, graph and summarize data: categorical and quantitative variables, two-way tables, shape, center and variability, boxplots and outliers, and comparing distributions.

Topics 1.1 to 1.9Bilingual edition
AP 统计学

单元 1:探索数据

描述、绘图并概括数据:分类变量与定量变量、双向表、形状、中心与离散程度、箱线图与离群值,以及分布的比较。

主题 1.1 至 1.9中英双语版
Read me first

Each topic gives objectives, an explanation, worked examples, an exam tip, common mistakes and check questions with answers. Use the contents list to jump to a topic, then finish with the unit quiz. All data are synthetic illustrations.

阅读提示

每个主题含学习目标、讲解、例题、考试提示、常见错误与带答案的自测题。可用目录跳转到任一主题,最后完成单元自测。所有数据均为合成示例。

Variables and Frequency Tables变量与频数表

Learning objectives学习目标
  • Name the population, sample, observational unit, variable, parameter and statistic in a described study.
  • Classify a variable as categorical or quantitative (discrete or continuous) from what its values mean.
  • Build a frequency table and a relative frequency table from raw data and read it in context.
  • 在题述研究中指出总体、样本、观察单位、变量、参数和统计量。
  • 依据取值的含义,把变量分为分类变量或定量变量(离散或连续)。
  • 由原始数据制作频数表与相对频数表,并结合情境解读。
What you must know

Statistics is the science of learning from data that vary. A variable is a characteristic that changes from one individual (observational unit) to the next. A categorical variable puts each individual into a group (pet type, bus or walk). A quantitative variable records a number on which arithmetic is meaningful (minutes of homework, number of siblings), and it is discrete if its values can be counted and continuous if it can take any value in an interval.

必备知识

统计学是从有变异的数据中学习的科学。变量是随个体(观察单位)不同而变化的特征。分类变量把每个个体归入某一类(宠物类型、乘车或步行);定量变量记录可以进行算术运算的数值(作业分钟数、兄弟姐妹人数),取值可数的是离散变量,可取区间内任意值的是连续变量。

A population is the whole group we want to know about; a sample is the part we actually measure. A number that describes a population is a parameter ($\mu$, $\sigma$, $p$); a number computed from a sample is a statistic ($\bar{x}$, $s$, $\hat{p}$). We use statistics to estimate parameters, and a statistic changes from sample to sample.

A frequency table lists each category with its count. The relative frequency of a category is its count divided by the total, $\text{relative frequency}=\dfrac{\text{count}}{n}$, and the relative frequencies add to 1 (or 100% as percents, up to rounding).

总体是我们想了解的全体;样本是实际被测量的部分。描述总体的数是参数($\mu$、$\sigma$、$p$),由样本算出的数是统计量($\bar{x}$、$s$、$\hat{p}$)。我们用统计量估计参数,统计量会随样本而变。

频数表列出每个类别及其计数。类别的相对频数等于该类计数除以总数,即 $\text{相对频数}=\dfrac{\text{计数}}{n}$,各类相对频数之和为 1(写成百分数则为 100%,允许舍入误差)。

Also on the 2027 exam

The revised course asks you to read every result in context: name the variable, the units and the individuals. It also asks you to tell a statistical question (one whose answer varies from individual to individual, such as "How long do students at this school take to get to class?") from a question with one fixed answer ("How long is this school's day?"). Both skills help here too: write "the mean commute of the 12 sampled students", not just "the mean".

对应 2027 考试新增内容

新课程要求所有结果都结合情境表述:写明变量、单位和个体。还要求区分统计问题(答案因个体而异,如「本校学生到教室需要多长时间?」)与答案固定的问题(「本校一天上课多长?」)。这两项能力在此同样适用:应写「12 名被抽查学生的平均通勤时间」,而不只是「平均值」。

Common Mistake: A ZIP code is not a quantitative variable

Digits do not make a variable quantitative. A ZIP code, jersey number or student ID is categorical, because averaging them means nothing. Classify by what the values mean.

常见错误:邮政编码不是定量变量

用数字表示并不等于定量变量。邮政编码、球衣号码、学号都是分类变量,对它们求平均没有意义。要依据取值的含义分类。

Worked Example 1.1: Classify the variables例题 1.1:判断变量类型

A counselor asks a random sample of 60 students at one school: how they usually get to school, how many minutes of homework they did last night, how many siblings they have, and their home ZIP code. Classify each variable.

  1. Getting to school (bus, walk, car, bike) puts students into groups: categorical.
  2. Minutes of homework can be any value in an interval: continuous quantitative (units: minutes).
  3. Number of siblings is a count (0, 1, 2, ...): discrete quantitative.
  4. ZIP code is written with digits but only names a location: categorical.
  5. The individual is one student; the sample is the 60 students; the population is all students at that school (the counselor can generalize only because the sample is random).

辅导员随机抽取某校 60 名学生,询问平时如何到校、昨晚做了多少分钟作业、有几个兄弟姐妹以及家庭邮编。判断各变量的类型。

  1. 到校方式(公交、步行、汽车、自行车)把学生分组:分类变量。
  2. 作业分钟数可取区间内任意值:连续定量变量(单位:分钟)。
  3. 兄弟姐妹人数是计数(0、1、2……):离散定量变量。
  4. 邮编虽用数字书写,但只表示地点:分类变量。
  5. 个体是一名学生;样本是这 60 名学生;总体是该校全体学生(样本是随机的,辅导员才可以把结论推广到总体)。
Worked Example 1.2: Raw data to frequency and relative frequency例题 1.2:由原始数据到频数与相对频数

Twenty students name their favorite pet: Dog, Cat, Dog, Fish, Dog, Cat, Other, Dog, Cat, Dog, Fish, Cat, Dog, Other, Cat, Dog, Fish, Other, Cat, Dog. Build the table and interpret it.

PetFrequencyRelative frequencyPercent
Dog88/20 = 0.4040%
Cat66/20 = 0.3030%
Fish33/20 = 0.1515%
Other33/20 = 0.1515%
Total201.00100%

Check: $8+6+3+3=20$ and $0.40+0.30+0.15+0.15=1$. Interpretation in context: "Dog is the most common favorite pet among these 20 students, chosen by 40% of them." Because these 20 students are not described as a random sample, the statement is about them only.

20 名学生写下最喜欢的宠物:狗、猫、狗、鱼、狗、猫、其他、狗、猫、狗、鱼、猫、狗、其他、猫、狗、鱼、其他、猫、狗。制作频数表并解读。

宠物频数相对频数百分比
狗88/20 = 0.4040%
猫66/20 = 0.3030%
鱼33/20 = 0.1515%
其他33/20 = 0.1515%
合计201.00100%

核对:$8+6+3+3=20$,$0.40+0.30+0.15+0.15=1$。结合情境解读:「在这 20 名学生中,狗是最常见的最爱宠物,占 40%。」题中没有说明这 20 人是随机样本,所以结论只针对这 20 人。

Worked Example: Parameter, statistic and sampling variation例题:参数、统计量与抽样变异

A school has 2400 students. The school board wants to know the proportion who support a later start time. A random sample of 150 students is surveyed and 96 of them support the change. (a) Identify the population, the parameter, the sample and the statistic, with symbols. (b) Compute the statistic. (c) A second random sample of 150 students gives 90 supporters. What does that show, and what can the board conclude?

  1. Population: all 2400 students at the school. Parameter: $p$, the proportion of all 2400 students who support the change (one fixed number, unknown to the board). Sample: the 150 surveyed students. Statistic: $\hat{p}$, the proportion of the sample who support the change.
  2. Compute: $\hat{p}=96/150=0.64$, so 64% of the sampled students support a later start time.
  3. Second sample: $\hat{p}=90/150=0.60$. The statistic moved from 0.64 to 0.60 while the parameter $p$ did not change: a statistic varies from sample to sample, and a parameter is one fixed value.
  4. Conclusion: "In a random sample of 150 students, 64% support a later start time, so the proportion of all students at this school who support it is estimated to be near 0.64. Another random sample gave 0.60, so one sample's result can differ from the parameter." The random selection is what lets the board generalize to the whole school; how far an estimate is likely to be from $p$ is the subject of later units.

A complete answer states the population and the parameter in words, gives the statistic with its value, and says that the sample result estimates the parameter without equaling it.

某校有 2400 名学生。校董会想了解支持推迟上学时间的学生所占比例。随机抽取 150 名学生调查,其中 96 人支持这一改变。(a)指出总体、参数、样本和统计量,并写出符号。(b)计算该统计量。(c)第二个容量为 150 的随机样本中有 90 人支持。这说明什么?校董会能得出什么结论?

  1. 总体:该校全部 2400 名学生。参数(parameter):$p$,即全体 2400 名学生中支持这一改变的比例(一个固定的数,校董会并不知道)。样本:被调查的 150 名学生。统计量(statistic):$\hat{p}$,即样本中支持这一改变的比例。
  2. 计算:$\hat{p}=96/150=0.64$,所以被调查学生中有 64% 支持推迟上学时间。
  3. 第二个样本:$\hat{p}=90/150=0.60$。统计量从 0.64 变成 0.60,而参数 $p$ 没有变:统计量会随样本而变,参数是一个固定的值。
  4. 结论:「在 150 名学生的随机样本中,64% 支持推迟上学时间,所以该校全体学生中支持者的比例估计在 0.64 附近。另一个随机样本得到 0.60,说明单个样本的结果可能与参数不同。」正因为是随机抽样,校董会才可以把结论推广到全校;估计值离 $p$ 可能有多远,是后面各单元的内容。

完整答案要点:用文字写出总体和参数,给出统计量及其数值,并指出样本结果是对参数的估计,而不等于参数。

TI-84 and Nspire
  1. Type the categories as codes in L1 (1 = Dog, 2 = Cat, 3 = Fish, 4 = Other) with STAT > 1:Edit.
  2. Count one category: 2nd STAT (LIST) > MATH > 5:sum(, then 2nd MATH (TEST) > 1:=, giving sum(L1=1), which returns 8.
  3. Divide by dim(L1) (2nd STAT > OPS > 3:dim() for the relative frequency: sum(L1=1)/dim(L1) gives 0.4.
  4. Nspire: in a Lists & Spreadsheet column enter the codes, then in a Calculator page use countif(list1,1) (type it directly) and divide by dim(list1).
TI-84 与 Nspire 操作
  1. 在 STAT > 1:Edit 中把类别用代码输入 L1(1 = 狗,2 = 猫,3 = 鱼,4 = 其他)。
  2. 统计某一类的个数:2nd STAT(LIST)> MATH > 5:sum(,再用 2nd MATH(TEST)> 1:=,得到 sum(L1=1),结果为 8。
  3. 除以 dim(L1)(2nd STAT > OPS > 3:dim()即得相对频数:sum(L1=1)/dim(L1) 结果为 0.4。
  4. Nspire:在 Lists & Spreadsheet 的一列输入代码,在 Calculator 页面用 countif(list1,1),再除以 dim(list1)。
Exam tip考试提示

In a free-response answer about a table, quote counts or percents with the category and the group ("40% of the 20 surveyed students chose a dog"). A bare number, or a category with no percent, is an incomplete answer.

回答与表格有关的简答题时,要把计数或百分比与类别和群体一起写出(「在被调查的 20 名学生中 40% 选了狗」)。只写一个数字,或只有类别没有百分比,是不完整的答案。

FRQ response model: describe a categorical variable简答题答题模型:描述分类变量

Prompt. A librarian records the genre of each of 50 randomly selected books checked out last month: 21 mystery, 15 fantasy, 9 history, 5 other. (a) Identify the variable and its type. (b) Give the relative frequency of each genre. (c) State what the table shows in context.

  • Variable and type: genre of a checked-out book; categorical.
  • Correct values: $21/50=0.42$, $15/50=0.30$, $9/50=0.18$, $5/50=0.10$; total 1.00.
  • Conclusion in context: "Mystery was the most common genre, making up 42% of the 50 sampled books checked out last month; because the books were randomly selected, this estimates the pattern for all books checked out that month."

题目。 图书管理员记录了上月随机抽取的 50 本借出图书的类型:悬疑 21 本,奇幻 15 本,历史 9 本,其他 5 本。(a) 指出变量及其类型。(b) 给出各类型的相对频数。(c) 结合情境说明表格反映的信息。

  • 变量及类型:借出图书的类型;分类变量。
  • 数值正确:$21/50=0.42$,$15/50=0.30$,$9/50=0.18$,$5/50=0.10$;合计 1.00。
  • 情境中的结论:「悬疑类最常见,占被抽查的 50 本上月借出图书的 42%;因为图书是随机抽取的,这可以估计当月全部借出图书的分布。」
Check your understanding自我检测
Is a jersey number a categorical or a quantitative variable? Why?球衣号码是分类变量还是定量变量?为什么?

Categorical. The digits are labels, and arithmetic on them (such as a mean jersey number) has no meaning.

分类变量。数字只是标签,对它们做运算(如平均球衣号码)没有意义。

In a table, 18 of 45 surveyed students prefer online homework. What is the relative frequency, as a decimal and a percent?表中 45 名被调查学生里有 18 人偏爱线上作业。相对频数是多少(小数与百分数)?

$18/45=0.40$, or 40%.

$18/45=0.40$,即 40%。

A random sample of 200 voters finds that 54% favor a measure. Is 54% a parameter or a statistic? What symbol names it?随机抽取的 200 名选民中 54% 支持某项提案。54% 是参数还是统计量?用什么符号表示?

A statistic, because it is computed from a sample. It is written $\hat{p}=0.54$; the unknown population proportion is the parameter $p$.

是统计量,因为它由样本算出,记作 $\hat{p}=0.54$;未知的总体比例是参数 $p$。

The number of text messages a student sent today: discrete or continuous?学生今天发送的短信条数是离散还是连续变量?

Discrete. It can only take counted values 0, 1, 2, ...

离散变量,只能取可数的值 0、1、2……

Representing Categorical Data分类数据的图形表示

Learning objectives学习目标
  • Construct and read a bar chart, relative frequency bar chart and pie chart for one categorical variable.
  • Identify the mode (most frequent category) and compare categories by percent.
  • Spot misleading graphs: truncated axes, 3-D effects, bars of unequal width, percentages that do not total 100%.
  • 绘制并阅读单个分类变量的条形图、相对频率条形图与饼图。
  • 找出众数类别(频数最大的类别),并用百分比比较各类。
  • 识别误导性图形:截断的坐标轴、立体效果、宽度不等的条形、百分比总和不为 100%。
What you must know

A bar chart puts the categories on the horizontal axis and draws one bar per category, with height equal to the frequency or the relative frequency. The bars have equal width, are separated by gaps (a category is not a number line), and can be placed in any order; a Pareto chart orders them from tallest to shortest. A pie chart shows each category as a slice whose angle is proportional to its share, $\text{angle}=\text{relative frequency}\times 360^\circ$, and is only appropriate when the categories make up a whole.

必备知识

条形图把类别放在横轴,每类画一根条形,高度等于频数或相对频数。条形宽度相等、条间留空(类别不是数轴),顺序可任意;按从高到低排列的叫帕累托图。饼图以扇形角度表示占比,$\text{角度}=\text{相对频数}\times 360^\circ$,只适用于各类合起来构成整体的情况。

0%10%20%30%40%35%InstagramInstagram30%TikTokTikTok20%YouTubeYouTube10%SnapchatSnapchat5%Other其他Relative frequency相对频率
Figure 1. Relative frequency bar chart of the main social platform of 80 students (counts 28, 24, 16, 8, 4). The tallest bar marks the mode, Instagram.图 1. 80 名学生主要使用的社交平台的相对频率条形图(频数 28、24、16、8、4)。最高的条形对应众数类别 Instagram。
Worked Example 2.1: Build and read a relative frequency bar chart例题 2.1:绘制并解读相对频率条形图

Eighty students name the app they use most: Instagram 28, TikTok 24, YouTube 16, Snapchat 8, Other 4. Draw the chart and compare categories.

  1. Relative frequencies: $28/80=0.35$, $24/80=0.30$, $16/80=0.20$, $8/80=0.10$, $4/80=0.05$. They total 1.
  2. Draw one equal-width bar per category with heights 35%, 30%, 20%, 10%, 5% (Figure 1); label both axes with the variable and units.
  3. The mode is Instagram. Compared with TikTok, Instagram's share is larger by $35\%-30\%=5$ percentage points, but Instagram and TikTok together account for $65\%$ of these students.
  4. Pie angles, if required: $0.35\times360^\circ=126^\circ$, $0.30\times 360^\circ=108^\circ$, $72^\circ$, $36^\circ$, $18^\circ$, which sum to $360^\circ$.

80 名学生写出最常用的应用:Instagram 28,TikTok 24,YouTube 16,Snapchat 8,其他 4。作图并比较各类。

  1. 相对频数:$28/80=0.35$,$24/80=0.30$,$16/80=0.20$,$8/80=0.10$,$4/80=0.05$,合计为 1。
  2. 每类画一根等宽条形,高度分别为 35%、30%、20%、10%、5%(图 1);两个坐标轴都要标明变量和单位。
  3. 众数类别是 Instagram。与 TikTok 相比,Instagram 的占比高 $35\%-30\%=5$ 个百分点;两者合计占这些学生的 $65\%$。
  4. 若要求画饼图,角度为 $0.35\times360^\circ=126^\circ$,$0.30\times 360^\circ=108^\circ$,$72^\circ$,$36^\circ$,$18^\circ$,总和 $360^\circ$。
Worked Example 2.2: Critique a misleading graph例题 2.2:评判一张有误导性的图

A newspaper bar chart compares two brands' satisfaction: Brand P 52% and Brand Q 56%, but the vertical axis starts at 50%, so Q's bar is drawn 6 units tall and P's 2 units. What is wrong, and what is the honest comparison?

  1. Visual claim: the heights are in ratio $6:2=3:1$, so Q looks three times as satisfying.
  2. Actual ratio: $56/52\approx1.077$, so Q is about 7.7% higher, and the difference is $4$ percentage points.
  3. The cause is the truncated axis. Bars encode value by length, so the axis of a bar chart must start at 0.
  4. Fix: redraw from 0, or state the four-point difference in words and ask whether it is larger than sampling variation (inference, Units 8 to 12).

某报纸的条形图比较两个品牌的满意度:品牌 P 为 52%,品牌 Q 为 56%,但纵轴从 50% 起始,Q 的条形画成 6 个单位高,P 只有 2 个单位。问题在哪里?如实的比较是什么?

  1. 视觉印象:高度之比为 $6:2=3:1$,Q 看上去是 P 的三倍。
  2. 实际比值:$56/52\approx1.077$,Q 仅高约 7.7%,差距是 $4$ 个百分点。
  3. 原因是坐标轴被截断。条形靠长度表示数值,所以条形图的纵轴必须从 0 开始。
  4. 改正:从 0 起重画,或用文字写出 4 个百分点的差距,并追问它是否大于抽样变异(属于推断,见第 8 至 12 单元)。
Worked Example: A Pareto chart and a claim about the top causes例题:帕累托图与关于主要原因的论断

A store logs the 200 customer complaints it received in one month: late delivery 84, damaged item 52, wrong item 36, billing 20, other 8. (a) Find the relative frequency of each category. (b) Order the categories as a Pareto chart and give the cumulative percents. (c) The manager says, "Fixing late deliveries and damaged items would remove most of our complaints." Evaluate the claim.

  1. Total: $84+52+36+20+8=200$. Relative frequencies: $0.42$, $0.26$, $0.18$, $0.10$, $0.04$, which sum to 1.
  2. The categories are already listed from tallest to shortest, which is the Pareto order (a catch-all "Other" bar is usually placed last whatever its size). Cumulative percents: 42%, 68%, 86%, 96%, 100%.
  3. Pie angles, if a pie chart is requested: $0.42\times360^\circ=151.2^\circ$, $0.26\times360^\circ=93.6^\circ$, $64.8^\circ$, $36^\circ$, $14.4^\circ$.
  4. Evaluate: late deliveries and damaged items together are $84+52=136$ of the 200 complaints, which is $68\%$, more than half, so "most" is supported for this month's complaints. But 64 complaints (32%) would remain, and the log covers one month of complaints, not every customer's experience, so the claim describes these complaints only.

A complete answer states each percent with its category, shows the cumulative 68% with the addition, and says what one month's log can and cannot support.

某商店记录了一个月内收到的 200 条顾客投诉:送达延误 84、商品损坏 52、发错商品 36、账单问题 20、其他 8。(a)求各类别的相对频率。(b)按帕累托图的顺序排列类别,并给出累计百分比。(c)经理说:「解决送达延误和商品损坏,就能消除大部分投诉。」评价这一说法。

  1. 总数:$84+52+36+20+8=200$。相对频率:$0.42$、$0.26$、$0.18$、$0.10$、$0.04$,和为 1。
  2. 各类别已按从高到低排列,这就是帕累托图(Pareto chart)的顺序(兜底的「其他」条通常放在最后,不论其高低)。累计百分比:42%、68%、86%、96%、100%。
  3. 若要求画饼图,各扇形角度:$0.42\times360^\circ=151.2^\circ$、$0.26\times360^\circ=93.6^\circ$、$64.8^\circ$、$36^\circ$、$14.4^\circ$。
  4. 评价:送达延误和商品损坏合计 $84+52=136$ 条,占 200 条投诉的 $68\%$,超过一半,所以对本月的投诉而言,「大部分」成立。但仍有 64 条(32%)投诉不会消失,而且这份记录只涵盖一个月的投诉,并不代表所有顾客的体验,所以这一说法只描述这些投诉。

完整答案要点:写出每个百分比及其类别,列出加法算出累计的 68%,并说明一个月的记录能支持什么、不能支持什么。

Common Mistake: Mixing up bar charts and histograms

Do not call a bar chart's bars a "histogram", and do not leave gaps between the bars of a histogram. A bar chart is for categories (gaps), a histogram for numbers (touching bins). Also, a pie chart whose slices are percents of different bases cannot be compared slice to slice.

常见错误:混淆条形图与直方图

不要把条形图的条称作「直方图」,也不要在直方图的矩形之间留空隙。条形图用于类别(有间隙),直方图用于数值(矩形相连)。另外,若饼图各扇形的百分数基数不同,扇形之间不能直接比较。

TI-84 and Nspire
  1. The TI-84 has no bar chart for category names. To preview one, code the categories 1 to 5 in L1 and the counts in L2, open 2nd Y= (STAT PLOT), turn on Plot1, choose the histogram icon, set Xlist: L1 and Freq: L2.
  2. WINDOW: Xmin=0.5, Xmax=5.5, Xscl=1, Ymin=0, Ymax=30, then GRAPH (or ZoomStat). Each bar is one category, but the screen cannot print the names, so label them yourself on paper.
  3. Nspire: Data & Statistics app, put a column of category names on the horizontal axis and the page makes a dot or bar chart (a categorical column shows a dot chart; switch it to a bar chart from the Plot Type menu, depending on the OS version).
  4. For practice, draw the chart by hand with labeled axes and use the calculator only to check it.
TI-84 与 Nspire 操作
  1. TI-84 没有能显示类别名称的条形图。预览方法:把类别编码 1 到 5 放入 L1,计数放入 L2,打开 2nd Y=(STAT PLOT),开启 Plot1,选直方图图标,设 Xlist: L1、Freq: L2。
  2. WINDOW 设为 Xmin=0.5, Xmax=5.5, Xscl=1, Ymin=0, Ymax=30,然后 GRAPH(或 ZoomStat)。每根条形代表一类,但屏幕无法显示类别名称,需自行在纸上标注。
  3. Nspire:在 Data & Statistics 应用中,把类别名称列放在横轴,页面会生成点图或条形图(类别列默认显示点图,可在 Plot Type 菜单中切换为条形图,视系统版本而定)。
  4. 练习时请手绘并标明坐标轴,计算器只用于核对。
Exam tip考试提示

When a prompt says "construct a graph", a complete graph has labeled axes (variable name and units or percent), correct heights, and equal bar widths. Always start a bar chart's frequency axis at zero.

题目要求「作图」时,完整的图包括:坐标轴有标注(变量名与单位或百分数)、高度正确、条形等宽。条形图的频数轴一定要从零开始。

FRQ response model: interpret a categorical graph简答题答题模型:解读分类数据图

Prompt. The relative frequency bar chart in Figure 1 shows the main platform of 80 students. A club president says, "Instagram is more than twice as popular as YouTube, so we should drop YouTube content." Evaluate the statement using the chart.

  • Correct comparison: $35\%/20\%=1.75$, which is less than 2, so the claim "more than twice" is false (28 versus 16 students).
  • Context: 16 of the 80 sampled students, or 20%, name YouTube as their main platform.
  • Scope and conclusion: a fifth of these students still prefer YouTube, so dropping it would leave them out; the data come from these 80 students only, so nothing is claimed about all students.

题目。 图 1 的相对频率条形图显示了 80 名学生的主要平台。社团主席说:「Instagram 的受欢迎程度是 YouTube 的两倍多,所以应取消 YouTube 内容。」请依据图评价这一说法。

  • 比较正确:$35\%/20\%=1.75$,小于 2,所以「超过两倍」不成立(28 人对 16 人)。
  • 情境:80 名被调查学生中有 16 人(20%)把 YouTube 作为主要平台。
  • 范围与结论:仍有五分之一的学生偏好 YouTube,取消会忽略他们;数据只来自这 80 名学生,不能推及所有学生。
Check your understanding自我检测
Why must the vertical axis of a bar chart start at zero?为什么条形图的纵轴必须从零开始?

Bar length encodes the value. If the axis starts above zero, the lengths no longer have the right ratio, so small differences look large.

条形的长度表示数值。若轴不从零起始,长度之比就不再正确,小差距会显得很大。

In a pie chart, what angle represents a category with relative frequency 0.15?饼图中相对频数为 0.15 的类别对应多大的角度?

$0.15\times360^\circ=54^\circ$.

$0.15\times360^\circ=54^\circ$。

In Figure 1, what percent of students choose either TikTok or YouTube?在图 1 中,选择 TikTok 或 YouTube 的学生占百分之几?

$30\%+20\%=50\%$ (24 + 16 = 40 of 80 students).

$30\%+20\%=50\%$(80 人中 24 + 16 = 40 人)。

Name two features that make a bar chart different from a histogram.说出条形图与直方图的两点区别。

A bar chart shows categories, with gaps between bars and bars that can be reordered; a histogram shows a quantitative variable in ordered numeric bins that touch.

条形图表示类别,条间有间隙且可以调换顺序;直方图表示定量变量,按有序的数值分组,矩形相连。

Two Categorical Variables: Two-Way Tables and Graphs两个分类变量:双向表与图形

Learning objectives学习目标
  • Organize raw data on two categorical variables into a two-way (contingency) table with row, column and grand totals.
  • Distinguish the explanatory (grouping) variable from the response variable when choosing what to compare.
  • Construct and read a side-by-side bar chart, a segmented bar chart and a mosaic plot, and say what each one shows about association.
  • State in context whether the graph suggests an association between the two variables.
  • 把两个分类变量的原始数据整理成带行合计、列合计与总计的双向表(列联表)。
  • 区分解释(分组)变量与响应变量,从而确定应比较什么。
  • 绘制并读懂并列条形图、分段条形图和马赛克图,说明它们各自揭示的关联信息。
  • 结合情境说明图形是否提示两个变量之间存在关联。

A categorical variable places each individual in a group or category. When two categorical variables are recorded on the same individuals, a two-way table (also called a contingency table) counts how many individuals fall in each combination of categories. One variable defines the rows, the other defines the columns, and the marginal totals on the edges give the counts for each variable alone.

分类变量把每个个体归入某一类别。当同一批个体记录了两个分类变量时,双向表(也称列联表)统计每种类别组合中的个体数。一个变量决定行,另一个变量决定列,边缘上的边际合计给出每个变量单独的计数。

Transport mode出行方式Bus公交Car汽车Walk/bike步行或骑车Row total行合计
Grade 99 年级602040120
Grade 1212 年级307030130
Column total列合计909070250 (grand total总计)

Table 2.1. Illustrative survey of 250 students: grade and usual transport to school (synthetic data used throughout this unit).

表 2.1. 250 名学生的示例调查:年级与通常的上学出行方式(本单元所有数据均为合成教学数据)。

Why graph two categorical variables?为什么要作图?

Because the two groups have different sizes (120 and 130), comparing raw counts can mislead. The honest comparison uses percentages within each group. A segmented bar chart draws one bar per group, scaled to 100%, and splits each bar into segments for the categories of the other variable. A side-by-side (clustered) bar chart shows counts or percentages next to each other. A mosaic plot also makes bar widths proportional to group sizes, so areas are proportional to joint relative frequencies.

Rule of thumb: if the segments in the bars line up (same heights), the variables look unrelated. If the segment heights differ from bar to bar, the variables look associated.

两个组的人数不同(120 与 130),直接比较人数会误导。合理的比较是各组内部的百分比。分段条形图每组画一根缩放到 100% 的条,并按另一变量的类别分段。并列(簇状)条形图把计数或百分比并排显示。马赛克图还让条宽与组大小成比例,使面积正比于联合相对频率。

经验法则:各条中的分段高度基本一致,说明变量看似无关;分段高度随条而变,说明变量看似相关。

0%25%50%75%100%Percent of the grade占该年级的百分比50.0%16.7%33.3%Grade 9 (n = 120)9 年级 (n = 120)23.1%53.8%23.1%Grade 12 (n = 130)12 年级 (n = 130)Bus公交Car汽车Walk/bike步行或骑车
Figure 2.1. Segmented bar chart of the conditional distributions of transport mode given grade. The segment sizes differ between the bars, which is the visual signature of an association.图 2.1. 给定年级时出行方式的条件分布分段条形图。两根条中各段高度不同,这就是存在关联的图形标志。
Worked Example 2.1: From the table to a segmented bar chart例题 2.1:由列联表到分段条形图

Question. Using Table 2.1, draw the graph that best compares how students in Grade 9 and Grade 12 get to school, and state what it suggests.

  1. The question compares the grades, so the grade is the grouping (explanatory) variable and transport mode is the response. Make one bar per grade.
  2. Divide each cell by its row total. Grade 9 (total 120): bus $60/120=50.0\%$, car $20/120=16.7\%$, walk/bike $40/120=33.3\%$. Grade 12 (total 130): bus $30/130=23.1\%$, car $70/130=53.8\%$, walk/bike $30/130=23.1\%$. Each row sums to $100\%$ (up to rounding).
  3. Draw two bars of equal height (100%), stacked in the order bus, car, walk/bike (Figure 2.1).
  4. Conclusion in context. The segments differ markedly: half of Grade 9 students take the bus but fewer than a quarter of Grade 12 students do, while a majority of Grade 12 students (53.8%) come by car compared with 16.7% of Grade 9 students. The graph suggests an association between grade and transport mode in this sample.

问题。利用表 2.1,画出最适合比较 9 年级与 12 年级学生上学方式的图,并说明它提示了什么。

  1. 问题要比较两个年级,所以年级是分组(解释)变量,出行方式是响应变量。每个年级画一根条。
  2. 用每个单元格除以它所在行的合计。9 年级(合计 120):公交 $60/120=50.0\%$,汽车 $20/120=16.7\%$,步行或骑车 $40/120=33.3\%$。12 年级(合计 130):公交 $30/130=23.1\%$,汽车 $70/130=53.8\%$,步行或骑车 $30/130=23.1\%$。每行之和为 $100\%$(允许舍入误差)。
  3. 画两根等高(100%)的条,按公交、汽车、步行或骑车的顺序分段(图 2.1)。
  4. 结合情境的结论。各段明显不同:9 年级有一半学生乘公交,12 年级不到四分之一;12 年级多数学生(53.8%)由汽车接送,而 9 年级只有 16.7%。图形提示在这份样本中年级与出行方式存在关联。
Worked Example 2.2: Counts can mislead when groups differ in size例题 2.2:组大小不同时,计数会误导

Illustrative data. A gym has 240 women members and 160 men members. Of the women, 96 attend group classes; of the men, 48 do. A newsletter says: "Twice as many women as men attend classes, so classes are much more popular with women." Evaluate the claim.

  1. Counts: 96 women versus 48 men, so the count is exactly double. But there are also more women members (240 versus 160).
  2. Compare percentages within each group: women $96/240=40.0\%$, men $48/160=30.0\%$.
  3. The difference is $10$ percentage points (40.0% versus 30.0%), and the relative rate is $40/30\approx1.33$, about one third higher, not double.
  4. Conclusion. Class attendance is somewhat more common among women in this gym (40.0% of women versus 30.0% of men), so there is a modest association between gender and attending classes. The newsletter confused a larger count with a larger rate.

示例数据。某健身房有 240 名女会员和 160 名男会员,其中 96 名女会员和 48 名男会员参加团体课。通讯稿称:“参加课程的女性是男性的两倍,所以课程在女性中受欢迎得多。”评价这一说法。

  1. 人数:96 名女性对 48 名男性,恰好是两倍;但女会员本来也更多(240 对 160)。
  2. 比较各组内的百分比:女性 $96/240=40.0\%$,男性 $48/160=30.0\%$。
  3. 差距为 $10$ 个百分点(40.0% 对 30.0%),相对比为 $40/30\approx1.33$,约高出三分之一,而不是两倍。
  4. 结论。在这家健身房里参加课程在女性中略更常见(女性 40.0%,男性 30.0%),性别与是否参加课程之间存在适度关联。通讯稿把更大的人数误当成了更高的比率。
Worked Example: Build the table from group sizes, then compare例题:由各组人数建表,再作比较

Question. A school asks 400 students whether they use a study app. There are 160 sophomores and 240 juniors; 56 sophomores and 108 juniors say yes. (a) Complete the two-way table with totals. (b) A student says, "More juniors than sophomores use the app, so juniors are the more likely users." Evaluate the statement. (c) State whether the data suggest an association.

ClassUses the appDoes notRow total
Sophomore56104160
Junior108132240
Column total164236400
  1. Fill the table: sophomores who do not use it $160-56=104$; juniors who do not $240-108=132$; column totals $56+108=164$ and $104+132=236$; grand total $164+236=400$, which matches $160+240=400$.
  2. Compare within each group: sophomores $56/160=35.0\%$; juniors $108/240=45.0\%$, a difference of 10 percentage points.
  3. Evaluate: the count comparison ($108$ against $56$) is true but misleading, because the groups differ in size (240 against 160). The rates point the same way, so the direction of the statement is right, but the reason offered is wrong.
  4. The overall rate is $164/400=41.0\%$, between the two group rates.
  5. Conclusion in context: "Juniors are more likely to use the app: 45.0% of the 240 juniors surveyed, compared with 35.0% of the 160 sophomores. The conditional distributions differ, so class and app use appear associated in this sample. The survey does not show that being a junior causes app use."

A complete answer states the conditional percentages with their denominators, explains why counts alone mislead, and avoids a causal claim.

问题。某校询问 400 名学生是否使用学习应用。其中有 160 名十年级学生和 240 名十一年级学生;56 名十年级学生和 108 名十一年级学生回答「是」。(a)补全带合计的双向表。(b)一名学生说:「十一年级使用的人数比十年级多,所以十一年级学生更可能使用。」评价这一说法。(c)说明数据是否表明存在关联。

年级使用不使用行合计
十年级56104160
十一年级108132240
列合计164236400
  1. 补全表格:不使用的十年级学生 $160-56=104$;不使用的十一年级学生 $240-108=132$;列合计 $56+108=164$ 和 $104+132=236$;总计 $164+236=400$,与 $160+240=400$ 一致。
  2. 在各组内比较:十年级 $56/160=35.0\%$;十一年级 $108/240=45.0\%$,相差 10 个百分点。
  3. 评价:比较人数($108$ 对 $56$)本身没错,但有误导性,因为两组人数不同(240 对 160)。比率指向同一方向,所以这句话的结论方向是对的,但给出的理由是错的。
  4. 总体比率为 $164/400=41.0\%$,介于两组比率之间。
  5. 结合情境的结论:「十一年级学生更可能使用该应用:被调查的 240 名十一年级学生中有 45.0% 使用,而 160 名十年级学生中为 35.0%。两组的条件分布不同,所以在这个样本中年级与是否使用应用看起来有关联(association)。这项调查并不能说明升到十一年级会导致使用该应用。」

完整答案要点:写出带分母的条件百分比,解释为什么只看人数会误导,并且不作因果断言。

AP exam tipAP 考试提示

When a question says "compare" two groups, always convert counts to percentages of each group (conditional percentages) and name the denominator in your sentence: "Of Grade 9 students, 50.0% take the bus." A bare count comparison is incomplete when the group sizes differ.

题目要求“比较”两个组时,一定要把计数转成各组内的百分比(条件百分比),并在句子里写明分母:“9 年级学生中有 50.0% 乘公交。”组大小不同时,只比较计数是不完整的答案。

Common Mistake: Four ways to misread a two-way table常见错误:误读双向表的四种做法
  • Comparing counts instead of percentages when the group sizes differ.
  • Computing percentages of the grand total when the question compares groups (these are joint, not conditional, relative frequencies).
  • Describing a stacked bar chart with equal-height bars as if the bar heights showed counts.
  • Concluding "grade causes transport mode" or the reverse: a two-way table of observational data shows association only.
  • 组大小不同时,比较计数而不是百分比。
  • 题目是比较各组,却用总计作分母(这是联合相对频率,不是条件相对频率)。
  • 把等高的分段条形图当作条高代表计数来描述。
  • 断言“年级导致出行方式”或相反:观察数据的双向表只能说明关联。
Check your understanding自我检测
A survey records each student's favorite subject (math, science, humanities) and whether the student is in the school band (yes or no). How many rows and columns does the two-way table have, excluding the totals? How many cells?一项调查记录每名学生最喜欢的科目(数学、科学、人文)以及是否参加学校乐队(是或否)。不含合计,双向表有几行几列?共有几个单元格?

Answer. Putting subject in rows gives 3 rows and 2 columns, so $3\times2=6$ cells (the other orientation is 2 by 3; the count of cells is the same).

答案。以科目为行,则有 3 行 2 列,共 $3\times2=6$ 个单元格(反过来是 2 行 3 列,单元格数相同)。

In Table 2.1, what percentage of the Grade 12 students walk or bike? Write the sentence that reports it.在表 2.1 中,12 年级学生里有百分之几步行或骑车?写出报告这一结果的句子。

Answer. $30/130=23.1\%$. "Of the Grade 12 students surveyed, 23.1% usually walk or bike to school."

答案。$30/130=23.1\%$。“在被调查的 12 年级学生中,有 23.1% 通常步行或骑车上学。”

In a segmented bar chart of "preferred streaming service" for three age groups, the three bars have almost identical segment heights. What does that suggest about age group and preferred service?三个年龄组“偏好的流媒体服务”的分段条形图中,三根条的分段高度几乎相同。这对年龄组与偏好服务的关系说明了什么?

Answer. It suggests no association: the distribution of preferred service is about the same in every age group, so knowing a person's age group tells you little about the preferred service.

答案。提示二者无关联:各年龄组偏好服务的分布大致相同,知道年龄组对推断偏好服务几乎没有帮助。

AP FRQ-style model response: Is there an association between grade and transport?AP 简答题示范答案:年级与出行方式是否有关联?

Prompt. Using Table 2.1, (a) compute the percentage of students in each grade who take the bus; (b) state whether the data suggest an association between grade and transport mode and justify with percentages.

What a complete answer statesModel wording
(a) Correct conditional percentages with the right denominatorsGrade 9: $60/120=50.0\%$. Grade 12: $30/130=23.1\%$.
(b) Compares the conditional distributionsThe distribution of transport mode differs by grade: 50.0% of Grade 9 versus 23.1% of Grade 12 take the bus; 16.7% versus 53.8% come by car.
(b) Conclusion in context, association not causationGrade and transport mode appear associated in this sample of students. This observational survey does not show that being in a higher grade causes a change of transport.

题目。利用表 2.1,(a) 计算每个年级乘公交的学生百分比;(b) 说明数据是否提示年级与出行方式有关联,并用百分比说明理由。

完整答案要点示范表述
(a) 分母正确的条件百分比9 年级:$60/120=50.0\%$;12 年级:$30/130=23.1\%$。
(b) 比较条件分布出行方式的分布因年级而异:乘公交的比例 9 年级为 50.0%,12 年级为 23.1%;汽车接送分别为 16.7% 与 53.8%。
(b) 结合情境的结论:关联而非因果在这份学生样本中,年级与出行方式看似存在关联。这项观察性调查不能说明升入更高年级会导致出行方式改变。

Statistics for Two Categorical Variables两个分类变量的统计量

Learning objectives学习目标
  • Compute joint, marginal and conditional relative frequencies from a two-way table.
  • Choose the correct denominator for the question being asked and interpret each value in a sentence.
  • Decide whether two categorical variables are associated by comparing conditional distributions, and recognize what independence would look like.
  • Explain how a lurking variable can reverse a comparison (Simpson's paradox).
  • 由双向表计算联合、边际和条件相对频率。
  • 根据所问问题选对分母,并用一句话解释每个数值。
  • 通过比较条件分布判断两个分类变量是否有关联,并认识独立时表格应有的样子。
  • 解释潜在变量如何使比较结果反转(辛普森悖论)。

Every number in a two-way table of counts can be turned into a relative frequency. The three types differ only in the denominator.

双向计数表中的每个数都可以转化为相对频率。三种相对频率只是分母不同。

Type类型Formula公式Table 2.1 example表 2.1 示例Answers the question回答的问题
Joint联合$\dfrac{\text{cell count}}{\text{grand total}}$$60/250=24.0\%$What percent of all students are in Grade 9 and take the bus?所有学生中有百分之几既是 9 年级又乘公交?
Marginal边际$\dfrac{\text{row or column total}}{\text{grand total}}$$90/250=36.0\%$What percent of all students take the bus?所有学生中有百分之几乘公交?
Conditional条件$\dfrac{\text{cell count}}{\text{total of the given row or column}}$$60/120=50.0\%$Of the Grade 9 students, what percent take the bus?9 年级学生中有百分之几乘公交?
$$\text{conditional relative frequency of } B \text{ given } A=\dfrac{\text{count in both } A \text{ and } B}{\text{count in } A}$$
Association and independence关联与独立

Two categorical variables are associated if the conditional distributions of one variable are different across the categories of the other. They show no association (are independent in the data) if every conditional distribution matches the marginal distribution. Real samples never match exactly, so "different" means different enough to matter in context, and later units formalize how large a difference is more than chance variation.

Direction of conditioning matters. "Of the car riders, what percent are in Grade 12?" ($70/90=77.8\%$) is a different question from "Of the Grade 12 students, what percent come by car?" ($70/130=53.8\%$).

如果一个变量的条件分布在另一个变量的不同类别之间不同,就说两个分类变量有关联;如果每个条件分布都与边际分布一致,则无关联(数据中独立)。真实样本不会完全一致,所以“不同”指在情境中差异足够显著;后续单元会用统计方法判断差异是否大于随机波动。

条件的方向很重要。“在汽车接送的学生中,有百分之几是 12 年级?”($70/90=77.8\%$)与“在 12 年级学生中,有百分之几由汽车接送?”($70/130=53.8\%$)是不同的问题。

Worked Example 2.3: Joint, marginal and conditional from one table例题 2.3:由同一张表求联合、边际和条件相对频率

Use Table 2.1 (grade by transport, $n=250$).

  1. Joint. The proportion that are in Grade 12 and come by car is $70/250=0.280=28.0\%$.
  2. Marginal. The proportion of all students in Grade 12 is $130/250=52.0\%$. The proportion who walk or bike is $70/250=28.0\%$.
  3. Conditional (given grade). Grade 9: bus 50.0%, car 16.7%, walk/bike 33.3%. Grade 12: bus 23.1%, car 53.8%, walk/bike 23.1%.
  4. Conditional (given mode). Of the 90 car riders, $20/90=22.2\%$ are in Grade 9 and $70/90=77.8\%$ are in Grade 12.
  5. Check. The three joint values in the Grade 9 row, $24.0\%+8.0\%+16.0\%=48.0\%$, equal the Grade 9 marginal $120/250=48.0\%$.

使用表 2.1(年级与出行方式,$n=250$)。

  1. 联合。既是 12 年级又由汽车接送的比例为 $70/250=0.280=28.0\%$。
  2. 边际。所有学生中 12 年级的比例为 $130/250=52.0\%$;步行或骑车的比例为 $70/250=28.0\%$。
  3. 条件(给定年级)。9 年级:公交 50.0%,汽车 16.7%,步行或骑车 33.3%。12 年级:公交 23.1%,汽车 53.8%,步行或骑车 23.1%。
  4. 条件(给定方式)。90 名汽车接送者中,$20/90=22.2\%$ 是 9 年级,$70/90=77.8\%$ 是 12 年级。
  5. 核对。9 年级一行三个联合相对频率之和 $24.0\%+8.0\%+16.0\%=48.0\%$ 等于 9 年级的边际 $120/250=48.0\%$。
Worked Example 2.4: Association: what independence would look like例题 2.4:关联:独立时表格应是什么样

The marginal distribution of transport mode for all 250 students is bus $90/250=36.0\%$, car $90/250=36.0\%$, walk/bike $70/250=28.0\%$.

  1. If grade and transport mode were independent, each grade would show about these same percentages. For Grade 9 ($n=120$) we would expect $0.36(120)=43.2$ bus riders, $43.2$ car riders and $0.28(120)=33.6$ walkers or bikers.
  2. The observed Grade 9 counts are $60$, $20$ and $40$. Bus riders are far above expectation ($60$ versus $43.2$) and car riders are far below ($20$ versus $43.2$).
  3. The conditional distributions differ from the marginal distribution (50.0% versus 36.0% bus for Grade 9), so the variables are associated in this sample.

These "expected counts" are exactly what the chi-square tests of a later unit compare with the observed counts to decide whether a difference is larger than chance variation.

全部 250 名学生出行方式的边际分布为:公交 $90/250=36.0\%$,汽车 $90/250=36.0\%$,步行或骑车 $70/250=28.0\%$。

  1. 如果年级与出行方式相互独立,每个年级都应呈现大致相同的百分比。对 9 年级($n=120$),预期乘公交 $0.36(120)=43.2$ 人,汽车 $43.2$ 人,步行或骑车 $0.28(120)=33.6$ 人。
  2. 9 年级的实际人数为 $60$、$20$、$40$。乘公交者远多于预期($60$ 对 $43.2$),汽车接送者远少于预期($20$ 对 $43.2$)。
  3. 条件分布与边际分布不同(9 年级乘公交 50.0% 对总体 36.0%),所以这份样本中两个变量有关联。

这些“期望计数”正是后续单元中卡方检验用来与观测计数比较、判断差异是否大于随机波动的量。

Worked Example 2.5: A lurking variable reverses the comparison (Simpson's paradox)例题 2.5:潜在变量使比较反转(辛普森悖论)

Illustrative data. Two tutoring programs are compared on whether students pass a course. Students take either an Easy or a Hard course.

Program项目Easy course: passed / enrolled简单课程:通过/人数Hard course: passed / enrolled困难课程:通过/人数All students全部学生
A18 / 20 (90.0%)80 / 180 (44.4%)98 / 200 (49.0%)
B170 / 200 (85.0%)4 / 10 (40.0%)174 / 210 (82.9%)
  1. Within the Easy course, A beats B ($90.0\%>85.0\%$). Within the Hard course, A beats B ($44.4\%>40.0\%$).
  2. Yet overall B looks much better ($82.9\%$ versus $49.0\%$), because most of B's students took the Easy course, where everyone passes more often, while most of A's students took the Hard course.
  3. Lesson. Course difficulty is a lurking (confounding) variable that is associated with both the program and the outcome. When such a variable is present, compare the programs within each level of it.

示例数据。比较两个辅导项目下学生是否通过某课程;学生修的是简单课程或困难课程。

Program项目Easy course: passed / enrolled简单课程:通过/人数Hard course: passed / enrolled困难课程:通过/人数All students全部学生
A18 / 20 (90.0%)80 / 180 (44.4%)98 / 200 (49.0%)
B170 / 200 (85.0%)4 / 10 (40.0%)174 / 210 (82.9%)
  1. 在简单课程内,A 优于 B($90.0\%>85.0\%$);在困难课程内,A 也优于 B($44.4\%>40.0\%$)。
  2. 但总体上 B 看起来好得多($82.9\%$ 对 $49.0\%$),因为 B 的学生大多修了通过率更高的简单课程,而 A 的学生大多修了困难课程。
  3. 启示。课程难度是同时与项目和结果相关的潜在(混杂)变量。存在这类变量时,应在它的每个水平内比较两个项目。
0%25%50%75%100%Percent who passed通过的百分比90.0%85.0%Easy course简单课程44.4%40.0%Hard course困难课程49.0%82.9%All students全部学生Program A项目 AProgram B项目 B
Figure 2.2. Pass rates of Programs A and B (Example 2.5), with the percentages printed on the bars. Program A is higher in the Easy course and in the Hard course, yet Program B is higher overall, because most of B's students took the Easy course.图 2.2. 项目 A 和项目 B 的通过率(例题 2.5),百分比标在条形上。A 在简单课程和困难课程中都更高,但总体上 B 更高,因为 B 的学生大多修了简单课程。
Also on the 2027 exam对应 2027 考试新增内容
In the revised course, two-way tables are used inside the probability unit. Joint, marginal and conditional relative frequencies become joint, marginal and conditional probabilities: $P(A\cap B)$ from the cell, $P(A)$ from a margin and $P(B\mid A)=P(A\cap B)/P(A)$ from a row or column. Two events are independent when $P(B\mid A)=P(B)$, the probability form of "the conditional distribution equals the marginal distribution". Computing a conditional probability from a two-way table is therefore the same skill as 2.2.
在修订课程中,双向表用于概率单元。联合、边际和条件相对频率对应联合、边际和条件概率:由单元格得 $P(A\cap B)$,由边缘得 $P(A)$,由某行或某列得 $P(B\mid A)=P(A\cap B)/P(A)$。当 $P(B\mid A)=P(B)$ 时事件独立,这就是“条件分布等于边际分布”的概率形式。因此由双向表计算条件概率与 2.2 是同一种技能。
AP exam tipAP 考试提示

Write the denominator in words every time ("of the car riders", "of all students"). Three frequent errors are the wrong denominator, a percentage with no stated group, and a causal verb ("grade makes students ride the bus") for observational data.

每次都用文字写出分母(“在汽车接送者中”“在所有学生中”)。常见的三种错误:分母错误、百分比没有说明所属群体、对观察数据使用因果动词(“年级使学生乘公交”)。

Common Mistake: Wrong denominator, reversed condition常见错误:分母错误与条件颠倒
  • Reporting a joint relative frequency (cell over grand total) when a conditional one (cell over row or column total) is asked for.
  • Reversing the condition: $P(\text{Grade 12}\mid\text{car})\neq P(\text{car}\mid\text{Grade 12})$.
  • Calling variables "not associated" because the percentages differ slightly. Decide whether the difference matters in context.
  • Ignoring a lurking variable that changes the sign of the comparison.
  • 题目问条件相对频率(单元格除以行或列合计),却报告联合相对频率(单元格除以总计)。
  • 把条件方向弄反:$P(\text{12 年级}\mid\text{汽车})\neq P(\text{汽车}\mid\text{12 年级})$。
  • 因为百分比只差一点就说“无关联”。应结合情境判断差异是否重要。
  • 忽略会让比较结果反号的潜在变量。
Calculator steps计算器操作

TI-84 Plus

  1. Enter the table: 2nd x-1 (MATRIX) → EDIT → 1:[A], set dimensions $2\times3$, enter 60, 20, 40, 30, 70, 30.
  2. Row totals: on the home screen compute [A]*[[1][1][1]] (a $3\times1$ column of ones) to get $120$ and $130$. Column totals: [[1,1]]*[A] gives $90, 90, 70$.
  3. Conditional percentages: divide an entry by its row total, e.g. [A](1,1)/120 returns 0.5. (The same matrix [A] is used later for chi-square tests.)

TI-Nspire

  1. In a Calculator page, define a:=[[60,20,40][30,70,30]].
  2. Row totals: a*[[1][1][1]]; column totals: [[1,1]]*a.
  3. Conditional percentage: a[1,1]/120. For a graph, use Data & Statistics with the two category columns.

TI-84 Plus

  1. 输入表格:2nd x-1(MATRIX)→ EDIT → 1:[A],设维数为 $2\times3$,依次输入 60, 20, 40, 30, 70, 30。
  2. 行合计:在主屏幕计算 [A]*[[1][1][1]]($3\times1$ 全 1 列矩阵),得 $120$ 和 $130$。列合计:[[1,1]]*[A] 得 $90, 90, 70$。
  3. 条件百分比:用某项除以所在行合计,例如 [A](1,1)/120 返回 0.5。(同一个矩阵 [A] 以后还用于卡方检验。)

TI-Nspire

  1. 在 Calculator 页面输入 a:=[[60,20,40][30,70,30]]。
  2. 行合计:a*[[1][1][1]];列合计:[[1,1]]*a。
  3. 条件百分比:a[1,1]/120。要作图,可在 Data & Statistics 中使用两列类别数据。
Check your understanding自我检测
Use Table 2.1. Find the percentage of all 250 students who are in Grade 9 and walk or bike, and identify which kind of relative frequency it is.用表 2.1。求 250 名学生中既是 9 年级又步行或骑车的百分比,并说明它属于哪种相对频率。

Answer. $40/250=16.0\%$. It is a joint relative frequency (cell over grand total).

答案。$40/250=16.0\%$。这是联合相对频率(单元格除以总计)。

Use Table 2.1. Of the students who walk or bike, what percentage are in Grade 12? Is this the same as the percentage of Grade 12 students who walk or bike?用表 2.1。在步行或骑车的学生中,12 年级占百分之几?这与 12 年级学生中步行或骑车的百分比相同吗?

Answer. $30/70=42.9\%$. It is not the same as $30/130=23.1\%$: the first conditions on walking/biking (denominator 70), the second on Grade 12 (denominator 130).

答案。$30/70=42.9\%$。它与 $30/130=23.1\%$ 不同:前者以步行或骑车者为条件(分母 70),后者以 12 年级为条件(分母 130)。

Of 200 patients given drug X, 120 improve; of 100 given drug Y, 50 improve. Compute the two conditional percentages and say whether improvement appears associated with drug.服用药物 X 的 200 名患者中 120 人好转;服用药物 Y 的 100 名患者中 50 人好转。计算两个条件百分比,并说明好转是否似乎与药物有关联。

Answer. X: $120/200=60.0\%$; Y: $50/100=50.0\%$. The improvement rates differ by 10 percentage points, so improvement appears associated with drug in this sample (X better), but without random assignment this is association only.

答案。X:$120/200=60.0\%$;Y:$50/100=50.0\%$。好转率相差 10 个百分点,所以在这份样本中好转似乎与药物有关联(X 更好);但没有随机分配,只能说关联。

For the program data in Example 2.5, why is it misleading to compare only the overall pass rates?对例题 2.5 的项目数据,为什么只比较总体通过率会误导?

Answer. Course difficulty is a lurking variable: B enrolled mostly Easy-course students and A mostly Hard-course students. Within each course A has the higher pass rate, so the overall comparison reverses.

答案。课程难度是潜在变量:B 的学生多修简单课程,A 的学生多修困难课程。在每门课程内 A 的通过率更高,所以总体比较发生反转。

AP FRQ-style model response: Conditional percentages and independenceAP 简答题示范答案:条件百分比与独立性

Prompt. Use Table 2.1. (a) What percent of all students come by car? (b) Of those who come by car, what percent are in Grade 12? (c) If grade and transport mode were independent, how many Grade 12 students ($n=130$) would be expected to come by car? Compare with the observed 70.

What a complete answer statesModel wording
(a) Marginal with grand-total denominator$90/250=36.0\%$ of all students come by car.
(b) Conditional with correct denominatorOf the 90 car riders, $70/90=77.8\%$ are in Grade 12.
(c) Expected count and comparison in contextExpected $=0.36(130)=46.8$ car riders. The observed 70 is well above 46.8, which is evidence that grade and transport mode are associated in this sample.

题目。用表 2.1。(a) 所有学生中有百分之几由汽车接送?(b) 在汽车接送者中,有百分之几是 12 年级?(c) 若年级与出行方式独立,130 名 12 年级学生($n=130$)中预期有多少人由汽车接送?与实际的 70 人比较。

完整答案要点示范表述
(a) 以总计为分母的边际所有学生中 $90/250=36.0\%$ 由汽车接送。
(b) 分母正确的条件百分比90 名汽车接送者中,$70/90=77.8\%$ 是 12 年级。
(c) 期望计数并结合情境比较期望值 $=0.36(130)=46.8$ 人。实际的 70 人远高于 46.8,说明在这份样本中年级与出行方式有关联。

Graphs of Quantitative Data定量数据的图形

Learning objectives学习目标
  • Construct a dotplot, stem-and-leaf plot (stemplot) and histogram for one quantitative variable.
  • Choose bins correctly (equal width, a left-endpoint convention) and compute relative frequencies.
  • Read counts, proportions and features directly from each graph.
  • 为单个定量变量绘制点图、茎叶图和直方图。
  • 正确分组(组宽相等,约定左端点归入本组)并计算相对频率。
  • 直接从各图读出计数、比例和特征。
What you must know

A dotplot stacks one dot per value above a number line. A stemplot splits each value into a stem (leading digits) and a leaf (last digit), writes the leaves in order, and always carries a key. A histogram groups values into equal-width bins; the bar height is the frequency (or relative frequency) and the bars touch. All three keep the whole distribution visible; use a dotplot or stemplot for small $n$ (about 30 or fewer) and a histogram for larger data sets.

必备知识

点图在数轴上为每个数值叠放一个点。茎叶图把每个数值拆成茎(前面的数位)和叶(最后一位),叶按顺序排列,并且必须附带图例。直方图把数据分到等宽的组,矩形高度为频数(或相对频率),矩形相连。三者都保留了完整的分布信息;样本量 $n$ 较小(约 30 以内)用点图或茎叶图,较大时用直方图。

55.566.577.588.59Hours of sleep last night昨晚睡眠时间(小时)
Figure 2. Dotplot of 20 students' hours of sleep. The tallest stack, at 7 hours, has five dots.图 2. 20 名学生睡眠时间(小时)的点图。最高的一叠在 7 小时,共 5 个点。
Worked Example 3.1: Dotplot and reading it例题 3.1:点图及其解读

Twenty students report last night's sleep (hours): 5, 5.5, 6, 6, 6.5, 6.5, 6.5, 7, 7, 7, 7, 7, 7.5, 7.5, 7.5, 8, 8, 8, 8.5, 9. Draw a dotplot and answer: what proportion slept at least 8 hours?

  1. Count each value: 5 (1), 5.5 (1), 6 (2), 6.5 (3), 7 (5), 7.5 (3), 8 (3), 8.5 (1), 9 (1); the total is $20$.
  2. Stack the dots on a labeled axis from 5 to 9 (Figure 2).
  3. At least 8 hours: $3+1+1=5$ students, so the proportion is $5/20=0.25$.
  4. Statement in context: "25% of these 20 students slept 8 or more hours; the most common value was 7 hours."

20 名学生报告昨晚的睡眠时间(小时):5、5.5、6、6、6.5、6.5、6.5、7、7、7、7、7、7.5、7.5、7.5、8、8、8、8.5、9。画点图,并回答:睡眠至少 8 小时的比例是多少?

  1. 统计各值个数:5(1)、5.5(1)、6(2)、6.5(3)、7(5)、7.5(3)、8(3)、8.5(1)、9(1),合计 $20$。
  2. 在标有 5 到 9 的数轴上叠放点(图 2)。
  3. 至少 8 小时:$3+1+1=5$ 人,比例为 $5/20=0.25$。
  4. 结合情境表述:「这 20 名学生中 25% 睡了 8 小时或以上;最常见的睡眠时间是 7 小时。」
024660708090100Exam score (points)考试分数(分)Frequency频数
Figure 3. Histogram of the 15 exam scores in Example 3.2 with bins 60 to under 70, 70 to under 80, 80 to under 90 and 90 to under 100. Each bar includes its left endpoint.图 3. 例题 3.2 中 15 个考试成绩的直方图,分组为 60 至不足 70、70 至不足 80、80 至不足 90、90 至不足 100,每组包含左端点。
Worked Example 3.2: Stemplot and histogram of the same data例题 3.2:同一组数据的茎叶图与直方图

Fifteen exam scores: 62, 67, 71, 74, 75, 78, 79, 81, 83, 84, 86, 88, 91, 93, 97. Make a stemplot and a histogram with width-10 bins.

6 | 2 7
7 | 1 4 5 8 9
8 | 1 3 4 6 8
9 | 1 3 7
Key: 7 | 1 = 71 points
  1. Stems are the tens digits 6, 7, 8, 9; leaves are the units digits written in order. The key tells the reader that $7\mid1$ means 71 points.
  2. Histogram bins (left endpoint included): $[60,70)$ has 62, 67: 2; $[70,80)$ has 71, 74, 75, 78, 79: 5; $[80,90)$ has 81, 83, 84, 86, 88: 5; $[90,100)$ has 91, 93, 97: 3. Total $2+5+5+3=15$.
  3. Relative frequencies: $2/15\approx0.133$, $5/15\approx0.333$, $0.333$, $3/15=0.200$.
  4. Reading: the proportion with scores below 80 is $(2+5)/15\approx0.467$, so 46.7% of these students scored below 80.

15 个考试成绩:62、67、71、74、75、78、79、81、83、84、86、88、91、93、97。画茎叶图,并用组宽 10 画直方图。

6 | 2 7
7 | 1 4 5 8 9
8 | 1 3 4 6 8
9 | 1 3 7
图例:7 | 1 表示 71 分
  1. 茎是十位数 6、7、8、9,叶是按顺序排列的个位数。图例说明 $7\mid1$ 表示 71 分。
  2. 直方图分组(含左端点):$[60,70)$ 含 62、67,共 2;$[70,80)$ 含 71、74、75、78、79,共 5;$[80,90)$ 含 81、83、84、86、88,共 5;$[90,100)$ 含 91、93、97,共 3。总数 $2+5+5+3=15$。
  3. 相对频率:$2/15\approx0.133$,$5/15\approx0.333$,$0.333$,$3/15=0.200$。
  4. 解读:成绩低于 80 分的比例为 $(2+5)/15\approx0.467$,即 46.7% 的学生低于 80 分。
Worked Example: Read a histogram from a frequency table例题:由频数表读直方图

The commute times of 40 students are grouped into bins of width 10 minutes, each bin including its left endpoint: 0 to under 10: 4 students; 10 to under 20: 14; 20 to under 30: 12; 30 to under 40: 6; 40 to under 50: 3; 50 to under 60: 1. (a) Find the relative frequencies. (b) What proportion commute less than 30 minutes? (c) Which bin contains the median? (d) A student says, "The tallest bar is 10 to under 20, so most students commute between 10 and 20 minutes." Evaluate. (e) Describe the shape.

  1. Total: $4+14+12+6+3+1=40$. Relative frequencies: $0.100$, $0.350$, $0.300$, $0.150$, $0.075$, $0.025$, which sum to 1.
  2. Less than 30 minutes: $4+14+12=30$ students, so $30/40=0.75$. Statement: "75% of these 40 students commute less than 30 minutes."
  3. The median is the mean of the 20th and 21st ordered values. The cumulative counts are 4, 18, 30, ..., so the first two bins hold only 18 values, and both the 20th and 21st values lie in the 20 to under 30 bin. The median is between 20 and 30 minutes; a histogram does not reveal its exact value.
  4. The claim confuses the tallest bar with "most". The tallest bar holds $14/40=35\%$ of the students, which is not more than half, and 65% of the students are outside that bin.
  5. Shape: unimodal with the peak in the 10 to under 20 bin and a longer tail to the right (3 students at 40 to under 50 and 1 at 50 to under 60), so the distribution is skewed right.

A complete answer states the proportions with their bins, locates the median by cumulative counts rather than by the tallest bar, and describes the shape by the longer tail.

40 名学生的通勤时间按组宽 10 分钟分组,每组包含左端点:0 至不到 10:4 人;10 至不到 20:14 人;20 至不到 30:12 人;30 至不到 40:6 人;40 至不到 50:3 人;50 至不到 60:1 人。(a)求各组相对频率。(b)通勤不到 30 分钟的学生占多大比例?(c)中位数在哪一组?(d)一名学生说:「最高的条是 10 至不到 20,所以大多数学生的通勤时间在 10 到 20 分钟之间。」评价这一说法。(e)描述分布的形状。

  1. 总数:$4+14+12+6+3+1=40$。相对频率:$0.100$、$0.350$、$0.300$、$0.150$、$0.075$、$0.025$,和为 1。
  2. 不到 30 分钟:$4+14+12=30$ 人,所以是 $30/40=0.75$。表述:「这 40 名学生中有 75% 的通勤时间不到 30 分钟。」
  3. 中位数是第 20 个与第 21 个有序值的平均数。累计频数为 4、18、30、……,前两组只有 18 个值,所以第 20 个和第 21 个值都在 20 至不到 30 这一组。中位数介于 20 到 30 分钟之间;直方图不能给出它的确切数值。
  4. 这一说法把最高的条与「大多数」混为一谈。最高的条只含 $14/40=35\%$ 的学生,并不超过一半,而且有 65% 的学生不在这一组内。
  5. 形状:单峰,峰在 10 至不到 20 这一组,右侧尾部更长(40 至不到 50 有 3 人,50 至不到 60 有 1 人),所以分布右偏。

完整答案要点:写出各比例及所在的组,用累计频数而不是最高的条来确定中位数,并依据较长的尾部描述形状。

Common Mistake: A stemplot with no key

A stemplot without a key is incomplete. A histogram's bins must have equal width and no overlap, and the vertical axis shows how many values fall in a bin, not the value itself. Also, the height of a bar is not the data value: reading a histogram, you cannot recover individual values, only counts per bin.

常见错误:茎叶图没有图例

茎叶图没有图例就是不完整的。直方图的组宽必须相等且不重叠,纵轴表示落入该组的个数,而不是数据本身。还要注意:矩形的高度不是数据值,看直方图只能知道各组个数,无法还原单个数值。

TI-84 and Nspire
  1. Enter the data in L1 (STAT > 1:Edit). For repeated values use a second list L2 as frequencies.
  2. 2nd Y= (STAT PLOT) > 1:Plot1: On, choose the histogram icon (third icon), Xlist: L1, Freq: 1 (or L2).
  3. WINDOW: Xmin=60, Xmax=100, Xscl=10 sets 10-point bins; Ymin=0, Ymax=8. Press GRAPH, then TRACE to read each bin's count (n=) and interval.
  4. ZoomStat picks bins for you, which may not be the widths you want; always set Xscl yourself. The first icon (dotplot-like scatter) is a scatterplot, not a dotplot.
  5. Nspire: Data & Statistics app, add the list to the horizontal axis, Menu > Plot Type > Histogram; Menu > Plot Properties > Histogram Properties > Bin Settings sets the width.
TI-84 与 Nspire 操作
  1. 把数据输入 L1(STAT > 1:Edit)。数值重复时可用第二个列表 L2 作为频数。
  2. 2nd Y=(STAT PLOT)> 1:Plot1:On,选直方图图标(第三个),Xlist: L1,Freq: 1(或 L2)。
  3. WINDOW:Xmin=60, Xmax=100, Xscl=10 表示组宽 10 分;Ymin=0, Ymax=8。按 GRAPH,再用 TRACE 读取各组的个数(n=)和区间。
  4. ZoomStat 会自动选组距,可能不是你想要的宽度,务必自己设置 Xscl。第一个图标是散点图,不是点图。
  5. Nspire:在 Data & Statistics 应用中把列表放到横轴,Menu > Plot Type > Histogram;Menu > Plot Properties > Histogram Properties > Bin Settings 可设置组宽。
Exam tip考试提示

A graph must tell a stranger everything: title or description of the variable, labeled axes with units, a scale that starts sensibly, and for a stemplot a key. Omitting the key or the axis label is a frequent omission in a graph.

图要让陌生人也看得懂:要有变量的标题或说明、带单位的坐标轴标注、合理的刻度,茎叶图还要有图例。漏写图例或轴标签是作图时常见的遗漏。

FRQ response model: construct and use a graph简答题答题模型:作图并应用

Prompt. Use the 15 exam scores of Example 3.2. (a) Construct a histogram with bins of width 10 starting at 60. (b) What proportion of scores is at least 80?

  • Labeled axes: horizontal axis "Exam score (points)" with bin edges 60, 70, 80, 90, 100; vertical axis "Frequency".
  • Correct bars: heights 2, 5, 5, 3 with touching bars of equal width.
  • Proportion with method: $(5+3)/15=8/15\approx0.533$; "about 53.3% of these 15 students scored 80 or higher."

题目。 使用例题 3.2 的 15 个考试成绩。(a) 以 60 为起点、组宽 10 画直方图。(b) 成绩不低于 80 分的比例是多少?

  • 坐标轴标注:横轴「考试分数(分)」,分界点 60、70、80、90、100;纵轴「频数」。
  • 条形正确:高度 2、5、5、3,等宽且相连。
  • 比例及方法:$(5+3)/15=8/15\approx0.533$;「这 15 名学生中约 53.3% 的成绩不低于 80 分。」
Check your understanding自我检测
In a stemplot with key $4\mid 7=4.7$ cm, what value does the row $3\mid 0\,2\,2$ show?在图例为 $4\mid 7=4.7$ 厘米的茎叶图中,行 $3\mid 0\,2\,2$ 表示哪些数值?

3.0, 3.2 and 3.2 cm.

3.0、3.2、3.2 厘米。

A histogram has bins 0 to under 10, 10 to under 20 and 20 to under 30 with counts 6, 9, 5. Where does the value 20 go, and what is the relative frequency of the middle bin?某直方图分组为 0 至不足 10、10 至不足 20、20 至不足 30,计数为 6、9、5。数值 20 归入哪一组?中间组的相对频率是多少?

The value 20 goes in the 20 to under 30 bin (left endpoint included). The middle bin is $9/(6+9+5)=9/20=0.45$.

20 归入「20 至不足 30」组(含左端点)。中间组的相对频率为 $9/(6+9+5)=9/20=0.45$。

Why can two histograms of the same data look different?为什么同一组数据的两张直方图可能看起来不同?

Different bin widths or starting points group the values differently; wide bins can hide gaps or clusters, narrow bins can make random variation look like structure.

组宽或起点不同,数据的分组就不同;组太宽会掩盖空隙或集群,组太窄会把随机波动误当成结构。

Which graph keeps every individual value visible: dotplot, histogram, or both?点图和直方图中,哪一种保留了每个个体的数值?

Only the dotplot (and the stemplot). A histogram shows only the count in each bin.

只有点图(和茎叶图)。直方图只显示各组的个数。

Describing Distributions描述分布

Learning objectives学习目标
  • Describe a distribution with shape, center, variability and unusual features (SOCS), in context.
  • Name shapes correctly: skewed right or left, approximately symmetric, unimodal, bimodal, uniform.
  • Identify outliers, gaps and clusters, and suggest what they mean in the situation.
  • 用形状、中心、变异程度和异常特征(SOCS)结合情境描述分布。
  • 正确命名形状:右偏或左偏、近似对称、单峰、双峰、均匀。
  • 识别离群值、空隙和集群,并推测它们在实际情境中的含义。
What you must know

Every description of a distribution of one quantitative variable has four parts, remembered as SOCS: Shape, Outliers and other unusual features, Center, Spread. Always write them as sentences that name the variable, the units and the individuals. A distribution is skewed right when its longer tail points toward larger values, skewed left when the longer tail points toward smaller values, and approximately symmetric when the two sides are close to mirror images. It is unimodal with one main peak, bimodal with two, and approximately uniform with a flat top and no peak.

必备知识

描述单个定量变量的分布包含四部分,简称 SOCS:形状(Shape)、离群值及其他异常特征(Outliers)、中心(Center)、离散程度(Spread)。要写成完整的句子,并点明变量、单位和个体。较长的尾巴指向较大值时为右偏,指向较小值时为左偏,两侧大致互为镜像时为近似对称。只有一个主峰为单峰,有两个为双峰,顶部平坦没有峰为近似均匀。

Skewed right右偏Approximately symmetric近似对称Skewed left左偏Bimodal双峰
Figure 4. Four common shapes. Skew is named for the long tail, not for where the peak sits.图 4. 四种常见形状。偏态以长尾所在的一侧命名,而不是以峰所在的位置命名。

An outlier is a value unusually far from the rest (Topic 1.8 gives a rule). A gap is a stretch with no data, and a cluster is a concentration of values separated from others by gaps. Which center and spread to quote depends on shape: for a roughly symmetric distribution with no outliers use the mean and standard deviation; for a skewed distribution or one with outliers use the median and the IQR (Topic 1.7).

离群值是明显远离其余数据的值(判断规则见主题 1.8)。空隙是没有数据的一段区间,集群是被空隙隔开的一团数据。选用哪种中心和离散指标取决于形状:近似对称且无离群值时用均值与标准差;偏态或有离群值时用中位数与四分位距(见主题 1.7)。

Common Mistake: Naming skew by the peak

"Skewed left" does not mean the peak is on the left. A peak near the left with a tail stretching right is skewed right. Also never call a data distribution "normal" unless asked about the normal model; write "approximately symmetric and unimodal" instead.

常见错误:按峰的位置命名偏态

「左偏」不是指峰在左边。峰靠左、尾巴向右拖长的是右偏。除非题目问到正态模型,否则不要把数据的分布称为「正态」,应写「近似对称、单峰」。

Worked Example 4.1: Describe a skewed distribution with an outlier例题 4.1:描述带离群值的偏态分布

Waiting times (minutes) of 15 customers at a service desk: 2, 3, 3, 4, 4, 5, 5, 5, 6, 7, 8, 9, 11, 14, 26. Describe the distribution.

  1. Shape: one main peak at the low end with a long tail to the right, so unimodal and skewed right.
  2. Outliers: the 26-minute wait stands apart from the next value (14) by 12 minutes. Topic 1.8 confirms it is an outlier: $Q_3+1.5\,\text{IQR}=9+7.5=16.5<26$.
  3. Center: the median is the 8th ordered value, 5 minutes (the mean is $112/15\approx7.47$ minutes, pulled upward by the tail).
  4. Spread: the quartiles are $Q_1=4$ and $Q_3=9$, so $\text{IQR}=5$ minutes; the range is $26-2=24$ minutes.
  5. Model sentence: "The distribution of waiting times for these 15 customers is skewed right with a median of 5 minutes and an IQR of 5 minutes. One customer's 26-minute wait is a high outlier."

某服务台 15 位顾客的等待时间(分钟):2、3、3、4、4、5、5、5、6、7、8、9、11、14、26。描述该分布。

  1. 形状:低端有一个主峰,右侧有长尾,所以是单峰、右偏。
  2. 离群值:26 分钟与下一个值 14 相差 12 分钟。主题 1.8 可证实它是离群值:$Q_3+1.5\,\text{IQR}=9+7.5=16.5<26$。
  3. 中心:中位数是排序后的第 8 个值,即 5 分钟(均值为 $112/15\approx7.47$ 分钟,被长尾拉高)。
  4. 离散程度:四分位数 $Q_1=4$、$Q_3=9$,所以 $\text{IQR}=5$ 分钟;极差为 $26-2=24$ 分钟。
  5. 示范句:「这 15 位顾客的等待时间分布右偏,中位数为 5 分钟,四分位距为 5 分钟。有一位顾客等待了 26 分钟,是高端离群值。」
Worked Example 4.2: Interpret what a bimodal shape suggests例题 4.2:解读双峰形状的含义

A histogram of ages of 40 people at a community pool has bins of width 10 years with counts: 0 to under 10: 12, 10 to under 20: 8, 20 to under 30: 1, 30 to under 40: 6, 40 to under 50: 9, 50 to under 60: 3, 60 to under 70: 1. Describe the shape and suggest why.

  1. Check the total: $12+8+1+6+9+3+1=40$.
  2. Shape: two peaks, one in the 0 to under 10 bin and one in the 40 to under 50 bin, with a dip at 20 to under 30 (only 1 person): bimodal.
  3. Interpretation in context: two groups seem to use the pool, children (and teens) and the adults who bring them. A single mean age of about 26 years (from the bin midpoints, $1050/40=26.25$) would describe almost nobody.
  4. Unusual features: the near-gap at 20 to 30 years; no outlier is obvious since the ages stay between 0 and 70.

某社区游泳池 40 位使用者年龄的直方图,组宽 10 岁,各组人数:0 至不足 10 岁 12 人,10 至不足 20 岁 8 人,20 至不足 30 岁 1 人,30 至不足 40 岁 6 人,40 至不足 50 岁 9 人,50 至不足 60 岁 3 人,60 至不足 70 岁 1 人。描述形状并推测原因。

  1. 核对总数:$12+8+1+6+9+3+1=40$。
  2. 形状:有两个峰,一个在 0 至不足 10 岁组,一个在 40 至不足 50 岁组,20 至不足 30 岁组出现低谷(仅 1 人):双峰。
  3. 情境解读:似乎有两类人使用泳池,儿童(及青少年)与带他们来的成年人。用组中值算出的单一平均年龄约 26 岁($1050/40=26.25$),几乎代表不了任何人。
  4. 异常特征:20 至 30 岁之间几乎出现空隙;年龄都在 0 至 70 岁之间,没有明显的离群值。
Worked Example: A skewed left distribution with a ceiling例题:有上限的左偏分布

Twenty students' scores (out of 10 points) on a short quiz: 4, 6, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10. Describe the distribution with SOCS and explain why it has this shape.

  1. Shape: most scores are high and pile up at the top (8 of the 20 students earned the maximum 10), while the tail stretches toward the low scores: unimodal and skewed left.
  2. Center: the scores sum to $173$, so $\bar{x}=173/20=8.65$ points. The median is the mean of the 10th and 11th ordered values, 9 and 9, so it is 9 points. The mean is below the median, as a left tail predicts.
  3. Spread: $Q_1=8$ and $Q_3=10$, so $\text{IQR}=2$ points; $s_x\approx1.63$ points; range $10-4=6$ points.
  4. Outliers: the fences are $8-1.5(2)=5$ and $10+1.5(2)=13$. The score 4 is below 5, so it is a low outlier; 6 is not. The 2-standard-deviation rule agrees: $8.65-2(1.63)\approx5.39$, and 4 is below it.
  5. Why this shape: the quiz cannot score above 10, so students who know the material cannot score above the maximum while a few weaker scores trail off to the left (a ceiling effect). Because the distribution is skewed with an outlier, the median and IQR describe it better than the mean and standard deviation.

Model sentence: "The distribution of quiz scores for these 20 students is skewed left with a median of 9 points and an IQR of 2 points. One student's score of 4 is a low outlier, and 8 of the 20 students earned the maximum of 10 points."

20 名学生在一次小测验中的得分(满分 10 分):4、6、7、7、8、8、8、9、9、9、9、9、10、10、10、10、10、10、10、10。用 SOCS 描述这一分布,并解释它为什么是这种形状。

  1. 形状:大多数得分很高,堆积在顶端(20 名学生中有 8 人得了满分 10 分),而尾部向低分一侧延伸:单峰、左偏。
  2. 中心:得分之和为 $173$,所以 $\bar{x}=173/20=8.65$ 分。中位数是第 10 个与第 11 个有序值(9 和 9)的平均数,即 9 分。均值低于中位数,与左侧长尾相符。
  3. 离散程度:$Q_1=8$,$Q_3=10$,所以 $\text{IQR}=2$ 分;$s_x\approx1.63$ 分;极差 $10-4=6$ 分。
  4. 离群值:围栏为 $8-1.5(2)=5$ 和 $10+1.5(2)=13$。得分 4 低于 5,所以它是低端离群值;6 不是。2 个标准差规则的结论一致:$8.65-2(1.63)\approx5.39$,4 低于此值。
  5. 形状的原因:测验得分不可能高于 10,所以掌握了内容的学生最高只能得满分,而少数较弱的成绩向左拖出尾巴(天花板效应,ceiling effect)。因为分布偏斜且有离群值,中位数和四分位距比均值和标准差更适合描述它。

示范表述:「这 20 名学生的测验得分分布左偏,中位数为 9 分,四分位距为 2 分。一名学生的 4 分是低端离群值,20 名学生中有 8 人得了满分 10 分。」

Exam tip考试提示

A complete description of a distribution covers all four SOCS pieces in context. Write "skewed right with a median of 5 minutes", not "S: right, C: 5". Always give a spread with units, and mention gaps, clusters or outliers even if only to say there are none.

描述分布的题目要求结合情境写全 SOCS 四项。要写「右偏,中位数为 5 分钟」,而不是「S:右,C:5」。必须给出带单位的离散程度,即使没有空隙、集群或离群值,也要说明。

FRQ response model: describe a distribution简答题答题模型:描述一个分布

Prompt. The dotplot in Figure 5 (Topic 1.7) shows the 15 waiting times of Example 4.1. Describe the distribution of waiting times.

  • Shape: unimodal and skewed right.
  • Center with units: median 5 minutes (a mean of about 7.5 minutes is acceptable if its sensitivity to the tail is noted).
  • Spread with units: IQR 5 minutes (or range 24 minutes).
  • Unusual feature in context: a 26-minute wait is a high outlier, 12 minutes above the next-longest wait.

题目。 主题 1.7 的图 5 是例题 4.1 中 15 个等待时间的点图。请描述等待时间的分布。

  • 形状:单峰、右偏。
  • 带单位的中心:中位数 5 分钟(若指出均值受长尾影响,写约 7.5 分钟也可接受)。
  • 带单位的离散程度:四分位距 5 分钟(或极差 24 分钟)。
  • 情境中的异常特征:26 分钟的等待是高端离群值,比次长的等待多 12 分钟。
Check your understanding自我检测
A histogram has its peak at the left and a long tail to the right. Skewed left or right?某直方图的峰在左侧、长尾向右。是左偏还是右偏?

Skewed right: the long tail points toward the larger values.

右偏:长尾指向较大的值。

Why can a bimodal distribution make the mean a poor summary?为什么双峰分布会使均值成为糟糕的概括?

The mean falls between the two peaks, where there may be few or no values, so it describes no typical individual; the two groups should be described separately.

均值落在两个峰之间,那里可能几乎没有数据,因此它不能代表任何典型个体,应分别描述两个群体。

Which two summaries should you report for a strongly right-skewed distribution?对强右偏分布应报告哪两个概括量?

The median for center and the IQR for spread, since both are resistant to the long tail.

用中位数表示中心、四分位距表示离散程度,二者都不受长尾影响。

Which unusual features should you look for besides outliers?除离群值外还应留意哪些异常特征?

Gaps (regions with no data) and clusters (concentrations separated by gaps).

空隙(没有数据的区间)和集群(被空隙隔开的数据群)。

Summary Statistics汇总统计量

Learning objectives学习目标
  • Calculate and interpret the mean, median, range, standard deviation, quartiles and IQR.
  • Explain resistance: which statistics change a lot when one extreme value is added or removed.
  • Match the mean and median to shape, and choose appropriate summaries for a given distribution.
  • 计算并解释均值、中位数、极差、标准差、四分位数和四分位距。
  • 解释抗干扰性:加入或去掉一个极端值时,哪些统计量变化很大。
  • 把均值和中位数与形状对应起来,并为给定分布选择合适的概括量。
What you must know

Center: the mean $\bar{x}$ is the balance point and the median is the middle ordered value. Spread: range, IQR and standard deviation. The median and IQR are resistant (outliers barely change them); the mean, range and standard deviation are not. In a right-skewed distribution the mean is usually above the median, in a left-skewed one below it, and in a symmetric one they are close.

$$\bar{x}=\frac{1}{n}\sum_{i=1}^{n}x_i\qquad s_x=\sqrt{\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar{x})^2}\qquad \text{IQR}=Q_3-Q_1$$

Quartiles: $Q_1$ and $Q_3$ are the medians of the lower and upper halves of the ordered data; when $n$ is odd, leave the overall median out of both halves (this matches the TI-84 and the guide's other examples). The standard deviation $s_x$ is roughly the typical distance of values from the mean and carries the data's units.

必备知识

中心:均值 $\bar{x}$ 是平衡点,中位数是排序后位于中间的值。离散程度:极差、四分位距、标准差。中位数与四分位距具有抗干扰性(离群值几乎不影响它们);均值、极差、标准差没有。右偏分布中均值通常大于中位数,左偏时则小于中位数,对称时二者接近。

$$\bar{x}=\frac{1}{n}\sum_{i=1}^{n}x_i\qquad s_x=\sqrt{\frac{1}{n-1}\sum_{i=1}^{n}(x_i-\bar{x})^2}\qquad \text{IQR}=Q_3-Q_1$$

四分位数:$Q_1$、$Q_3$ 分别是排序数据下半部分和上半部分的中位数;$n$ 为奇数时,两部分都不包含总的中位数(与 TI-84 及本指南其他例题一致)。标准差 $s_x$ 大致是各数值与均值的典型距离,单位与数据相同。

Also on the 2027 exam

The revised course lists a second outlier method alongside the IQR rule: a value more than 2 standard deviations above or below the mean is an outlier. It also states that the pth percentile has p% of the data at or below it. The IQR rule is in Topic 1.8; the 2-standard-deviation rule is added in Example 5.1 below so that you can use either.

对应 2027 考试新增内容

新课程在四分位距法之外,还列出第二种离群值判别法:与均值相差超过 2 个标准差的值是离群值。它还规定第 p 百分位数是指有 p% 的数据小于或等于它。四分位距法在主题 1.8;下面的例题 5.1 补充了 2 倍标准差法,以便两种方法都能使用。

0481216202428Median 5中位数 5Mean 7.47均值 7.47Wait time (minutes)等待时间(分钟)
Figure 5. Dotplot of 15 waiting times. The 26-minute value pulls the mean (7.47) to the right of the median (5).图 5. 15 个等待时间的点图。26 分钟这个值把均值(7.47)拉到中位数(5)的右边。
Worked Example 5.1: Every summary by hand例题 5.1:手算所有汇总量

Seven students' times (minutes) to finish a quiz: 8, 9, 10, 10, 11, 12, 24. Find the mean, median, quartiles, IQR, range, standard deviation and test 24 as an outlier.

  1. Mean: $\bar{x}=84/7=12$ minutes. Median: the 4th value, 10 minutes.
  2. Quartiles: lower half 8, 9, 10 gives $Q_1=9$; upper half 11, 12, 24 gives $Q_3=12$; $\text{IQR}=3$ minutes; range $=24-8=16$ minutes.
  3. Standard deviation: deviations from 12 are $-4,-3,-2,-2,-1,0,12$ (sum 0); squares sum to $16+9+4+4+1+0+144=178$; $s^2=178/6\approx29.67$ and $s_x\approx5.45$ minutes.
  4. Interpret: "These students' quiz times typically differ from the mean of 12 minutes by about 5.45 minutes."
  5. IQR rule: fences $9-1.5(3)=4.5$ and $12+1.5(3)=16.5$; since $24>16.5$, it is an outlier. 2-SD rule: $12+2(5.45)=22.9<24$, so 24 is also an outlier by this rule.

7 名学生完成一次小测验所用时间(分钟):8、9、10、10、11、12、24。求均值、中位数、四分位数、四分位距、极差、标准差,并检验 24 是否为离群值。

  1. 均值:$\bar{x}=84/7=12$ 分钟。中位数:第 4 个值,10 分钟。
  2. 四分位数:下半部分 8、9、10 得 $Q_1=9$;上半部分 11、12、24 得 $Q_3=12$;$\text{IQR}=3$ 分钟;极差 $=24-8=16$ 分钟。
  3. 标准差:各值与 12 的偏差为 $-4,-3,-2,-2,-1,0,12$(和为 0);平方和 $16+9+4+4+1+0+144=178$;$s^2=178/6\approx29.67$,$s_x\approx5.45$ 分钟。
  4. 解释:「这些学生的测验用时与平均值 12 分钟的典型差距约为 5.45 分钟。」
  5. 四分位距法:围栏为 $9-1.5(3)=4.5$ 和 $12+1.5(3)=16.5$;因为 $24>16.5$,所以是离群值。2 倍标准差法:$12+2(5.45)=22.9<24$,按此法 24 也是离群值。
Worked Example 5.2: Resistance: remove the outlier and compare例题 5.2:抗干扰性:去掉离群值再比较

Remove the 24 from Example 5.1. The remaining six values are 8, 9, 10, 10, 11, 12. Which summaries change?

SummaryWith 24Without 24
Mean12 min10 min
Median10 min10 min
Standard deviation5.45 min1.41 min
IQR3 min2 min
Range16 min4 min

The mean moved 2 minutes, the standard deviation nearly quadrupled and the range quadrupled, while the median did not move and the IQR changed by only 1 minute. Justification: "Because the times are skewed right by a high outlier, the median (10 minutes) and IQR (3 minutes) describe the typical time and its variability better than the mean and standard deviation, which the 24-minute time inflates."

去掉例题 5.1 中的 24,剩下 8、9、10、10、11、12 六个值。哪些汇总量发生变化?

汇总量含 24不含 24
均值12 分钟10 分钟
中位数10 分钟10 分钟
标准差5.45 分钟1.41 分钟
四分位距3 分钟2 分钟
极差16 分钟4 分钟

均值变化了 2 分钟,标准差增大到近 4 倍,极差增大到 4 倍;而中位数没有变化,四分位距只变化 1 分钟。理由:「因为这些用时被一个高端离群值拉成右偏,中位数(10 分钟)和四分位距(3 分钟)比被 24 分钟抬高的均值和标准差更能描述典型用时及其变异程度。」

Worked Example 5.3: Mean from a frequency table例题 5.3:由频数表求均值

Thirty students report their number of siblings: 0 (5 students), 1 (9), 2 (10), 3 (4), 4 (2). Find the mean and median.

  1. Total: $5+9+10+4+2=30$. Sum of values: $0(5)+1(9)+2(10)+3(4)+4(2)=0+9+20+12+8=49$.
  2. Mean: $\bar{x}=49/30\approx1.63$ siblings.
  3. Median: the average of the 15th and 16th ordered values. The first 14 values are 0 or 1 ($5+9=14$) and the next 10 are 2, so both the 15th and 16th are 2: median $=2$ siblings.
  4. The mean (1.63) is below the median (2), which hints at a slight left skew, but with only 30 values and a few possible values this is weak evidence about shape.

30 名学生报告兄弟姐妹人数:0 人(5 名学生),1 人(9 名),2 人(10 名),3 人(4 名),4 人(2 名)。求均值和中位数。

  1. 总数:$5+9+10+4+2=30$。数值之和:$0(5)+1(9)+2(10)+3(4)+4(2)=0+9+20+12+8=49$。
  2. 均值:$\bar{x}=49/30\approx1.63$ 人。
  3. 中位数:第 15 与第 16 个排序值的平均。前 14 个值是 0 或 1($5+9=14$),接下来的 10 个是 2,所以第 15、16 个都是 2:中位数 $=2$ 人。
  4. 均值(1.63)小于中位数(2),提示略微左偏,但只有 30 个数据、取值又很少,这只是关于形状的微弱证据。
Common Mistake: Misreading the standard deviation

Do not say the standard deviation is "the average of the deviations" (the deviations sum to zero) or give $s_x$ without units. Do not use $\sigma_x$ for sample data: on the TI-84, report Sx (divides by $n-1$), not σx (divides by $n$).

常见错误:误读标准差

不要说标准差是「偏差的平均数」(偏差之和为零),也不要不带单位地写 $s_x$。对样本数据不要用 $\sigma_x$:在 TI-84 上应报告 Sx(除以 $n-1$),而不是 σx(除以 $n$)。

TI-84 and Nspire
  1. STAT > 1:Edit: enter 8, 9, 10, 10, 11, 12, 24 in L1 (clear old data first with STAT > 4:ClrList L1).
  2. STAT > CALC > 1:1-Var Stats, List: L1, FreqList: blank (or L2 if values have counts), then Calculate.
  3. Read: x̄=12, Sx=5.4467..., σx=5.0427..., n=7, minX=8, Q1=9, Med=10, Q3=12, maxX=24. Scroll down with the arrow key to see the five-number summary.
  4. For the sibling table, put 0 to 4 in L1 and 5, 9, 10, 4, 2 in L2, and set FreqList: L2: output x̄=1.6333... and Med=2.
  5. Nspire: Calculator page, Menu > Statistics > Stat Calculations > One-Variable Statistics; choose the list. It reports x̄, sx, σx, Q1X, MedianX, Q3X. Compare the quartiles with your hand values.
TI-84 与 Nspire 操作
  1. STAT > 1:Edit:把 8、9、10、10、11、12、24 输入 L1(先用 STAT > 4:ClrList L1 清除旧数据)。
  2. STAT > CALC > 1:1-Var Stats,List: L1,FreqList: 留空(数值带计数时填 L2),然后 Calculate。
  3. 读取:x̄=12,Sx=5.4467...,σx=5.0427...,n=7,minX=8,Q1=9,Med=10,Q3=12,maxX=24。用方向键下翻可看到五数概括。
  4. 兄弟姐妹频数表:把 0 到 4 输入 L1,5、9、10、4、2 输入 L2,并设 FreqList: L2,得 x̄=1.6333...、Med=2。
  5. Nspire:Calculator 页面,Menu > Statistics > Stat Calculations > One-Variable Statistics,选择列表。结果含 x̄、sx、σx、Q1X、MedianX、Q3X。请把四分位数与手算结果对照。
Exam tip考试提示

To justify a choice of summary, name the shape or outlier and the resistance: "The distribution is skewed right with an outlier, so the median and IQR, which are resistant, are better than the mean and standard deviation." Interpret $s_x$ with units and in context, never as a bare number.

论证选用哪种概括量时,要指明形状或离群值以及抗干扰性:「分布右偏且有离群值,所以抗干扰的中位数和四分位距比均值和标准差更合适。」解释 $s_x$ 时要带单位并结合情境,不能只写一个数。

FRQ response model: choose and interpret summaries简答题答题模型:选择并解释概括量

Prompt. The quiz times in Example 5.1 are 8, 9, 10, 10, 11, 12, 24 minutes. (a) Which measure of center and which measure of spread best describe the typical time and its variability? Justify. (b) Interpret the standard deviation 5.45 minutes.

  • Choice: median 10 minutes and IQR 3 minutes.
  • Justification: the 24-minute time is an outlier (above the fence 16.5), and the median and IQR are resistant; the mean (12) and standard deviation (5.45) are inflated by it.
  • Interpretation of $s_x$: "The quiz times typically vary from the mean of 12 minutes by about 5.45 minutes."

题目。 例题 5.1 中的测验用时为 8、9、10、10、11、12、24 分钟。(a) 哪种中心度量与离散度量最能描述典型用时及其变异程度?请说明理由。(b) 解释标准差 5.45 分钟。

  • 选择:中位数 10 分钟与四分位距 3 分钟。
  • 理由:24 分钟是离群值(超过围栏 16.5),中位数和四分位距具有抗干扰性;均值(12)与标准差(5.45)被它抬高。
  • 解释 $s_x$:「测验用时与平均值 12 分钟的典型差距约为 5.45 分钟。」
Check your understanding自我检测
The values 3, 5, 7, 9, 11 are each increased by 10. What happens to the mean and standard deviation?把 3、5、7、9、11 各加 10。均值和标准差怎样变化?

The mean goes from 7 to 17 (it increases by 10). The standard deviation stays $\sqrt{40/4}=\sqrt{10}\approx3.16$ because every distance from the mean is unchanged.

均值由 7 变为 17(增加 10)。标准差仍为 $\sqrt{40/4}=\sqrt{10}\approx3.16$,因为各值与均值的距离都没变。

A distribution has mean 45 and median 38. What shape is most likely?某分布的均值为 45,中位数为 38。最可能是什么形状?

Skewed right, because a long right tail pulls the mean above the median.

右偏,因为右侧长尾把均值拉到中位数之上。

Find the median and IQR of 2, 4, 4, 5, 7, 9, 12, 20.求 2、4、4、5、7、9、12、20 的中位数与四分位距。

$n=8$: median $(5+7)/2=6$. Lower half 2, 4, 4, 5 gives $Q_1=4$; upper half 7, 9, 12, 20 gives $Q_3=(9+12)/2=10.5$. $\text{IQR}=6.5$.

$n=8$:中位数 $(5+7)/2=6$。下半部分 2、4、4、5 得 $Q_1=4$;上半部分 7、9、12、20 得 $Q_3=(9+12)/2=10.5$。$\text{IQR}=6.5$。

The largest of 30 values is increased by 100 and is still the largest. Which statistic is certain not to change: median, mean, range or standard deviation?30 个值中最大的一个增加 100,仍是最大值。哪个统计量一定不变:中位数、均值、极差还是标准差?

The median, which depends only on the middle positions. The mean rises by $100/30\approx3.33$; the range rises by 100; the standard deviation increases.

中位数,它只取决于中间位置的值。均值增加 $100/30\approx3.33$,极差增加 100,标准差变大。

Interactive version

The commute time runner walks through a mean, median, IQR and standard deviation calculation one step at a time on a calculator.

互动版本

通勤时间互动页在计算器上逐步演示均值、中位数、四分位距和标准差的计算。

Worked Example: TI-84 1-Var Stats on five commute times例题:用 TI-84 的 1-Var Stats 分析五个通勤时间

Synthetic illustrative data. Five students' commute times are $10, 12, 12, 14, 17$ minutes. They describe only these five students; the invented data set supports no claim about a population or a cause.

  1. STAT > 1:Edit. Clear old data in L1 (highlight the L1 heading, press CLEAR then ENTER, not DEL), then enter 10, 12, 12, 14, 17.
  2. Press STAT, move the right arrow to CALC, and choose 1:1-Var Stats. Set List: L1, leave FreqList: blank, and select Calculate.
  3. Read $n=5$, $\Sigma x=65$, $\Sigma x^2=873$, $\bar{x}=13$, $S_x=2.64575131$ and $\sigma_x=2.36643191$. Scroll down with the arrow key for minX=10, Q1=11, Med=12, Q3=15.5 and maxX=17.
  4. Hand check: the deviations from 13 are $-3, -1, -1, 1, 4$, and their squares sum to $9+1+1+1+16=28$. Dividing by $n-1=4$ gives $s_x=\sqrt{28/4}=\sqrt{7}\approx2.65$; dividing by $n=5$ gives $\sigma_x=\sqrt{28/5}\approx2.37$.
  5. Interpret in context: "The commute times of these five students average 13 minutes, with a sample standard deviation of about 2.65 minutes and a median of 12 minutes." $S_x$ and $\sigma_x$ differ only in the divisor; report $S_x$ when the data are a sample.
  6. Nspire: Menu > Statistics > Stat Calculations > One-Variable Statistics, then choose the list holding the five values; it reports the same mean and standard deviations (its sx is the sample standard deviation).

Open the bilingual calculation stepper to see these steps one at a time.

合成教学数据。五名学生的通勤时间为 $10, 12, 12, 14, 17$ 分钟。它们只描述这五名学生;这组虚构数据不支持任何关于总体或因果的结论。

  1. STAT > 1:Edit。先清空 L1 中的旧数据(选中 L1 标题,按 CLEAR 再按 ENTER,不要按 DEL),然后输入 10、12、12、14、17。
  2. 按 STAT,用右箭头移到 CALC,选择 1:1-Var Stats。设 List: L1,FreqList: 留空,选择 Calculate。
  3. 读取 $n=5$,$\Sigma x=65$,$\Sigma x^2=873$,$\bar{x}=13$,$S_x=2.64575131$,$\sigma_x=2.36643191$。用方向键向下翻可看到 minX=10、Q1=11、Med=12、Q3=15.5、maxX=17。
  4. 手算核对:各值与 13 的离差为 $-3, -1, -1, 1, 4$,平方和为 $9+1+1+1+16=28$。除以 $n-1=4$ 得 $s_x=\sqrt{28/4}=\sqrt{7}\approx2.65$;除以 $n=5$ 得 $\sigma_x=\sqrt{28/5}\approx2.37$。
  5. 结合情境解读:「这五名学生的通勤时间平均为 13 分钟,样本标准差约 2.65 分钟,中位数为 12 分钟。」$S_x$ 与 $\sigma_x$ 只是除数不同;数据是样本时报告 $S_x$。
  6. Nspire:Menu > Statistics > Stat Calculations > One-Variable Statistics,选择存放这五个值的列表;它给出相同的均值和标准差(其中 sx 为样本标准差)。

打开双语逐步计算页,可逐步查看这些步骤。

Boxplots, Outliers, Percentiles, z-scores and Transformations箱线图、离群值、百分位数、z 分数与数据变换

Learning objectives学习目标
  • Find the five-number summary, build a modified boxplot, and apply the $1.5\,\text{IQR}$ outlier rule.
  • Compute and interpret percentiles and z-scores, and compare values from different distributions.
  • Predict how adding a constant or multiplying by a constant changes center, spread, shape and z-scores.
  • 求五数概括,绘制修正箱线图,并运用 $1.5\,\text{IQR}$ 离群值规则。
  • 计算并解释百分位数和 z 分数,并比较来自不同分布的数值。
  • 预测加上常数或乘以常数后,中心、离散程度、形状和 z 分数会怎样变化。
What you must know

The five-number summary is minimum, $Q_1$, median, $Q_3$, maximum. A modified boxplot draws a box from $Q_1$ to $Q_3$ with a line at the median, whiskers to the most extreme values that are not outliers, and a separate mark for each outlier. A value is an outlier by the 1.5 IQR rule if it is below $Q_1-1.5\,\text{IQR}$ or above $Q_3+1.5\,\text{IQR}$.

$$z=\frac{x-\bar{x}}{s_x}\ \text{(sample)}\qquad z=\frac{x-\mu}{\sigma}\ \text{(population)}$$

A z-score says how many standard deviations a value lies from the mean (positive above, negative below). The pth percentile is the value with p% of the data at or below it. Transformations: if $y=a+bx$ with $b>0$, then $\bar{y}=a+b\bar{x}$, $\text{median}_y=a+b\,\text{median}_x$, but $s_y=b\,s_x$ and $\text{IQR}_y=b\,\text{IQR}_x$; adding $a$ moves every value equally so it does not change spread or shape, and standardizing gives $z$-scores with mean 0 and standard deviation 1 without changing the shape.

必备知识

五数概括是最小值、$Q_1$、中位数、$Q_3$、最大值。修正箱线图以 $Q_1$ 到 $Q_3$ 画箱,在中位数处画线,须延伸到不是离群值的最远数据点,离群值则单独标出。按 1.5 倍四分位距规则,低于 $Q_1-1.5\,\text{IQR}$ 或高于 $Q_3+1.5\,\text{IQR}$ 的值是离群值。

$$z=\frac{x-\bar{x}}{s_x}\ \text{(样本)}\qquad z=\frac{x-\mu}{\sigma}\ \text{(总体)}$$

z 分数表示一个值与均值相差几个标准差(高于均值为正,低于为负)。第 p 百分位数是指有 p% 的数据小于或等于它的值。数据变换:若 $y=a+bx$ 且 $b>0$,则 $\bar{y}=a+b\bar{x}$,$\text{中位数}_y=a+b\,\text{中位数}_x$,但 $s_y=b\,s_x$,$\text{IQR}_y=b\,\text{IQR}_x$;加常数 $a$ 使每个值平移同样的量,不改变离散程度和形状;标准化得到的 z 分数均值为 0、标准差为 1,形状不变。

Also on the 2027 exam

The revised course keeps all of this, and states the second outlier method (more than 2 standard deviations from the mean) as an equal alternative. It also writes percentiles and z-scores as comparison tools between distributions. If a problem does not say which outlier rule to use, state the rule you choose and apply it with numbers; with the 15 waiting times both rules flag 26 (see Example 6.1).

对应 2027 考试新增内容

新课程保留以上全部内容,并把第二种离群值方法(与均值相差超过 2 个标准差)作为同等的备选方法。它还把百分位数和 z 分数作为比较不同分布的工具。题目没有指定规则时,要写明所选规则并用数字验证;对 15 个等待时间,两种规则都判定 26 是离群值(见例题 6.1)。

0481216202428Upper fence 16.5上围栏 16.5Min 2Q1 4M 5Q3 91426Wait time (minutes)等待时间(分钟)
Figure 6. Modified boxplot of the 15 waiting times (Example 6.1). The upper whisker stops at 14, the largest value inside the fence, and 26 is plotted separately as an outlier.图 6. 15 个等待时间的修正箱线图(例题 6.1)。上须延伸到围栏以内的最大值 14,26 单独标出,表示离群值。
Worked Example 6.1: Five-number summary, fences and boxplot例题 6.1:五数概括、围栏与箱线图

Use the 15 waiting times (minutes): 2, 3, 3, 4, 4, 5, 5, 5, 6, 7, 8, 9, 11, 14, 26.

  1. Median: the 8th value, 5. Lower half (7 values) 2, 3, 3, 4, 4, 5, 5 has median $Q_1=4$; upper half 6, 7, 8, 9, 11, 14, 26 has median $Q_3=9$.
  2. Five-number summary: 2, 4, 5, 9, 26. $\text{IQR}=9-4=5$.
  3. Fences: $4-1.5(5)=-3.5$ and $9+1.5(5)=16.5$. Only 26 lies outside, so 26 is the single outlier; the whisker ends at 14, the largest value that is not an outlier, and at 2 on the low side.
  4. Check with the 2-SD rule: $\bar{x}=112/15\approx7.47$, $s_x\approx6.07$, so $7.47+2(6.07)=19.6<26$, which also flags 26.
  5. Draw on a labeled scale as in Figure 6. The median (5) is nearer the left of the box and the right whisker is longer: right skew.

使用 15 个等待时间(分钟):2、3、3、4、4、5、5、5、6、7、8、9、11、14、26。

  1. 中位数:第 8 个值,5。下半部分(7 个值)2、3、3、4、4、5、5 的中位数为 $Q_1=4$;上半部分 6、7、8、9、11、14、26 的中位数为 $Q_3=9$。
  2. 五数概括:2、4、5、9、26。$\text{IQR}=9-4=5$。
  3. 围栏:$4-1.5(5)=-3.5$ 和 $9+1.5(5)=16.5$。只有 26 在围栏之外,所以 26 是唯一的离群值;上须到 14(不是离群值的最大值),下须到 2。
  4. 用 2 倍标准差法核对:$\bar{x}=112/15\approx7.47$,$s_x\approx6.07$,$7.47+2(6.07)=19.6<26$,同样判定 26 为离群值。
  5. 按图 6 在带标注的刻度上作图。中位数(5)靠近箱的左侧,右须更长:右偏。
Worked Example 6.2: Percentile and z-score例题 6.2:百分位数与 z 分数

The 15 exam scores of Section 1.3 are 62, 67, 71, 74, 75, 78, 79, 81, 83, 84, 86, 88, 91, 93, 97 with $\bar{x}=80.6$ and $s_x\approx9.78$. (a) Find the percentile of the score 88. (b) Find the z-score of 88 and of 62.

  1. (a) Twelve scores (62 through 88) are at or below 88, so $12/15=0.80$: the score of 88 is at the 80th percentile.
  2. (b) $z_{88}=(88-80.6)/9.78\approx0.76$: 88 is 0.76 standard deviations above the mean. $z_{62}=(62-80.6)/9.78\approx-1.90$: 62 is 1.90 standard deviations below the mean.
  3. Neither is more than 2 standard deviations from the mean, so neither is an outlier by that rule, matching the fences 53 and 109 from $Q_1=74$, $Q_3=88$.
  4. Comparison across tests: if Test B has $\mu=75$, $\sigma=5$ and a student scores 86 there, $z=2.2$, which is more unusual than $z=0.76$ here, even though 86 is lower than 88.

1.3 节的 15 个考试成绩为 62、67、71、74、75、78、79、81、83、84、86、88、91、93、97,$\bar{x}=80.6$,$s_x\approx9.78$。(a) 求成绩 88 所在的百分位。(b) 求 88 与 62 的 z 分数。

  1. (a) 有 12 个成绩(62 到 88)小于或等于 88,$12/15=0.80$:88 分位于第 80 百分位。
  2. (b) $z_{88}=(88-80.6)/9.78\approx0.76$:88 比均值高 0.76 个标准差。$z_{62}=(62-80.6)/9.78\approx-1.90$:62 比均值低 1.90 个标准差。
  3. 二者与均值相差都不超过 2 个标准差,按该规则都不是离群值,这与由 $Q_1=74$、$Q_3=88$ 得到的围栏 53 和 109 一致。
  4. 跨测验比较:若测验 B 的 $\mu=75$,$\sigma=5$,某学生得 86 分,则 $z=2.2$,比这里的 $z=0.76$ 更少见,尽管 86 低于 88。
Worked Example 6.3: Linear transformation例题 6.3:线性变换

Daily high temperatures in $^\circ$C for a city have $\bar{x}=20$, $s_x=3$, median 21 and $\text{IQR}=5$. Convert to $^\circ$F using $F=32+1.8C$.

  1. Mean: $\bar{y}=32+1.8(20)=68^\circ$F. Median: $32+1.8(21)=69.8^\circ$F.
  2. Standard deviation: $s_y=1.8(3)=5.4^\circ$F. IQR: $1.8(5)=9^\circ$F. The added 32 does not affect spread.
  3. Shape does not change; a $z$-score is unchanged too. For example, 26$^\circ$C has $z=(26-20)/3=2.0$, and the equivalent $78.8^\circ$F has $z=(78.8-68)/5.4=2.0$.
  4. Interpretation: "In degrees Fahrenheit the typical daily high is 68$^\circ$F with a standard deviation of 5.4$^\circ$F."

某城市每日最高气温($^\circ$C)的 $\bar{x}=20$,$s_x=3$,中位数 21,$\text{IQR}=5$。用 $F=32+1.8C$ 转换为华氏度。

  1. 均值:$\bar{y}=32+1.8(20)=68^\circ$F。中位数:$32+1.8(21)=69.8^\circ$F。
  2. 标准差:$s_y=1.8(3)=5.4^\circ$F。四分位距:$1.8(5)=9^\circ$F。加上的 32 不影响离散程度。
  3. 形状不变,z 分数也不变。例如 26$^\circ$C 的 $z=(26-20)/3=2.0$,对应的 $78.8^\circ$F 的 $z=(78.8-68)/5.4=2.0$。
  4. 解释:「以华氏度计,每日最高气温的典型值为 68$^\circ$F,标准差为 5.4$^\circ$F。」
Common Mistake: Deleting an outlier because a rule flags it

Do not drop an outlier just because a rule flags it. Check for a recording error, report the value, and, if it is kept, use resistant summaries. Do not claim a boxplot shows modes or gaps (it hides them). And never add a constant to a standard deviation when changing units: only the multiplier affects $s$.

常见错误:仅因规则标出就删除离群值

不要仅因规则标出就删除离群值。应检查是否记录有误,报告该值,如保留则使用抗干扰的概括量。不要说箱线图能显示峰或空隙(它会把这些隐藏起来)。换单位时也不要给标准差加常数:只有乘数会影响 $s$。

TI-84 and Nspire
  1. Enter the data in L1. 2nd Y= (STAT PLOT) > 1:Plot1: On, choose the second boxplot icon (the modified boxplot, with outliers as separate marks), Xlist: L1, Freq: 1.
  2. ZoomStat, then TRACE and the arrow keys step through minX, Q1, Med, Q3, maxX and any outlier. The first boxplot icon draws an ordinary boxplot with whiskers to the min and max; use the modified one when you need to show outliers.
  3. z-score: (88-80.6)/9.78 on the home screen. Percentile of a value: sum(L1≤88)/dim(L1) using 2nd MATH (TEST) 6:≤ gives 0.8.
  4. Transformed list: L1*1.8+32→L2 (type L1*1.8+32, press STO>, 2nd 2 for L2), then 1-Var Stats L2.
  5. Nspire: Data & Statistics, drop the list on the horizontal axis, Menu > Plot Type > Box Plot (it plots outliers separately as a modified boxplot; check Menu > Plot Properties if they are not marked).
TI-84 与 Nspire 操作
  1. 把数据输入 L1。2nd Y=(STAT PLOT)> 1:Plot1:On,选第二个箱线图图标(修正箱线图,离群值单独标出),Xlist: L1,Freq: 1。
  2. ZoomStat,然后用 TRACE 和方向键依次读取 minX、Q1、Med、Q3、maxX 和离群值。第一个箱线图图标画的是须延伸到最小值、最大值的普通箱线图;需要显示离群值时应使用修正箱线图。
  3. z 分数:在主屏幕输入 (88-80.6)/9.78。某值的百分位:用 2nd MATH(TEST)6:≤ 输入 sum(L1≤88)/dim(L1),得 0.8。
  4. 变换后的列表:输入 L1*1.8+32→L2(按 STO>,2nd 2 得 L2),再对 L2 做 1-Var Stats。
  5. Nspire:Data & Statistics,把列表放到横轴,Menu > Plot Type > Box Plot(它把离群值单独标出,即修正箱线图;若未标出,请检查 Menu > Plot Properties)。
Exam tip考试提示

When a question says "identify any outliers" or "is the value an outlier?", show the fences or the z-score with numbers and compare, then state the conclusion in context. Saying "it looks far away" is not an answer.

题目问「找出离群值」或「该值是否为离群值」时,要列出围栏或 z 分数的具体数字并作比较,再结合情境下结论。只说「看起来很远」不能算作答案。

FRQ response model: outlier rule and boxplot简答题答题模型:离群值规则与箱线图

Prompt. A coach records the time (seconds) 11 runners take for a 400 m trial: 52, 54, 55, 55, 56, 57, 58, 59, 60, 62, 73. Is the 73-second time an outlier? Justify with the 1.5 IQR rule.

  • Quartiles: $n=11$, median 57; lower half 52, 54, 55, 55, 56 gives $Q_1=55$; upper half 58, 59, 60, 62, 73 gives $Q_3=60$; $\text{IQR}=5$.
  • Fence: $60+1.5(5)=67.5$.
  • Conclusion in context: since $73>67.5$, the 73-second time is a high outlier among these 11 runners; the whisker would end at 62.

题目。 教练记录了 11 名运动员 400 米测试用时(秒):52、54、55、55、56、57、58、59、60、62、73。73 秒是否为离群值?请用 1.5 倍四分位距规则说明。

  • 四分位数:$n=11$,中位数 57;下半部分 52、54、55、55、56 得 $Q_1=55$;上半部分 58、59、60、62、73 得 $Q_3=60$;$\text{IQR}=5$。
  • 围栏:$60+1.5(5)=67.5$。
  • 结合情境的结论:因为 $73>67.5$,73 秒是这 11 名运动员中的高端离群值;上须应到 62。
Check your understanding自我检测
A distribution has $Q_1=20$ and $Q_3=36$. What values mark the outlier fences?某分布的 $Q_1=20$,$Q_3=36$。离群值的围栏是哪两个值?

$\text{IQR}=16$, so the fences are $20-24=-4$ and $36+24=60$.

$\text{IQR}=16$,所以围栏为 $20-24=-4$ 和 $36+24=60$。

A score of 70 has $z=-1.5$ on a test with $s=8$. What is the class mean?某测验中成绩 70 的 $z=-1.5$,$s=8$。班级平均分是多少?

$-1.5=(70-\bar{x})/8$, so $\bar{x}=70+12=82$.

$-1.5=(70-\bar{x})/8$,所以 $\bar{x}=70+12=82$。

Every value in a data set is multiplied by 2 and then 5 is subtracted. The old mean is 10 and standard deviation 3. Give the new mean and standard deviation.把数据集中每个值乘以 2 再减 5。原均值为 10,标准差为 3。求新的均值和标准差。

New mean $2(10)-5=15$; new standard deviation $2(3)=6$ (subtracting 5 does not change spread).

新均值 $2(10)-5=15$;新标准差 $2(3)=6$(减 5 不改变离散程度)。

A student is at the 90th percentile on an exam. Does this mean she scored 90%?某学生的成绩在考试中位于第 90 百分位。这是否表示她得了 90 分(百分制)?

No. It means 90% of the scores are at or below hers; her raw score could be anything.

不是。这表示有 90% 的成绩小于或等于她的成绩;她的原始分数可以是任何值。

Comparing Distributions比较分布

Learning objectives学习目标
  • Compare two or more distributions on shape, center, spread and unusual features, using comparative language and numbers.
  • Choose the appropriate summaries (mean and SD, or median and IQR) for each comparison.
  • Read side-by-side boxplots, back-to-back stemplots and paired dotplots or histograms.
  • 使用比较性语言和具体数字,从形状、中心、离散程度和异常特征比较两个或多个分布。
  • 为每次比较选用合适的概括量(均值与标准差,或中位数与四分位距)。
  • 阅读并列箱线图、背靠背茎叶图以及成对的点图或直方图。
What you must know

A comparison must put both distributions in the same sentence with a comparative word: "larger than", "more variable than", "skewed right while B is skewed left". Cover shape, center, spread and unusual features, and use numbers from each group, with units and in context. Back-to-back stemplots, side-by-side boxplots and aligned dotplots or histograms on the same axis make comparison easy.

必备知识

比较时必须把两个分布放在同一个句子中并使用比较性词语:「大于」「变异更大」「A 右偏而 B 左偏」。要涵盖形状、中心、离散程度和异常特征,并给出各组带单位、结合情境的数字。背靠背茎叶图、并列箱线图以及同一坐标轴上对齐的点图或直方图都便于比较。

1020304050607080AABBMinutes spent on the assignment完成作业所用分钟数
Figure 7. Side-by-side boxplots of the minutes 11 students in each section spent on an assignment (Example 7.1). Section A has a high outlier at 75; Section B is centered higher.图 7. 两个班各 11 名学生完成作业所用分钟数的并列箱线图(例题 7.1)。A 班在 75 处有高端离群值;B 班的中心更高。
Worked Example 7.1: Compare two sections with five-number summaries例题 7.1:用五数概括比较两个班

Minutes on the same assignment for 11 students in each of two sections. A: 20, 25, 28, 30, 30, 32, 35, 36, 40, 42, 75. B: 15, 22, 30, 38, 40, 44, 45, 48, 50, 52, 55.

SectionMin$Q_1$Median$Q_3$MaxIQRMean$s_x$
A20283240751235.714.5
B15304450552039.912.8
  1. Outliers: A's fences are $28-18=10$ and $40+18=58$, so 75 is a high outlier. B's fences are $30-30=0$ and $50+30=80$: no outliers.
  2. Shape: A is skewed right (mean 35.7 above median 32, long upper tail from the outlier). B is skewed left (mean 39.9 below median 44; the lower whisker from 15 to 30 is much longer than the upper, 50 to 55).
  3. Center: B's median (44 minutes) is higher than A's (32 minutes).
  4. Spread: B's IQR (20 minutes) is larger than A's (12 minutes). A's larger range (55 against 40) and standard deviation (14.5 against 12.8) are caused by its outlier, so the resistant IQR is the fairer comparison.
  5. Conclusion: "Students in Section B typically spent longer on the assignment than students in Section A (median 44 against 32 minutes), and the middle half of B's times was more variable (IQR 20 against 12 minutes). A's times are skewed right with a high outlier at 75 minutes, while B's are skewed left with no outliers."

两个班各 11 名学生完成同一份作业的用时(分钟)。A 班:20、25、28、30、30、32、35、36、40、42、75。B 班:15、22、30、38、40、44、45、48、50、52、55。

班级最小值$Q_1$中位数$Q_3$最大值IQR均值$s_x$
A20283240751235.714.5
B15304450552039.912.8
  1. 离群值:A 班的围栏为 $28-18=10$ 和 $40+18=58$,所以 75 是高端离群值。B 班的围栏为 $30-30=0$ 和 $50+30=80$:没有离群值。
  2. 形状:A 班右偏(均值 35.7 高于中位数 32,离群值造成上端长尾)。B 班左偏(均值 39.9 低于中位数 44;下须从 15 到 30,比上须 50 到 55 长得多)。
  3. 中心:B 班的中位数(44 分钟)高于 A 班(32 分钟)。
  4. 离散程度:B 班的四分位距(20 分钟)大于 A 班(12 分钟)。A 班较大的极差(55 对 40)和标准差(14.5 对 12.8)是由离群值造成的,所以抗干扰的四分位距是更公平的比较。
  5. 结论:「B 班学生完成作业通常比 A 班学生用时更长(中位数 44 分钟对 32 分钟),且 B 班中间一半学生的用时变异更大(四分位距 20 分钟对 12 分钟)。A 班用时右偏,在 75 分钟处有高端离群值,而 B 班左偏且没有离群值。」
Worked Example 7.2: Compare using summary statistics only例题 7.2:仅用汇总统计量比较

Brand X batteries last a median of 9 hours with IQR 2 hours; Brand Y a median of 10 hours with IQR 5 hours. Which statements are supported?

  1. A typical Brand Y battery lasts longer: median 10 against 9 hours. Supported.
  2. Brand Y lifetimes are more variable in the middle half: IQR 5 against 2 hours. Supported.
  3. "Every Brand Y battery outlasts every Brand X battery" is not supported: with an IQR of 5 hours, many Y batteries last under 9 hours.
  4. A claim about the means, or about the shape, cannot be made from these summaries alone.

品牌 X 电池寿命的中位数为 9 小时,四分位距 2 小时;品牌 Y 的中位数为 10 小时,四分位距 5 小时。下列哪些说法有依据?

  1. 典型的品牌 Y 电池更耐用:中位数 10 小时对 9 小时。有依据。
  2. 品牌 Y 中间一半电池的寿命变异更大:四分位距 5 小时对 2 小时。有依据。
  3. 「每一块 Y 电池都比每一块 X 电池耐用」没有依据:Y 的四分位距为 5 小时,许多 Y 电池的寿命低于 9 小时。
  4. 仅凭这些汇总量,无法对均值或形状作出论断。
Worked Example: Median and mean disagree about which group is faster例题:中位数和均值对哪一组更快的判断不一致

Waiting times (minutes) for a bus on 12 mornings. Route 1: 3, 4, 5, 5, 6, 6, 7, 7, 8, 9, 10, 12. Route 2: 1, 2, 2, 3, 4, 5, 6, 9, 14, 16, 20, 25. Compare the distributions, then say which route suits a student who must arrive on time.

RouteMin$Q_1$Median$Q_3$MaxIQRMean$s_x$
1356.58.5123.56.832.59
212.55.5152512.58.927.97
  1. Outliers: Route 1 has fences $5-5.25<0$ and $8.5+5.25=13.75$, so none. Route 2 has fences $2.5-18.75<0$ and $15+18.75=33.75$, so none by the IQR rule. By the 2-standard-deviation rule, $8.92+2(7.97)\approx24.86$ and the wait of 25 is only just above it. Rules can disagree on a borderline value, so state which rule you use.
  2. Shape: Route 1 is roughly symmetric (mean 6.83 close to median 6.5). Route 2 is skewed right (mean 8.92 above median 5.5, with a long upper tail from 9 to 25).
  3. Center: the typical wait is a little shorter on Route 2 (median 5.5 against 6.5 minutes), yet its mean is higher (8.92 against 6.83) because the long waits pull the mean up. The median and the mean point to different routes, which is why the shape must be stated.
  4. Spread: Route 2 is far more variable (IQR 12.5 against 3.5 minutes; $s_x$ 7.97 against 2.59).

A complete answer states: "Route 2's typical wait is slightly shorter than Route 1's (median 5.5 against 6.5 minutes), but Route 2 is much more variable (IQR 12.5 against 3.5 minutes) and skewed right, with waits up to 25 minutes, while Route 1 is roughly symmetric with waits between 3 and 12 minutes. A student who must arrive on time should prefer Route 1, because its waits are predictable. These conclusions describe these 12 mornings only."

某公交线路 12 个早晨的候车时间(分钟)。线路 1:3、4、5、5、6、6、7、7、8、9、10、12。线路 2:1、2、2、3、4、5、6、9、14、16、20、25。比较两个分布,并说明哪条线路适合必须准时到达的学生。

线路最小值$Q_1$中位数$Q_3$最大值IQR均值$s_x$
1356.58.5123.56.832.59
212.55.5152512.58.927.97
  1. 离群值:线路 1 的围栏为 $5-5.25<0$ 和 $8.5+5.25=13.75$,没有离群值。线路 2 的围栏为 $2.5-18.75<0$ 和 $15+18.75=33.75$,按四分位距规则没有离群值。按 2 个标准差规则,$8.92+2(7.97)\approx24.86$,25 分钟只是略高于它。两种规则对临界值可能结论不同,所以要写明所用的规则。
  2. 形状:线路 1 大致对称(均值 6.83 接近中位数 6.5)。线路 2 右偏(均值 8.92 高于中位数 5.5,从 9 到 25 有一条很长的上尾)。
  3. 中心:线路 2 的典型候车时间稍短(中位数 5.5 对 6.5 分钟),但它的均值更高(8.92 对 6.83),因为长时间的等待把均值拉高。中位数和均值指向不同的线路,所以必须说明分布的形状。
  4. 离散程度:线路 2 的变异大得多(IQR 为 12.5 对 3.5 分钟;$s_x$ 为 7.97 对 2.59)。

完整答案要点:「线路 2 的典型候车时间比线路 1 稍短(中位数 5.5 对 6.5 分钟),但线路 2 的变异大得多(IQR 12.5 对 3.5 分钟)且右偏,候车时间最长达 25 分钟,而线路 1 大致对称,候车时间在 3 到 12 分钟之间。必须准时到达的学生应选线路 1,因为它的候车时间可以预测。这些结论只描述这 12 个早晨。」

Common Mistake: Listing the groups instead of comparing them

Listing the two groups' summaries one after the other ("A has median 32. B has median 44.") is not a comparison. Use a comparative word and both numbers in one sentence. Also, if the sample is not random, say the conclusion applies to these groups only.

常见错误:罗列各组而不是比较

把两组的汇总量一个接一个列出(「A 的中位数是 32,B 的中位数是 44」)并不是比较。要在同一句中使用比较性词语并写出两个数字。如果样本不是随机的,还要说明结论只适用于这些组。

TI-84 and Nspire
  1. Enter Section A in L1 and Section B in L2.
  2. 2nd Y=: turn on Plot1 (modified boxplot, Xlist: L1) and Plot2 (modified boxplot, Xlist: L2). ZoomStat draws both on one axis; TRACE reads the five-number summary of each.
  3. Run 1-Var Stats L1 and 1-Var Stats L2 to get the means, Sx, and quartiles that fill the comparison table.
  4. Nspire: in Data & Statistics, drop one list on the horizontal axis, make a box plot, then add the second list with Menu > Plot Properties > Add X Variable (menu names vary slightly by OS version).
TI-84 与 Nspire 操作
  1. 把 A 班数据输入 L1,B 班输入 L2。
  2. 2nd Y=:开启 Plot1(修正箱线图,Xlist: L1)和 Plot2(修正箱线图,Xlist: L2)。ZoomStat 会把两个图画在同一坐标轴上;TRACE 可读出各自的五数概括。
  3. 分别运行 1-Var Stats L1 与 1-Var Stats L2,得到填入比较表的均值、Sx 和四分位数。
  4. Nspire:在 Data & Statistics 中把一个列表放到横轴,画箱线图,再用 Menu > Plot Properties > Add X Variable 添加第二个列表(菜单名称因系统版本略有不同)。
Exam tip考试提示

A complete comparison includes: a correct statement about center with both values, a correct statement about spread, a statement about shape or an unusual feature, and context. Use words such as "higher", "more variable", "whereas", and avoid describing each group separately.

完整的比较包括:关于中心的正确陈述(含两个数值)、关于离散程度的正确陈述、关于形状或异常特征的陈述,以及情境。使用「更高」「变异更大」「而」等词,避免把两组分开单独描述。

FRQ response model: compare two distributions简答题答题模型:比较两个分布

Prompt. Use the data of Example 7.1. Compare the distributions of assignment times in the two sections.

  • Center: B's median, 44 minutes, exceeds A's, 32 minutes.
  • Spread: B's IQR, 20 minutes, exceeds A's, 12 minutes (A's range and SD are inflated by an outlier).
  • Shape: A is skewed right; B is skewed left.
  • Unusual feature in context: A has a high outlier at 75 minutes (above the fence 58); B has none.

题目。 使用例题 7.1 的数据。比较两个班完成作业所用时间的分布。

  • 中心:B 班中位数 44 分钟大于 A 班 32 分钟。
  • 离散程度:B 班四分位距 20 分钟大于 A 班 12 分钟(A 班的极差与标准差被离群值抬高)。
  • 形状:A 班右偏;B 班左偏。
  • 情境中的异常特征:A 班在 75 分钟处有高端离群值(高于围栏 58);B 班没有。
FRQ response model: outliers, comparison and a data correction简答题答题模型:离群值、比较与数据更正

Prompt. Use the Section A and Section B times of Example 7.1 (minutes on the same assignment, 11 students in each section). (a) Use the $1.5\times\text{IQR}$ rule to decide whether Section A has any outliers, then check the 2-standard-deviation rule. (b) Compare the distributions of assignment time in the two sections. (c) The teacher finds that the 75 in Section A was a recording error and should be 45. Which of the Section A mean and median changes? Justify without recomputing every summary, and give the new mean.

  • Procedure and scope: five-number summaries, the 1.5 IQR rule, and a comparison of shape, center, spread and unusual features. The data are the 11 students in each section, so the conclusions describe these students and are not claims about other classes.
  • (a) Fences and conclusion: for Section A, $Q_1=28$, $Q_3=40$ and $\text{IQR}=12$ minutes, so the fences are $28-1.5(12)=10$ and $40+1.5(12)=58$. No value is below 10 and 75 is above 58, so 75 minutes is the only outlier in Section A. The other rule agrees: $\bar{x}\approx35.7$ and $s_x\approx14.5$ give $35.7+2(14.5)=64.7<75$.
  • (b) Comparison in context: "Students in Section B typically spent longer on the assignment than students in Section A (median 44 against 32 minutes), and the middle half of B's times was more variable (IQR 20 against 12 minutes). A is skewed right with a high outlier at 75 minutes, while B is skewed left with no outliers."
  • (c) Effect of the correction: the median stays 32 minutes. It is the 6th of the 11 ordered values, and 45 is still above 32, so the middle position does not change. The total falls by 30 (from 393 to 363), so the mean decreases from about 35.7 to $363/11=33.0$ minutes. The mean is not resistant to the outlier; the median is.

题目。使用例题 7.1 中 A 班和 B 班的用时(同一份作业的用时,单位分钟,每班 11 名学生)。(a) 用 $1.5\times\text{IQR}$ 规则判断 A 班是否有离群值,再检验「距均值超过 2 个标准差」规则。(b) 比较两个班作业用时的分布。(c) 老师发现 A 班的 75 是记录错误,应为 45。A 班的均值和中位数哪一个会改变?不必重算全部汇总量,说明理由,并给出新的均值。

  • 方法与范围:五数概括、1.5 IQR 规则,以及对形状、中心、离散程度和异常特征的比较。数据就是每个班的 11 名学生,所以结论只描述这些学生,不推广到其他班级。
  • (a) 围栏与结论:A 班 $Q_1=28$,$Q_3=40$,$\text{IQR}=12$ 分钟,围栏为 $28-1.5(12)=10$ 和 $40+1.5(12)=58$。没有值低于 10,75 高于 58,所以 75 分钟是 A 班唯一的离群值。另一规则的结论一致:$\bar{x}\approx35.7$、$s_x\approx14.5$,$35.7+2(14.5)=64.7<75$。
  • (b) 结合情境比较:「B 班学生完成作业通常比 A 班学生用时更长(中位数 44 分钟对 32 分钟),且 B 班中间一半学生的用时变异更大(四分位距 20 分钟对 12 分钟)。A 班右偏,在 75 分钟处有高端离群值,而 B 班左偏且没有离群值。」
  • (c) 更正的影响:中位数仍为 32 分钟。它是 11 个排序值中的第 6 个,而 45 仍高于 32,所以中间位置不变。总和减少 30(由 393 变为 363),均值由约 35.7 降为 $363/11=33.0$ 分钟。均值不抗离群值干扰,中位数抗干扰。
Check your understanding自我检测
Two distributions have the same median but the first has IQR 4 and the second IQR 11. What do you conclude?两个分布的中位数相同,第一个的四分位距为 4,第二个为 11。你得出什么结论?

The typical values are equal, but the second distribution is more variable (its middle half is spread over a wider interval).

典型值相同,但第二个分布变异更大(中间一半数据分布在更宽的区间上)。

Why compare medians rather than means for Section A in Example 7.1?在例题 7.1 中为什么对 A 班比较中位数而不是均值?

A is skewed right with an outlier (75), and the mean (35.7) is pulled up by it, while the median (32) is resistant.

A 班右偏且有离群值(75),均值(35.7)被它拉高,而中位数(32)具有抗干扰性。

A boxplot comparison shows B's box entirely above A's box. What can you say?并列箱线图中 B 的箱完全高于 A 的箱。能说明什么?

B's middle 50% of values are all higher than A's middle 50%: B's $Q_1$ is greater than A's $Q_3$, a clear difference in center.

B 中间 50% 的数据全部高于 A 中间 50% 的数据,即 B 的 $Q_1$ 大于 A 的 $Q_3$,中心有明显差异。

Can you tell from side-by-side boxplots whether a distribution is bimodal?能否从并列箱线图判断某分布是否为双峰?

No. Boxplots hide peaks, gaps and clusters; use a dotplot or histogram for that.

不能。箱线图会隐藏峰、空隙和集群;要判断需使用点图或直方图。

Formula and Calculator Toolkit公式与计算器工具

TaskFormula or command
Relative frequency$\text{count}/n$
Mean, standard deviation$\bar{x}=\frac{1}{n}\sum x_i$, $s_x=\sqrt{\frac{\sum(x_i-\bar{x})^2}{n-1}}$; TI-84 1-Var Stats
Quartiles, IQRmedians of lower and upper halves; $\text{IQR}=Q_3-Q_1$
1.5 IQR fences$Q_1-1.5\,\text{IQR}$ and $Q_3+1.5\,\text{IQR}$
2-SD outlier rule$|x-\bar{x}|>2s_x$ (also on the 2027 exam)
z-score$z=(x-\bar{x})/s_x$ or $(x-\mu)/\sigma$
Transformation $y=a+bx$$\bar{y}=a+b\bar{x}$, $s_y=|b|s_x$, $\text{IQR}_y=|b|\,\text{IQR}_x$
Normal areanormalcdf(lower,upper,μ,σ); Nspire: Menu > Probability > Distributions > Normal Cdf
Normal cutoffinvNorm(area left,μ,σ); Nspire: Inverse Normal in the same menu
Empirical rule68%, 95%, 99.7% within 1, 2, 3 SD of the mean
任务公式或命令
相对频数(count)$\text{count}/n$
均值、标准差$\bar{x}=\frac{1}{n}\sum x_i$,$s_x=\sqrt{\frac{\sum(x_i-\bar{x})^2}{n-1}}$;TI-84 1-Var Stats
四分位数、IQR上、下半部分的中位数;$\text{IQR}=Q_3-Q_1$
1.5 倍 IQR 围栏$Q_1-1.5\,\text{IQR}$ 与 $Q_3+1.5\,\text{IQR}$
2 倍标准差离群值规则$|x-\bar{x}|>2s_x$(也在 2027 考试中)
z 分数$z=(x-\bar{x})/s_x$ 或 $(x-\mu)/\sigma$
变换 $y=a+bx$$\bar{y}=a+b\bar{x}$,$s_y=|b|s_x$,$\text{IQR}_y=|b|\,\text{IQR}_x$
正态分布面积normalcdf(下限,上限,μ,σ);Nspire:Menu > Probability > Distributions > Normal Cdf
正态分布分界值invNorm(左侧面积,μ,σ);Nspire:同一菜单中的 Inverse Normal
经验法则均值的 1、2、3 个标准差内分别约 68%、95%、99.7%

Common Errors and Their Corrections常见错误与修正

ErrorCorrection
Calling a ZIP code or jersey number quantitativeClassify by meaning: it is categorical
Bar chart axis starting above 0Start at 0; bars encode value by length
Leaving gaps between histogram bars, or no gaps in a bar chartHistograms touch; bar charts have gaps
Naming skew by where the peak isSkew is named for the long tail
Describing center onlyGive shape, outliers, center and spread, in context with units
Using the mean and SD for a skewed distribution with outliersUse the median and IQR, and say they are resistant
Reporting $\sigma_x$ for a sampleReport $s_x$ (Sx); it divides by $n-1$
Declaring an outlier without a ruleShow the fence or z-score with numbers
Listing two groups one after the otherCompare in one sentence with a comparative word
Skipping the sketch in a normal problemDraw and shade the curve, label $\mu$ and the cutoff
Giving invNorm a right-tail areainvNorm always uses area to the left
错误修正
把邮编或球衣号码当作定量变量依据含义分类:它们是分类变量
条形图坐标轴不从 0 开始从 0 开始;条形靠长度表示数值
直方图矩形之间留空隙,或条形图没有间隙直方图矩形相连;条形图有间隙
以峰的位置命名偏态偏态以长尾所在一侧命名
只描述中心写全形状、离群值、中心和离散程度,结合情境并带单位
对有离群值的偏态分布使用均值和标准差使用中位数和四分位距,并说明它们具有抗干扰性
对样本报告 $\sigma_x$报告 $s_x$(Sx),它除以 $n-1$
不给规则就断定离群值用具体数字列出围栏或 z 分数
把两组一个接一个罗列用比较性词语在一句话中比较
正态问题不画草图画出并涂阴影,标注 $\mu$ 和分界值
给 invNorm 输入右尾面积invNorm 永远使用左侧面积

Flashcards闪卡

Select a card to reveal the answer.

点击卡片查看答案。

Unit Quiz单元自测

1. Which variable is categorical?

Answer: C. Student ID digits are labels; averaging them is meaningless.

1. 哪个变量是分类变量?

答案:C. 学号的数字只是标签,求平均没有意义。

2. A distribution of household incomes is skewed right. Which statement is most likely true?

Answer: B. The long right tail pulls the mean above the median.

2. 家庭收入的分布右偏。下列哪项最可能正确?

答案:B. 右侧长尾把均值拉到中位数之上。

3. What is the IQR of 2, 4, 4, 5, 7, 9, 12, 20?

Answer: B. $Q_1=4$ and $Q_3=10.5$, so IQR = 6.5.

3. 2、4、4、5、7、9、12、20 的四分位距是多少?

答案:B. $Q_1=4$,$Q_3=10.5$,所以四分位距为 6.5。

4. A distribution has $Q_1=20$ and $Q_3=36$. Which value is an outlier by the 1.5 IQR rule?

Answer: C. The fences are -4 and 60; only 61 is outside.

4. 某分布 $Q_1=20$,$Q_3=36$。按 1.5 倍四分位距规则,哪个值是离群值?

答案:C. 围栏为 -4 和 60,只有 61 在围栏之外。

5. Every value is multiplied by 3 and then 4 is added. The old standard deviation was 2. What is the new standard deviation?

Answer: B. Only the multiplier affects spread: $3\times2=6$.

5. 每个值先乘以 3 再加 4,原标准差为 2。新的标准差是多少?

答案:B. 只有乘数影响离散程度:$3\times2=6$。

6. Which sentence is a comparison?

Answer: B. It uses a comparative word, both values and units in one sentence.

6. 哪句话是比较?

答案:B. 它在一句话中使用了比较性词语、两个数值和单位。

7. A bar chart's vertical axis starts at 50 instead of 0. What is the main problem?

Answer: B. Bar length encodes value, so a truncated axis exaggerates differences.

7. 条形图的纵轴从 50 而不是 0 开始。主要问题是什么?

答案:B. 条形长度表示数值,截断的坐标轴会夸大差异。

8. Which statistic is resistant to outliers?

Answer: C. The IQR depends only on the quartiles; the others change with extreme values.

8. 下列哪个统计量对离群值具有抗干扰性?

答案:C. 四分位距只取决于四分位数;其余各量会随极端值变化。

9. In Table 2.1, what percent of the Grade 12 students come to school by car?

Answer: B. $70/130=53.8\%$. 28.0% is the joint percentage (over 250), 77.8% conditions on car riders, 36.0% is the car marginal.

9. 在表 2.1 中,12 年级学生有百分之几由汽车接送?

答案: B. $70/130=53.8\%$。28.0% 是联合百分比(除以 250),77.8% 以汽车接送者为条件,36.0% 是汽车的边际百分比。

10. A random sample of 150 of a school's 2400 students finds that 96 support a later start time. Which statement is correct?

Answer: D. $\hat{p}=96/150=0.64$ is computed from the sample, so it is a statistic that estimates the unknown parameter $p$. Randomness of the sample does not turn a statistic into a parameter, and the count 96 is not the proportion.

10. 从某校 2400 名学生中随机抽取 150 名,发现 96 人支持推迟上学时间。下列哪项正确?

答案:D. $\hat{p}=96/150=0.64$ 由样本算出,所以它是估计未知参数 $p$ 的统计量。样本是随机的并不会使统计量变成参数,而计数 96 也不是比例。

11. Of 160 sophomores surveyed, 56 use a study app; of 240 juniors surveyed, 108 use it. Which statement best compares the two groups?

Answer: B. Compare within each group: $108/240=45.0\%$ and $56/160=35.0\%$. Option A compares counts and mislabels the difference; C uses the overall rate; D divides by the grand total (a joint percentage) instead of the group size.

11. 在被调查的 160 名十年级学生中有 56 人使用学习应用;在 240 名十一年级学生中有 108 人使用。下列哪项最恰当地比较了两组?

答案:B. 应在各组内比较:$108/240=45.0\%$,$56/160=35.0\%$。选项 A 比较的是人数,并且把差异说错了;C 用的是总体比率;D 除以了总数(联合百分比)而不是该组人数。

12. A data set has mean 50 and standard deviation 8. Which value is an outlier by the rule "more than 2 standard deviations from the mean"?

Answer: C. The cutoffs are $50-2(8)=34$ and $50+2(8)=66$. Only 33 lies outside them. The values 35 and 65 have $|z|=1.875$ and 62 has $z=1.5$, so none of those is flagged.

12. 一组数据的均值为 50,标准差为 8。按「与均值相差超过 2 个标准差」的规则,哪个值是离群值?

答案:C. 界限为 $50-2(8)=34$ 和 $50+2(8)=66$。只有 33 在界限之外。35 和 65 的 $|z|=1.875$,62 的 $z=1.5$,它们都不会被标出。