| Study Guides
AP · Transforming to Achieve Linearity · 14 min read · Updated 2026-05-10

Transforming to Achieve Linearity — AP Statistics Study Guide

For: AP Statistics candidates sitting AP Statistics.

Covers: Exponential and power function non-linear models, log transformations (natural and common log), linear regression on transformed data, back-transformation for predictions, and residual analysis for model selection.

You should already know: Simple linear regression least squares estimation, how to interpret residual plots for linearity, basic properties of logarithms.

A note on the practice questions: All worked questions in the "Practice Questions" section below are original problems written by us in the AP Statistics style for educational use. They are not reproductions of past College Board / Cambridge / IB papers and may differ in wording, numerical values, or context. Use them to practise the technique; cross-check with official mark schemes for grading conventions.


1. What Is Transforming to Achieve Linearity?

Many real-world two-variable relationships (such as bacterial growth, radioactive decay, planetary orbital periods, and stopping distance) follow non-linear patterns, so a straight least-squares regression line will produce biased predictions and systematic error in residuals. Transforming to achieve linearity is the process of applying a mathematical re-expression (usually a logarithmic or power transformation) to one or both variables to convert a curved relationship into a linear one, allowing us to use existing simple linear regression tools to fit and analyze the model.

This topic is explicitly required by the AP Statistics Course and Exam Description (CED) for Unit 2: Exploring Two-Variable Data, which makes up 20-30% of the total AP exam score, with linearization accounting for 10-15% of Unit 2 content. It appears in both multiple-choice questions (testing transformation identification and back-transformation) and free-response questions (requiring model selection, fitting, and prediction). Synonyms for this technique include linearization of non-linear models and data re-expression.

2. Log Transformation for Exponential Models

Exponential models describe relationships where the response variable changes by a constant percentage rate for each 1-unit increase in the explanatory variable. The general form of an exponential model is: where is the response variable, is the explanatory variable, is the initial value of when , and is the constant growth/decay factor ( for growth, for decay). This relationship is always curved on the original - scale, so we linearize it by taking the logarithm of both sides: This is a linear equation! If we let , , and , we get the standard linear form: We fit a least-squares regression line to the transformed data to get estimates of and , then back-transform to recover and for the original exponential model. Residual plots on the transformed data confirm if linearization worked: random scatter around zero means the model is appropriate.

Worked Example

A microbiologist studying bacterial growth obtains the following regression output after transforming the response variable (number of bacteria ) to linearize the relationship with time (hours): . Write the exponential model for as a function of .

  1. Recall the linearized form of an exponential model: , where and .
  2. Match coefficients from the given regression: , .
  3. Back-transform to solve for and : , .
  4. Write the final exponential model for the original data: .

Exam tip: If the problem uses base-10 (common) logs instead of natural logs, back-transform with base 10, not . If , then — always match the log base when exponentiating.

3. Power Transformations for Power Function Models

Power function models describe relationships where the response variable is proportional to a fixed power of the explanatory variable. Common examples include Kepler's third law of planetary motion, stopping distance vs speed, and area vs side length. The general form of a power model is: where is a constant of proportionality and is the power the explanatory variable is raised to. Like exponential models, power models are curved on the original scale, but linearization requires transforming both variables. Take the logarithm of both sides to get: Let and , so this becomes the linear equation: We fit least-squares regression to the transformed data, get an intercept and slope equal to the power , then back-transform to get the original power model .

Worked Example

A civil engineer measures the stopping distance (meters) of a car moving at speed (km/h) and fits a linear regression to transformed data, resulting in . Write the power model for and interpret the slope of the transformed model.

  1. Recall the linearized form of a power model is , where is the power in the original model.
  2. Match coefficients: , . Back-transform to get .
  3. Write the original power model: .
  4. Interpret the slope: A 1-unit increase in corresponds to a 2.05-unit increase in , which means a 10% increase in speed corresponds to approximately a increase in predicted stopping distance .

Exam tip: The most common MCQ error is mixing up transformations: exponential models only need transformed, power models need both and transformed. Memorize the derivation, not just the rule, to avoid this mistake.

4. Residual Analysis and Model Selection

When you start with a curved scatterplot of vs , you will often test multiple transformations to find one that produces a linear relationship. The primary tool for selecting the appropriate transformation is residual analysis: after fitting a linear regression to the transformed data, you plot the residuals from the transformed regression against the explanatory variable . If the residual plot has no systematic curved pattern (residuals are randomly scattered around zero), the transformation successfully linearized the relationship, and the model is appropriate. If there is still a visible curve, you need to test a different transformation.

AP Statistics almost always asks for justification of model selection, which requires referencing the residual plot pattern. Higher on a transformed scale is not a valid justification on its own, because values are not comparable across different transformation scales.

Worked Example

A materials scientist testing the relationship between object volume (cm³) and mass (g) produces three residual plots after testing different transformations: (1) Residuals for untransformed vs : clear U-shaped curve; (2) Residuals for vs : randomly scattered around zero with no pattern; (3) Residuals for vs : clear upward curved trend. Which transformation is appropriate, and what model does this correspond to?

  1. The goal of transformation is to achieve linearity, which is confirmed by a residual plot with no systematic pattern.
  2. Eliminate the untransformed model and the vs model, because both residual plots have clear curved patterns that show the relationship is still non-linear after transformation.
  3. The vs transformation produces random residual scatter, so it is the appropriate choice.
  4. A linear relationship between and corresponds to a power function model for the original data.

