Transforming data to linearity in WACE Mathematics Applications Unit 3
“Apply squared, logarithmic and reciprocal transformations to linearise data, fit a least-squares line to the transformed data and use it to predict.”
When a scatterplot is curved, a straight line is the wrong model, so transform one variable to straighten it first. The squared transformation ( or ) and the reciprocal ( or ) and the logarithm () each straighten a particular curve shape. Fit the least-squares line to the transformed variable, then back-substitute to predict in the original units.
Jump to a section
What this dot point is asking
You must choose a transformation from the curve shape, fit a line to the transformed data, predict by substituting, and convert predictions back to original units.
Why transform
The least-squares line and the correlation coefficient only describe linear association. If the scatterplot is clearly curved, fitting a straight line gives poor predictions and a misleading . A transformation changes the scale of one variable so the relationship becomes linear, after which all the linear tools work.
Never fit a line to a curve. Transform first so the transformed scatterplot is approximately linear, then apply least-squares. Residual plots from the original fit will show a clear curved pattern, which is the signal that a transformation is needed.
Choosing the transformation from the shape
The three transformations in the course each suit a particular curve.
- Squared ( or ): straightens a curve that increases at an increasing rate (concave up). Squaring stretches the right of the plot; squaring stretches the top.
- Reciprocal ( or ): straightens a curve that decreases steeply then levels off, or rises towards a horizontal asymptote.
- Logarithm ( or ): straightens exponential-type growth or decay, where the variable multiplies by a roughly constant factor.
A practical method is the "circle of transformations": decide whether the curve bulges up or down and left or right, then pick the transformation that stretches the crowded part of the plot. In an exam, try the transformation suggested by the question and confirm the transformed plot or improves.
Fitting and predicting
After transforming, the least-squares line is written in terms of the transformed variable, for example or . To predict:
- Substitute the given value, transforming it the same way as the data.
- If the response variable was transformed, back-transform the result (square root, reciprocal, or ).
Linearising a reciprocal relationship
The time (minutes) to fill a tank falls as the pump rate (litres per minute) rises, in a curve that drops steeply then levels. A least-squares line of against gives .
Confirm the transformation
A falling, levelling curve suits the reciprocal , which stretches the small- end where the curve is steep, straightening it.
Predict the time at r = 8
Substitute : minutes.
Predict the rate for a target time
For minutes: , so , giving and litres per minute.
Interpret
The model predicts that filling in minutes needs a pump rate of about litres per minute. Because this rate is well beyond the data range, treat it as an extrapolation and report it with caution.
Back-transforming a log model
When is the response, predictions come out as a log value that must be undone with a power of ten. If gives , then . Forgetting this final step is the single most common error in log questions.
- Forgetting to back-transform
- If the response variable was transformed, undo it (square root, reciprocal or ) to return to original units.
- Transforming the prediction value differently from the data
- Apply the same transformation to the input as was applied to build the model.
- Fitting a line to obviously curved data
- A transformation is needed first; a high on a curve does not justify a straight line.
- Choosing the wrong transformation
- Match the transformation to the curve shape, then check the transformed plot or improves before trusting it.
Exam-style questions
Questions in the style of SCSA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
WACE 2022-style6 marksA scatterplot of against is curved, increasing and concave up. After applying the transformation , the least-squares line of on is . (a) Explain why a squared transformation was suitable. (b) Predict when . (c) Predict the value of (positive) when .Show worked answer →
A concave-up increasing curve is straightened by stretching the axis with .
(a) The transformation spreads out large values, straightening a curve that rises ever more steeply, so the transformed plot of against is approximately linear. (2 marks)
(b) When , , so . (2 marks)
(c) Set , so , giving and (positive root). (2 marks)
Markers reward justifying the transformation by the curve shape, substituting correctly, and solving back to original units.
WACE 2024-style5 marksBacterial count grows rapidly with time (hours). A least-squares line fitted to against gives . (a) Predict the count when . (b) State why a log transformation suited this data.Show worked answer →
A log transformation linearises a quantity that multiplies by a roughly constant factor each period.
(a) When , , so bacteria. (3 marks)
(b) Bacterial growth is exponential (a roughly constant percentage increase each hour), which plots as a steep curve. Taking converts the constant-ratio growth into a constant-difference, straight-line relationship with time. (2 marks)
Markers reward back-transforming with and explaining the log transformation by the exponential growth.