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

Solving Correlation Coefficient & Regression Line in IBDP Mathematics | IB数学:相关系数与回归直线方程的求解

2026-08-30 20:00 · 本文部分内容由AI辅助创作

📚 Solving Correlation Coefficient & Regression Line in IBDP Mathematics | IB数学:相关系数与回归直线方程的求解

Welcome to another chapter in our IB Mathematics Revision Series. Today, we dive into one of the most practical and frequently examined topics in the Statistical Applications and Interpretations syllabus: the Pearson product-moment correlation coefficient r and the least-squares regression line ŷ = a + bx . Mastering these tools is not just about passing an exam; it is about learning to quantify relationships between variables, make predictions, and critically assess data. This guide will take you step-by-step through every concept, formula, and command, ensuring you are fully equipped for your Paper 2 calculator-heavy tasks.

欢迎来到我们 IB 数学复习系列课程的又一章节。今天,我们将深入探讨在数学应用与解释(Applications and Interpretation)以及数学分析与方法(Analysis and Approaches)教学大纲中,最实用且考试频率最高的考点之一:皮尔逊积矩相关系数 r 与最小二乘回归直线 ŷ = a + bx 。掌握这些工具不仅仅是为了通过考试,更是为了学会量化变量之间的关系、做出预测,并批判性地评估数据。本指南将带你逐步拆解每一个概念、公式和计算器指令,确保你能完美应对 Paper 2 中高度依赖计算器的题型。


1. Scatter Diagrams & Visual Correlation | 散点图与直观相关性

Before performing any calculations, always plot your data visually. A scatter diagram (or scatter plot) gives you an immediate 'eyeball' test of whether a relationship exists between the two variables, typically labelled X (the explanatory or independent variable) and Y (the response or dependent variable). The pattern of points reveals the direction, form, and strength of the association.

在进行任何计算之前,请务必先将数据可视化。散点图能让你通过“目测”直观地判断两个变量(通常标记为 X 为解释变量或自变量, Y 为响应变量或因变量)之间是否存在关系。点的分布模式揭示了关联的方向、形式和强度。


2. The Pearson Product-Moment Correlation Coefficient r | 皮尔逊积矩相关系数 r

The Pearson correlation coefficient, denoted by r , is a numerical measure that quantifies the strength and direction of the linear relationship between two quantitative variables. It is a dimensionless index, meaning it has no units. The value of r always lies between -1 and +1, inclusive.

皮尔逊相关系数,用 r 表示,是量化两个定量变量之间线性关系强度和方向的数值指标。它是一个无量纲的指数,即没有单位。 r 的取值范围始终在 -1 到 +1 之间(含 -1 和 +1)。


3. The Formula for r | r 的计算公式

In your IB examinations, you will almost always use your GDC (Graphical Display Calculator) to compute r . However, the formula is given in the IB formula booklet and occasionally appears in Paper 1 to test your algebraic manipulation. The alternative computational formula is the key to avoiding heavy z-score calculations.

在 IB 考试中,计算 r 时你几乎总是使用图形计算器(GDC)。然而,IB 公式手册中给出了该公式,且偶尔会在 Paper 1 中考查你的代数运算能力。这个计算型公式是避免繁琐 z 分数计算的关键。

r = n ∑ xy - (∑ x)(∑ y)⁄√[n ∑ x2 - (∑ x)2][n ∑ y2 - (∑ y)2]

Here, n is the number of data pairs, ∑ xy is the sum of the products of each pair, ∑ x is the sum of all x -values, ∑ y is the sum of all y -values, and ∑ x2 and ∑ y2 are the sums of the squares of each variable.

其中, n 是数据对的数量, ∑ xy 是每一对数据乘积之和, ∑ x 是所有 x 值的总和, ∑ y 是所有 y 值的总和,而 ∑ x2 和 ∑ y2 分别是每个变量平方的总和。

GDC Tip (计算器提示): Enter the data into two lists (e.g., L1 and L2). Go to the stats calculation menu (STAT > CALC > LinReg(a+bx) or 2-Var Stats). The calculator will output r and r2 directly. Ensure you have turned on 'Diagnostics' in your calculator settings so r is displayed.

计算器提示:将数据输入两个列表(如 L1 和 L2)。进入统计计算菜单(STAT > CALC > LinReg(a+bx) 或 2-Var Stats)。计算器会直接输出 r 和 r2 。请确保在计算器设置中打开了“诊断信息(Diagnostics)”,以便显示 r 值。


4. The Coefficient of Determination r² | 决定系数 r²

While r tells you the strength of the linear relationship, the square of the correlation coefficient, r2 , has a much more intuitive, practical meaning in the context of regression. It is called the coefficient of determination.

虽然 r 告诉你线性关系的强度,但相关系数的平方,即 r2 ,在回归背景下具有更直观、更实际的意义。它被称为决定系数(或拟合优度)。


5. Least-Squares Regression Line: Concept | 最小二乘回归线:概念

Once we have established that a strong linear correlation exists, we may wish to use this relationship to make predictions. The regression line of Y on X is the line of best fit that minimizes the sum of the squared vertical distances between the observed data points and the line itself. This is why it is called the 'least-squares' line. The equation is written as ŷ = a + bx , where ŷ (y-hat) is the predicted value of the dependent variable, a is the y-intercept, and b is the slope.

