There are 10 plants each in the control, treatment 1 and treatment 2 groups. Do the three groups differ in mean dry weight? After PlantGrowth.csv was uploaded to the Scholay Research Assistant and the question submitted, Qwen4 Max returned assumption checks, an ANOVA table, effect sizes and Tukey post hoc comparisons. Its core results: the three population means are not all equal; the difference between treatment 2 and treatment 1 is significant, while neither treatment, compared with the control, reaches the 0.05 significance level. Following this answer, we explain how to phrase the question, how to read the tables, and how to check an AI's calculations and judgments.[6]
What question does one-way ANOVA answer?
PlantGrowth is a dataset built into R. It records the dry weight of 30 plants under a control condition and two treatment conditions; the official documentation lists its source as Dobson's 1983 An Introduction to Statistical Modelling. This example has a single grouping factor, group, with three levels (ctrl, trt1, trt2), and a continuous outcome, weight. The null hypothesis of one-way ANOVA is μctrl=μtrt1=μtrt2, which asks whether the three population mean dry weights are the same; rejecting it means that at least one pair of population means differs.[1][2]
Why not simply run three t-tests? Three groups give three pairwise comparisons, and judging each at 0.05 raises the risk of at least one false positive across the whole set. Here ANOVA first answers the overall question, and Tukey HSD then answers which specific groups differ; the latter controls the familywise error rate jointly across all pairwise comparisons.[3]
Classical one-way ANOVA requires independent observations, approximately normal errors within each group, and equal variances. In practice, first confirm the experimental units and the group assignment, then check the distribution in each group, the model residuals and the within-group spread. Independence in particular depends on the design: if several plants in one pot receive the treatment together, you need to distinguish "number of plants" from "number of independent experimental units"; different IDs and one measurement per plant do not automatically guarantee independence.[2][4][5]
Uploading data and asking in Scholay
In this session we entered the conversation from "Research Assistant" in the left sidebar, clicked "+" next to the input box, uploaded PlantGrowth.csv, chose the model Qwen4 Max, and then submitted the analysis question. Each row of the attachment is one plant: weight is dry weight, recorded in grams as used in this task; group is the treatment group; plant is the plant ID. The corresponding model formula is weight ~ group.[6]
The original question submitted was (translated from the Chinese prompt):
The attachment contains dry-weight data for 30 plants (weight, in grams; group is the treatment group: ctrl = control, trt1 = treatment 1, trt2 = treatment 2; plant is the plant ID). Please determine whether the mean dry weights of the three groups differ: choose an appropriate method, give the ANOVA table and post hoc pairwise comparisons, explain the F value, the two degrees of freedom, the p value, the effect size and the post hoc results one by one, and also check the assumptions of the method.[6]
This prompt states the unit of analysis, the meaning of the variables, the research question and the deliverables all at once. On that basis the assistant chose classical one-way ANOVA with Tukey HSD, and returned descriptive statistics, assumption tests and an item-by-item explanation.

