📚 IB Mathematics: Correlation – Concepts and Judgment | IB数学:相关性的概念与判断
Correlation is one of the most frequently tested yet misunderstood topics in IB Mathematics. This article will guide you through the core concepts, calculation methods, interpretation rules, and common pitfalls of correlation, with bilingual clarity to support your revision.
相关性是IB数学中最常考但也最容易误解的主题之一。本文将围绕相关性的核心概念、计算方法、解读规则与常见误区,提供中英对照的清晰讲解,帮助你高效复习。
1. What Is Correlation? | 什么是相关性?
In statistics, correlation describes the strength and direction of a linear relationship between two variables. If two variables tend to move together in a systematic way, we say they are correlated. The most common measure is Pearson’s product-moment correlation coefficient, usually denoted by r.
在统计学中,相关性描述的是两个变量之间线性关系的强弱与方向。如果两个变量趋于以系统性的方式一同变化,我们就说它们存在相关。最常用的度量是皮尔逊积矩相关系数,通常用 r 表示。
For a sample of paired data \((x_1, y_1), (x_2, y_2), …, (x_n, y_n)\), the Pearson correlation coefficient is calculated as:
对于成对样本数据 \((x_1, y_1), (x_2, y_2), …, (x_n, y_n)\),皮尔逊相关系数计算公式为:
r = Σ(xᵢ − x̄)(yᵢ − ȳ) / √[Σ(xᵢ − x̄)² Σ(yᵢ − ȳ)²]
Here, x̄ and ȳ are the sample means of the two variables. The value of r always lies between −1 and +1.
其中 x̄ 和 ȳ 分别是两个变量的样本均值。r 的值总是在 −1 和 +1 之间。
2. Scatter Plots: The First Step | 散点图:判断相关性的第一步
Before calculating any numerical coefficient, always plot the data on a scatter diagram. A scatter plot reveals the shape of the relationship, outliers, and whether a linear model is appropriate at all.
在计算任何数值系数之前,务必先绘制数据的散点图。散点图能揭示关系的形状、异常值,以及线性模型是否适用。
- Positive correlation: points rise from left to right, r > 0.
- Negative correlation: points fall from left to right, r < 0.
- No correlation: points show no clear pattern, r ≈ 0.
- 正相关:点从左到右上升,r > 0。
- 负相关:点从左到右下降,r < 0。
- 不相关:点无明显规律,r ≈ 0。
For example, a scatter plot of hours studied against exam scores often shows a positive linear trend. A plot of outside temperature against hot chocolate sales may show a negative trend.
例如,学习时间与考试成绩的散点图通常呈正线性趋势;室外温度与热巧克力销量之间的关系则可能呈负趋势。
3. Interpreting the Value of r | 解释 r 值的大小
The correlation coefficient r measures only the strength of a linear relationship. A common rough guide is:
相关系数 r 仅衡量线性关系的强度。一个常见的粗略参考如下:
| |r| range | Strength of correlation |
| 0.00 – 0.19 | Very weak |
| 0.20 – 0.39 | Weak |
| 0.40 – 0.59 | Moderate |
| 0.60 – 0.79 | Strong |
| 0.80 – 1.00 | Very strong |
The sign of r indicates direction: positive means as one variable increases, the other tends to increase; negative means the opposite. Remember that r = 0.7 means r² = 0.49, which means only 49% of the variation in one variable is linearly explained by the other.
r 的正负号表示方向:正相关意味着一个变量增加时另一个也趋于增加;负相关则相反。注意 r = 0.7 时 r² = 0.49,意味着一个变量的变化中仅有49%可以线性地由另一个变量解释。
4. Coefficient of Determination r² | 决定系数 r²
The square of the Pearson correlation coefficient, r², is called the coefficient of determination. It represents the proportion of variance in the dependent variable that is predictable from the independent variable in a linear regression.
皮尔逊相关系数的平方 r² 称为决定系数。它表示在线性回归中,因变量的方差中可由自变量预测的比例。
For example, if r = 0.8, then r² = 0.64, meaning 64% of the total variation in y is explained by the linear relationship with x. The remaining 36% is due to other factors or random error.
例如,若 r = 0.8,则 r² = 0.64,意味着 y 的总变化中有64%可以由与 x 的线性关系解释,其余36%来自其他因素或随机误差。
This is a key concept in IB exams: a high correlation does not automatically mean a strong causal explanation, but r² gives a more honest measure of explanatory power.
这是IB考试中的关键概念:高相关性并不自动意味着强因果解释,而 r² 给出了更诚实的解释力度量。
5. Spearman’s Rank Correlation | 斯皮尔曼等级相关
When the data are not normally distributed, or when only ranks are available, Pearson’s coefficient may be inappropriate. Spearman’s rank correlation coefficient, denoted rₛ, measures the monotonic relationship between two variables based on ranks.
当数据不服从正态分布,或者只有秩次(排名)可用时,皮尔逊系数可能不适用。斯皮尔曼等级相关系数(记作 rₛ)基于秩次衡量两个变量之间的单调关系。
The formula is:
公式如下:
rₛ = 1 − (6 Σdᵢ²) / (n(n² − 1))
where dᵢ is the difference between the two ranks of the i-th observation, and n is the number of pairs. This formula assumes that all ranks are distinct; if there are ties, an adjusted formula is required.
其中 dᵢ 是第 i 个观测在两个排名之间的差值,n 是成对数据个数。该公式假设所有排名互不相同;若有并列排名,则需要使用调整后的公式。
Spearman’s rₛ also ranges from −1 to +1. It is especially useful when the relationship is monotonic but not necessarily linear, such as exponential growth.
斯皮尔曼 rₛ 同样在 −1 到 +1 之间变化。它特别适用于关系为单调但不一定线性的情况,例如指数增长。
6. Correlation Does Not Imply Causation | 相关性不等于因果性
This is perhaps the most important judgment rule in the entire IB syllabus. Two variables can be strongly correlated even if neither causes the other. A hidden third variable, called a confounding variable, may be responsible for the observed association.
这或许是整个IB课程大纲中最重要的判断准则。两个变量即使存在强相关,也并不意味着其中一个导致另一个。一个隐藏的第三变量,称为混淆变量,可能才是观测到的关联的真正原因。
Classic examples:
经典例子:
- Ice cream sales and drowning deaths are positively correlated because both increase in summer (confounding variable: temperature).
- Children who wear larger shoes tend to have better reading skills, because age is the hidden factor.
- 冰淇淋销量与溺水死亡人数正相关,因为二者在夏季都会增加(混淆变量:气温)。
- 穿更大鞋子的孩子通常阅读能力更强,因为年龄是隐藏因素。
In IB exam questions, you may be asked to identify whether a cause-effect conclusion is justified. Always mention alternative explanations and the need for controlled experiments.
在IB考试题目中,你可能会被要求判断某个因果结论是否成立。务必提及其他解释以及需要受控实验来验证。
7. Outliers and Their Effect on Correlation | 异常值及其对相关性的影响
Outliers can dramatically change the value of r. A single data point far from the main cluster can make a weak correlation appear strong, or vice versa. Therefore, always examine a scatter plot before trusting r.
异常值会剧烈改变 r 的值。一个远离主数据簇的单一数据点可能使弱相关看起来很强,或者反过来。因此,在相信 r 之前,务必检查散点图。
For example, suppose most points show no pattern, but one extreme point lies at the top right corner. This outlier alone can pull r toward +1. Conversely, an outlier that breaks a clear linear pattern can lower r dramatically.
例如,假设大多数点没有规律,但一个极端点位于右上角。这一个异常值就能把 r 拉向 +1。相反,一个破坏明显线性规律的异常值也会大幅降低 r。
In the IB formula booklet, Pearson’s r is not robust. If you identify an outlier, you should report its influence and possibly compute r again after removing it.
在IB公式手册中,皮尔逊 r 并不稳健。如果你发现异常值,应报告其影响,并考虑在移除它后重新计算 r。
8. Significance and Hypothesis Testing for Correlation | 相关性的显著性检验
IB Mathematics Analysis & Approaches HL students are expected to perform a hypothesis test for the population correlation coefficient ρ (rho). The null hypothesis is that there is no linear correlation in the population: H₀: ρ = 0. The alternative is H₁: ρ ≠ 0 (or one-sided).
IB数学分析与方法(AA)HL学生需要对方差相关系数 ρ(rho)进行假设检验。原假设是总体中不存在线性相关:H₀: ρ = 0。备择假设为 H₁: ρ ≠ 0(或单侧检验)。
Given a sample correlation r from n pairs, the test statistic is:
给定样本相关系数 r 和 n 对数据,检验统计量为:
t = r √(n − 2) / √(1 − r²)
This t-statistic follows a t-distribution with n − 2 degrees of freedom. Using a GDC (graphical display calculator), compare the p-value to the significance level (usually 5%). If p < 0.05, reject H₀ and conclude that there is significant evidence of linear correlation.
该 t 统计量服从自由度为 n − 2 的 t 分布。使用图形计算器(GDC),将 p 值与显著性水平(通常5%)比较。若 p < 0.05,则拒绝 H₀,得出存在显著线性相关证据的结论。
For Spearman’s rank test, the table of critical values for rₛ is used. If the absolute value of rₛ exceeds the critical value, the correlation is significant.
对于斯皮尔曼秩检验,使用 rₛ 的临界值表。如果 |rₛ| 超过临界值,则相关性显著。
9. Correlation vs Regression | 相关与回归的区别
Correlation and regression are related but distinct. Correlation measures the strength and direction of a linear relationship. Regression finds the equation of the line of best fit that predicts y from x, usually in the form y = a + bx.
相关与回归相关但又有所不同。相关衡量线性关系的强度与方向;回归则找到最佳拟合线方程,用 x 预测 y,通常形式为 y = a + bx。
Key differences:
主要区别:
- r is symmetric: r between x and y equals r between y and x. Regression lines are not symmetric.
- Regression uses the least squares method to minimize squared vertical distances.
- Correlation has no units, while regression coefficients have units.
- r 是对称的:x 与 y 之间的 r 等于 y 与 x 之间的 r。回归方程不具有对称性。
- 回归使用最小二乘法最小化纵向距离平方和。
- 相关无单位,而回归系数有单位。
In IB exams, you may be asked to use the regression equation to predict a value, and then to state that prediction is reliable only within the observed range of x. Extrapolation beyond the data range is risky.
在IB考试中,你可能会被要求使用回归方程预测一个值,并说明预测仅在观测到的 x 范围内才是可靠的。超出数据范围外推是危险的。
10. Judging Correlation: A Checklist | 判断相关性:检查清单
To make a sound judgment about correlation in IB problems, follow these steps:
要在IB题目中对相关性做出正确判断,请遵循以下步骤:
- Create or inspect a scatter plot.
- Identify the type of relationship (linear, monotonic, or absent).
- Check for outliers and their influence.
- Choose the appropriate coefficient (Pearson for linear, Spearman for monotonic or ranks).
- Use a GDC to compute the value and p-value if required.
- Interpret r in context: direction, strength, and r².
- Never claim causation without evidence.
- 绘制或检查散点图。
- 判断关系类型(线性、单调或不存在)。
- 检查异常值及其影响。
- 选择合适的系数(线性用皮尔逊,单调或秩次用斯皮尔曼)。
- 如需,使用GDC计算数值和p值。
- 在具体情境中解释 r:方向、强度和 r²。
- 没有证据时绝不声称因果关系。
By applying this checklist, you will avoid the most common errors and score full marks in exam questions about correlation.
通过应用此检查清单,你将避免最常见错误,并在关于相关性的考试题目中获得满分。
11. Common Exam Mistakes | 常见考试错误
Many students lose marks due to careless misuse of correlation. Here are typical mistakes:
许多学生因为随意使用相关概念而失分。以下是一些典型错误:
- Confusing correlation with causation.
- Using Pearson’s r when the relationship is clearly non-linear but monotonic (should use Spearman).
- Forgetting to state units or context when interpreting r.
- Using extrapolation for predictions beyond the data range without a disclaimer.
- Not checking outliers before calculating r.
- Writing r² = 0.5 as “50% correlation” — it is “50% of variation explained”.
- 混淆相关与因果。
- 当关系明显非线性但单调时仍使用皮尔逊 r(应使用斯皮尔曼)。
- 解释 r 时忘记说明单位或上下文。
- 在数据范围之外进行外推预测而不加说明。
- 计算 r 前没有检查异常值。
- 将 r² = 0.5 说成“50%相关”——它应解释为“解释50%的变化”。
Always use the vocabulary of the IB mark scheme: “strong positive linear correlation”, “weak negative correlation”, etc.
始终使用IB评分方案中的词汇:“强正线性相关”、“弱负相关”等。
12. Practice Idea | 练习建议
To master correlation, practice with real data sets. Use your GDC to plot, calculate r and rₛ, and do the t-test for ρ. Then compare your interpretation with the actual context of the data.
要掌握相关性,请用真实数据集练习。使用GDC绘制散点图,计算 r 和 rₛ,并进行关于 ρ 的 t 检验。然后将你的解释与数据的实际背景进行比较。
You can also make up small data sets and ask: “What happens to r if I multiply all y-values by −1?” (Answer: r changes sign.) “What happens if I add a constant to all x-values?” (Answer: r unchanged.) These explorations build deep intuition.
你也可以自编小数据集并自问:“如果将所有 y 值乘以 −1,r 会发生什么变化?”(答案:r 变号。)“如果将所有 x 值加上一个常数呢?”(答案:r 不变。)这些探索能建立深层直觉。
Remember: correlation is a tool, not a verdict. Always combine numerical results with graphical judgment and contextual common sense.
记住:相关性是工具而非结论。始终将数值结果与图形判断以及现实常识结合起来。
Published by TutorHao | IB Mathematics Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply