When to use it
Use after a significant omnibus ANOVA F-test to test all pairwise group differences while controlling familywise error rate.
Required Inputs
- Group means & sample sizes
- ANOVA MS_error & df_error
- Alpha significance level
Perform pairwise mean comparisons following significant ANOVA with Tukey’s Honestly Significant Difference (HSD) test, studentized range q-statistic, adjusted p-values, and confidence intervals.
Run this test live in StatLab npm i @statlab/coreUse after a significant omnibus ANOVA F-test to test all pairwise group differences while controlling familywise error rate.
q = (X̄_i - X̄_j) / √(MS_error / n), HSD = q_critical * √(MS_error / n)
from statsmodels.stats.multicomp import pairwise_tukeyhsd
res = pairwise_tukeyhsd(endog=data['val'], groups=data['group'], alpha=0.05)
print(res)
TukeyHSD(aov(val ~ group, data = df))
import { tukeyHSD } from '@statlab/core';
const comparisons = tukeyHSD(anovaResult);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.