Hypothesis testing for comparing groups and pairs t-tests, Wilcoxon, Mann-Whitney, Welch’s ANOVA, Kruskal-Wallis, Friedman, eight multiple comparison procedures and Cohen’s d effect sizes — parametric and non-parametric.

Every feature from all five editions for 15 days.
Standard edition from US$ 155 a year · 30-day money-back guarantee.

Microsoft Excel with the Analyse-it tab selected, showing a Compare Groups report for the decrease in blood pressure by treatment: side-by-side box plots for the calcium and placebo groups, the descriptive statistics table beneath, and the Compare Groups task pane open on Descriptives. Handwritten notes: Runs inside Excel: every analysis is on the Analyse-it tab; Compare Groups: test means, medians, variances; estimate the effect size; Dot plot, mean and box plot for each group; Variance ratio with its 95% CI, and the F test; The report is an ordinary Excel worksheet: share it, archive it, open it on any PC with Excel.

The right test for the comparison you need to make

Excel’s T.TEST function returns a p-value and stops. No confidence interval on the difference, no effect size, no non-parametric alternative for skewed data, no plot of the groups. Student’s t where Welch’s applies understates the uncertainty, and a parametric test on skewed data gives an unreliable p-value. The assumption checks are not optional: they decide which test gives a valid answer.

Are the variances equal, so Student’s t applies, or is Welch’s the safer choice? Are the data normal enough for a parametric test at all? By how much do the groups differ, and is the difference large enough to matter? Two groups or ten, independent or paired: each combination calls for a different test, and the wrong one invalidates the conclusion.

Student’s t-test, Welch’s t-test, Z test and Wilcoxon-Mann-Whitney

Two independent groups is the commonest comparison, and the right test depends on what the data allow. Use Student’s t-test when the variances are equal and Welch’s t-test when they are not. Use the Z test when the standard deviations are known and Wilcoxon-Mann-Whitney when normality is in doubt. Side-by-side dot plots, mean plots or box plots show the two distributions before you commit to a test, with the descriptive statistics for each group beneath them.

  • Descriptive statistics by group
  • Side-by-side dot plots, mean plots, box plots
  • Z test for difference in means (known SDs)
  • Student’s independent samples t-test
  • Welch’s t-test for unequal variances
  • Wilcoxon-Mann-Whitney test
  • TOST equivalence test for the difference in means new in v5.40
Microsoft Excel showing the Dispersion and Location sections of a Compare Groups report for the decrease in blood pressure by treatment: the variance ratio with its 95% confidence interval and the Fisher F test, then the mean difference with its 95% confidence interval and Student’s t-test against a hypothesised difference of 3, with the task pane open on Location. Handwritten notes: Variance ratio with its 95% CI, and the F test for equality; Mean difference with its 95% CI, and Student's t-test; Test, hypotheses and the hypothesised difference.
Calcium supplementation and blood pressure: the F-test for equal variances, then the mean difference with its 95% CI and Student’s t-test against a hypothesised difference of 3.

Paired t-test, Wilcoxon signed ranks, Sign test and the difference plot

Before-and-after, matched pairs, repeated observations on the same subjects: the pairing carries information that an independent-groups test discards. Paired t-test, Wilcoxon signed ranks and the sign test cover two time points, with the Z test when the standard deviations are known. The difference plot with its histogram shows the distribution of the individual changes, not just their average.

  • Descriptive statistics for each group
  • Side-by-side dot plots, mean plots, box plots
  • Difference plot with identity line and histogram
  • Z test for difference in means (known SDs)
  • Student’s paired t-test
  • Wilcoxon signed ranks test
  • Sign test for the median
  • TOST equivalence test for the mean difference new in v5.40
Microsoft Excel showing a Compare Pairs report for body fat before and after an exercise programme: side-by-side box plots with a line joining each of the 28 pairs, the descriptive statistics for Before, After and the differences beneath, and the Compare Pairs task pane open on Descriptives. Handwritten notes: Before and after for each subject, joined; box plots for each measure; Descriptives of the pairs and their differences; Connect the pairs.
Body fat before and after an exercise programme, 28 pairs: box plots with a line for each pair, and the descriptive statistics for Before, After and the differences.

Cohen’s d, Hedges’ g and Hodges-Lehmann shift with confidence intervals

A p-value says whether a difference exists; the effect size says how large it is. Cohen’s d and Hedges’ g put the difference on a standardised scale, with non-central t confidence intervals. The mean difference with its confidence interval keeps the raw scale, and the Hodges-Lehmann location shift gives a robust non-parametric estimate. Report the magnitude alongside the significance.

  • Mean difference with t-based, Welch-Satterthwaite or Z-based CI
  • Cohen’s d and Hedges’ g with non-central t CI
  • Hodges-Lehmann location shift with Moses CI (independent)
  • Hodges-Lehmann location shift with Tukey CI (paired)
  • Median difference with Thompson-Savur CI
Microsoft Excel showing the Differences and Location sections of a Compare Pairs report for body fat before and after: the difference plot with the Hodges-Lehmann location shift and its 95% confidence interval drawn on it, then the Location table with the shift, its confidence interval and the Wilcoxon signed ranks test, with the task pane open on Location. Handwritten notes: Difference plot with the Hodges-Lehmann shift and its 95% CI drawn on; Hodges-Lehmann shift with its CI, and the Wilcoxon signed ranks test beneath; Estimator: Hodges- Lehmann shift, drawn on the plot.
The difference plot for the body-fat pairs with the Hodges-Lehmann shift and its 95% CI drawn on it, and the Location table with the Wilcoxon signed ranks test.

F-test, Bartlett, Levene and Brown-Forsythe tests of equal variances

The choice between Student’s t and Welch’s t depends on whether the variances are equal. The F-test for the variance ratio checks two groups; Bartlett, Levene and Brown-Forsythe check three or more. When the assumption fails, the alternative is in the same analysis: switch to Welch’s t-test, Welch’s ANOVA or a non-parametric test without starting over.

  • F-test for variance ratio
  • Bartlett test for homogeneity
  • Levene test for homogeneity
  • Brown-Forsythe test for homogeneity
  • Variance ratio with F-based confidence interval

One-way ANOVA, Kruskal-Wallis, Friedman and eight multiple comparisons

Three or more groups call for an analysis of variance, not a run of t-tests. One-way ANOVA, Welch’s ANOVA and Kruskal-Wallis compare independent groups; within-subjects ANOVA and Friedman compare repeated measures. Eight multiple comparison procedures then show which groups differ, with the Mean-Mean scatter plot. The ANOVA and ANCOVA page covers them in full.

  • One-way between-subjects ANOVA
  • Welch’s ANOVA for unequal variances
  • Kruskal-Wallis test
  • One-way within-subjects ANOVA
  • Friedman test
  • All pairs: Tukey-Kramer, Dwass-Steel-Critchlow-Fligner
  • Against control: Dunnett, Steel
  • With best: Hsu
  • All contrasts: Scheffé
  • Individual: Student’s t, Wilcoxon-Mann-Whitney
  • Mean-Mean scatter plot

Example analyses

See hypothesis test results in detail — t-tests, ANOVA, multiple comparisons and effect sizes.

Compare Groups 1 3 pages One-way ANOVA
Y by brand, 7 groups, 19 observations.
Descriptive statistics by group, Levene test for homogeneity of variance, one-way ANOVA, Tukey-Kramer all-pairs comparisons over 21 contrasts with simultaneous 95% CIs and a Mean-Mean scatter plot.
Compare Groups 2 2 pages Independent-samples t-test
Calcium supplementation and blood pressure, 21 observations.
Five-number summary by group with side-by-side plots, Fisher F test for the variance ratio, and Student’s t test of the difference in means against a hypothesised difference of 3.
Compare Pairs 2 pages Compare pairs
Body fat before and after an exercise programme.
28 paired observations. Descriptive statistics for both conditions and for the differences, Hodges-Lehmann shift estimate with a 95.49% CI and the Wilcoxon signed-ranks test.

Part of the Standard edition

Hypothesis testing is one part of a complete statistical analysis toolkit. The Standard edition also includes ANOVA and ANCOVA, simple and multiple regression, logistic regression, PCA and factor analysis, descriptive statistics, correlation and categorical data analysis. See everything in the Standard edition →

Not sure which procedure fits the question? Start with choosing the right statistical test, then read Student’s, Welch’s or paired? and what non-parametric tests assume.

Software you can trust

Validated calculations Every statistic tested against the NIST Statistical Reference Datasets, published datasets and thousands of internal test cases. No reliance on Excel’s built-in functions. How Analyse-it is developed and validated →
Data stays on your PC No cloud processing, no uploads, no third-party access. Your data never leaves your computer — essential when working with sensitive, confidential or patient-identifiable data.
Standard Excel workbooks Analyses are ordinary Excel workbooks that you can share with colleagues, archive for audit and open on any machine with Excel — no Analyse-it licence required.
No formulas to break Results contain no formulas, so there is nothing to overwrite and no cell reference to break. The results you reported will be exactly what you find when you reopen the workbook.

Free trial and pricing

Try it on your own data first. The 15-day trial is every feature from all five editions — install it and start straight away.

Standard edition: US$ 155 per year or US$ 395 for a perpetual licence. Every purchase carries a 30-day money-back guarantee. Need a quote for purchasing? Add the licence to the cart and save it as a PDF quote.