Unit 4 of 4 · Correlation and linear regression
Transform variables and compare models
Track units and signs, then linearise a nonlinear relationship.
Transform units and track the sign of correlation
Write the variable transformation explicitly. For correlation, check the signs of both scale factors. For a transformed regression, identify the scale on which residuals were minimised, then undo the transformation to interpret the prediction.
For defined correlation and nonzero scale factors, if and , then
Translations do not change correlation. Positive rescaling of either variable does not change it; reversing just one axis changes its sign. Reversing both leaves the sign unchanged. Scaling a variable by zero makes it constant, so correlation is undefined.
The source introduces and , then says such linear transformations do not affect correlation. For this particular pair, the product of scale factors is negative, so : the magnitude stays the same but the sign reverses. Its later precise condition is the condition for an unchanged value; the general “multiply or divide” wording must retain that condition.
Track what changes in the fitted line
For regression, translating data preserves the gradient but can change the intercept. Rescaling axes generally changes the gradient as well. In Example 9, the scales are both positive, so the two calculated coefficients really are equal. The source notes that a covariance proof lies beyond the syllabus; the sign rule here makes the needed qualification explicit without requiring that proof.
Linearise a nonlinear relationship
A nonlinear pattern can sometimes be represented by a straight line after transforming variables. The source introduces quadratic, logarithmic and reciprocal relationships; fit the response against the correct transformed explanatory variable and inspect the transformed scatter too. Logarithms require positive arguments, and reciprocals require nonzero inputs.
A straight-line trend changes at a constant rate. Curvature may show an increasing or decreasing rate of change, but that description alone does not identify an exponential model. The source’s broad exponential wording is therefore a description to check against the actual proposed formula. Example 10 fits logarithms of both variables, giving a power law; Example 11 compares speed and squared speed as explanatory inputs.
Return a transformed fit to the measurement scale
Positive observations at explanatory values give the fitted model . Write the corresponding y model, estimate y at x=2 and interpret a one-unit increase in x. Discuss prediction at x=8 and explain which residuals were minimised by fitting the stated line.
After your attempt: compare the reasoning
Exponentiating gives , so the model prediction at x=2 is . A one-unit increase in x multiplies the fitted y value by ; it does not add 0.5 to y. The logarithm requires positive y values.
The x=8 prediction is outside the observed explanatory range and needs additional justification for the continued model shape. The fitted line minimises squared residuals in , not in y on its original scale. A good transformed correlation alone does not establish that every original-scale prediction is reliable.
Try these examples
Open an example in chapter practice. Try it first, then read its solution. Use “Learn this step” to return to this unit.