📚 IB Mathematics: Core Concepts and Techniques of Linear Modelling | IB数学:线性建模核心概念与技巧
Linear modelling is one of the most powerful and frequently tested tools in IB Mathematics. It provides a simple yet flexible framework for describing how two variables change together, and it appears in both Analysis and Approaches (AA) and Applications and Interpretation (AI). From predicting temperatures to estimating business costs, linear models help you turn raw data into meaningful conclusions.
线性建模是IB数学中最强大且最常考的工具之一。它提供了一个简单而灵活的框架,用于描述两个变量如何共同变化,并且同时出现在分析与方法(AA)和应用与解释(AI)两门课程中。从预测气温到估算商业成本,线性模型帮助你从原始数据中得出有意义的结论。
1. What is Linear Modelling? | 什么是线性建模?
A linear model assumes that the relationship between an independent variable x and a dependent variable y can be approximated by a straight line. This relationship is written as a linear equation in the form y = mx + c, where m is the slope and c is the y-intercept. The goal of linear modelling is to find the line that best summarises the trend in the data.
线性模型假设自变量 x 与因变量 y 之间的关系可以用一条直线来近似。这种关系写成线性方程形式 y = mx + c,其中 m 是斜率,c 是 y 截距。线性建模的目标是找到最能概括数据趋势的那条直线。
A deterministic linear relationship is one where all points lie exactly on the line, such as converting kilometres to miles. In real-world data, however, relationships are rarely exact. Statistical linear modelling allows for random variation, so the line represents a trend rather than a strict rule.
确定性线性关系是指所有点都恰好落在直线上,例如公里与英里的换算。然而在真实数据中,关系很少是精确的。统计线性建模允许随机变异的存在,因此这条线代表一种趋势,而不是一条严格规则。
In IB Mathematics, you will be expected to identify whether a linear model is appropriate, calculate the equation of the line, use it to make predictions, and evaluate the strength of the relationship.
在IB数学中,你将被要求判断线性模型是否合适,计算直线方程,用其进行预测,并评估相关关系的强弱。
2. The Linear Function y = mx + c | 线性函数 y = mx + c
The general equation of a straight line in gradient–intercept form is y = mx + c. Here, x is the input, y is the output, m is the gradient or slope, and c is the y-intercept, which is the value of y when x = 0.
直线在斜截式下的一般方程为 y = mx + c。这里 x 是输入,y 是输出,m 是梯度或斜率,c 是 y 截距,即 x = 0 时 y 的值。
For example, the line y = 2x + 5 has a slope of 2 and crosses the y-axis at the point (0, 5). For every one-unit increase in x, y increases by 2 units.
例如,直线 y = 2x + 5 的斜率为 2,并且在点 (0, 5) 处穿过 y 轴。每当 x 增加 1 个单位,y 就增加 2 个单位。
The slope-intercept form is the most common form in IB problems because it makes both the rate of change and the starting value immediately visible. You may also see a horizontal line y = c, whose slope is zero, or a vertical line x = k, which is not a function and has an undefined slope.
斜截式是IB题目中最常见的形式,因为它能直接显示变化率和初始值。你也可能遇到水平线 y = c,其斜率为零;或垂直线 x = k,它不是函数,且斜率未定义。
3. Slope and Intercept | 斜率与截距
The slope m measures the steepness of a line. It is calculated as the change in y divided by the change in x between two points (x₁, y₁) and (x₂, y₂):
斜率 m 衡量一条直线的陡峭程度。它由两点 (x₁, y₁) 和 (x₂, y₂) 之间 y 的变化量除以 x 的变化量得到:
m = (y₂ − y₁) / (x₂ − x₁)
A positive slope means that y increases as x increases; a negative slope means that y decreases as x increases. A slope of zero means that y is constant as x changes.
正斜率意味着 y 随 x 增加而增加;负斜率意味着 y 随 x 增加而减少。斜率为零意味着 y 不随 x 变化。
The y-intercept c is the value of y when x = 0. In many applied contexts, c represents a fixed starting amount, such as a base fee, an initial population, or a measurement taken at time zero.
y 截距 c 是 x = 0 时 y 的取值。在许多应用情境中,c 代表固定的初始量,例如基础费用、初始种群数量或零时刻的测量值。
The following table summarises how to interpret slope and intercept in context:
下表总结了如何在具体情境中解释斜率和截距:
| Component | Interpretation | 中文解释 |
| Slope m | Rate of change of y per unit change of x | y 随 x 每变化一个单位的平均变化量 |
| Intercept c | Value of y when x = 0 | x = 0 时 y 的取值,即初始值 |
4. Finding the Equation of a Line | 求直线方程
There are several methods for finding the equation of a line, and IB questions may give you two points, a point and a slope, or a graph.
求直线方程有若干方法,IB题目可能给出两个点、一个点与一个斜率,或一张图。
If you know two points (x₁, y₁) and (x₂, y₂), first calculate the slope using the formula above. Then use the point-slope form:
如果你已知两点 (x₁, y₁) 和 (x₂, y₂),先使用上面的公式计算斜率,然后使用点斜式:
y − y₁ = m(x − x₁)
After substituting the slope and one point, expand and simplify to obtain the form y = mx + c.
代入斜率和其中一个点后,展开并化简,即可得到 y = mx + c 的形式。
For example, suppose a line passes through (1, 3) and (4, 9). The slope is (9 − 3)/(4 − 1) = 6/3 = 2. Using y − 3 = 2(x − 1), we get y = 2x + 1.
例如,一条直线经过 (1, 3) 和 (4, 9)。斜率为 (9 − 3)/(4 − 1) = 6/3 = 2。使用 y − 3 = 2(x − 1),得到 y = 2x + 1。
If you are given a graph, read off the y-intercept directly if the graph is clear, and then find the slope by counting the vertical and horizontal changes between two marked points.
如果给你一张图,当图清晰时可以直接读出 y 截距,然后通过计算两个标出点之间的纵向和横向变化量来求出斜率。
5. Linear Regression (Least Squares) | 线性回归(最小二乘法)
When data contains random scatter, no single line will pass through every point. Linear regression finds the line of best fit by minimising the sum of the squared vertical distances between the data points and the line. This is called the least squares regression line.
当数据包含随机散布时,没有任何一条直线能穿过所有点。线性回归通过最小化数据点到直线的垂直距离平方和,来找到最佳拟合线,这被称为最小二乘回归线。
The regression line of y on x is written in the form y = mx + c or y = a + bx, depending on your textbook and calculator. The slope and intercept can be calculated using the following formulae:
y 对 x 的回归线写作 y = mx + c 或 y = a + bx,具体取决于你的教材和计算器。斜率和截距可以用以下公式计算:
m = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²)
c = (Σy − mΣx) / n
In these formulae, n is the number of data points, Σx is the sum of the x-values, Σy is the sum of the y-values, Σxy is the sum of the products xy, and Σx² is the sum of the squares of the x-values.
在这些公式中,n 是数据点个数,Σx 是 x 值的和,Σy 是 y 值的和,Σxy 是 xy 乘积的和,Σx² 是 x 值平方的和。
In most IB exam questions, you will use your GDC to compute m and c directly. You should still know the formulas for conceptual understanding and for paper-based questions that require them.
在大多数IB考试题中,你会使用图形计算器直接计算 m 和 c。你仍然需要理解这些公式,以应对概念题或需要手算的题目。
6. Correlation and Coefficient r | 相关性与相关系数 r
Before using a linear model, you must check that a linear relationship actually exists. The Pearson product-moment correlation coefficient r measures the strength and direction of a linear relationship between two variables.
在使用线性模型之前,你必须检查线性关系是否真的存在。皮尔逊积矩相关系数 r 衡量两个变量之间线性关系的强度和方向。
r = (nΣxy − ΣxΣy) / (√(nΣx² − (Σx)²) √(nΣy² − (Σy)²))
The value of r always lies between −1 and 1. If r = 1, there is a perfect positive linear relationship. If r = −1, there is a perfect negative linear relationship. If r = 0, there is no linear relationship.
r 的值始终在 −1 和 1 之间。如果 r = 1,则存在完全正线性关系;如果 r = −1,则存在完全负线性关系;如果 r = 0,则不存在线性关系。
A common guideline is that |r| close to 1 indicates a strong relationship, while |r| close to 0 indicates a weak relationship. However, r only measures linear association; two variables may be strongly related in a curved way yet have r close to zero.
常见的判断标准是:|r| 接近 1 表示关系强,|r| 接近 0 表示关系弱。但 r 只衡量线性关联;两个变量可能以曲线方式强相关,却仍使 r 接近零。
The coefficient of determination r² tells us the proportion of the variation in y that is explained by the linear relationship with x. For example, if r = 0.8, then r² = 0.64, meaning that 64% of the variation in y is explained by the model.
决定系数 r² 告诉我们 y 的变化中有多大比例可以被 x 与 y 之间的线性关系解释。例如,如果 r = 0.8,那么 r² = 0.64,意味着 y 的变化中有64%可以由模型解释。
7. Residuals and Goodness of Fit | 残差与拟合优度
A residual is the vertical difference between an observed value y and the value predicted by the regression line ŷ. It is calculated as:
残差是观测值 y 与回归线预测值 ŷ 之间的垂直差异,计算公式为:
residual = y − ŷ
Positive residuals mean the observed point lies above the line; negative residuals mean the observed point lies below the line.
正残差意味着观测点在直线上方;负残差意味着观测点在直线下方。
A residual plot is a graph of residuals against the x-values. If the residuals are randomly scattered around zero with no obvious pattern, the linear model is appropriate. If they form a U-shape or another curve, a non-linear model may be better.
残差图是以 x 值为横轴、残差为纵轴的图。如果残差围绕零随机散布且没有明显模式,则线性模型是合适的。如果它们形成 U 形或其他曲线,则非线性模型可能更好。
In IB examinations, interpreting a residual plot is a common short-response question. You should always mention random scatter as evidence of a good fit, and mention any systematic pattern as evidence of a poor fit.
在IB考试中,解读残差图是常见的简答题。你应该提到随机散布是拟合良好的证据,而任何系统性模式都是拟合不佳的证据。
8. Interpreting the Model in Context | 在情境中解释模型
Being able to interpret m and c in real-world language is essential for IB questions. For example, if y represents total cost in dollars and x represents the number of items produced, then the slope m is the variable cost per item, and the intercept c is the fixed cost.
能够在现实情境中解释 m 和 c 是IB考题的关键。例如,如果 y 表示总成本(美元),x 表示生产物品数量,那么斜率 m 就是每件物品的可变成本,截距 c 就是固定成本。
Consider the model y = 3x + 20. The slope 3 tells us that each additional item costs 3 more dollars. The intercept 20 tells us that even when no items are produced, the cost is 20 dollars.
考虑模型 y = 3x + 20。斜率 3 告诉我们每多生产一件物品,成本就多 3 美元。截距 20 告诉我们即使不生产任何物品,成本也是 20 美元。
Always include units when interpreting a slope or intercept. A slope of 3 in the example above is 3 dollars per item, not simply 3. Including units shows the examiner that you understand the context.
在解释斜率或截距时一定要包含单位。例如上面例子中的斜率 3 是每件物品 3 美元,而不只是 3。包含单位能向考官表明你理解了情境。
You should also describe the strength of the relationship using r. If r is close to 1 or −1, you can say the model provides a reliable estimate. If r is weak, you should express caution when making predictions.
你还应该使用 r 来描述关系的强弱。如果 r 接近 1 或 −1,你可以说模型提供了可靠的估计。如果 r 较弱,你在进行预测时应表示谨慎。
9. Interpolation and Extrapolation | 内插与外推
Interpolation means using the regression line to predict a value of y for an x-value that lies within the range of the original data. Extrapolation means making a prediction for an x-value outside that observed range.
内插是指使用回归线,对位于原始数据范围内的 x 值预测对应的 y 值。外推是指对超出观测范围的 x 值进行预测。
Interpolation is generally reliable because we are estimating within the range where we have evidence. Extrapolation is dangerous because the linear trend may not continue outside the observed data.
内插通常是可靠的,因为我们是在已有证据的范围内进行估计。外推则具有风险,因为线性趋势在观测数据之外可能不再持续。
For example, if data about a plant’s height was collected from week 1 to week 10, predicting the height at week 8 is interpolation. Predicting the height at week 30 assumes that growth remains linear, which is often unrealistic.
例如,如果收集了植物第1周到第10周的高度数据,预测第8周的高度就是内插。而预测第30周的高度则假设生长仍然保持线性,这往往是不现实的。
In IB exams, you may be asked to comment on the reliability of a prediction. You should state whether the x-value is within the data range and mention the strength of the correlation as supporting evidence.
在IB考试中,你可能会被要求评价一个预测的可靠性。你应该说明 x 值是否在数据范围内,并使用相关性的强弱作为支持证据。
10. Common Pitfalls and IB Exam Tips | 常见错误与IB考试技巧
One common mistake is confusing the independent and dependent variables. The regression line of y on x should be used to predict y from x, not the other way around.
一个常见错误是混淆自变量和因变量。y 对 x 的回归线用于从 x 预测 y,而不是反过来。
Another pitfall is ignoring the residual plot. A high value of r does not guarantee that a linear model is appropriate if the relationship is actually curved. Always check the shape of the scatter diagram or residual plot.
另一个陷阱是忽略残差图。如果关系实际上是曲线的,那么即使 r 值很高,也不能保证线性模型适用。务必检查散点图或残差图的形状。
Rounding too early can also cause incorrect answers. Keep as many decimal places as possible during intermediate calculations, and only round your final answer to a sensible degree of accuracy, such as three significant figures.
过早四舍五入也会导致答案错误。在中间计算过程中尽量保留多位小数,只在最终答案中保留合理精度,例如三位有效数字。
Finally, always write the equation with the correct variables. Instead of writing y = 2x + 3, write C = 2t + 3 if C is cost and t is time. This makes your answer clearer and earns full communication marks.
最后,始终使用正确的变量书写方程。如果 C 是成本、t 是时间,就写 C = 2t + 3,而不是 y = 2x + 3。这会让你的答案更清晰,并获得完整的沟通分。
11. Conclusion | 总结
Linear modelling is a core skill in IB Mathematics because it connects algebraic equations with real-world data. By mastering the equation y = mx + c, calculating regression lines, interpreting correlation, and checking residuals, you can confidently analyse trends and make predictions.
线性建模是IB数学的核心技能,因为它将代数方程与现实数据联系起来。通过掌握 y = mx + c,计算回归线,解释相关性并检查残差,你可以自信地分析趋势并做出预测。
Remember to always interpret your results in context, use your GDC efficiently, and evaluate the reliability of any prediction you make. With regular practice of past paper questions, linear modelling will become one of the most rewarding topics in your IB Mathematics revision.
请记住,始终在具体情境中解释结果,高效使用图形计算器,并评估所作预测的可靠性。通过定期练习真题,线性建模将成为你IB数学复习中最有收获的专题之一。
Published by TutorHao | Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导