Outliers, influential points and transformations
Distinguish outliers from influential points, assess a log transformation, and predict in original units.
It opens on
A 16-year-old classic sells for $18,000. Will adding it flatten, steepen, or barely change the car-price line?
Why it matters
One unusual observation or a curved pattern can make a regression line misleading.
Good to know first
- Least-squares regression: slope, intercept and r-squared. A fitted line ŷ = a + bx predicts by substituting x
- slope b is the change in ŷ per unit of x
- r² is the share of variation the line explains
Step by step
Residual and leverage
Distinguish a large vertical gap from an extreme age.
Plot the classic at (16, 18), far right; at age 16, old ŷ = 25.6 − 1.81(16) = −3.36 thousand dollars.
A common mix-up
A large residual means high leverage.
In fact: (5, 26) is above the line but near the middle of ages.
Measuring influence
Identify influence by comparing fits with and without a car.
Without the classic, ŷ = 25.6 − 1.81x; with it, ŷ = 20.0 − 0.56x.
A common mix-up
Every outlier strongly changes slope.
In fact: The age-5 car has a large residual but barely changes the reported slope.
Straightening a curve
Re-express multiplicative growth and check whether a log line fits.
At hours 0–4, log₁₀(count) ≈ 2.000, 2.301, 2.602, 2.903, 3.204.
A common mix-up
Taking logs changes the measurements to force an answer.
In fact: The same counts are displayed on a different scale.
Back to original units
Convert a checked log-model prediction to the response’s original units.
For the original bacteria model at hour 5, log₁₀(ŷ) ≈ 2.000 + 0.301(5) = 3.505.
A common mix-up
A predicted log height of 1.18 means 1.18 cm.
In fact: Converting back gives about 15.1 cm.
Try it
An age-6 car sells for $22,000. Find its old-line residual.Answer
7.26 thousand dollars
Hint: First find ŷ at x = 6
Removing a car changes slope from −0.60 to −1.75 thousand dollars/year. Influential on slope?Answer
Yes; a 1.15 thousand dollars/year change
Hint: Compare slopes
What is log₁₀(800), to three decimals?Answer
2.903
Hint: Use the calculator’s base-ten log
Use the plant model to predict height at day 12.Answer
10⁰·⁹⁰ ≈ 7.9 cm
Hint: Predict log height first
Write the age-5 residual; is its departure vertical or horizontal?Answer
26 − 16.55 = 9.45 thousand dollars; vertical.
