What each test does
All three tests use the error mean square (MSE) and error degrees of freedom from the ANOVA, and the number of replications r. They differ in the critical value a difference between two means must exceed.
- Fisher's LSD (least significant difference) is a t-test for each pair: LSD = t(α/2, df) × √(2·MSE/r). The error rate is controlled per comparison, so with many treatments the chance that at least one of the differences is a false positive grows quickly. Used only after a significant F-test, it is called Fisher's protected LSD.
- Tukey's HSD (honestly significant difference) uses the studentized range: HSD = q(α; k, df) × √(MSE/r), where k is the number of treatments. It controls the familywise error rate: the probability of declaring any false difference among all pairwise comparisons is at most α. With unequal replication the Tukey–Kramer form is used.
- Duncan's multiple range test uses a different critical range for each pair, depending on how many means lie between them when they are ranked. Two adjacent means are compared with exactly the LSD; means further apart need a larger difference, but never more than Tukey's HSD. It does not control the familywise error rate.
Worked example
Six genotypes were grown in three randomized complete blocks and grain yield was measured (the sample data of the ANOVA tool). The ANOVA gives MSE = 0.4506 with 10 error degrees of freedom; the genotype F-test is highly significant (F = 111.08, p < 0.001), and CV = 2.67%.
| Test (α = 0.05) | Critical difference |
|---|---|
| Fisher's LSD | 1.221 |
| Duncan, adjacent means (p = 2) to 6 means apart | 1.221 to 1.343 |
| Tukey's HSD | 1.904 |
The letters that result:
| Genotype | Mean yield | LSD | Duncan | Tukey |
|---|---|---|---|---|
| G5 | 31.47 | a | a | a |
| G3 | 27.97 | b | b | b |
| G6 | 25.43 | c | c | c |
| G2 | 23.30 | d | d | d |
| G4 | 21.87 | e | e | de |
| G1 | 20.53 | f | f | e |
The tests disagree only at the bottom. G2 and G4 differ by 1.43 and G4 and G1 by 1.33. Both differences are larger than the LSD and Duncan's critical range for adjacent means (1.221), so LSD and Duncan separate all three. Both are smaller than Tukey's HSD (1.904), so Tukey keeps G4 together with G2 (letter d) and with G1 (letter e), while still separating G2 from G1 (difference 2.77).
Which one should you use?
- Comparing many genotypes or varieties with each other: Tukey's HSD. It is conservative, but every difference it reports is backed by a familywise error rate of α.
- A few comparisons you planned before the trial, such as each treatment against a control: protected LSD or, better, planned contrasts. The more comparisons you make, the less the per-comparison protection of LSD means.
- Duncan (DMRT): widely used in agronomy theses and expected by some supervisors. If you use it, say so clearly in the Methods, and be aware that it finds more differences than Tukey because it does not control the overall error rate.
- Quantitative levels (nitrogen rates, plant densities, irrigation amounts): fit a response curve or test linear and quadratic trends. Letters ignore the order of the levels.
Whatever you choose, decide before you see the results and report the test, α and the error degrees of freedom, for example: "Means followed by the same letter are not significantly different (Tukey's HSD, P < 0.05)."
How to run all three
On FieldTrialHub, paste your data into the ANOVA tool, choose Tukey, LSD or Duncan, and switch between them to see how the letters change. Download R script gives the same analysis in R. The equivalent R code for this example is:
library(agricolae)
d <- read.csv("trial.csv")
d$Genotype <- factor(d$Genotype); d$Rep <- factor(d$Rep)
m <- aov(Yield ~ Rep + Genotype, data = d)
summary(m)
HSD.test(m, "Genotype", console = TRUE) # Tukey
LSD.test(m, "Genotype", p.adj = "none", console = TRUE) # Fisher's LSD
duncan.test(m, "Genotype", console = TRUE) # Duncan (DMRT)
Next: how to read letter groupings such as "ab" and "de".