The within groups sums of squares in an ANOVA is the squared distance from the group mean.
Within groups sums of squares =