Linear Regression Models
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| scatterplot/ˈskætəplɒt/ | 散点图 | sàn diǎn tú |
| linear/ˈlɪnɪə/ | 线性 | xiàn xìng |
| regression line/rɪˈɡreʃn laɪn/ | 回归线 | huí guī xiàn |
| predicted response | 预测响应值 | yù cè xiǎng yìng zhí |
| intercept/ˌɪntəˈsept/ | 截距 | jié jù |
| slope/sləʊp/ | 斜率 | xié lǜ |
| trend/trend/ | 趋势 | qū shì |
| association/əˌsəʊsɪˈeɪʃn/ | 相关 | xiāng guān |
| range/reɪndʒ/ | 取值范围 | qǔ zhí fàn wéi |
| Extrapolation/ekˈstræpəleɪʃn/ | 外推 | wài tuī |
| model/ˈmɒdl/ | 模型 | mó xíng |
| least-squares regression line/liːst skweəz rɪˈɡreʃn laɪn/ | 最小二乘回归直线 | zuì xiǎo èr chéng huí guī zhí xiàn |
穿过点云的一条线
- 当散点图看起来是线性的,就用一条回归线来概括它。
- 我们把预测响应值写成 $\hat{y} = a + bx$(上方的帽子表示“预测的”)。
- $a$ 是 $y$ 轴截距,$b$ 是斜率——这两个量确定了这条直线。
- 这条直线让我们能够根据任意 $x$ 预测 $y$,并精确描述趋势。
解读斜率
- 斜率$b$表示**$x$每增加 $1$ 个单位时,$y$的预测变化量**。
- 结合语境:“每多学一个小时,预测多得大约 $b$ 分。”
- 它的符号与相关的方向一致(正或负)。
- 在考试中,解读部分的分数几乎都在于对斜率的解读。

解读 ŷ = a + bx:斜率表示 x 每增加一个单位时的预测变化量;截距表示 x = 0 时的预测值
解读截距
- 截距$a$是当$x = 0$时$y$的预测值。
- 有时有意义(“零学习时间的基线分数”),有时没有。
- 如果 $x = 0$ 远在数据之外,截距就只是一个数学上的锚点。
- 结合语境解读它——当 $x=0$ 没有现实意义时,就要如实说明。

不要外推
- 只在观测到的 $x$ 值的范围之内使用这条直线。
- 外推——预测远在数据范围之外的值——是不可靠的。
- 线性模式在数据范围之外可能根本不会延续。
- 一个拟合学习时间为 $0$–$8$ 小时的学生数据的模型,无法对学习 $40$ 小时的情况作出可信的预测。

把斜率解读为预测的变化,而不是实际的变化:“每多一个小时伴随着大约多 $b$ 分”,而不是“导致”。并且永远不要相信来自外推的预测——代入一个远在数据范围之外的 $x$,即使算术成立,也会得到数据无法支撑的数字。
对于观测到的学习时间为 0–8 小时的学生,$\hat{y} = 55 + 4x$根据学习小时数预测分数。
- **斜率 $4$:**每多学一个小时,预测多得大约 $4$ 分。
- **截距 $55$:**预测学习 $0$ 小时的学生得 $55$ 分。
- 在 $x=3$ 处预测:$\hat{y} = 55 + 4(3) = 67$ 分——稳妥地处于数据取值范围之内。
最小二乘回归直线$\hat{y} = a + bx$用于描述线性趋势。斜率$b$表示**$x$每增加 $1$ 个单位时,$y$的预测变化量**;截距$a$是$x=0$时$y$的预测值。只在数据范围之内进行预测——超出范围的外推不可靠。
根据数据作答:求预测值
- 一条直线的预测 y 值等于 4 加上 3 乘以 x。
- x 为 5,处于观测范围 0–8 之内。
For the line predicted y=4+3x, find the prediction when x=5, within the observed range 0–8. Show your substitution.
Substitute x into the equation of the line.
For predicted y=4+3x, what is the prediction at x=5?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
4 plus 15 is 19. Other options — 4 (the intercept only); 67 (the other line).
The least-squares line
The fitted line predicts y for any x within the data.
For y-hat = 55 + 4x, predict the score when x = 3 hours.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
55 + 4(3) = 55 + 12 = 67.
In y-hat = 55 + 4x, what does the slope 4 mean?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Slope = predicted change in y per 1-unit increase in x.
Using the model to predict far outside the observed range of x is called extrapolation, and it is unreliable.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Extrapolation is risky — the pattern may not continue.
In y-hat = a + bx, the letter a is the y-___.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
a is the y-intercept: predicted y when x = 0.
Order the steps to predict a response from a regression equation.
难度 3/5 · 今日首次完成可获 200 金币及少量额外奖励
Guard against extrapolation first, then compute and interpret.
出了什么问题?只有网站团队能看到这些信息。