Comparing Categorical Groups
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| categorical variables | 分类变量 | fēn lèi biàn liàng |
| conditional distributions/kənˈdɪʃənl ˌdɪstrɪˈbjuːʃnz/ | 条件分布 | tiáo jiàn fēn bù |
| proportions | 比例 | bǐ lì |
| raw counts | 原始频数 | yuán shǐ pín shuò |
| Association/əˌsəʊsɪˈeɪʃn/ | 关联 | guān lián |
| independent/ˌɪndɪˈpendənt/ | 独立 | dú lì |
| segmented bar chart/seɡˈmentɪd bɑː tʃɑːt/ | 分段条形图 | fēn duàn tiáo xíng tú |
| sampling variation | 抽样变异 | chōu yàng biàn yì |
| sample sizes | 样本量 | yàng běn liàng |
| causation/kɔːˈseɪʃn/ | 因果关系 | yīn guǒ guān xì |
| confounding variable/kənˈfaʊndɪŋ ˈveərɪəbl/ | 混杂变量 | hùn zá biàn liàng |
| Observational data | 观察性数据 | guān chá xìng shù jù |
| experiment/ekˈsperɪmənt/ | 实验 | shí yàn |
| treatment group | 处理组 | chǔ lǐ zǔ |
| comparison group | 对照组 | duì zhào zǔ |
| success rates | 成功率 | chéng gōng lǜ |
公平地比较各组
- 要看两个分类变量是否相关,就比较各组的条件分布。
- 条件分布是某个变量在某一个组内的一组比例。
- “女生的科目构成和男生的相比是什么样的?”
- 当各组人数不同时,用比例(而非原始计数)能让比较更公平。
关联与独立
- 如果各组的条件分布相同,这两个变量看起来是独立的。
- 如果它们不同,两个变量就存在关联——知道一个变量的情况,就能了解另一个变量的一些信息。
- 组间差异越大,关联越强。
- “各处的比例都相同”表明没有关系。

分段条形图比较了各组的条件分布
比例之差
- 用比例之差来量化关联:例如,$60\%$ 的女生选择了科学,而男生中这一比例为 $40\%$。
- 这 $20$ 个百分点的差距就是存在关系的证据,需要结合语境陈述。
- 始终要说清哪个组的比例更高、高多少。
- 样本中的差异可能反映抽样变异;评估总体中是否存在关联的证据时,差异的大小和样本量都很重要。

关联仍然不是因果
- 即使两个分类变量之间关联很强,也不能证明因果关系。
- 一个隐藏的混杂变量可能同时影响两者。
- 观察性数据能揭示关联,但很少能确定原因。
- 只有设计良好的实验(第 3 单元)才能支持因果主张。
判断关联时,始终比较条件比例,绝不用原始计数——人数更多的组在哪里计数都更大,即使没有任何关系。而且“$60\%$ 对 $40\%$”是一种关联,并不能证明身为女生导致了选择科学:一个混杂变量也许能解释这个差距。
锻炼习惯和睡得好有关系吗?调查结果:
- 锻炼者中:$70\%$ 睡得好。不锻炼者中:$45\%$ 睡得好。
- 两个条件分布不同($70\%$ 对 $45\%$)→ 存在关联。
- 但也许健康的人既锻炼又睡得好——一个混杂因素。并未证明因果。

比较各组的条件分布:若它们相同,变量看起来独立;若它们不同,就存在关联,用比例之差(结合语境陈述)来衡量。关联仍不能证明因果关系——可能有混杂变量在起作用。
从年龄作为混杂因素入手写作
- 处理组成员大多比对照组成员年长。
- 成功率相差 15 个百分点,而年龄可能影响成功率。
A treatment group is mostly older than its comparison group. Success rates differ by 15 percentage points, and age can affect success. Why is the gap hard to attribute to treatment?
A confounder is mixed up with the factor you want to study.
A treatment group is older than its comparison group, and age can affect success. What role does age play?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Age and treatment changed together.
One group's conditional distribution
Within one group, the slices are its conditional distribution.
Two categorical variables appear independent when their conditional distributions are...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Same conditional distributions → no association → independence.
70% of exercisers vs 45% of non-exercisers sleep well. What is the difference in proportions, in percentage points?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
70 − 45 = 25 percentage points.
You should compare raw counts, not proportions, to judge association between categorical variables.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Compare conditional proportions — counts are unfair when groups differ in size.
A hidden variable that could drive both variables and explain an association is a ___ variable.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
A confounding variable offers an alternative explanation.
Which statements about association vs. causation are correct?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Even strong association never by itself proves causation.
出了什么问题?只有网站团队能看到这些信息。