One-Way ANOVA Explorer

Groups on a dot plot whose observations (or group means) the learner drags, with the live between/within decomposition, the ANOVA table and F against its reference density. Other views show Tukey (or Tukey–Kramer) simultaneous intervals with letter groupings against the overall F, raw F versus the rank analysis (Kruskal–Wallis) when one value is dragged far away, and a simulator that averages the mean squares over many data sets from the model.

Used in: Introduction to Statistics

Props

PropTypeDefaultDescription
titlestringOne-way ANOVA explorerCard title.
modestringfirst of `modes`Starting view: 'decomposition' (SS_B + SS_W = SS_T, ANOVA table, F density), 'pairwise' (Tukey HSD / Tukey–Kramer intervals and letter groupings vs the overall F), 'ranks' (raw F vs F on ranks and Kruskal–Wallis H; needs raw groups) or 'simulate' (draw data sets from the model; turns on the generator).
modesstring[]raw groups: [decomposition, pairwise, ranks]; means: [decomposition, pairwise]; generator: [simulate, decomposition, pairwise]Views offered as tabs, in order. One entry hides the tab bar.
groupsnumber[][] | {label: number[]}{A: [10,12,11,13], B: [14,15,13,16], C: [18,17,19,20]}Raw observations, 2-8 groups of up to 40 values; object keys become the group labels. Takes precedence over `means` and the generator.
labelsstring[]object keys, else A, B, C, ...Group names (plain text), one per group.
meansnumber[](none)Summary mode: group means (2-8) instead of raw data. Use with `n` and `mse`; the learner drags the means and can slide MS_E.
nnumber | number[]summary: 5; generator: 4Group sizes for summary mode or the generator: one number for every group or one per group (unequal sizes give Tukey–Kramer).
msenumber1Summary mode: the error mean square MS_E (pooled within-group variance) on N - k df.
draggablestringraw data: points; summary: meansWhat the learner drags: 'points' (single observations), 'means' (shift a whole group) or 'none'.
deviationsstringnoneDeviation segments drawn at the start in the decomposition view: 'none', 'within' (y_ij - group mean), 'between' (group mean - grand mean) or 'total' (y_ij - grand mean). The learner can switch.
alphanumber0.05Level for the F critical value and the familywise level of the pairwise intervals (0 < alpha < 0.5).
compareWithstringnonePairwise view: overlay 'separate-t' (unadjusted t intervals), 'bonferroni' or 'scheffe' intervals next to Tukey's. The learner can switch.
knumber3Generator: number of groups (2-8).
trueMeansnumber[](none)Generator: explicit true group means mu_i (replaces the effect-spread slider; sets k).
munumber10Generator: overall mean when the effects come from `effectSpread`.
effectSpreadnumber2Generator: starting effect spread; true means are mu + effectSpread * (evenly spaced from -1 to 1, size-weighted to sum 0). 0 makes H0 true. Slider 0-5.
sigmanumber1Generator: starting error standard deviation (slider 0.5-5).
rerunsnumber1000Generator: size of the largest 'Run' button (max 5000).
initialRunsnumber0Generator: data sets already simulated when the page loads (0-5000), so the mean-square averages and the F histogram show at once. Reproducible via `seed`.
seednumber | string1Seed for the generator's random data sets (reproducible).
showTablebooleantrueShow the ANOVA table in the decomposition view.
showFDensitybooleantrueShow the F reference density with the observed F, p-value area and critical value.
yLabelstringresponse $y$Response axis title ($...$ TeX allowed).
controlsstring[]all controls shownRegistry ids of the tabs, readouts and overlay options this lecture shows (see `controls` in this file); unlisted ones stay hidden, e.g. the Pairwise and Ranks tabs before Tukey's procedure and the Kruskal–Wallis test are taught, or the Scheffé overlay where it is never taught. Computed by component_scopes.py fit-nodes; omit to show everything.