The sum of squares (SS) adds up the squared deviations of each value from the mean. It is the numerator of the variance and the basic building block of ANOVA and regression.
SS = Σ(x − x̄)² = Σx² − (Σx)² ÷ n
The shortcut formula on the right gives the same answer and is easier by hand. Dividing SS by n − 1 gives the sample variance.
Sums of squares in ANOVA and regression
Total variability splits into parts: SST = SSB + SSW in ANOVA (between and within groups), and SST = SSR + SSE in regression (explained and residual). The ANOVA and regression calculators show these tables.