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:

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.

Common mistake

A high leverage point is far in the $x$ direction, not in the $y$ direction; a point lying right on the line can still be an influential point. A prediction from a log model that forgets to back-transform gives an answer wrong even in its units. And the $r^2$ of a transformed model is about the transformed variable: do not compare "$r^2$ rose from $0.80$ to $0.95$" directly without looking at the residual plot.

Key takeaway

Outlier (large residual), high leverage (far from $\bar x$), influential (removing it changes the line). If curved, transform: exponential takes $\ln y$, power takes the log of both. Choose the model with the residual plot, and predictions must be converted back to the original units.

← Residuals and Model Assessment · All AP Statistics lessons · Practice AP Statistics questions (free, instant scoring) · The Regression Model and Its Conditions →