Memra

R² and the sums of squares

◈ 6 cards

SST = 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.

R² = SSR/SST = 0.972+ the remainderSST = 19,900Σ(y − ȳ)² = SS_yySSR = 19,342.2Σ(ŷ − ȳ)² — explainedSSE = 557.8Σ(y − ŷ)² — residualSSR + SSE = 19,342.2 +557.8 = 19,900 = SST. R²= 1 − SSE/SST = r².
The decomposition SST = SSR + SSE for the eight clients. R² is the explained share, SSR/SST = 0.972 — the same as r² to three decimals.
NORMAL ~/memra/learn/afm-113/r-squared-and-the-sums-of-squares utf-8 LF