相关性
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| linear trend | 线性趋势 | xiàn xìng qū shì |
| Correlation/ˌkɒrɪˈleɪʃn/ | 相关性 | xiāng guān xìng |
| linear relationship/ˈlɪnɪə rɪˈleɪʃənʃɪp/ | 线性关系 | xiàn xìng guān xì |
| linear association | 线性相关 | xiàn xìng xiāng guān |
| variable/ˈveərɪəbl/ | 变量 | biàn liàng |
| Positive correlation/ˈpɒzɪtɪv ˌkɒrɪˈleɪʃn/ | 正相关 | zhèng xiāng guān |
| negative correlation/ˈneɡətɪv ˌkɒrɪˈleɪʃn/ | 负相关 | fù xiāng guān |
| curve/kɜːv/ | 曲线 | qū xiàn |
| outlier/ˈaʊtlaɪə/ | 异常值 | yì cháng zhí |
| scatterplot/ˈskætəplɒt/ | 散点图 | sàn diǎn tú |
| causation/kɔːˈseɪʃn/ | 因果关系 | yīn guǒ guān xì |
| lurking variable | 潜伏变量 | qián fú biàn liàng |
| experiment/ekˈsperɪmənt/ | 实验 | shí yàn |
| not resistant | 不稳健 | bù wěn jiàn |
| datasets | 数据集 | shù jù jí |
用一个数概括线性趋势
- 相关系数 $r$ 用一个数来表示线性关系的强度和方向。
- 它的符号与方向一致:$r>0$ 为正,$r<0$ 为负。
- 它的大小衡量紧密程度:接近 $\pm 1$ = 点紧密贴合直线,接近 $0$ = 没有线性趋势。
- $r$ 把“看起来相当强”变成一个精确、可比较的数值。
永远在 −1 到 1 之间
- 相关系数是有界的:永远有 $-1 \le r \le 1$。
- $r=+1$:一条完全上升的直线;$r=-1$:一条完全下降的直线。
- $r=0$:没有线性相关(点仍可能呈现非线性模式)。
- $r$ 没有单位,而且更换哪个变量是 $x$ 也不会改变它。

正相关的变量一起上升;负相关的变量朝相反方向变化
什么时候 r 会误导
- $r$ 只衡量线性强度——一条很强的曲线可能给出中等的 $r$。
- 单个离群值就能把 $r$ 大幅拉高或拉低。
- 所以报告 $r$ 之前,永远先看散点图。
- 在弯曲的或被离群值主导的图上,高 $r$ 是一个虚假的概括。

相关不是因果
- 大的 $r$ 表明变量一起变动,而不是一个导致另一个。
- 冰淇淋销量和溺水事件相关——两者都在夏天上升(高温是潜伏变量)。
- 确立因果需要实验,而不只是高相关。
- “相关不蕴含因果”是整个单元的口头禅。
$r$ 是一个线性度量,而且不稳健。弯曲的关系即便变量紧密相关,$r$ 也可能很小;而一个离群值能把 $r$ 大幅抬高或压低。信任 $r$ 之前,永远先看散点图——并记住高 $r$ 永远不能证明因果。
两个数据集的相关系数大小都很小。
- **数据集 A:**一个真实的、微弱而分散的线性趋势——$r=0.2$ 如实反映了这种情况。
- **数据集 B:**一条很强的 U 形曲线——线性度量 $r$ 接近 $0$,掩盖了真实的关系。
- $r$ 很小,情况却不同——仅凭相关系数无法区分微弱的线性趋势和很强的曲线关系。
相关系数 $r$ 衡量线性关系的强度和方向,且 $-1 \le r \le 1$(符号 = 方向,大小 = 紧密程度,无单位)。对弯曲数据或有离群值时它会误导,所以总要检查散点图——而且相关永远不蕴含因果。
从r等于负0.9入手
- 散点图向下倾斜,且点紧密贴合一条直线。
- 相关系数为负0.9。
A scatterplot slopes downward, the points hug a straight line, and r=−0.9. Interpret its direction and strength.
The sign is direction. The size is strength.
What does r equal to negative 0.9 mean?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Close to negative 1 is a strong downward line.
Correlation and the point cloud
Increase the magnitude of the correlation and the points hug the line more tightly.
What is the largest possible value of a correlation coefficient r?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
r ranges from −1 to 1, so the maximum is 1.
A correlation of r = 0 means there is definitely no relationship of any kind between the variables.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
r = 0 means no LINEAR relationship; a strong curve can still exist.
Ice-cream sales and drownings both rise in summer, giving a high correlation. This is best explained by...
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Summer heat drives both — correlation without causation.
Which can make r a misleading summary?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
r is unitless; the real traps are curves, outliers, and skipping the plot.
Correlation r measures the strength and direction of a ___ relationship (one word).
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
r captures linear strength only.
出了什么问题?只有网站团队能看到这些信息。