Historical Context & Motivation
Humans have always looked for patterns in data, but for most of history we relied on intuition rather than mathematics. Is there a connection between how many hours you study and the grade you earn? Does temperature affect ice-cream sales? These questions feel simple, yet answering them rigorously required centuries of mathematical development. The story of correlation and regression begins in the 1800s, when scientists first tried to quantify how two measurements move together.
The central question this topic addresses is deceptively straightforward: When two variables seem related, how do we measure the strength of that relationship and use it to make predictions? In IB Mathematics: Applications and Interpretation SL 4.2, you will learn how to answer this question using scatter plots, the correlation coefficient r, the regression line ŷ = ax + b, and residual analysis — all supported by technology.
Core Principles & Definitions
Before diving into calculations, it is essential to build a clear vocabulary. The ideas below form the foundation of everything you will do with bivariate data — data sets that pair up two variables for each individual or observation.
Bivariate Data & Scatter Plots
Correlation Coefficient (r)
Line of Best Fit (Regression Line)
Residuals
Interpolation vs. Extrapolation
Visual Explanation — The Scatter Plot & Regression Line
A scatter plot is the starting point for every correlation and regression analysis. The diagram below shows a bivariate data set with a regression line drawn through it. Notice how the data points cluster around the line, with some sitting above it (positive residuals) and others below (negative residuals). The vertical dashed segments illustrate the residuals themselves.
In the diagram, notice that the data points generally trend upward from left to right. This indicates a positive correlation: as hours of study increase, test scores tend to increase as well. The regression line captures this upward trend and provides a formula you can use for predictions. The residuals show you where the model is imperfect — no real-world data falls perfectly on a line. Examining whether residuals are randomly scattered (good) or show a curved pattern (bad) tells you whether a linear model is appropriate.
Mathematical Framework
In IB Applications and Interpretation SL, you are expected to use your GDC (graphing display calculator) or approved technology to compute the values of r, a, and b. However, understanding the formulas helps you know what your calculator is doing and why the outputs make sense.
Interpreting the Correlation Coefficient
One of the most common exam tasks is to describe the correlation between two variables. You need to state both the direction (positive or negative) and the strength (weak, moderate, or strong) of the correlation. The spectrum bar below gives you a visual reference for how to classify values of r.
Worked Example
A teacher records the number of absences (x) and the final exam score (y) for eight students. The data are shown below. Let's walk through a complete analysis using technology.
| Student | Absences (x) | Exam Score (y) |
|---|---|---|
| A | 2 | 88 |
| B | 5 | 74 |
| C | 3 | 82 |
| D | 8 | 60 |
| E | 1 | 92 |
| F | 6 | 68 |
| G | 4 | 78 |
| H | 7 | 65 |
Strengths & Limitations of Linear Regression
Linear regression is one of the most widely used statistical tools in the world, but it is not perfect. Understanding when it works well and when it fails is just as important as knowing how to compute the regression line.
| Strengths | Limitations |
|---|---|
| Simple to compute and interpret — a single equation summarizes the relationship. | Only models linear relationships; curved patterns will be poorly described. |
| The correlation coefficient r gives a quick measure of strength and direction. | Sensitive to outliers — a single extreme point can dramatically shift the line. |
| Enables predictions (interpolation) within the data range with reasonable accuracy. | Extrapolation beyond the data range is unreliable and can produce nonsensical predictions. |
| Residual analysis helps diagnose whether the model is appropriate. | Correlation does not imply causation — lurking variables may create misleading associations. |
| Technology makes the computation nearly instantaneous on a GDC or spreadsheet. | Requires bivariate quantitative data — cannot be applied to categorical variables directly. |
Connection to Advanced Theory
The linear regression you learn in SL 4.2 is the foundation for more powerful techniques you may encounter in HL Mathematics or university statistics courses. The table below shows how the concepts you have learned relate to their advanced counterparts.
| SL 4.2 Concept | Advanced Extension |
|---|---|
| Simple linear regression (one x variable) | Multiple regression: ŷ = a₁x₁ + a₂x₂ + … + b, using several predictor variables simultaneously |
| Pearson's r for linear correlation | Coefficient of determination r² (the proportion of variance explained by the model); Spearman's rank correlation for non-linear monotonic relationships |
| Residuals (y − ŷ) checked visually | Formal residual analysis including tests for normality, homoscedasticity (constant variance), and independence |
| Line of best fit (linear model) | Non-linear regression models: quadratic, exponential, logarithmic, logistic, and polynomial curves fitted to data |
The key idea connecting SL to higher-level work is that r² (the coefficient of determination) tells you what fraction of the variability in y is 'explained' by the model. For instance, if r = −0.987, then r² ≈ 0.974, meaning about 97.4% of the variation in exam scores can be explained by the number of absences. This powerful interpretation extends directly into university-level statistics and data science.
Practice Problems
Lesson Summary
In SL 4.2, you learned to analyse bivariate data using scatter plots to visualize relationships. The Pearson correlation coefficient (r) quantifies the direction and strength of a linear association on a scale from −1 to 1. Using technology (your GDC), you can find the least-squares regression line ŷ = ax + b, where the slope (a) tells you how much ŷ changes for each one-unit increase in x, and the y-intercept (b) gives the predicted value when x = 0.
Residuals (y − ŷ) measure how far each data point falls from the regression line and should be randomly scattered if a linear model is appropriate. Always interpret your results in context. Use interpolation for reliable predictions within the data range, and be cautious with extrapolation outside it. Finally, remember that correlation does not imply causation — lurking variables may create associations that do not reflect a direct cause-and-effect relationship.