一旦我们确定了存在强线性相关,我们可能希望利用这种关系进行预测。 Y 对 X 的回归线,就是使观察数据点与直线之间的垂直距离平方和最小的那一条最拟合的直线。这就是为什么它被称为“最小二乘”线。其方程写作 ŷ = a + bx ,其中 ŷ (读作 y-hat)是因变量的预测值, a 是 y 轴截距, b 是斜率。

Key distinction (关键区别): This line is different from having perfect correlation. Unless r = ± 1 , the regression line will not pass exactly through every point, and there will be residuals (vertical gaps between observed y and predicted ŷ ).

关键区别:这条线与完全相关时的直线不同。除非 r = ± 1 ,否则回归线不会精确地穿过每一个点,并且会存在残差(观察值 y 与预测值 ŷ 之间的垂直差距)。


广告 / Sponsored

6. Formulas for Slope b and Intercept a | 斜率 b 与截距 a 的公式

To compute the least-squares regression line ŷ = a + bx , you need the mean and standard deviation of both variables. The formula booklet provides the following elegant relationship between b and r .

要计算最小二乘回归线 ŷ = a + bx ,你需要两个变量的均值和标准差。公式手册提供了以下 b 与 r 之间的简洁关系。

b = r · sY⁄sX

Here, sX and sY are the sample standard deviations of X and Y respectively. Once b is found, the intercept a is calculated using the fact that the regression line always passes through the central point of the data, which is the mean point (x̄, ȳ) .

这里, sX 和 sY 分别是 X 和 Y 的样本标准差。计算出 b 后,用回归线必过数据中心的均值点 (x̄, ȳ) 这一性质来求截距 a 。

a = ȳ - b · x̄

Important (重要): Always use the exact values of x̄, ȳ, sX, sY from your calculator display when substituting them into these formulas to avoid premature rounding errors. It is faster and safer to perform a LinReg(a+bx) on your GDC, which gives you a and b directly.

重要提示:在代入这些公式时,务必使用计算器显示的精确值 x̄, ȳ, sX, sY ,以避免过早舍入导致误差。在计算器上直接执行 LinReg(a+bx) 更快捷、更安全,它能直接给出 a 和 b 。


7. Interpreting the Slope and Intercept | 解释斜率与截距的含义

Being able to calculate a and b is one thing, but IB exam questions often award marks specifically for contextual interpretation. You must explain these numbers in the context of the problem, not just state what they are.

计算出 a 和 b 是一回事,但 IB 考题经常针对语境下的解释设分。你必须结合问题的实际背景来解释这些数字的含义,而不仅仅是说出它们代表什么。


8. Prediction and Extrapolation | 预测与外推

The primary use of a regression line is to predict values of Y for given values of X . To predict, substitute the desired X value into the equation ŷ = a + bx . However, you must distinguish between two types of predictions: interpolation and extrapolation.

回归线的主要用途是根据给定的 X 值预测 Y 的值。要进行预测,只需将所需的 X 值代入方程 ŷ = a + bx 即可。然而,你必须区分两种类型的预测:内插和外推。


9. Residuals & Residual Plots | 残差与残差图

A residual is the difference between the observed value and the predicted value: ei = yi - ŷi . Analyzing residuals is the definitive way to validate whether your linear regression model is appropriate for the data. A residual plot is a graph of residuals ( ei ) against the independent variable ( X ).

残差是观察值与预测值之间的差: ei = yi - ŷi 。分析残差是验证线性回归模型是否适用于数据的最终方法。残差图是以自变量( X )为横轴、残差( ei )为纵轴的散点图。


10. IB Calculator Workflow & Exam Pitfalls | IB 计算器操作流程与常见误区

Efficient use of your GDC is non-negotiable for scoring high marks on this topic in IB Paper 2. Let's summarize the standard workflow to guarantee accuracy.

在 IB Paper 2 中,高效使用计算器是取得高分的必要条件。我们来总结一下保证准确性的标准操作流程。

Step (步骤)Action (操作)
1Enter X data into List 1 (L1) and Y data into List 2 (L2). / 将 X 数据输入 L1 列表, Y 数据输入 L2 列表。
2Create a scatter plot to visually inspect for linearity and outliers. / 创建散点图目测线性关系和异常值。
3Run 'Stat > Calc > LinReg(a+bx)' with L1, L2 chained. / 依次选择 'Stat > Calc > LinReg(a+bx)' 并链上 L1、L2。
4Record r, r2, a, b from the output. / 记录输出中的 r, r2, a, b 值。
5Clearly substitute a and b into ŷ = a + bx for the final answer. / 将 a 和 b 清晰地代入 ŷ = a + bx 写出最终方程。

Common pitfalls (常见误区): Mixing up X and Y lists causing the wrong regression line; forgetting that r is only for linear relationships; giving interpretations without context; and brute-force calculating r by hand when the calculator is allowed, wasting precious time.

常见误区:混淆 X 和 Y 列表导致回归线错误;忘记 r 仅适用于线性关系;解释时不结合题目背景;在允许使用计算器时却手动硬算 r ,浪费宝贵时间。


Published by TutorHao | Mathematics Revision Series | aleveler.com

广告 / Sponsored
官网正版 国际课程数学核心词汇 唯寻国际教育 全英 学科 GCSE A Level IB MYP IB IBDP 美高…
数学 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥19.7

更多咨询请联系16621398022(同微信)

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao