Mood’s Median Test and Its Use in Six Sigma

In Six Sigma, selecting the right statistical tool is crucial. Some processes involve non-normal data or outliers. In such cases, mean-based tests like t-tests or ANOVA can mislead. That’s where Mood’s Median Test becomes useful.

Mood’s Median Test helps compare the medians of two or more groups. It’s a non-parametric test, meaning it does not assume any specific data distribution. This makes it ideal for Lean Six Sigma projects dealing with real-world, messy data.

What Is Mood’s Median Test?

Mood’s Median Test checks whether multiple independent groups share the same median. Instead of looking at means, it focuses on how values fall above or below the overall median. The test uses a Chi-square statistic to determine significance.

It’s most useful when:

  • Your data is ordinal or skewed
  • You have outliers
  • You are comparing more than two groups

Why Use the Median Instead of the Mean?

The mean is sensitive to outliers. A few extreme values can skew it. The median, however, is more robust. It reflects the true central tendency of skewed or non-normal data.

MeasureDescriptionSensitive to Outliers?
MeanAverage of all valuesYes
MedianMiddle value in sorted listNo

When process data includes spikes or irregular distributions, the median provides better insights. That’s where Mood’s Median Test shines.

Mood’s Median Test vs. Other Tests

Understanding where Mood’s Median Test fits among other tests is key.

TestComparesAssumes NormalitySensitive to Outliers?Uses Median?
t-testMeans (2 groups)YesYesNo
ANOVAMeans (2+ groups)YesYesNo
Mann-Whitney UMedians (2 groups)NoLessYes
Kruskal-WallisMedians (2+ groups)NoLessYes
Mood’s MedianMedians (2+ groups)NoNoYes

Mood’s Median is particularly useful when data contains extreme values or when sample sizes differ greatly.

When to Use Mood’s Median Test in Six Sigma

In Six Sigma, decisions are driven by data. Choosing the right statistical method ensures valid conclusions. Use Mood’s Median Test when:

  • You compare two or more independent samples.
  • Your data is ordinal or skewed.
  • You suspect outliers that could distort the mean.
  • You want to test for median differences, not means.

Here are some Six Sigma scenarios where this test is useful:

ScenarioDescription
Process shift analysisCompare median defect levels before and after a change
Supplier comparisonEvaluate median delivery times of different vendors
Equipment performanceCompare output medians from different machines

How Mood’s Median Test Works

Mood’s Median Test is simple in logic. Here’s the breakdown:

  1. Combine all values from all groups.
  2. Find the overall median.
  3. For each group, classify values as either:
    • Above median
    • Below median
  4. Create a contingency table.
  5. Perform a Chi-square test.

Interpreting Results

Like other hypothesis tests, Mood’s Median Test involves:

  • Null Hypothesis (H₀): All groups have the same median.
  • Alternative Hypothesis (H₁): At least one group has a different median.

P-Value

  • If p < 0.05, reject the null hypothesis.
  • If p ≥ 0.05, do not reject the null hypothesis.

The p-value indicates if differences are statistically significant.

Step-by-Step Example with Calculation

Let’s say we want to compare cycle times from three operators.

Data

Operator AOperator BOperator C
101215
111316
101217

Step 1: Pool All Data

Combined data = [10, 11, 10, 12, 13, 12, 15, 16, 17]
Sorted = [10, 10, 11, 12, 12, 13, 15, 16, 17]

Step 2: Find the Overall Median

There are 9 values. The middle (5th value) is 12, so:

Overall median = 12

Step 3: Classify Each Value

We count how many values from each group are:

  • Below the median (<12)
  • Above the median (>12)

Values equal to the median (12) are excluded from the analysis.

GroupValues<12>12
A10, 11, 1030
B12, 13, 1201
C15, 16, 1703

Step 4: Create Chi-Square Table

Build a 2×3 contingency table:

GroupBelow MedianAbove MedianRow Total
Operator A303
Operator B011
Operator C033
Column Total347

Step 5: Calculate Expected Counts

We calculate expected values for each cell using: ​

\[E_{ij} = {(Row \space Total_{i} \times Column \space Total_{j}) \over Grand \space Total}\]
Below MedianAbove Median
Operator A(3×3)/7 = 1.29(3×4)/7 = 1.71
Operator B(1×3)/7 = 0.43(1×4)/7 = 0.57
Operator C(3×3)/7 = 1.29(3×4)/7 = 1.71

Step 6: Compute Chi-Square Statistic

Use the formula:

\[χ^{2} = {\sum {(O \space – \space E)^{2} \over E}}\]

Where O = observed count, E = expected count.

GroupCellOE(O-E)²/E
ABelow31.292.24
AAbove01.711.71
BBelow00.430.43
BAbove10.570.37
CBelow01.291.29
CAbove31.710.97
Total6.99
\[χ^{2} ≈ {6.99}\]

Step 7: Determine Significance

Now let’s calculate the degrees of freedom to determine the significance:

