Stats 4.4Lesson outlineLesson 4 of 7 in Module 4
Residual Shape and the Q-Q Plot
Diagnose the shape of observed data or model residuals without assuming that every ML feature must be normally distributed.
Video in production.
Lesson outline: Residual Shape and the Q-Q Plot
In this lesson7 parts
- 01Fit one relationship to selected trips
- 02Construct the residuals, rather than checking the input shape
- 03Build a Q-Q plot point by point
- 04Quantify the upper-tail departure
- 05Check spread across distance separately
- 06Guard against the common wrong diagnostic
- 07Reproduce and challenge
Key terms: Residual Shape and the Q-Q Plot
The words this lesson introduces, each in one line. The module’s glossary collects them all, and the AI glossary has every term across the courses.
- predictor
- Recorded input used to calculate a fitted value; here, trip distance.
- ordinary least squares (narration)
- Chooses the intercept and slope that minimize the summed squared vertical errors.
- intercept
- Fitted duration at distance zero.
- slope
- Change in fitted minutes per additional mile.
- fitted value
- Prediction from the estimated line.
- residual
- Observed outcome minus fitted value.
- normal error shape
- A model assumption about conditional errors around fitted values.
- Q-Q plot
- Paired quantiles from observed data and a reference distribution.
- normal quantile
- Value at a stated cumulative probability in a normal model.
- heavy upper tail
- More or larger high values than the chosen reference predicts.
- positive skew
- A distribution with a longer or heavier right tail.
- residual SD
- Empirical spread of observed minus fitted durations: about 7.71 minutes here.
- heteroscedasticity
- Error spread changes with predictor value.
- constant error spread
- Similar conditional residual variability across predictor values.
Quiz: Residual Shape and the Q-Q Plot
Your first pick on each question is the one that counts. Getting one wrong here is how the lesson sticks.