The purpose of a one-way ANOVA is to determine if the means of k populations are equal or not. We especially want to test the null hypothesis H0: µ1 = µ2 = ... = µk against the alternative hypothesis Ha: all k means are not equal. When the k samples are randomly and independently selected from normal populations having equal population standard deviations (or, equivalently, equal population variances), and the null hypothesis is true, then the ratio of the treatment mean square to the error mean square has an F Distribution with degrees of freedom for the numerator df1 = k - 1 and degrees of freedom for the denominator df2 = n - k. This ratio, called the F Ratio, is the test statistic used to test the above hypotheses:
F equals Treatment Mean Square OR MSTR
Error Mean Square MSE
Note that MSTR equals Treatment Sum Of Squares OR SSTR .
k - 1 k - 1
Note that MSE equals Error Sum Of Squares OR SSE .
n - k n - k
SSTR = n1(xbar1 - xbar)2 + n2(xbar2 - xbar)2 + ... + nk(xbark - xbar}2
SSE = (n1 - 1)s12 + (n2 - 1) s22 + ... + (nk - 1)sk2