Transformations for Linearity
Use power, logarithmic, and exponential transformations to achieve linearity.
Try the Interactive Version!
Learn step-by-step with practice exercises built right in.
Transformations to Achieve Linearity
Why Transform?
When the relationship between and is not linear, we can transform one or both variables to make the relationship linear. This allows us to use linear regression methods.
Common Nonlinear Patterns
Exponential Growth:
Take the logarithm of y:
This is linear in vs. .
Power Model:
Take the logarithm of both x and y:
This is linear in vs. .
Steps for Transformation
- Examine the scatterplot: Identify the type of curve
- Apply the appropriate transformation
- Check the residual plot: Should show random scatter
- Check : Should be high
- Write the model: In transformed and original form
Logarithmic Transformation Summary
| Original Model | Transform | Linear Form | |----------------|-----------|-------------| | (exponential) | | | | (power) | and | |
Making Predictions with Transformed Models
After fitting a model to :
- Find using the regression equation
- Back-transform:
Example: Exponential Model
Data suggests exponential growth. After plotting vs. :
Regression:
To predict when :
Evaluating the Transformation
A good transformation produces:
- A linear scatterplot (in the transformed variables)
- A random residual plot
- A high value
- A reasonable model in context
Square Root Transformation
Sometimes vs. works well for count data or data where variability increases with the mean.
AP Tip: On the AP exam, you may be given transformed data and asked to interpret the regression. Be comfortable going back and forth between and using the exponential function.
📚 Practice Problems
No example problems available yet.