Two ways to calculate SS
Definition: find the mean, subtract it from each value, square, and add. Computational shortcut: add the squares of the raw values (Σx²), then subtract the square of the total divided by n. Both give the same answer; the calculator shows both so you can check whichever your course uses.
Divide SS by n − 1 to get the sample variance, or by N for the population variance.
Sum of squares in regression and ANOVA
In regression the total sum of squares splits into the part explained by the line and the residual part (SST = SSR + SSE), and r² = SSR ÷ SST. ANOVA splits it into between-group and within-group pieces. The linear regression calculator shows the residuals.
Frequently asked questions
Is the sum of squares the same as Σx²?
Not quite. Σx² is the sum of the raw squared values. The statistical sum of squares is the sum of squared deviations from the mean, which equals Σx² − (Σx)² ÷ n.
Why can the sum of squares never be negative?
Every term is a square, so each is zero or positive.
What is the sum of squares used for?
Variance, standard deviation, ANOVA, regression (r² and the standard error of the estimate) and least-squares fitting all start from it.