R² and the sums of squares
◈ 6 cardsSST = SSR + SSE, the share of variation the line explains, and the sentence that says it correctly.
Splitting the variation in y
Before the line, the only summary of credit score was its mean, 687.5, and the total variation around it:
After the line, each is split into the part the line predicts and the part it misses. The variation splits the same way:
is the quantity least squares minimised; is what the line accounts for. The coefficient of determination is the explained share:
and for a straight line with one predictor, exactly.
Worked example — Northfield's decomposition
.
needs the eight residuals. With : −6.5, 1.7, −11.6, 9.8, 11.2, 2.3, 4.6, −11.4 (they sum to zero, as least-squares residuals must). Squared and summed: .
.
The sentence
> About 97.2 % of the variation in credit score among these eight clients is explained by the linear relationship with income.
Every word matters: variation in the response, explained by the linear relationship with the explanatory variable. Not "97.2 % of the points are on the line" (none are), not "income explains 97.2 % of credit score" (meaningless), not "the line is 97.2 % accurate".
What R² is not
It has no units and no sign — it cannot tell you the direction, which is why is still reported. It is not a test: a high from eight points can arise by chance, and whether the slope is distinguishable from zero is Module 13's question, answered with the standard error and a . And it does not certify the form: a curved relationship can carry a respectable from a straight line while the residuals show a clear bend.
A second run, from SST and SSE alone
A question may give only the two sums. If and , then : 92.5 % of the variation in the response is explained by the line, and , with the sign taken from the slope.