← 返回资讯屏轩教育 · 行业资讯

Modelling with Straight Lines | 直线模型建模

2026-08-29 13:34 · 本文部分内容由AI辅助创作

📚 Modelling with Straight Lines | 直线模型建模

hat equation to make predictions, interpret constants and judge whether the model is appropriate. Straight-line models are one of the most common tools in applied mathematics because many relationships are approximately linear over a given range.

在 A-Level 数学中,直线模型建模是指把现实情境转化为形如 y = mx + c 的线性方程,然后利用该方程进行预测、解释常数并判断模型是否合适。直线模型是应用数学中最常用的工具之一,因为许多关系在一定范围内近似线性。


1. What Is a Linear Model? | 什么是线性模型

A linear model assumes that two quantities, x and y, are related by a constant rate. The standard equation is shown below, where m is the gradient or slope, and c is the y-intercept. The variable x is the independent variable, and y is the dependent variable.

线性模型假设两个量 x 和 y 以恒定速率相关。标准方程如下,其中 m 是斜率,c 是 y 轴截距。变量 x 是自变量,y 是因变量。

y = mx + c

In a modelling question, the constants m and c are not abstract. They represent measurable features such as price per unit, speed, initial charge or fixed cost. Identifying these meanings is often worth exam marks.

在建模题中,常数 m 和 c 不是抽象的。它们代表可测量的特征,例如单位价格、速度、初始费用或固定成本。识别这些含义通常可以得分。

A linear model is usually only valid on a restricted interval. For example, the cost of printing books may be approximately linear for 100 to 5000 copies, but not for millions of copies where bulk discounts change the rate.

线性模型通常只在限定区间内有效。例如,印刷书籍的成本在 100 到 5000 册时可能近似线性,但在数百万册时因批量折扣而改变速率,就不再适用。


2. Gradient as Rate of Change | 斜率作为变化率

The gradient m measures the rate of change of y with respect to x. It is calculated as the change in y divided by the change in x.

斜率 m 衡量 y 相对于 x 的变化率。它等于 y 的变化量除以 x 的变化量。

m = Δy / Δx = (y₂ − y₁) / (x₂ − x₁)

The units of m are always the units of y per unit of x. For example, if y is cost in pounds and x is distance in miles, then m is measured in pounds per mile.

m 的单位始终是 y 的单位除以 x 的单位。例如,如果 y 是费用(英镑),x 是距离(英里),那么 m 的单位是英镑每英里。

A positive gradient means y increases as x increases. A negative gradient means y decreases as x increases. A zero gradient means y is constant, so the line is horizontal.

正斜率表示 y 随 x 增大而增大。负斜率表示 y 随 x 增大而减小。零斜率表示 y 恒定,因此直线水平。

In a straight line, the rate of change is constant. This is different from a curve, where the instantaneous rate of change varies from point to point. In A-Level questions, the gradient of a linear model is often described as the cost per item, speed, monthly fee or depreciation rate.

在直线上,变化率是恒定的。这与曲线不同,曲线的瞬时变化率逐点变化。在 A-Level 题目中,线性模型的斜率常被描述为每件成本、速度、月费或折旧率。


3. The Intercept and Its Practical Meaning | 截距及其实际含义

represents an initial value, a fixed cost or a starting amount that does not depend on x.

截距 c 是当 x = 0 时 y 的值。在许多模型中,它表示初始值、固定成本或不依赖于 x 的起始量。

cost C of producing n items, then 250 is the fixed cost when no items are produced, and 18 is the variable cost per item.

例如,如果 C = 250 + 18n 表示生产 n 件产品的成本 C,那么 250 是不生产任何产品时的固定成本,18 是每件产品的可变成本。

ingful. But if x is the height of a plant above ground, x = 0 may be outside the realistic range.

有时 x = 0 没有实际意义。例如,如果 x 是 2020 年之后的年数,那么 x = 0 表示 2020 年,截距可能有意义。但如果 x 是植物离地高度,x = 0 可能超出实际范围。

Even when the intercept has no direct physical meaning, it is still a mathematical parameter of the line. In exam answers, you should explain what c represents in context, or state clearly that it has no valid interpretation in the given situation.

即使截距没有直接物理意义,它仍然是直线的数学参数。在考试答案中,你应解释 c 在情境中的含义,或明确说明它在给定情境中没有有效解释。


4. From Context to Equation: Constructing the Model | 从情境到方程:建立模型

To build a linear model, follow a clear sequence. First, define the variables and their units. Second, identify the constant rate, which becomes the gradient. Third, find the fixed value, which becomes the intercept. Finally, write the equation and check it with the given data.

建立线性模型时,要遵循清晰步骤。第一,定义变量及其单位。第二,识别恒定速率,它成为斜率。第三,找出固定值,它成为截距。最后,写出方程并用已知数据检验。

