analysis of variance, one way
list of list of statistical data
Important: The stats package has been deprecated. Use the superseding command Statistics[OneWayANOVA] instead.
Suppose that one performs experiments varying only one factor. For each value of the factor, one repeats the experiment many times. Such experiments are known both as one-way classifications and as one-factor experiments.
The anova[oneway] command is used to test whether changing the factor has any significant influence, or whether the apparent change could have just as well been due to random fluctuations. Each value of the factor gives rise to one treatment. Each treatment is repeated (or replicated) and the results are put in a list. The data required by anova[oneway] is then a list of all those lists.
The anova[oneway] command allows each treatment to have different number of replications.
The result of anova[oneway] comprises two elements: the variance part and the variance ratio parts. The presentation models the usual analysis of variance tables and the elements are presented in a way that is similar between oneway, twoway, and twowayreplicated.
For oneway, the variance part is further subdivided into three subparts: the variance between treatments, the variance within treatments and the total variance. Each of those are lists of three elements (two for total variance): the degree of freedom associated to this element, the variation in this element and the mean square of this element (mean square is not used for the total variance).
For oneway, the variance ratio part has only one ratio. It has four components: two degrees of freedom, the ratio and the probability value. This ratio follows an F-ratio statistic with the two given degrees of freedom. It allows us to test the null hypothesis (that the means of each treatment are equal) using a one-tailed test of the F-ratio distribution.
Treatment_1 ≔ 10,11,8
Three of the measures have the same value
Treatment_2 ≔ Weight⁡9,3,11
One bad measure
Treatment_3 ≔ missing,10,11,7,12
data ≔ Treatment_1,Treatment_2,Treatment_3
R ≔ oneway⁡data
The F-ratio is 68/715 with 2 and 8 degrees of freedom.
Ratio ≔ 2
the level of significance is measured with
sig ≔ statsstatevalf,cdf,fratioRatio1,Ratio2⁡Ratio3
Since this is much smaller than 0.95, we conclude that there is no significance to the differences in means:
Now we change the treatment results to yield
data2 ≔ 10,11,8,Weight⁡11,3,13,missing,14,15,11,16:
Ratio2 ≔ oneway⁡data22
The difference between
is significant at the 0.05 level (since 0.976>0.95) but not at the 0.01 level (since 0.976<0.99).
Download Help Document