Knowledge base

Mean Square (MS)

Introduction: MS

The Mean Square (MS) is a statistical measure used in analysis of variance (ANOVA) and regression. It represents the average variability, calculated by dividing the sum of squares (SS) by its corresponding degrees of freedom (df). Mean squares are essential for hypothesis testing, particularly when evaluating differences between groups or the explanatory power of regression models.

Background

In ANOVA, the total variability in data is partitioned into components (e.g., between-group and within-group variation). By standardising sums of squares using degrees of freedom, mean squares provide comparable measures of variation. These values form the basis of the F-statistic, which tests whether observed differences are statistically significant.

Formula

MS = \dfrac{SS}{df}

Where:

  • SS (Sum of S s   aquares) = a measure of total variation.
  • df (Degrees of Freedom) = the number of independent values that can vary.

Types of Mean Squares

  • Mean Square Between (MSB): Variation between group means.

MS_B = \dfrac{SS_B}{df_B}

  • Mean Square Within (MSW): Variation within groups (residual error).

MS_W = \dfrac{SS_W}{df_W}

  • Mean Square Regression (MSR): Variation explained by the regression model.
  • Mean Square E srror (MSE): Unexplained variation or residuals.

Applications / Examples

  • ANOVA: The ratio of mean squares (e.g., MSB ÷ MSW) produces the F-statistic, used to test whether group means differ significantly.
  • Regression: Mean squares determine how much variation in the dependent variable is explained by the model versus random error.

Worked Example (One-Way ANOVA):

  • SSB = 120, dfB = 3
  • SSW = 80,  dfW = 16

MS_B = \dfrac{120}{3} = 40

MS_W = \dfrac{80}{16} = 5

The F-statistic is:

F = \dfrac{MS_B}{MS_W} = \dfrac{40}{5} = 8

Relevance / Impact

Mean squares standardise sums of squares by accounting for degrees of freedom, making them directly comparable. They are central to ANOVA and regression analysis, enabling researchers to test hypotheses, evaluate model fit, and interpret whether observed patterns are statistically meaningful.

See also

Anend Harkhoe
Lean Consultant & Trainer | MBA in Lean & Six Sigma | Founder of Dmaic.com & Lean.nl
With extensive experience in healthcare (hospitals, elderly care, mental health, GP practices), banking and insurance, manufacturing, the food industry, consulting, IT services, and government, Anend is eager to guide you into the world of Lean and Six Sigma. He believes in the power of people, action, and experimentation. At Dmaic.com and Lean.nl, everything revolves around practical knowledge and hands-on training. Lean is not just a theory—it’s a way of life that you need to experience. From Tokyo’s karaoke bars to Toyota’s lessons—Anend makes Lean tangible and applicable. Lean.nl organises inspiring training sessions and study trips to Lean companies in Japan, such as Toyota. Contact: info@dmaic.com

Online Lean courses
100% Lean, at your own pace

Most popular article