A common example is a taxi fare. Suppose a taxi charges a fixed fee of £3 plus £ If C is the total cost in pounds and d is the distance in miles, the model is C = 3 + 2d.

常见例子是出租车费。假设出租车收取固定费用 3 英镑,外加每英里 2 英镑。如果 C 是总费用(英镑),d 是距离(英里),模型为 C = 3 + 2d。

C = 3 + 2d

Here the gradient 2 has units pounds per mile, and the intercept 3 has units pounds. The model predicts the cost for any given distance, but only within a reasonable range of distances.

这里斜率 2 的单位是英镑每英里,截距 3 的单位是英镑。该模型可预测任意给定距离的费用,但只在合理距离范围内有效。


5. Finding the Equation from Two Data Points | 由两个数据点求方程

If two points (x₁, y₁) and (x₂, y₂) are known, you can find the gradient first and then the intercept. This is a standard skill in linear modelling questions.

如果已知两个点 (x₁, y₁) 和 (x₂, y₂),可以先求斜率,再求截距。这是线性建模题中的标准技能。

m = (y₂ − y₁) / (x₂ − x₁)

y = mx + c and solve for c. Alternatively, use the point-gradient form y − y₁ = m(x − x₁).

求出 m 后,把其中一个点代入 y = mx + c,解出 c。或者使用点斜式 y − y₁ = m(x − x₁)。

3. Substituting (2, 7) into y = 3x + c gives 7 = 6 + c, so c = 1. The model is y = 3x + 1.

例如,假设线性模型经过 (2, 7) 和 (6, 19)。斜率为 m = (19 − 7) / (6 − 2) = 12 / 4 = 3。将 (2, 7) 代入 y = 3x + c,得 7 = 6 + c,所以 c = 1。模型为 y = 3x + 1。

matches. This check catches arithmetic errors and confirms the line fits both data points.

始终用另一个点检验方程。代入 x = 6 得 y = 3 × 6 + 1 = 19,符合。这个检验能发现计算错误,并确认直线经过两个数据点。


6. Units and Dimensional Consistency | 单位与量纲一致性

Units are part of the model, not an afterthought. If the units are inconsistent, the equation may look correct but the prediction will be wrong.

单位是模型的一部分,不是事后补充。如果单位不一致,方程看起来正确,但预测会出错。

广告 / Sponsored

Quantity | 量 Symbol | 符号 Typical Unit | 常见单位
Dependent variable | 因变量 y pounds, metres, litres | 英镑、米、升
Independent variable | 自变量 x miles, hours, items | 英里、小时、件
Gradient | 斜率 m y-unit per x-unit | y 单位每 x 单位
Intercept | 截距 c same as y | 与 y 相同

Suppose y is measured in metres and x is measured in seconds. Then m has units metres per second, or m s⁻¹. The intercept c has units metres. If you change x from seconds to minutes, the numerical value of m will change, even though the physical situation is the same.

假设 y 以米为单位,x 以秒为单位。那么 m 的单位是米每秒,或 m s⁻¹。截距 c 的单位是米。如果 x 从秒改为分钟,m 的数值会改变,即使物理情境相同。

In exam answers, write units in every interpretation. For example, state that the gradient is 2.5 pounds per mile, not just 2.5. This shows the examiner that you understand the model.

在考试答案中,每个解释都要写单位。例如,说明斜率是 2.5 英镑每英里,而不只是 2.5。这向考官表明你理解模型。


7. Prediction, Interpolation and Extrapolation | 预测、内插与外推

Interpolation means predicting within the range of the original data. It is usually more reliable because the linear trend has been observed there.

内插是指在原始数据范围内进行预测。它通常更可靠,因为线性趋势在该范围内已被观察到。

Extrapolation means predicting outside the range of the original data. It is riskier because the linear relationship may not continue. For example, a company's profit may grow linearly for five years but then slow down due to market saturation.

外推是指在原始数据范围之外进行预测。风险更大,因为线性关系可能不会持续。例如,公司利润可能连续五年线性增长,但之后因市场饱和而放缓。

x = 10, you should state that the prediction is an extrapolation and may not be reliable.

使用模型预测时,始终将输入值与已知定义域比较。如果 x = 50 远超 x = 2 到 x = 10 的数据范围,你应说明该预测属于外推,可能不可靠。

n. However, x = 20 is outside the data range, so the prediction depends on the assumption that the linear trend continues.

优秀的考试答案可能写道:使用模型,当 x = 8 时预测值为 41。这在给定范围内,因此是合理的内插。然而,x = 20 超出数据范围,因此预测依赖于线性趋势持续这一假设。


8. Assessing Whether the Linear Model Is Appropriate | 判断线性模型是否合适

