Skip to main content icon/video/no-internet

Decomposing Sums of Squares

The term sum of squares (SS) is an abbreviated term for “sum of squared deviations of values from their mean.” As such, the SS defines a descriptive measure of variation and provides a central component for calculating the variance of numerical values. In general, variance (or mean squares) is defined as the SS divided by the SS’s degrees of freedom. In the descriptive case, that is, in cases in which only the variance of given values is of interest (and no inferences on the variance of values outside the given data set are needed), the SS’s degrees of freedom are simply the number of values. Thus, descriptive variance is defined as the SS divided by the number of values. Decomposing sum of squares is an important principle within ANOVA. With ANOVA, a total sum of squares (TSS), that is, the total or overall variation of values in a given data set, is decomposed into SS components. In their simplest form, these SS components consist of variation between groups of values (BSS) and variation within groups of values (WSS).

Total Sum of Squares

Assume a factor A with p groups and the index i for each group. For each group i, we assign n observations. Let ymi be the value of an observation for student m in group i. With this terminology, the group mean (A¯i) and the grand mean (G¯) can be calculated with:

A ¯ i = m = 1 n y m i n ; G ¯ = m = 1 n i = 1 p y m i p n

Applying the general definition of SS given in the previous section, the total sum of squared deviations of values ymi from their grand mean (G¯) is:

TSS = i 1 p m = 1 n ( y m i G ¯ ) 2

This TSS can now be decomposed into two components: a component that captures variation between the groups (also called treatment or systematic sum of squares) and a component that captures variation within the groups (also called sum of squares of errors or unsystematic sum of squares) with the rationale described in the following subsections.

Between Sum of Squares

A simple question leads to the quantification of variation between groups: What would the data under each group of Factor A look like if only Factor A was responsible for the variability of observations? If this were the case, values within a group of Factor A should not vary. Thus, we simply assume that values within the groups of A do not vary and replace all values within a group with the mean A¯i of that group. After this step, we again calculate the SS of the now modified values. As we replaced individual scores ymi with the group means (A¯i), the BSS is calculated as

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading