Outliers, Influential Points and Transforming for Linearity
AP Statistics · Unit 5 — Regression Analysis
Key takeaway
From the May 2027 exam, transformations to achieve linearity (taking logs, exponential / power models) are no longer on the AP Statistics exam. Outliers and influential points are still tested.Three kinds of unusual point
An outlier in regression is a point with a large residual — it lies far from the line vertically. A high-leverage point is one whose $x$-value is far from $\bar x$; it may sit right on the line and still have leverage. A point is influential if removing it changes the slope, the intercept or $r$ substantially. High-leverage points are the usual culprits: a single distant $x$ can drag the whole line toward itself and inflate $r$. The AP test asks you to describe the effect of removing such a point, not to delete it — you may only remove data when you know it is an error.
When the scatter is curved
A curved residual plot means the linear model is wrong for the raw data. The fix is to transform a variable and refit:
- Exponential model $y=ab^x$: take $\ln y$. Then $\ln y=\ln a+(\ln b)\,x$ is linear in $x$.
- Power model $y=ax^k$: take logs of both: $\ln y=\ln a+k\ln x$.
- A square-root or reciprocal transformation also appears, usually given by the problem.
Example: if the fitted line is $\widehat{\ln y}=1{,}10+0{,}18x$, then $\hat y=e^{1{,}10}\cdot e^{0{,}18x}\approx3{,}0\cdot(1{,}20)^x$, so $y$ grows by about $20\%$ per unit of $x$.
Judging the transformed model
The transformation is good if the new residual plot is patternless; a higher $r^2$ is supporting evidence but not the deciding one. Predictions must be back-transformed: predict $\ln y$, then exponentiate. And $r^2$ of the transformed fit describes variation in $\ln y$, not in $y$.
Worked example: predicting from a log-transformed model
The number of bacteria (thousands) over hours has a curved graph; after taking $\ln$ of the number of bacteria, the regression line is $\widehat{\ln(\text{count})}=2.30+0.045\,(\text{hours})$ with a residual plot showing no pattern. (a) Predict the number of bacteria at hour $20$. (b) Interpret the slope in the original units.
Solution
Check the model: the residuals of the log model show no pattern, so use it instead of the linear model on the raw data.
(a) $\widehat{\ln(\text{count})}=2.30+0.045\cdot20=3.20$. Convert back: $e^{3.20}\approx24.5$, that is, about $24.5$ thousand. Writing $3.20$ as the answer forgets the back-transformation step — the most common error of this type.
(b) Each hour, $\ln(\text{count})$ increases by $0.045$, meaning the number of bacteria is multiplied by $e^{0.045}\approx1.046$: an increase of about $4.6\%$ per hour. The slope on the log scale is a multiplier, not "an increase of $0.045$ thousand".
Conclusion in context: the exponential model describes the growth well; the prediction at hour $20$ is trustworthy only if $20$ lies within the range of hours observed.