Sums of squares (SS) and standard deviations are closely related. Standard deviations are just sums of squares divided by the appropriate degrees of freedom.

SS Total = SS Within + SS Between

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

where:

- X
_{ik}= k^{th}data of the i^{th}subgroup - μ
_{LT}= overall process mean

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

where:

- X
_{ik}= k^{th}data of the i^{th}subgroup - μ
_{i}= mean of i^{th}subgroup

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

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

where:

- μ
_{i}= mean of i^{th}subgroup - μ
_{LT}= overall process mean