Stats 4.4Concept7 parts

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.

In this lesson7 parts

  1. 01Fit one relationship to selected trips
  2. 02Construct the residuals, rather than checking the input shape
  3. 03Build a Q-Q plot point by point
  4. 04Quantify the upper-tail departure
  5. 05Check spread across distance separately
  6. 06Guard against the common wrong diagnostic
  7. 07Reproduce and challenge

Key terms

The words this lesson introduces, each in one line. The module’s glossary collects them all.

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 5 questions

Your first pick on each question is the one that counts, and a right one earns a coin. Getting one wrong here is how the lesson sticks.

Practice

Problems to solve in your own notebook. Each states the problem, not the steps: working out the steps is the exercise. Level A applies the lesson, B combines it with earlier ones, C stretches it.

The self-checking notebook for this lesson is The normal distribution and residual shape.

Common mistakes

What you will see when it goes wrong, why it happens, and the fix.

Where it’s used

Where this lesson’s ideas turn up in real work.