Memra

The model assumptions and the residual standard error

◈ 7 cards

Y = β₀ + β₁X + ε with ε independent N(0, σ²) — linearity, independence, constant variance, normal errors — and s = √(SSE/(n − 2)) estimates σ on n − 2 df.

From a fitted line to a population model

Module 4 fitted to eight Northfield Credit clients and stopped: it described the eight. Inference asks about all clients — is the population slope different from zero, and what range of values is plausible for it? That needs a model of how the eight points came to be:

The population line is straight; each observed score is its point on that line plus an error , and the errors behave like a normal random sample with one common spread . Unpacked, that is four assumptions, each buying something:

  1. Linearity — the mean of at each lies on a straight line. Buys: the slope means the same thing everywhere in the range.
  2. Independence — one client’s error tells you nothing about another’s. Buys: the standard errors of Modules 8–12 apply.
  3. Constant variance is the same at every (homoscedasticity). Buys: one describes the scatter, so one SE describes the slope.
  4. Normal errors. Buys: the distribution for the slope with small .

L13.4 shows how residual plots check 1, 3 and 4. Assumption 2 is the one no plot rescues after the fact — it is a property of how the data were collected, exactly Module 2’s sampling questions.

Estimating σ — the residual standard error

The errors are unobservable; the residuals are their stand-ins. Their spread estimates :

The divisor is , not : two parameters (, ) were estimated from the data before the residuals could be computed, and each one costs a degree of freedom. Module 3’s lost one to ; regression loses two to the line.

Worked example — Northfield’s s

Module 4 found the eight residuals −6.5, 1.7, −11.6, 9.8, 11.2, 2.3, 4.6, −11.4 and .

Read it as the typical size of a residual: a client’s actual score sits about 9.6 points from the fitted line, on average. In L13.2 it is the numerator of every standard error; in L13.4 twice it is the outlier threshold; in R it is the line Residual standard error: 9.642 on 6 degrees of freedom that Module 4 told you to read as description.

What s is not

It is not , the spread of scores around their mean — that ignores income entirely. It is the spread around the line, and the fact that 9.6 is so much smaller than 53.3 is another way of saying : the line has absorbed most of the variation. And it is not : is in the units of (points), is a share.

NORMAL ~/memra/learn/afm-113/the-model-assumptions-and-the-residual-standard-error utf-8 LF