Compare several group means

Test whether several independent groups share a common population mean.

Guides · Basic statistics · 4 min read

Example: four adhesive formulations

80 independently prepared joints: 20 per adhesive formulation. Joints were randomly assigned to formulations, and strength-test order was randomized.

Download the example data (CSV)

This is the same example used in Help. Import the CSV to follow the steps, or use Open example in a practice copy in Help to prefill the inputs.

1. Create the workspace

In the sidebar, open Basic Statistics and choose Means: k-Sample (ANOVA). Create an analysis, name it, select New blank worksheet, then choose Create analysis.

2. Import the example data

Download the CSV above and import it into the worksheet. Choose Comma as the delimiter, Dot as the decimal separator and First row contains column names.

3. Assign the input columns

On Inputs, assign lap_shear_strength_mpa to Response and adhesive to Factor. Each row is one independently prepared joint; the factor identifies its formulation.

4. Set the test

Enter 0.05 in Significance level (α). Open Additional comparisons and leave Tukey pairwise comparisons unchecked.

Means: k-Sample (ANOVA): Inputs with the example’s assignments and settings
Inputs with the example columns and settings before running the analysis. View full-size image (opens in a new tab)

5. Run analysis

Choose Run analysis, then open Results.

6. Interpret results

  1. Check the groups

    Each of four adhesives has 20 independently prepared joints. ANOVA tests whether all four population means can be described by one common mean.

  2. Read the overall test

    The ANOVA table gives F = 15.86 and p = 4.220 × 10⁻⁸. At the 5% level, there is evidence that at least one mean differs, under the assumptions of independent observations, roughly normal residuals (each joint’s departure from its fitted group mean) and equal variances.

  3. Read the group estimates

    Adhesive C has the highest sample mean, 15.178 MPa, and A the lowest, 12.966 MPa. Their observed difference is about 2.21 MPa. The displayed intervals estimate individual group means using the pooled error; they are not simultaneous pairwise comparisons.

  4. Choose the comparisons you need

    Tukey comparisons are off, so this run does not identify every differing pair. Use the supported Tukey option if pairwise differences matter. Compare strength with the practical requirement before choosing a formulation.

More details: read each result section

Complete result tables use six significant digits, as in Help.

ANOVA table

Between describes variation among group means; Within describes variation among joints in the same group; Total combines them. DF is degrees of freedom, SS is sum of squares and MS is SS divided by DF. F compares Between MS with Within MS. The p-value tests a common mean. Dashes mark statistics that do not apply to that row.

ANOVA table · 3 rows
SourceDFSSMSFp-value
Between359.739919.913315.85894.21963e-8
Within7695.42961.25565——
Total79155.169———
  • Group means differ (p=4.22e-08)

Group summaries

Group is the adhesive; n is 20 per formulation. Mean and SD describe its measurements. CI low and CI high bound its 95% mean interval using pooled within-group variance; Margin of error is the interval half-width. These intervals are not a Tukey comparison of pairs.

95% confidence intervals for group means.

Group summaries · 4 rows
GroupnMeanSDCI lowerCI upperHalf-width
Adhesive_B2013.29551.201612.796513.79450.499043
Adhesive_C2015.1781.1207614.67915.6770.499043
Adhesive_D2014.24151.0734113.742514.74050.499043
Adhesive_A2012.96551.0818812.466513.46450.499043

Overall summary

Grand mean combines all 80 joints; Groups is 4 and Alpha is 0.05. This summary does not verify independence, normal residuals or equal population variances.

Overall summary · 3 rows
StatisticValue
Grand mean13.9201
Groups4
Alpha0.05

7. Create a report

Keep the ANOVA table, Group summaries and Overall summary, units and test assumptions. State that Tukey comparisons were off and the overall result does not identify all differing pairs.

Choose Add to report from the completed run. Open Choose individual items and advanced options to select tables and charts, then choose Add to draft. Hidden items stay in the saved analysis.

Name the report and add the purpose of the study and your interpretation. Choose Save, review Preview, then use Export → Download HTML. The example below contains the full selected content, including results beyond one screen.

Complete native output for this Help example, including applicable tables, charts and run notes. Report numbers use the app’s displayed precision. Exported charts are static. On narrow screens, scroll wide charts and tables sideways.
View example report: Compare the strength of four adhesives

We use Microsoft Clarity to understand how visitors use this website, including session recordings and heatmaps. You can use the website without accepting analytics.

Your choice is saved in this browser for six months. Privacy notice

Current choice: Not chosen.