Calculating sums of squares
main topic
 

Sums of Squares (SS) and standard deviations are closely related - standard deviations are just sums of squares divided by the appropriate degrees of freedom. Consider the following formulas and notation:

SS Total =  SS Within + SS Between

 

SS Total is the sum of all squared deviations of individual observations from the overall process mean.

SS Total =

 

SS Within is the sum of all squared deviations of individual observations from their subgroup means.

SS Within =

 

SS Between is the sum of squared deviations of subgroup means from the overall process mean.

SS Between =

 

where:

Xik = kth data of the ith subgroup
m
i = mean of ith subgroup
m
LT = overall process mean

Thus, SS Within is purely a function of the inherent variation of the process, while SS Between is a function of the natural variation in subgroup means as well as changes in subgroup means caused by shifts and drifts in the process mean.