SStotal
SStotal, or the total sum of squares, is a statistical measure of the overall variability in a data set around the grand mean. It expresses how much the observed values deviate from the mean of all observations combined.
Formally, for a data set with n observations Yi and grand mean Ybar, SStotal is defined as
In the context of one-way analysis of variance (ANOVA) or linear models, SStotal can be decomposed into
Alternative formulations arise when group means and sizes are known. SSbetween can be computed as sum over
Notes: some sources use TSS or SSTotal interchangeably with SStotal, while conventions vary slightly across statistical