A linear model is appropriate when the data points lie close to a straight line and the residuals show no clear pattern. A residual is the difference between the observed value and the predicted value.

当数据点大致沿直线分布,且残差没有明显模式时,线性模型是合适的。残差是观测值与预测值之差。

Residual = observed y − predicted y

If the scatter plot shows a curve, the linear model may still be used as an approximation over a small range, but it should not be trusted over a wide range. If there is a clear outlier, investigate whether it should be included.

如果散点图呈现曲线,线性模型在小区间内仍可作为近似,但不应在大范围内信任。如果存在明显异常值,应研究是否应将其纳入。

Correlation is not causation. A high correlation coefficient r close to 1 or −1 shows a strong linear association, but it does not prove that x causes y. There may be a third variable or coincidence.

相关不等于因果。接近 1 或 −1 的相关系数 r 表示强线性关联,但它不能证明 x 导致 y。可能存在第三变量或巧合。

In A-Level exams, you may be asked to comment on the model's limitations. Good answers mention the restricted domain, the assumption of a constant rate, possible outliers and the difference between interpolation and extrapolation.

在 A-Level 考试中,你可能被要求评论模型的局限性。好的答案会提到限定定义域、恒定速率假设、可能的异常值以及内插与外推的区别。


9. Restricted Domains and Piecewise Linear Models | 限定定义域与分段线性模型

Many real models are only valid for a certain set of x-values. This set is called the domain. For a cost model, x may need to be a non-negative integer. For a time model, x may need to be between 0 and 24 hours.

许多真实模型只对某些 x 值有效。这个集合称为定义域。对于成本模型,x 可能需要是非负整数。对于时间模型,x 可能需要在 0 到 24 小时之间。

Sometimes a situation is modelled by different straight lines on different intervals. This is called a piecewise linear model. For example, electricity may be charged at one rate for the first 100 units and a higher rate after that.

有时同一情境在不同区间用不同直线建模。这称为分段线性模型。例如,电力可能前 100 个单位按一个费率收费,之后按更高费率收费。

When working with piecewise models, identify the breakpoints and check which formula applies to the given input. Also check whether the model is continuous at the breakpoints, because a sudden jump may or may not be realistic.

处理分段模型时,找出分界点,并检查给定输入适用于哪个公式。还要检查模型在分界点是否连续,因为突然跳跃可能符合也可能不符合实际。


10. Worked Exam-Style Example | 考试风格例题精讲

erpret the constants, predict the cost for 40 items, and find the number of items when the cost is 790 pounds.

某公司用 C = 250 + 18n 建模生产 n 件产品的成本 C(英镑)。模型在 0 ≤ n ≤ 200 时有效。解释常数,预测生产 40 件时的成本,并求成本为 790 英镑时的产品数量。

t 18 is the variable cost per item, in pounds per item. The equation shows that each additional item adds 18 pounds to the total cost.

首先,截距 250 是 n = 0 时的固定成本,单位为英镑。斜率 18 是每件产品的可变成本,单位为英镑每件。方程表明每多生产一件,总成本增加 18 英镑。

d cost is 970 pounds. Since 40 is inside the domain 0 ≤ n ≤ 200, this is an interpolation.

当 n = 40 时,C = 250 + 18 × 40 = 250 + 720 = 970。因此预测成本为 970 英镑。由于 40 在定义域 0 ≤ n ≤ 200 内,这是内插。

o get 540 = 18n. Divide by 18 to get n = 30. Therefore 30 items give a cost of 790 pounds.

当 C = 790 时,解 790 = 250 + 18n。减去 250 得 540 = 18n。除以 18 得 n = 30。因此 30 件产品的成本为 790 英镑。

xtrapolation because 500 is outside the stated domain. The fixed and variable costs may change at that scale, so the linear model may not be reliable.

如果公司想预测 n = 500 时的成本,答案属于外推,因为 500 超出给定定义域。在该规模下固定成本和可变成本可能变化,因此线性模型可能不可靠。


11. Common Mistakes and Examiner Tips | 常见错误与考官提示

A common mistake is reversing the gradient formula. Remember that the change in y goes on top, and the change in x goes on the bottom.

常见错误是把斜率公式写反。记住 y 的变化量在分子,x 的变化量在分母。

Another mistake is ignoring units or mixing units, such as using miles for one point and kilometres for another. Always convert to consistent units before calculating the gradient.

另一个错误是忽略单位或混用单位,例如一个点用英里,另一个点用千米。计算斜率前始终换算为一致单位。

elation may still be unsuitable if the relationship is curved or if extrapolation is required.

学生常把截距解释为任意 x 对应的 y 值,但截距特指 x = 0 时的值。此外,即使相关性很高,如果关系是曲线的或需要外推,模型仍可能不合适。