Data transformation to linearise: VCE General Mathematics Unit 3 Data analysis
“Data transformation and its use in transforming some forms of non-linear data to linearity using a square, logarithmic (base 10) or reciprocal transformation (applied to one axis only), and interpretation and use of the equation of the least squares line fitted to the transformed data to make predictions”
When a scatterplot is curved (or its residual plot shows a clear pattern), transform one variable only, using a square, log (base 10) or reciprocal, to straighten it. Choose the transformation from the shape of the curve with the circle of transformations, then check it with a higher and a random residual plot. Make a new list of the transformed values, fit the least squares line with that list in place of the original variable, and write the equation with the transformed variable in it. To predict, transform the input first, substitute, and undo any transformation on the response last.
Jump to a section
What this dot point is asking
Under "Investigating and modelling linear associations" the Study Design lists "data transformation and its use in transforming some forms of non-linear data to linearity using a square, logarithmic (base 10) or reciprocal transformation (applied to one axis only)" and "interpretation and use of the equation of the least squares line fitted to the transformed data to make predictions". You need to:
- recognise from a scatterplot, or from a patterned residual plot, that an association is non-linear;
- choose a transformation (, , , , or ) that straightens the data;
- fit a least squares line to the transformed data with CAS and write its equation in terms of the transformed variable;
- use that equation to predict, transforming the input first and undoing any transformation on the response at the end, and to solve backwards when the response is given;
- compare models using and residual plots.
Transformation questions appear in Examination 1 every year, usually as a pair on one data set. In 2023 Examination 1 Questions 11 and 12 used plantation tree heights ( and correct), and in 2025 Examination 1 Questions 11 and 12 used life expectancy and doctors ( and ).
The answer
Why transform at all?
A least squares line assumes the association is linear. When the scatterplot curves, a straight line fits badly in a systematic way: it predicts too high in some regions and too low in others. The residual plot shows this as a pattern (an arch or a U) rather than random scatter, even when looks respectable.
For the 11 plantation trees in 2023 Examination 1, the raw least squares line (height age) has . Its residuals, in order of age, are negative for ages 4 and 5 (about and ), close to zero at 6, positive from 7 to 11 (up to ), then negative again from 12 to 14: a clear arch. The reciprocal model's residuals, by contrast, are all within about 1 of zero with no pattern. The line is the wrong form, so transforming is the fix, not a better line.
A transformation re-expresses one variable on a new scale so that the points lie close to a straight line. You then fit an ordinary least squares line to the new variable.
The six moves (one axis only)
| Transform | Transform | Effect on that axis |
|---|---|---|
| stretches the large values apart | ||
| compresses the large values | ||
| compresses the large values strongly (and reverses the order) |
The Study Design says "applied to one axis only": in any one model you transform or , not both. A log or reciprocal transformation needs every value of that variable to be positive.
Choosing a transformation: the circle of transformations
Match the shape of the scatterplot to one quarter of a circle. The transformations beside that quarter are the ones that pull the curve straight.
The logic is the same on every arc. If the curve bends so that it bulges towards large (bottom right and top right), stretch the axis with . If it bulges towards small (top left and bottom left), compress with or . The same rule applies to : a bulge towards large calls for , and a bulge towards small calls for or .
The two exam data sets fit this exactly. Tree height against age rises steeply and levels off (top left), and VCAA used and . Life expectancy against doctors rises slowly then steeply (bottom right), and VCAA used and .
Usually more than one transformation works. Choose between them by fitting each and comparing:
- the coefficient of determination (higher is better), and
- the residual plot (random scatter, no pattern).
| Tree data (2023) | Life data (2025) | |||
|---|---|---|---|---|
| height on age | 0.818 | life on doctors | 0.717 | |
| height on | 0.917 | on doctors | 0.739 | |
| height on | 0.957 | on doctors | 0.760 | |
| height on | 0.693 | life on | 0.840 |
Squaring age made the tree data worse ( fell to 0.693), because it stretches the wrong end: that curve needed compressing. Choosing a transformation from the wrong arc is easy to detect this way.
Fitting the line on CAS
- Enter the two variables as lists (for example age and height).
- Make a new list holding the transformed values: , or (or the same for the response). On both TI-Nspire and ClassPad,
logis base 10. - Run linear regression with the new list in place of the variable you transformed. If was transformed, the new list is the list; if was transformed, the new list is the list.
- Write the equation using the transformed variable name, for example height , never height age.
Predicting from a transformed model
The fitted equation is linear in the transformed variable, so prediction is careful substitution:
- transformed: transform the given first, then substitute. For life at 2 doctors, substitute .
- transformed: substitute , which gives the transformed response, then undo it: for a log, for a square, for a reciprocal.
- Solving backwards (response given, explanatory unknown): rearrange for the transformed , then undo it last. For height and height 8.52 m, and age years.
Interpreting the transformed equation
The slope and intercept describe the transformed variable. In height , height increases by 12.6 m, on average, for each increase of 1 in , which is a tenfold increase in age (for example from 1 to 10 years). In life , life increases by 2.842 years for each increase of 1 in the square of the number of doctors, so the gain from each extra doctor grows as doctors increase. You will usually be asked to use a transformed equation to predict rather than to interpret its slope, but say "for each increase of one in " if you are asked.
All the usual warnings about linear models still apply. A transformation is justified only over the range of the data, so extrapolation is even riskier: the reciprocal tree model predicts a negative height for a 3-year-old tree ( m). And a good fit is association, not proof of causation.
transformed: ; transform , then substitute. transformed: ; substitute, then undo: (log), (square), (reciprocal). Choose the model with the higher and a random residual plot.
Fitting a reciprocal model (2023 Examination 1 Question 11)
- Step 1: identify the transformation and the axis
- "A reciprocal transformation applied to the variable age", with as the explanatory variable. So and .
- Step 2: make the new list
- , , , and so on for all 11 trees.
- Step 3: regress
- Linear regression of height on gives and , with .
- Step 4: sense check the sign
- Older trees are taller, but older trees have smaller , so the slope must be negative. Height . Answer: D.
Solving a log model backwards (2023 Examination 1 Question 12)
- Step 1: substitute the known height
- .
- Step 2: isolate the log
- , so
- Step 3: undo the log
- age . Answer: D (9.5 years).
Check: and .
A log transformation of the response (2025 Examination 1 Question 11)
- Step 1: axis
- is the response, so doctors stays as the list and a new list is the list: , ..., .
- Step 2: regress
- , . So . Answer: C.
- Step 3 (if asked to predict)
- At 2 doctors, , so life years. Keep the unrounded coefficients until the end: using the rounded 1.79 and 0.0383 gives 73.6, because a small change in a log becomes a larger change after .
A squared transformation of the explanatory variable (2025 Examination 1 Question 12)
- Step 1: new list
- : , , ..., .
- Step 2: regress life on it
- Life , .
- Step 3: predict
- Doctors so : life years. Answer: C.
Choosing between models
For the life data, compare the four fitted lines: life on doctors (), on doctors (0.739), on doctors (0.760), life on (0.840). The squared transformation of doctors explains the most variation: of the variation in life expectancy is explained by the variation in . Before finally choosing it, check that its residual plot shows no clear pattern.
Undoing a reciprocal on the response
A model is . Predict when .
Step 1: .
Step 2: (to two decimal places).
- Substituting the raw value
- With life , the input is , not 2. With a log model, the input is .
- Forgetting to undo a transformation on
- is not a life expectancy; is.
- Regressing on the wrong lists
- Put the transformed list where the transformed variable belongs: if is the explanatory variable it is the list, and height stays as . Option C in 2023 Question 11 (the untransformed regression) drew of students.
- Wrong sign on a reciprocal slope
- If increases with , the slope on is negative.
- Transforming both axes
- VCE transformations are applied to one axis only.
- Choosing by the look of the equation
- Choose by and the residual plot, or use the transformation the question names.
- Rounding too early with a log response
- Small rounding in a log becomes a larger error after raising 10 to the power.
- Extrapolating
- A transformed model can give absurd values (even negative heights) outside the data range.
In multiple choice, run the regression; do not try to eliminate options by inspection unless you are short of time. Two quick checks catch most wrong options: the sign of the slope (does the transformed variable increase or decrease as the original does?) and the size of the intercept (for a log response, the intercept must be close to the log of typical values). In written answers, show the transformed value explicitly ("" or "") so the marker can follow the method.
Where transformations fit in the course
Transformation is the last step in the linear-modelling cycle. You describe the scatterplot (direction, form, strength), fit a least squares line, and check it with a residual plot. When the residual plot shows a pattern, the form is non-linear, and transformation lets you keep using least squares on a re-expressed variable. The same tools, and the residual plot, then confirm that the transformed model is better.
Logarithms also appear in the Study Design's log (base 10) scales for data spread over several orders of magnitude. A transformation is the same idea applied to a regression: it compresses large values so that a curve spread over a wide range becomes a line.
Sometimes the dots on a scatterplot bend instead of lying along a line, so a straight line is the wrong model. You can fix this by changing one of the variables: square it, take its log, or take one over it. Pick the change that makes the dots straightest (the highest and no pattern in the residuals). Then fit a normal line to the changed numbers. To use it, change your input in the same way before you substitute, and if the variable was changed, change the answer back at the end.
Exam-style questions
Questions in the style of VCAA 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.
2023 VCAA Exam 1 Q11Past paper1 markThe table below shows the height, in metres, and the age, in years, for 11 plantation trees. [Table (age, height): (10, 9.5), (8, 8.0), (13, 9.7), (9, 9.1), (11, 9.4), (14, 9.8), (6, 6.0), (4, 3.5), (12, 9.6), (7, 7.8), (5, 4.0).] A reciprocal transformation applied to the variable age can be used to linearise the scatterplot. With as the explanatory variable, the equation of the least squares line fitted to the linearised data is closest to A. height B. height C. height D. height E. height
Show worked answer →
Make a new list (for example , , ...), then run linear regression with as and height as :
So height , option D ( correct).
The slope must be negative: as age increases, decreases while height increases. Option C () is the regression of height on the untransformed age (); the reciprocal model has .
Source: VCAA 2023 General Mathematics Examination 1, Question 11, and the 2023 examination report.
2023 VCAA Exam 1 Q12Past paper1 markThe scatterplot can also be linearised using a logarithm (base 10) transformation applied to the variable age. The equation of the least squares line is height . Using this equation, the age, in years, of a tree with a height of 8.52 m is closest to A. 7.9 B. 8.9 C. 9.1 D. 9.5 E. 9.9
Show worked answer →
This time the height is given and the age is unknown, so solve backwards and undo the log last:
The age is closest to 9.5 years, option D ( correct). A student who stops at has found the transformed value, not the age.
Source: VCAA 2023 General Mathematics Examination 1, Question 12, and the 2023 examination report.
2025 VCAA Exam 1 Q11Past paper1 markThe table below shows the life expectancy in years, life, and the number of doctors per 1000 people, doctors, for a sample of 10 countries in 2024. [Table (doctors, life): (0.21, 64.6), (0.42, 64.4), (0.59, 64.7), (0.79, 65.1), (1.12, 65.9), (1.42, 66.7), (1.72, 68.6), (1.77, 70.9), (1.94, 73.8), (2.05, 79.1).] A logarithmic (base 10) transformation was applied to the variable life. With as the response variable, the equation of the least squares line fitted to the transformed data is closest to A. B. C. D.
Show worked answer →
The transformation is on the response variable, so doctors stays as and the new list becomes (for example ).
Linear regression gives and , so
option C ( correct).
Quick check: every life value is between 64 and 80, so is between 1.80 and 1.90. An intercept of 1.57 or 1.63 would predict a life expectancy below 45 years at zero doctors, which does not fit the data.
Source: VCAA 2025 General Mathematics Examination 1, Question 11, and the 2025 examination report.
2025 VCAA Exam 1 Q12Past paper1 markA squared transformation was applied to the variable doctors. [Same 10 countries: (doctors, life) = (0.21, 64.6), (0.42, 64.4), (0.59, 64.7), (0.79, 65.1), (1.12, 65.9), (1.42, 66.7), (1.72, 68.6), (1.77, 70.9), (1.94, 73.8), (2.05, 79.1).] The equation of the least squares line fitted to this transformed data is of the form life . Using this equation, the predicted life, in years, for a country with two doctors per 1000 people is closest to A. 73.6 B. 74.0 C. 74.5 D. 74.9
Show worked answer →
Step 1: fit the line to the transformed data. Make a list of and regress life on it:
Step 2: transform the input, then substitute. Two doctors per 1000 people gives :
The prediction is closest to 74.5 years, option C ( correct). Substituting 2 instead of 4 gives about 68.8, which is not an option, so students who went wrong usually made the regression step with the wrong lists.
Source: VCAA 2025 General Mathematics Examination 1, Question 12, and the 2025 examination report.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksA scatterplot of against rises slowly at first and then more and more steeply. (a) Name three transformations from the VCE list that could linearise it. (b) Explain in one sentence what squaring does to the scatterplot.
Show worked solution →
(a) The curve is increasing and bends upwards (the bottom-right arc of the circle of transformations), so try , or . (1 mark for all three)
(b) Squaring stretches the large values much further apart than the small ones, which pulls the steep right-hand end of the curve out sideways until the points lie close to a line. (1 mark)
foundation2 marksThe model was fitted to transformed data. Predict the score when (a) time (b) time , correct to two decimal places.
Show worked solution →
(a) , so score . (1 mark)
(b) , so score . (1 mark)
Always take the log of the input first; is never part of the working.
core2 marksA reciprocal model is . (a) Predict when . (b) Find the value of for which the model predicts .
Show worked solution →
(a) first: . (1 mark)
(b) , so and . (1 mark)
core2 marksA log transformation was applied to the response variable, giving . (a) Predict when , correct to one decimal place. (b) A student gives the answer 1.365. Explain the error.
Show worked solution →
(a) , so . (1 mark)
(b) 1.365 is the predicted value of , not of . Because the response was transformed, the last step must undo the log by raising 10 to that power. (1 mark)
core1 markA squared transformation was applied to the response variable, giving . Predict when , correct to two decimal places.
Show worked solution →
, so (taking the positive root, as the data values are positive). (1 mark)
exam4 marksFor eight values of the response is: and . (a) The least squares line of on has , and its residuals are negative, then positive, then negative. What does this tell you? (b) Find the least squares line of on , with coefficients to four significant figures, and its . (c) Use it to predict when , to two decimal places.
Show worked solution →
(a) The residual plot has a clear curved pattern, so the association is non-linear and a straight line on the raw data is not appropriate, despite the high . (1 mark)
(b) New list : . Linear regression with this list as :
(c) , so . (1 mark)
exam3 marksFor the 11 plantation trees in the 2023 VCAA question, is 0.818 for height on age, 0.917 for height on and 0.957 for height on . The ages range from 4 to 14 years. (a) Which model should be used? Give a reason. (b) Use height to predict the height of a 20-year-old tree. (c) Comment on the reliability of this prediction.
Show worked solution →
(a) The reciprocal model: it has the highest coefficient of determination, so of the variation in height is explained by the variation in (and its residual plot shows no clear pattern). (1 mark)
(b) height m. (1 mark)
(c) Unreliable: 20 years is outside the range of the data (4 to 14 years), so this is extrapolation. The log model predicts 12.6 m for the same tree, which shows how much two good-fitting models can disagree outside the data. (1 mark)
Practise this
Sources & how we know this
- VCE General Mathematics Examination 1 (2023) and examination report — VCAA (2023)
- VCE General Mathematics Examination 1 (2025) and examination report — VCAA (2025)
- VCE Mathematics Study Design: General Mathematics (from 2023) — VCAA
- VCE General Mathematics: examination specifications, past examinations and reports — VCAA