Predicting from a transformed regression
A transformed regression predicts on the scale used by its fitted equation. Start with the original explanatory value, apply any required input transformation, then undo a response transformation before reporting the prediction
- Start with the original input Use the stated explanatory-variable value before deciding whether the explanatory side needs a transformation \(\displaystyle x=4\Rightarrow\text{start with }4\)
- Transform the input when required If the explanatory side is transformed, apply that operation before substituting into the fitted line. This input-square calculation is a separate example \(\displaystyle x'=x^{2}=4^{2}=16\)
- Substitute into the line For the response-square example, the input remains x=4. Evaluate the fitted equation to find the predicted response on its stated transformed scale \(\displaystyle \widehat{y^{2}}=5+4\times4=21\)
- Undo the response transformation Return to the original response scale and use its stated domain to choose an inverse branch \(\displaystyle y\ge0,\quad\widehat{y}=\sqrt{21}\approx4.6\)
Worked example
For the fitted model and observed explanatory range shown, predict the non-negative response at the stated input to 1 decimal place
- \(\displaystyle 2\times6=12\)Calculate the slope contribution for the original explanatory value
- \(\displaystyle \widehat{y^{2}}=7+12=19\)Add the intercept to obtain the predicted squared response
- \(\displaystyle y\ge0\Rightarrow\widehat{y}=\sqrt{19}\)Use the non-negative square-root branch because the response domain is non-negative
- \(\displaystyle \sqrt{19}\approx4.4\)Round the original-scale prediction to 1 decimal place
Common mistakes
Difficulty levels
Questions about this topic
Why can the explanatory input need transforming?+
The fitted line uses the transformed explanatory coordinate. The original input must be changed to that coordinate before substitution
Why is the non-negative square root used?+
The response is stated to be non-negative in this lesson, so its squared prediction is inverted using the non-negative root. A different stated domain can require a different branch
How is interpolation decided for a transformed model?+
Compare the original explanatory input with the observed explanatory-variable range. Transforming an axis does not change whether the original input is inside that range
Can I use a calculator?+
A calculator is allowed unless a question is marked no calculator
Which year level and chapter is this?+
Year 12, VCE Units 3 & 4, General Mathematics, chapter 4: Data transformation