Degrees of Freedom (df) = (Rows – 1) × (Columns – 1)
df = (3 – 1) × (2 – 1) = 2

Using a Chi-square table:

Using a Chi-square table for Mood's Median test
  • Critical value at α = 0.05 and df = 2 ≈ 5.99
  • Our χ² = 6.99 > 5.99

Conclusion: Reject the null hypothesis.

At least one operator has a different median cycle time.

Six Sigma Application

Problem

A Six Sigma team wants to improve throughput. They suspect Operator C is slower. But their data includes outliers from machine warmups.

Why Use Mood’s Median Test?

  • Data is not normally distributed
  • Contains extreme values
  • Median is more reliable than mean

Action Plan

  1. Conduct Mood’s Median Test (as shown).
  2. Determine significance.
  3. Investigate Operator C’s work methods.
  4. Apply improvement tools (5S, Standard Work, SMED).

When to Choose Mood’s Median Over Other Tests

Let’s compare popular non-parametric tests:

TestData TypeGroupsMeasuresRobust to Outliers?
Mann-Whitney UOrdinal2RanksSomewhat
Kruskal-WallisOrdinal2+RanksSomewhat
Mood’s MedianOrdinal2+MediansYes

Mood’s Median Test excels when outliers are present and median is the statistic of interest.

Advantages of Mood’s Median Test

Why use this test over others?

  • Handles outliers well
  • No assumption of equal variance
  • Works with ordinal or skewed data
  • Easy to interpret results

It’s ideal in environments where data quality varies or normality is questionable.

Limitations of Mood’s Median Test

Despite its benefits, the test has limitations:

LimitationExplanation
Less powerfulCompared to ANOVA or Kruskal-Wallis
Ignores magnitudeOnly considers counts above/below median
Excludes tiesValues equal to the median are not used
Requires independenceGroups must be independent

Understanding these limitations ensures appropriate use.

Tips for Using Mood’s Median Test in Six Sigma

  1. Use during Analyze phase of DMAIC.
  2. Test assumptions first—ensure independent samples.
  3. Visualize data using box plots before testing.
  4. Combine with other methods like Pareto charts or control charts.
  5. Document your rationale for choosing the test in your project report.

Tools That Support the Test

You can use several software options:

ToolSupports Mood’s Median Test?
MinitabYes (via nonparametric analysis)
JMPYes (through contingency setup)
PythonYes (manual calculation or SciPy)
RYes (mood.test() or custom code)
ExcelYes (manual chi-square test)

Real-World Examples

Manufacturing

A factory measures thickness from three coating machines. The data has some extreme values due to nozzle clogging. Mood’s Median Test helps compare medians without distortion.

Healthcare

A hospital compares patient wait times across three departments. Due to a few extreme delays, the median is more reliable. Mood’s Median Test highlights which department deviates.

Logistics

A warehouse compares shipment times by region. Some long delays skew the data. Mood’s Median Test reveals regional differences without letting outliers dominate.

Mood’s Median vs. Kruskal-Wallis

Both tests are non-parametric and compare multiple groups. But they differ:

FeatureMood’s MedianKruskal-Wallis
FocusMedianDistribution rank
Outlier ImpactVery lowLow
Data ConsiderationAbove/below medianAll ranks used
PowerLowerHigher
Use CaseStrong outliers or median focusRanked comparisons

Choose Mood’s Median when the median is your key interest or when outliers are severe.

Python Code Example

Here’s a Python script to replicate our example:

pythonCopyEditimport pandas as pd
import scipy.stats as stats

# Operator data
a = [10, 11, 10]
b = [12, 13, 12]
c = [15, 16, 17]

# Combine and find median
all_data = a + b + c
median = pd.Series(all_data).median()

# Count above/below median
def count_above_below(group, median):
    above = sum(x > median for x in group)
    below = sum(x < median for x in group)
    return [below, above]

data = [count_above_below(a, median),
        count_above_below(b, median),
        count_above_below(c, median)]

# Chi-square test
chi2, p, _, _ = stats.chi2_contingency(data)
print("Chi-square:", chi2)
print("P-value:", p)

Output:

makefileCopyEditChi-square: 6.99
P-value: 0.030

Since p < 0.05, we reject the null hypothesis.

Conclusion

Mood’s Median Test is a valuable tool for Six Sigma practitioners. It compares medians across groups without being thrown off by extreme values or non-normal data. It’s best used when:

  • Outliers are present
  • The data is ordinal
  • Median is a better measure than the mean

By walking through the test manually and with Python, you now understand how to use it confidently in real projects. It provides a clear, robust alternative when traditional tools fall short.

Share with your network
Lindsay Jordan
Lindsay Jordan

Hi there! My name is Lindsay Jordan, and I am an ASQ-certified Six Sigma Black Belt and a full-time Chemical Process Engineering Manager. That means I work with the principles of Lean methodology everyday. My goal is to help you develop the skills to use Lean methodology to improve every aspect of your daily life both in your career and at home!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.