Exam tip: Always explicitly reference the residual pattern in your justification: saying "no curved pattern so the model is appropriate" will get you full credit, while just saying "the model fits better" will not.

5. Common Pitfalls (and how to avoid them)

  • Wrong move: Confusing transformations for exponential vs power models, transforming for exponential or only for power. Why: Students memorize "log works for linearization" and forget which variable to transform based on model form. Correct move: Always write the original model first, derive the linear form by taking logs of both sides, then identify which variables need transformation.
  • Wrong move: Mixing up log bases during back-transformation, using for base-10 logs or 10 for natural logs. Why: Students assume all log transformations use natural log and don't check the problem's given transformation. Correct move: Explicitly note the log base before back-transforming, and match the base when exponentiating.
  • Wrong move: Reporting the predicted value of the transformed as the prediction for original , forgetting to back-transform. Why: Students stop after calculating the prediction from the transformed regression and don't circle back to the question's request. Correct move: Always check if the question asks for a prediction on the original variable scale, and back-transform if required.
  • Wrong move: Selecting a model with higher over a model with random residuals, just because is larger. Why: Students are used to using for model comparison, but it is not comparable across different transformation scales. Correct move: Always use residual pattern first to select a linearizing transformation, only use to compare models that both produce random residuals on the same transformed scale.
  • Wrong move: Interpreting the slope of the transformed model directly on the original scale. For example, saying "a 1-unit increase in gives a 0.32 increase in " when the slope is for . Why: Students forget the response variable was transformed, so the slope is on the transformed scale. Correct move: Always explicitly state if you are interpreting the slope on the transformed scale, or back-transform the interpretation to the original variable scale.
  • Wrong move: Plotting residuals from transformed regression against the original response instead of the explanatory variable to check for pattern. Why: Students mix up which variable to use for residual plots. Correct move: Always plot residuals against the explanatory variable to check for remaining non-linear pattern.

6. Practice Questions (AP Statistics Style)

Question 1 (Multiple Choice)

A researcher studies the relationship between the number of years a business has operated and the business's total annual profit (in thousands of dollars). The relationship follows a power model . Which of the following transformations will linearize this relationship? A) vs B) vs C) vs D) vs

Worked Solution: To linearize a power model , take the natural logarithm of both sides to get , which is linear in and . Option B is the transformation for an exponential model, not a power model. Options C and D do not produce a linear relationship for a power model. The correct answer is A.


Question 2 (Free Response)

Ecologists studying tree growth in a regenerating forest collect data on tree height (meters) and years since planting , and test two models:

  • Model 1 (linear regression of on ): Residual plot has a clear upward curved pattern.
  • Model 2 (linear regression of on ): Residual plot is randomly scattered around zero, with regression equation .

(a) Which model is more appropriate for this relationship? Justify your answer. (b) Write the equation of the non-linear model for predicted tree height in terms of . (c) Predict the height of a tree that has been growing for 25 years. Round your answer to one decimal place.

Worked Solution: (a) Model 2 is more appropriate. A successful transformation to achieve linearity produces a residual plot with no systematic curved pattern. Model 1 has a clear curved residual pattern, meaning the relationship between and remains non-linear, while Model 2 has random scatter, so it successfully linearized the relationship. (b) For the linearized exponential model , we have and . Back-transforming gives and . The final model is . (c) Substitute : meters. The predicted height of a 25-year-old tree is 28.1 meters.


Question 3 (Application / Real-World Style)

Biologists study the relationship between the body mass (in kilograms) of a mammal and its average resting heart rate (in beats per minute). The relationship is known to follow a power model . A regression on transformed data gives , for a mass range of 0.01 kg (shrew) to 4000 kg (elephant). Write the power model for , then predict the resting heart rate of a 64 kg human. Round your answer to the nearest whole number, and interpret your prediction in context.

Worked Solution: For the linearized power model , we have and . Back-transforming gives , so the power model is . Substitute : . Multiply by 121.51 to get beats per minute. In context, the model predicts that a 64 kg human has a resting heart rate of approximately 43 beats per minute, which is close to the typical range for healthy resting heart rates for adults.

7. Quick Reference Cheatsheet

Category Formula Notes
Exponential Model (original) Used for constant percent growth/decay;
Linearized Exponential Only transform response variable ; match log base for back-transformation
Power Model (original) Used for proportional scaling relationships;
Linearized Power Transform both response and explanatory
Back-transformation (Natural Log) For predictions on original scale after natural log transformation
Back-transformation (Common Log) For predictions after base-10 log transformation
Model Fit Check Residual plot with no systematic curved pattern Always confirm fit with residuals, not just
Slope Approximation (Power Model) 1% change in → ~% change in Works for small percentage changes in

8. What's Next

Transforming to achieve linearity is the foundation for working with non-linear relationships across the entire AP Statistics course. Immediately after this topic in Unit 2, you will move to learning outliers and influential points, then on to multiple regression, where you will extend these linearization ideas to model curvilinear relationships with multiple explanatory variables; without mastering how to re-express non-linear data to fit linear models, multiple regression modeling will be much harder to interpret. Across the rest of the course, this topic feeds directly into inference for regression, where you will conduct hypothesis tests and build confidence intervals for slopes of transformed linear models.

← Back to topic

Stuck on a specific question?
Snap a photo or paste your problem — Ollie (our AI tutor) walks through it step-by-step with diagrams.
Try Ollie free →