How to compute the sum of squares in one way ANOVA: method 1
Sum of squares computed as sum of squared deviations
Example data:
Group mean 1 = $(23 + 25 + 18) / 3 = 22$ Group mean 2 = $(29 + 19 + 21) / 3 = 23$ Group mean 3 = $(35 + 17) / 2 = 26$ Grand mean = $(23 + 25 + 18 + 29 + 19 + 21 + 35 + 17) / 8 = 23.375$
Sum of squares between (SSB):
Sum of squares total (SST):
If you have computed two of the three sums of squares, you can easily computed the third one by using the fact that SST = SSW + SSB. |
How to compute the sum of squares in one way ANOVA: method 2
Sum of squares computed as differences between sums of squares
Example data:
Group mean 1 = $(23 + 25 + 18) / 3 = 22$ Group mean 2 = $(29 + 19 + 21) / 3 = 23$ Group mean 3 = $(35 + 17) / 2 = 26$ Grand mean = $(23 + 25 + 18 + 29 + 19 + 21 + 35 + 17) / 8 = 23.375$ [Y] =
[A] =
[T] =
Sum of squares within (SSW) = [Y] - [A] SSW example data = 4635 - 4391 = 244 Sum of squares between (SSB) = [A] - [T] SSB example data = 4391 - 4371.125 = 19.875 Sum of squares total (SST) = [Y] - [T] SST example data = 4635 - 4371.125 = 263.875 If you have computed two of the three sums of squares, you can easily computed the third one by using the fact that SST = SSW + SSB. |