IB Syllabus Requirements for Bivariate Statistics
4.4
Linear correlation and regression
4.10
Spearman’s rank correlation coefficient
4.13
Non-linear regression and model evaluation
4.4
LINEAR CORRELATION AND REGRESSION
Bivariate data is a set of paired observations that records two variables for each individual or item. We usually label the explanatory variable and the response variable . Here, is the explanatory-variable value (in units appropriate to the context), while is the response-variable value (in units appropriate to the context). Describing a variable as explanatory doesn’t prove that it causes the other variable to change.
A scatter diagram is a coordinate plot in which each paired observation is represented by a point . From the plot, we can judge the direction, strength and form of an association. We can also spot clusters or possible outliers.
Zero correlation doesn’t always mean that there is no relationship. A clear curved pattern may have little or no linear correlation. That’s why the graph should be inspected before a numerical coefficient is trusted.
Common scatter-diagram patterns and their correlation.
| Pattern | Direction | Linear strength | Scatter shape |
|---|---|---|---|
| Strong positive | Positive | Strong | Points close to an upward straight line |
| Weak positive | Positive | Weak | Upward trend with a wide scatter |
| No correlation | No overall linear trend | None | Random cloud with no clear line |
| Weak negative | Negative | Weak | Downward trend with a wide scatter |
| Strong negative | Negative | Strong | Points close to a downward straight line |
| Curved relation | No overall linear trend | Little or none | Clear curve with little linear correlation |
Pearson’s product-moment correlation coefficient is a dimensionless statistic that measures the direction and strength of a linear relationship between two quantitative variables.
The sign of shows the direction of the linear association; its magnitude shows the strength:
Don’t treat as proof that the variables are unrelated. Pearson’s coefficient describes linearity, so a strong non-linear relationship may be missed. Outliers can also affect it because the coefficient uses the original numerical values.
Calculate using technology. Although a hand calculation can show how standardized deviations combine, you don’t need to derive or prove the coefficient. When a critical value is provided, compare it with the magnitude to decide whether the evidence for linear correlation meets the stated criterion.
A line of best fit is a straight line that represents the central linear trend of a scatter diagram. A line drawn by eye should pass through the mean point . In this point, is the mean of the explanatory-variable values (same unit as ), and is the mean of the response-variable values (same unit as ). Try to balance the spread of points above and below the line instead of joining particular data points.

A regression line of on is a least-squares line used to estimate the response variable from a specified value of the explanatory variable. It has equation
For every one-unit increase in , the model predicts a change of units in . If is positive, the line increases; if is negative, it decreases. The intercept gives the predicted value of when . It has useful contextual meaning only when zero is sensible and reasonably close to the observed domain.
Use technology to find the regression equation, and keep enough digits for any later substitution. To make a prediction, substitute the given -value, then interpret the resulting -value in context.
The order in “ on ” is significant. The line minimizes vertical discrepancies and predicts from . Simply rearranging it to predict from a known is not generally reliable. A separately calculated regression of on may be needed instead.
An interpolation is a prediction made within the observed range of the explanatory variable, whereas an extrapolation is a prediction made beyond that range. There is still uncertainty in interpolation. Extrapolation is more dangerous, however, because it assumes that the observed pattern continues. Forecasts in fields such as public health, environmental science or financial modelling rely on that unverified assumption.

Correlation is a statistical association in which two variables tend to vary together. Causation is a relationship in which a change in one factor produces a change in another. Correlation alone cannot establish causation. The association could be caused by a lurking variable, reverse causation, selection bias, coincidence or poor measurement.
For example, a strong association in observational health data may prompt further scientific investigation. Before drawing a causal conclusion, though, we need controlled evidence and a plausible mechanism. This raises an important knowledge question: mathematics can measure an observed pattern with great precision without explaining why that pattern exists.
The reliability and validity of a regression model depend on more than . Check how the data were collected and whether the variables were measured consistently. Also consider whether the sample represents the relevant population, whether influential outliers are present, whether a straight line is suitable and whether the prediction remains within the observed domain. Scatter diagrams and curves of best fit occur naturally in experimental science and geographical data analysis, but subject knowledge gives the model its meaning.
4.10
SPEARMAN’S RANK CORRELATION COEFFICIENT
Spearman’s rank correlation coefficient is a dimensionless statistic that measures the direction and strength of a monotonic relationship using the ranks of paired observations. The symbol is , where is Spearman’s rank correlation coefficient (no unit), and
A monotonic relationship is an association that moves consistently in one direction, although its rate of change need not be constant. As one variable increases, the other therefore tends always to increase or always to decrease. The pattern can be curved; it doesn’t have to be linear.
Spearman’s coefficient uses ordinal positions instead of the original measurements. Rank both sets of values in the same way—for example, give the smallest value rank in each column—and keep the paired observations together. When two or more values are tied, each receives the average of the ranks they would have occupied. Calculate using technology. You don’t need to derive or prove the formula.
Paired data ranked with average ranks for ties
| Pair | Rank of | Rank of | ||
|---|---|---|---|---|
| A | 12 | 1 | 7 | 2 |
| B | 18 | 2.5 | 9 | 3 |
| C | 18 | 2.5 | 5 | 1 |
| D | 24 | 4 | 12 | 4.5 |
| E | 30 | 5 | 12 | 4.5 |
| F | 36 | 6 | 15 | 6 |
Interpret it in much the same way as Pearson’s coefficient. A value near shows a strong increasing monotonic association, while a value near shows a strong decreasing monotonic association. A value near suggests little monotonic association.
Choose the coefficient based on the form and quality of the data, not simply on which value looks larger.
| Feature | Pearson’s | Spearman’s |
|---|---|---|
| Data used | Original quantitative values | Ranks |
| Relationship measured | Linear | Monotonic, including curved monotonic patterns |
| Effect of outliers | Often strongly affected | Usually less sensitive because only rank positions are used |
| Suitable for ordinal data | No | Yes |
| Main graphical check | Points should follow a straight-line pattern | Points should show a consistent increasing or decreasing trend |