Figure 1 The Scholay conversation "Plant dry-weight ANOVA and post hoc comparisons", first screen. Source: screenshot captured on this task's device; capture date: 16 November 2026, 09:25:55.000 UTC.[6]
Reading the assistant's results: means first, then the ANOVA table
The descriptive statistics given by the assistant are as follows:[6]
| Group | Sample size | Mean dry weight (g) | Standard deviation (g) |
|---|---|---|---|
| ctrl: control | 10 | 5.032 | 0.583 |
| trt1: treatment 1 | 10 | 4.661 | 0.794 |
| trt2: treatment 2 | 10 | 5.526 | 0.443 |
Treatment 2 has the highest sample mean and treatment 1 the lowest; treatment 1 also has the largest within-group variation. ANOVA next asks how large the gaps between the group means are relative to the variation among plants within the same group.
The ANOVA table returned by the assistant is:[6]
| Source of variation | Sum of squares SS | df | Mean square MS | F | p |
|---|---|---|---|---|---|
| Between groups: group | 3.766 | 2 | 1.883 | 4.846 | 0.0159 |
| Within groups: error | 10.492 | 27 | 0.389 | — | — |
| Total variation | 14.258 | 29 | — | — | — |
The sums of squares split the total variation in dry weight into two parts: the between-group part comes from the deviation of each group mean from the grand mean; the within-group part comes from the deviation of each plant from its own group mean. A mean square is a sum of squares divided by its degrees of freedom.[2]
The two degrees of freedom are 3−1=2 and 30−3=27: the former corresponds to variation among the three group means, the latter to the within-group error information left after estimating the three group means. F is the ratio of the between-group mean square to the within-group mean square, about 4.846 here. In other words, the between-group mean square is roughly 4.85 times the within-group mean square; whether that is large enough has to be judged against an F distribution with 2 and 27 degrees of freedom.[2]
The assistant's p=0.0159 means: if the three population means are equal and the model assumptions hold, the probability of seeing an F value this large or larger is about 1.59%. At the 0.05 significance level, we can reject the null hypothesis that the three population means are equal. This overall conclusion does not say which pair differs; the Tukey comparisons that follow answer that.[2][6]
The assistant also reports η²=0.264 and ω²=0.204. η² divides the between-group sum of squares by the total sum of squares, indicating that about 26.4% of the total variation in dry weight in this sample corresponds to differences among group means; ω² applies a bias correction on top of that and is used to estimate the effect size at the population level. In a paper, reporting the test result, the effect size and the mean difference in grams together lets readers connect the statistical evidence with the magnitude of the difference.[6]
Post hoc comparisons: which two groups differ, and by how much?
The assistant's Tukey HSD results are as follows. Differences are computed as "first group minus second group"; the confidence intervals provide a 95% family-wise confidence level for all three comparisons, and the p values are adjusted for multiple comparisons.[3][6]
| Comparison | Mean difference (g) | 95% simultaneous confidence interval (g) | Adjusted p |
|---|---|---|---|
| trt1 − ctrl | −0.371 | [−1.062, 0.320] | 0.391 |
| trt2 − ctrl | 0.494 | [−0.197, 1.185] | 0.198 |
| trt2 − trt1 | 0.865 | [0.174, 1.556] | 0.012 |
Treatment 1 averages 0.371 g lower than the control, and treatment 2 averages 0.494 g higher than the control; both intervals cross 0 and both adjusted p values exceed 0.05. Treatment 2 averages 0.865 g higher than treatment 1, with an interval lying entirely above 0 and an adjusted p=0.012, which supports a difference in population mean dry weight between these two treatment groups. This also explains why the overall test is significant while neither treatment is significant against the control.[6]
The assistant's letter groupings are trt2=a, ctrl=ab, trt1=b. A shared letter means the corresponding comparison does not reach significance: the control shares a with treatment 2 and b with treatment 1; the two treatment groups share no letter. The letter groupings are therefore consistent with the three pairwise results.[6]
Checking the AI's output
We refit aov(weight ~ group) on R's built-in PlantGrowth data and computed the sums of squares and effect sizes from their definitions. The results reproduce the earlier R values and also agree with the assistant's answer this time. When checking, compare unrounded values, and avoid reconstructing F from the already-rounded 1.883 and 0.389 in the table.
| Item | Assistant reported | R recomputed | Verdict |
|---|---|---|---|
| Between-group sum of squares | 3.766 | 3.766340 | Match |
| Within-group sum of squares | 10.492 | 10.492090 | Match |
| Total sum of squares | 14.258 | 14.258430 | Match |
| Between- and within-group mean squares | 1.883, 0.389 | 1.883170, 0.388595926 | Match |
| Between, within and total df | 2, 27, 29 | 2, 27, 29 | Match |
| F | 4.846 | 4.846087862 | Match |
| p | 0.0159 | 0.015909958 | Match |
| η² | 0.264 | 0.264148297 | Match |
| ω² | 0.204 | 0.204078846 | Match |
The calculations are: F=(3.76634÷2)÷(10.49209÷27); η²=3.76634÷14.25843; ω²=(3.76634−2×0.388595926)÷(14.25843+0.388595926). The sample sizes, means and standard deviations of the three groups also match item by item.
We then recomputed the three pairwise comparisons with TukeyHSD, and checked the intervals and adjusted p values against the studentized range distribution:[3]
| Comparison | R mean difference (g) | R 95% simultaneous CI (g) | R adjusted p | vs. assistant |
|---|---|---|---|---|
| trt1 − ctrl | −0.371 | [−1.062216, 0.320216] | 0.390871 | Match |
| trt2 − ctrl | 0.494 | [−0.197216, 1.185216] | 0.197996 | Match |
| trt2 − trt1 | 0.865 | [0.173784, 1.556216] | 0.012006 | Match |
The three differences, the interval endpoints and the adjusted p values all agree with the assistant's report at its displayed precision; we found no calculation errors in these statistics.
The assumption-test values can also be recomputed:[4][5][6]
| Test | Assistant reported | R recomputed | Verdict |
|---|---|---|---|
| Shapiro–Wilk for ctrl | p=0.747 | p≈0.7475 | Consistent at the reported precision |
| Shapiro–Wilk for trt1 | p=0.452 | p≈0.4519 | Match |
| Shapiro–Wilk for trt2 | p=0.564 | p≈0.5643 | Match |
| Shapiro–Wilk for residuals | W=0.966, p=0.438 | W≈0.96607, p≈0.4379 | Match |
| Levene (centered at the mean) | F=1.237, p=0.306 | F=1.236963, p=0.306195 | Match |
The earlier version reported the Brown–Forsythe variant, centered at the median, and the recomputation is still F(2,27)=1.119186, p=0.341227. It differs from the assistant's Levene numbers because the centering definition differs, so we cannot conclude that the assistant miscalculated. Neither version rejects the null hypothesis of equal variances in this example.[4]
What needs correcting is the certainty of the interpretation. The assistant wrote that "normality and homogeneity of variance are both satisfied"; a more accurate statement is that "these tests detected no departure". Calling the data a "completely randomized design" and inferring independence from unique IDs and one measurement per plant also goes beyond what this data table can support. Whether the experimental units are independent and whether treatments were randomly assigned must be determined from the experimental arrangement. The assistant's description of the within-group mean square as "purely random error" is also too specific: it estimates the residual variance of the model, which can include individual differences, measurement error and variation not included in the model.[2][4][6]
The effect-size values are correct, but the assistant calls them a "large effect" based on generic thresholds, which cannot directly answer the question of practical agronomic benefit. The most intuitive magnitude here remains 0.865 g and its interval. The assistant's statement that "treatment 2 shows an upward trend relative to the control" should likewise be rewritten as "the sample mean of treatment 2 is 0.494 g higher, adjusted p=0.198", stating the observed direction and the statistical evidence separately.[6]
What can't this data answer?
This data supports comparing the mean dry weight of three groups, but from weight, group and ID alone it cannot explain the physiological mechanism by which a treatment works, determine the best dose, or describe growth over time. Treatment 2 has the highest sample mean, yet this Tukey comparison does not show that it beats the control; and because both control comparisons are non-significant, they also do not show that the treatments are equivalent to the control. Further causal interpretation requires design grounds such as random assignment and experimental units; generalizing to other plants or growing environments requires corresponding research evidence.
A report sentence you can use in a paper
"A one-way analysis of variance on the PlantGrowth data showed a statistically significant difference in mean dry weight among the three groups, F(2,27)=4.85, p=0.0159, η²=0.264, ω²=0.204. Tukey HSD post hoc comparisons showed that the mean dry weight of treatment 2 was higher than that of treatment 1, with a mean difference of 0.865 g and a 95% simultaneous confidence interval of [0.174, 1.556] g, adjusted p=0.0120. The differences between treatment 1 and the control and between treatment 2 and the control did not reach the 0.05 significance level, with adjusted p values of 0.3909 and 0.1980, respectively."
References
-
[1] R datasets documentation: Results from an Experiment on Plant Growth. Data source listed: Dobson AJ (1983), An Introduction to Statistical Modelling.
-
[2] NIST/SEMATECH e-Handbook: The ANOVA table and tests of hypotheses about means.
-
[3] R stats documentation: Compute Tukey Honest Significant Differences.
-
[4] NIST/SEMATECH e-Handbook: Levene Test for Equality of Variances.
-
[5] R stats documentation: Shapiro-Wilk Normality Test.
-
[6] Scholay: Plant dry-weight ANOVA and post hoc comparisons. Hands-on session and page capture records on this task's device, 16 November 2026.