Building and Applying a Model
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| model family | 模型族 | mó xíng zú |
| function model/ˈfʌŋkʃn ˈmɒdl/ | 函数模型 | hán shù mó xíng |
| regression/rɪˈɡreʃn/ | 回归 | huí guī |
| interpolation/ɪnˌtɜːpəˈleɪʃn/ | 内插 | nèi chā |
| extrapolation/ekˈstræpəleɪʃn/ | 外推 | wài tuī |
| parameters/pəˈræmɪtəz/ | 参数 | cān shù |
| linear sales model | 线性销售模型 | xiàn xìng xiāo shòu mó xíng |
从数据到公式
- 选定模型族只是任务的一半;现在你要构建具体的规则。
- 一个好模型能把测量数据表变成可以用来计算的公式。
- 一旦有了公式,你就能预测从未测量过的值。
- 这正是微积分预备成为解决现实问题的工具的方式。
构建模型
- 函数模型(function model)是一条规则,刻画一个量如何依赖另一个量。
- 你可以从一段文字描述、一张数值表,或一张图来构建它。
- “起始成本为 $\$5$,每件产品增加 $\$2$” 立即变为 $C = 5 + 2n$。
- 让模型族与形状匹配(第 1.13 课),再确定具体的数字。
用回归求最佳拟合
- 当有许多分散的数据点时,回归利用技术工具找出最佳拟合直线或曲线。
- 它选出同时最接近所有数据的模型。
- 得到的结果给出模型规则中的数字,可以直接使用。
- 个别点可能恰好落在拟合曲线上;模型反映的是整体趋势。

A model line — read its rate and starting value
y = ax + b
Here a is the rate of change and b is the starting value. Adjust them to fit data, then plug in an input to make a prediction.
A regression finds…
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Regression fits the model that comes closest to 所有 the points at once — the best-fit model, using technology.
内插与外推
- 内插(interpolation)预测已知数据点之间的值——通常安全。
- 外推(extrapolation)预测数据之外的值——走得越远越冒险。
- 一个没有数据可依靠的模型,可能严重偏离现实。
- 相信内插多于外推,并说明你用的是哪一种。

Predicting a value 之间 known data points is called ____.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
内插法 stays inside the data range, so it is usually reliable.
Predicting far outside the range of the data (extrapolation) is usually…
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Far from the data the model has no evidence to lean on, so extrapolation is the riskiest prediction.
解释参数
- 参数(parameters)(规则里的那些数字)带有真实世界的含义。
- 在 $C = 5 + 2n$ 中,$5$ 是固定的启动成本,$2$ 是每件的成本。
- 在情境中解读参数,能把公式重新变回关于这个情境的故事。
- 一个好答案总会说出每个数字代表什么,并带上单位。

A model gives cost $= 2x + 1$ (in thousands). Predict the cost when $x = 10$.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Substitute: $2(10) + 1 = 21$ thousand. Plugging an input into the model is how you apply it.
The parameters of a model (like the slope) can be interpreted in terms of the real situation.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
In cost $= 2x + 1$, the $2$ is the cost per unit and the $1$ is the fixed start-up cost — real meanings.
Put the steps of using a model in order.
难度 3/5 · 今日首次完成可获 200 金币及少量额外奖励
Data → fit → predict → check. The final check catches a model that has drifted from reality.
外推得太远是一个经典的陷阱。一个线性销售模型可能预测二十年后销量达到数十亿——显然不合实际。在相信预测之前,一定要结合真实情况检查它是否合理。
一部手机的电池电量从 $100\%$ 开始,每小时下降约 $8\%$。
- 模型:$B = 100 - 8h$,一个线性函数模型。
- 在 $h = 3$ 时,模型预测的值为 $B = 100 - 24 = 76\%$。这是否属于内插取决于测量时间的范围。
- 在 $h = 20$ 处进行外推:$B = -60\%$——这是不可能的,所以模型已不再适用。

从文字、表格或图构建一个函数模型,用回归求最佳拟合。用它来内插(安全,在数据范围之内)或外推(冒险,在数据范围之外),在情境中解读它的参数,并始终检查预测在现实世界中是否合理。
根据数据写出表达式:求成本
- 以千为单位的成本等于 3x 加上 4。
- 预测当 x 等于 6 时的成本。
A model gives cost equal to 3x plus 4, in thousands. What does it predict when x equals 6?
18 plus 4 is 22.
A model gives cost $= 3x + 4$ (in thousands). What cost does it predict when $x = 6$?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
3 times 6 plus 4 is 22. Other options — 21 (the lesson prediction); 6 (the input).
出了什么问题?只有网站团队能看到这些信息。