Spearman’s coefficient is less sensitive to outliers, though it isn’t immune to them. An extreme observation may still change rank positions and disrupt the monotonic pattern. Use Pearson’s coefficient when the relationship is genuinely linear and the numerical distances between values matter. Spearman’s is a better choice for ordinal data, a monotonic curve or quantitative data where extreme values would have a disproportionate influence on .
Even a large coefficient doesn’t establish causation. Fieldwork in biology, psychology, environmental studies and exercise science often produces observational data where several factors vary together. International databases can help when exploring these associations. Before comparing country ranks, however, check for differences in definitions, collection methods and population structure.
A fitted pattern doesn’t reveal one uniquely “true” equation either. Several curves may describe the same finite dataset adequately. Choosing between them depends on residual behaviour, predictive performance, subject knowledge and plausible mechanisms. Predictions also assume that the observed pattern will persist. Extrapolation is especially vulnerable when social, environmental or economic conditions change.
4.13
NON-LINEAR REGRESSION AND MODEL EVALUATION
A regression curve is a function fitted to bivariate data in order to model the typical value of a response variable for each value of an explanatory variable. If a scatter diagram shows a systematic bend, a non-linear model may fit the data better than a straight line.
You should be able to use technology to fit and assess the following families:
These models use different letters to avoid confusing their coefficients with the slope and intercept already used in linear regression. Technology may show different parameter letters, so identify each one from its position in the equation.
An exponential model is closely linked to a geometric sequence: each equal increase in multiplies the predicted value by the same factor . A quadratic model has one turning point, while a cubic model can change direction twice. Power models often describe scaling. Sine models represent repeated oscillation.
Comparison of the main non-linear regression model families and their typical curve shapes.
| Model | General form | Typical shape | Main feature |
|---|---|---|---|
| Linear | Straight line | Constant rate of change | |
| Quadratic | Parabola | One turning point | |
| Cubic | S-shaped curve | Can change direction twice | |
| Exponential | Rapidly bending growth or decay curve | Equal steps in multiply the output by | |
| Power | Scaling curve | Fits relationships of the form output proportional to a power of | |
| Sine | Repeating wave | Oscillates with amplitude around the midline |
Start by choosing a plausible model from the scatter diagram and the context. Run the relevant regression, record the equation to suitable precision, then graph it over the data. Don’t assume that a more complicated curve gives a better model. Its extra flexibility may simply chase random variation.
A residual is the signed vertical difference between an observed response and the response predicted by a model. For observation ,
A positive residual places the observed point above the curve; a negative residual places it below. Least-squares regression is a fitting method that selects model parameters to minimize the sum of the squared residuals. Squaring stops positive and negative residuals from cancelling. It also gives more weight to large discrepancies.
The sum of square residuals is a non-negative measure of the total squared vertical discrepancy between observations and a fitted model. It is calculated using
When comparing models for the same response data, a smaller shows a closer in-sample fit. Don’t use this value alone, though; inspect the residual plots as well. For a suitable model, the residuals should scatter around zero without a systematic curve, trend or changing spread.

The coefficient of determination is a dimensionless statistic giving the proportion of variability in the response variable accounted for by a fitted model. It is written , where is the coefficient of determination (no unit), and is evaluated using technology.
For instance, says that the model accounts for about of the observed variability in the response variable. It does not say that of the points lie on the curve. Nor does it mean that predictions are accurate or that the explanatory variable causes the response.
The underlying relationship is useful:
For a least-squares linear model with an intercept,
Squaring removes the sign. As a result, measures explained variation but cannot show whether the linear association is positive or negative. The sign of provides that information.
A high provides evidence that the model fits the observed responses closely. It does not prove that the model is valid. Before choosing one, ask:
For this reason, graphical analysis in the sciences combines with residuals and subject knowledge. Several models may fit the same dataset well, particularly across a short interval. The most defensible model isn’t necessarily the curve with the largest displayed . Choose the one whose assumptions, residual behaviour and contextual interpretation best support its intended use.