Analysis of variance
Enter the replicates of each treatment to get the ANOVA table, the F test, multiple comparisons and the coefficient of variation of the trial.
Completely randomized design
When treatments were assigned to plots completely at random. Treatments may have different numbers of replicates.
Question: Is there a difference among three or more treatments (fertilizer rates, varieties, irrigation intervals)? If so, which ones differ?
Example: Four nitrogen rates (kg/da) were tested with four replicates each in a completely randomized design. Yield (kg/da) was measured. Do the rates differ?
| Source of variation | df | SS | MS | F |
|---|---|---|---|---|
| Treatment | 3 | 23053.19 | 7684.4 | 65.67 ** |
| Error | 12 | 1404.25 | 117.02 | |
| Total | 15 | 24457.44 |
df: degrees of freedom, SS: sum of squares, MS: mean square. * significant at 5%, ** at 1%, ns: not significant. CV = 2.97%.
| Treatment | Mean | Chart |
|---|---|---|
| 0 kg N | 308 c | |
| 5 kg N | 351.25 b | |
| 10 kg N | 396.25 a | |
| 15 kg N | 401.75 a |
Duncan (5%) critical ranges: R2 = 16.67, R3 = 17.44, R4 = 17.92. Means sharing a letter are not significantly different.
Pairwise comparisons: Duncan’s multiple range test
Means are ranked; a larger critical difference is used for means far apart in rank and a smaller one for neighbours. Widely used in agricultural field trials.
Rank the means from largest to smallest. The critical range depends on how many means (p) the pair spans.
Critical ranges:
If a wider range is not significant, the differences between means inside it are also declared not significant.
Means whose difference is below the critical value share a letter. 5 of 6 pairs differ significantly.
| Comparison | Difference | p | Critical difference | Result |
|---|---|---|---|---|
| 0 kg N – 5 kg N | 43.25 | 2 | 16.67 | Significant |
| 0 kg N – 10 kg N | 88.25 | 3 | 17.44 | Significant |
| 0 kg N – 15 kg N | 93.75 | 4 | 17.92 | Significant |
| 5 kg N – 10 kg N | 45 | 2 | 16.67 | Significant |
| 5 kg N – 15 kg N | 50.5 | 3 | 17.44 | Significant |
| 10 kg N – 15 kg N | 5.5 | 2 | 16.67 | Not significant |
The red area is the rejection region (α = 0.05). The green line is the value calculated from your data.
H₀ rejected: the difference is significant
The difference between treatments is statistically significant: at least one group mean differs from the others. See the comparison table for which groups differ.
p < 0.0001 (significant at 1%, **)
How was it calculated?
= 65.667
Correction factor (CF): the square of the grand total divided by the number of observations.
Total sum of squares: the overall variability of all observations.
Treatment sum of squares: variability coming from differences between groups.
Error sum of squares: variability within groups (due to chance).
Divide the sums of squares by their degrees of freedom to get the mean squares.
F: the ratio of between-group to within-group variability. If the treatment has no effect it comes out around 1.
Compare the calculated value with the table (critical) value.
The calculated value is in the rejection region: H₀ is rejected. The p-value (< 0.0001) is smaller than α = 0.05.
The coefficient of variation of the experiment shows how precisely it was carried out.
Randomized complete block design
When the field was divided into blocks and every treatment was tried once in each block. The table can be pasted straight from Excel.
Question: When the field is not uniform, do the treatments differ? Once the block effect is removed, which treatments differ?
Example: Five wheat varieties were tested in 4 blocks on a sloping field. Blocks run across the slope: block 1 at the top, block 4 at the bottom. Yield (kg/da) was measured. Do the varieties differ?
| Treatment | Total | ||||
|---|---|---|---|---|---|
| 2051 | |||||
| 2140 | |||||
| 1992 | |||||
| 2233 | |||||
| 2044 | |||||
| Block total | 2362 | 2582 | 2677 | 2839 | 10460 |
If a plot was lost (animals, flooding, a measurement error), leave its cell empty; its value will be estimated.
| Source of variation | df | SS | MS | F |
|---|---|---|---|---|
| Block | 3 | 23823.6 | 7941.2 | 64.05 ** |
| Treatment | 4 | 9042.5 | 2260.63 | 18.23 ** |
| Error | 12 | 1487.9 | 123.99 | |
| Total | 19 | 34354 |
df: degrees of freedom, SS: sum of squares, MS: mean square. * significant at 5%, ** at 1%, ns: not significant. CV = 2.13%.
| Treatment | Mean | Chart |
|---|---|---|
| Variety 1 | 512.75 c | |
| Variety 2 | 535 b | |
| Variety 3 | 498 c | |
| Variety 4 | 558.25 a | |
| Variety 5 | 511 c |
Duncan (5%) critical ranges: R2 = 17.16, R3 = 17.96, R4 = 18.44, R5 = 18.76. Means sharing a letter are not significantly different.
Pairwise comparisons: Duncan’s multiple range test
Means are ranked; a larger critical difference is used for means far apart in rank and a smaller one for neighbours. Widely used in agricultural field trials.
Rank the means from largest to smallest. The critical range depends on how many means (p) the pair spans.
Critical ranges:
If a wider range is not significant, the differences between means inside it are also declared not significant.
Means whose difference is below the critical value share a letter. 7 of 10 pairs differ significantly.
| Comparison | Difference | p | Critical difference | Result |
|---|---|---|---|---|
| Variety 1 – Variety 2 | 22.25 | 2 | 17.16 | Significant |
| Variety 1 – Variety 3 | 14.75 | 3 | 17.96 | Not significant |
| Variety 1 – Variety 4 | 45.5 | 3 | 17.96 | Significant |
| Variety 1 – Variety 5 | 1.75 | 2 | 17.16 | Not significant |
| Variety 2 – Variety 3 | 37 | 4 | 18.44 | Significant |
| Variety 2 – Variety 4 | 23.25 | 2 | 17.16 | Significant |
| Variety 2 – Variety 5 | 24 | 3 | 17.96 | Significant |
| Variety 3 – Variety 4 | 60.25 | 5 | 18.76 | Significant |
| Variety 3 – Variety 5 | 13 | 2 | 17.16 | Not significant |
| Variety 4 – Variety 5 | 47.25 | 4 | 18.44 | Significant |
Did blocking help?
The blocks differ significantly (F = 64.05, p < 0.0001): the field really had a gradient, and blocking removed that variation from the error.
Relative efficiency: 10.95. A completely randomized design would need about 11 times as many replicates for the same precision.
Had the same data been analysed ignoring blocks (as a completely randomized design): F = 1.34, p = 0.3009, so the treatment difference would not be significant. Block variation would have inflated the error and hidden the real difference.
The red area is the rejection region (α = 0.05). The green line is the value calculated from your data.
H₀ rejected: the difference is significant
After removing the block effect, the difference between treatments is statistically significant. Letters show which treatments differ.
p < 0.0001 (significant at 1%, **)
How was it calculated?
= 18.232
Correction factor (CF): the square of the grand total divided by the number of observations.
Total sum of squares: the overall variability of all plots.
Block sum of squares: squares of the block totals divided by the number of treatments. Variability due to slope, soil or moisture differences in the field.
Treatment sum of squares: squares of the treatment totals divided by the number of blocks.
Error sum of squares: what remains after removing blocks and treatments, the truly random part.
Degrees of freedom: blocks r − 1, treatments t − 1, error (t − 1)(r − 1).
Mean squares:
F value for treatments:
Compare the calculated value with the table (critical) value.
The calculated value is in the rejection region: H₀ is rejected. The p-value (< 0.0001) is smaller than α = 0.05.
Coefficient of variation of the experiment: