Lean Six Sigma Training Guide
  • IASSC Free Training Guide
  • Free Lean Six Sigma Training Guide
  • ASQ Free Training Guide
  • Body of Knowledge
  • Practice Exams
    • Six Sigma Quick Training Tests >
      • Lean Six Sigma Practice Test 1
      • Lean Six Sigma Practice Test 2
      • Lean Six Sigma Practice Test 3
      • Lean Six Sigma Practice Test 4
      • Lean Six Sigma Practice Test 5
      • Lean Six Sigma Practice Test 6
      • Lean Six Sigma Practice Test 7
      • Lean Six Sigma Practice Test 8
      • Lean Six Sigma Practice Test 9
      • Lean Six Sigma Practice Test 10
      • Lean Six Sigma Practice Test 11
      • Lean Six Sigma Practice Test 12
    • Six Sigma DMAIC Training Tests >
      • DEFINE Six Sigma Training Test
      • MEASURE Six Sigma Training Test
      • ANALYZE Six Sigma Training Test
      • IMPROVE Six Sigma Training Test
      • CONTROL Six Sigma Training Test
    • IASSC, ASQ and Other Exams >
      • IASSC Six Sigma Black Belt Exam
      • IASSC Six Sigma Green Belt Exam
      • IASSC Six Sigma Yellow Belt Exam
      • Lean Six Sigma Exams By Topic >
        • I. Enterprise-Wide Deployment >
          • A. Enterprise-wide view
          • B. Leadership
        • II. Organizational Process Management and Measures >
          • A. Impact on stakeholders
          • B. Critical to x (CTx) requirements
          • C. Benchmarking
          • D. Business performance measures
          • E. Financial measures
        • IV. Define >
          • A. Voice of the customer
          • B. Project charter
          • C. Project tracking
        • V. Measure >
          • D. Basic statistics
      • ASQ Six Sigma Black Belt Exam
      • ASQ Six Sigma Green Belt Exam
  • Six Sigma Materials
    • The Problem Solving Strategy Y = f(x) in Lean Six Sigma
    • Value Stream Mapping Explained
    • Pareto Analysis And Pareto Chart Explained
    • Best 5 Free Online Degree Programs In 2017
    • Cost Of Poor Quality (COPQ) Explained
    • Best 4 Free Online Certifications To Boost Your Resume
    • Pareto Analysis and Pareto Chart
    • Why Six Sigma Certification?
    • Six Sigma Green Belt Training
    • General History of Six Sigma & Continuous Improvement
    • Walter Shewhart Biography
    • Basic Lean Six Sigma Metrics
    • How to Make a Histogram
    • Statistical Process Control Charts
    • Lean Six Sigma Term Glossary
    • Kaizen and Kaizen Blitz
    • Central Limit Theorem
    • Six Sigma Symbols
    • Six Sigma Tables >
      • Z Score Tables
      • T Distribution Table
      • Chi-Square Distribution Table
      • F Distribution Table
      • Poisson Distribution Table
      • Cumulative Poisson Distribution Table
    • Six Sigma Diagrams >
      • Choosing a Right Parametric Test
      • Choosing a Right Control Chart
      • Commonly Used Lean Six Sigma Flowchart Symbols
      • Ishikawa (Fishbone) Diagram
      • Histogram
      • Scatterplot
      • Check Sheet
      • Failure Mode and Effects Analysis (FMEA)
    • Lean Six Sigma Belt Roles and Responsibilities
    • 5S
    • How to get six sigma certified?
    • International Six Sigma Certification Association (IASSC) Exam Reference Document
    • Useful Websites and Tools
    • 10 Best Free Udemy Courses That You Can Take Online
    • 5 Best Udemy Courses You Can Take Today
    • The Complete Web Developer Course 2.0 You Can Take Online | Udemy
    • 12 Best Probability and Statistics Online Courses and Classes [2018 Guide]
    • 15 Best Data Science Degrees, Courses and Certifications [2018]
  • Six Sigma Glossary
    • 5 Whys
    • Analytical and Descriptive Statistics
    • Brainstorming
    • Cost Of Quality
    • Design for Six Sigma (DFSS)
    • Efficiency of Estimators
    • Process Maps and Flow Charts
    • Gap Analysis
    • Common & Special Cause Variation
    • Quality Function Deployment (QFD)
    • In Control Process
    • Interest-Based Bargaining
    • Internal Customer
    • ISO9000
    • Kaizen Blitz
    • Kanban
    • Kano Model
    • Key Performance Indicators (KPI)
    • Lean Production
    • Management Strategies
    • MANOVA
    • Multivariate Analysis
    • Pareto Charts
    • Pareto Principle
    • PEST Analysis
    • Porter's Five Forces Analysis
    • Factor Analysis
    • Procedures
    • Process
    • Project Charter
    • Project Sponsor
    • Pull Production System
    • QS9000
    • Random Sampling
    • Failure Mode & Effects Analysis (FMEA)
    • Rolled Throughput Yield
    • Root Cause Analysis
    • Scenario Planning
    • Seven Quality Tools
    • SIPOC Diagrams
    • Six Sigma
    • SWOT Analysis
    • Systematic Sampling
    • System (Quality System)
    • Team Tools
    • Theory of Constraints
    • Throughput
    • Total Productive Maintenance (TPM)
    • Touch Time
    • Value Stream Maps
    • Visual Factory
    • Work In Progress (WIP)
    • Work In Queue
    • Work Instructions
    • Big Y
    • Control Plan
    • Waste
    • Evolutionary Operation of Processes (EVOP)
    • Cause & Effect Diagrams
    • 5C
    • 5Z
    • Project Selection
    • 8D Process
    • Appraisal Cost
    • Audit
    • Baseline
    • Business Process Quality Management
    • Check Sheet
    • Unintended Consequences
    • Voice Of The Customer (VOC)
    • Critical to Customer (CTC)
    • Critical To Quality (CTQ)
    • Customer Focus
    • Efficiency
    • Empowerment
    • Entry Criteria
    • Exit Criteria
    • Voice Of The Process (VOP)
    • Just In Time (JIT) Manufacturing
    • KISS
    • DMAIC
  • Six Sigma Blog
  • Forum
  • About Me
  • Privacy Policy
  • Contact
  • Top Free Online Courses With Printable Certificates
  • Roman Numerals Chart

ANOVA and Non-Parametric Tests

Tweet
Home/Body of Knowledge/ANOVA and Non-Parametric Tests
Previous: Hypothesis testingAll topicsNext: Correlation and regression

ANOVA (analysis of variance) tests whether the means of three or more groups differ. It compares the variation between groups with the variation within them, and a large F ratio says at least one group mean is different. Non-parametric tests, such as Mann-Whitney, Kruskal-Wallis, Mood’s median, Wilcoxon and Friedman, answer the same questions without assuming normal data.

They work on ranks or medians, which makes them the safe choice for skewed, ordinal or outlier-prone Six Sigma data such as cycle times.

Which test should you use? A decision tree

Pick the test from three facts: the type of Y, whether the data (strictly, the residuals) are roughly normal, and how the samples are structured (one sample, two independent groups, paired, three or more groups, or blocked).

Hypothesis test decision tree for normal, non-normal and discrete data A decision tree. First ask whether the output is continuous or discrete. For continuous data with roughly normal residuals, use parametric tests: 1-sample t, 2-sample t, paired t, one-way ANOVA, and the F test or Bartlett for variances. For non-normal continuous data, use non-parametric tests: sign or 1-sample Wilcoxon, Mann-Whitney, Wilcoxon signed-rank, Kruskal-Wallis or Mood's median, Friedman for blocked data, and Levene for variances. For discrete data, use 1- or 2-proportion tests, chi-square, or logistic regression. What kind of Y (output)?Continuous (time, weight, length)Discrete (pass/fail, counts)Roughly normal residuals?yesnoParametric (compare means)1 sample vs target: 1-sample t2 independent groups: 2-sample tPaired before/after: paired t3+ groups: one-way ANOVAVariances: F test, BartlettNon-parametric (compare medians)1 sample vs target: sign, 1-sample Wilcoxon2 groups: Mann-WhitneyPaired: Wilcoxon signed-rank, sign3+ groups: Kruskal-Wallis, Mood’s medianBlocked (same operators): FriedmanVariances: LeveneProportions and counts1 proportion vs target: 1-proportion test2 proportions: 2-proportion test3+ groups or a table: chi-squarePass/fail vs X’s: logistic regressionNon-normal data can also be transformed and analyzed with the parametric test; check the residuals either way.
An original decision tree. The same structure covers the parametric tests in hypothesis testing and the rank-based alternatives on this page.

Parametric versus non-parametric tests

ParametricNon-parametric
AssumesA distribution (usually normal) with parameters such as the mean and standard deviationOnly that samples are random and independent; some tests assume similar shapes across groups
ComparesMeansMedians or whole distributions (via ranks)
StrengthMore power when assumptions holdRobust to skew and outliers; works on ordinal data (ratings, ranks)
WeaknessMisleading with heavy skew, outliers or small non-normal samplesSomewhat less power with truly normal data (Mann-Whitney is about 95% as efficient as the t-test)

A practical rule: with moderate or large samples (about 15 to 20 or more per group), ANOVA and t-tests tolerate mild non-normality because of the central limit theorem. With small samples, strong skew, outliers or ordinal data, go non-parametric or transform first.

How does one-way ANOVA work?

One-way ANOVA has one factor (for example machine, supplier or shift) at k levels. Hypotheses: H₀: μ₁ = μ₂ = … = μₖ against H₁: at least one mean differs. Total variation splits into two parts:

  • SS between = Σ nᵢ(x̄ᵢ − x̄)²: how far the group means sit from the grand mean (df = k − 1)
  • SS within = ΣΣ(x − x̄ᵢ)²: the scatter inside each group (df = N − k)
  • F = MS between / MS within, where each MS = SS / df. Under H₀, F follows an F distribution with (k − 1, N − k) degrees of freedom.

Assumptions: independent observations, roughly normal residuals and similar variances across groups. ANOVA is fairly robust to unequal variances when group sizes are equal. When they are not, use Welch’s ANOVA.

Worked example: fill weight from three filling heads

A filler has three heads. A Black Belt weighs 8 consecutive packs (target 500 g) from each head. The data are illustrative and were analyzed in scipy:

HeadWeights (g)MeanStd dev
Head 1499.4, 500.0, 502.2, 501.0, 498.2, 500.2, 499.5, 500.4500.111.18
Head 2499.7, 501.9, 501.9, 503.5, 502.0, 502.2, 499.8, 504.3501.911.59
Head 3497.7, 501.3, 499.6, 498.9, 499.2, 499.2, 500.5, 499.9499.541.08
SourceSSdfMSFp
Between heads24.56212.287.240.0041
Within (error)35.64211.697
Total60.2023

F = 12.28 / 1.697 = 7.24, above the 5% critical value F(2, 21) = 3.47, so p = 0.0041: at least one head fills differently. The heads explain η² = SS between / SS total = 0.41, or about 41% of the variation.

Assumption checks: residual normality, Shapiro-Wilk p = 0.29 (fine). Equal variances, Levene’s test p = 0.76 (fine). Observations were taken in time order within each head, so check a run chart for drift as well.

Testing equal variances: Levene and Bartlett

Before trusting ANOVA, or when variation itself is the problem you are solving, test H₀: σ₁² = σ₂² = … = σₖ².

  • Bartlett’s test is the most powerful when data are normal, but it is very sensitive to non-normality.
  • Levene’s test runs an ANOVA on the absolute deviations |x − center| of each value from its group center. The original version uses the group mean. The Brown-Forsythe version uses the group median and is the robust default in most software, including Minitab’s “Levene’s” result. It is the right choice when data are not normal.
  • For exactly two normal groups, the F test compares s₁²/s₂².

In the fill example, Levene’s W = 0.28 (mean-centered, p = 0.76; median-centered p = 0.76), so there is no evidence the heads differ in spread. Head 2’s larger standard deviation is within chance.

After a significant F: Tukey comparisons

ANOVA says “at least one differs” but not which. Tukey’s HSD compares every pair while holding the family-wise error rate at 5%:

PairDifference (g)95% simultaneous CIAdjusted p
Head 2 − Head 11.800.16 to 3.440.030
Head 2 − Head 32.380.73 to 4.020.004
Head 1 − Head 30.57-1.07 to 2.220.657

Head 2 overfills by about 1.8 to 2.4 g compared with the other two, whose intervals overlap. The fix is to recalibrate Head 2, not to adjust the whole filler. Running three separate t-tests instead would inflate the false-alarm rate to about 1 − 0.95³ ≈ 14%.

Non-parametric tests at a glance

TestQuestion it answersParametric counterpartNotes
1-sample signIs the median equal to a target?1-sample tUses only the signs of x − target; very few assumptions, low power
1-sample / paired WilcoxonIs the median (or median difference) equal to a target?1-sample t, paired tUses signs and ranks; assumes a symmetric distribution of differences
Mann-WhitneyDo two independent groups differ in location?2-sample tAlso called the Wilcoxon rank-sum test; assumes similar shapes to read it as a median test
Kruskal-WallisDo 3+ independent groups differ?One-way ANOVARank-based; sensitive to the whole distribution, robust to outliers
Mood’s medianDo 3+ groups have the same median?One-way ANOVACounts values above and below the grand median; very robust to outliers, less power
FriedmanDo 3+ treatments differ when each block (operator, batch) gets every treatment?Two-way ANOVA without replication (randomized block)Ranks within each block, removing block-to-block differences
Levene (Brown-Forsythe)Do groups have equal variances?Bartlett, F testRobust to non-normality

Kruskal-Wallis: comparing three or more groups

A service desk compares ticket resolution times at three sites. Times are right-skewed: most tickets close quickly, but a few take a long time.

Ticket resolution times at three sites, with medians and means Dot plot of 10 resolution times at each of three sites. Sites A and B cluster between about 4 and 10 hours. Site C is more spread out with two long tickets at 22 and 26 hours, so its mean (12.4 hours) sits to the right of its median (11.45 hours). Medians: A 7.45, B 5.75, C 11.45. Resolution time by site (n = 10 each) 0481216202428Site ASite BSite Cresolution time (hours)medianmean
Illustrative data (seeded lognormal, n = 10 per site). Site C’s two long tickets pull its mean well above its median, which is the classic signal to compare medians instead of means.

An ANOVA on these data gives p = 0.010, but its residuals fail normality (Shapiro-Wilk p = 0.0024), so the ANOVA p-value is not trustworthy. Kruskal-Wallis replaces the 30 values with their ranks (1 = fastest) and asks whether the average ranks differ more than chance allows:

H = [12 / (N(N + 1))] · Σ (Rᵢ² / nᵢ) − 3(N + 1), compared with χ² on k − 1 df

SiteMedian (h)Rank sum RᵢMean rank
A7.45147.014.70
B5.75105.510.55
C11.45212.521.25

H = 7.51 (with a small correction for one tied value), above χ²(2) = 5.99, so p = 0.023: the sites differ. Site C has the highest mean rank.

Mood’s median test

Mood’s median test asks a blunter question: does each group have the same share of values above the grand median? Here the grand median is 7.45 h:

Site ASite BSite C
Above 7.45 h528
At or below582

A chi-square test on this 2 × 3 table gives χ² = 7.20, p = 0.027. This agrees with Kruskal-Wallis. Mood’s test ignores how far each value is from the median, so it is extremely resistant to outliers but needs more data for the same power. Prefer Kruskal-Wallis unless there are outliers you cannot explain.

Mann-Whitney: two groups, and which sites differ

Mann-Whitney ranks two samples together and computes U, the number of times a value from one group beats a value from the other. Pairwise on the sites:

PairUp (unadjusted)
A vs B70.00.140
A vs C22.00.038
B vs C20.50.028

Both comparisons with Site C are below 0.05, but three comparisons call for a Bonferroni-adjusted threshold of 0.05 / 3 ≈ 0.017, and neither clears it. The honest conclusion: the sites differ overall and Site C is the likely outlier, but confirming which pairs differ needs a larger sample or a Dunn post-hoc test on the Kruskal-Wallis ranks. Small, skewed samples often give this answer, and saying so is better than overclaiming.

Paired data: Wilcoxon signed-rank and sign test

Ten operators each did a changeover before and after a quick-change fixture (minutes; illustrative data):

Operator12345678910
Before51274742494451423945
After49234341484047344141
Difference-2-4-4-1-1-4-4-8+2-4
Rank of |d|3.5771.51.577103.57

Wilcoxon signed-rank test

Rank the absolute differences (ties share the average rank), then add the ranks of the positive and negative differences separately: W⁺ = 3.5 and W⁻ = 51.5. The test statistic is the smaller, W = 3.5. For n = 10, the two-sided 5% critical value is 8, and W ≤ 8 rejects H₀, so p ≈ 0.012. The fixture cuts the median changeover by about 4 minutes. The 1-sample Wilcoxon test is the same calculation with d = x − target.

Sign test

The sign test uses only the direction of each difference: 9 of 10 operators improved. Under H₀ (median difference 0) each sign is a coin flip, so p = P(9 or more of 10, either direction) = 0.021 from the binomial distribution. It reaches the same conclusion with fewer assumptions (no symmetry needed) but less power. It throws away the sizes of the differences, so it needs more data to detect the same effect. Zero differences are dropped before testing. The 1-sample sign test compares each value against a target median in the same way.

Friedman test: blocked designs

When every block, for example an operator, a batch or a day, receives every treatment, block differences can swamp the treatment effect. Friedman’s test ranks the treatments within each block. Here 8 operators each assembled a unit using three work-instruction methods (seconds; illustrative data):

MethodOp 1Op 2Op 3Op 4Op 5Op 6Op 7Op 8Rank sum
Method 133.5 (3)32.1 (3)30.2 (2)19.9 (2)31.3 (2)23.8 (2)32.8 (2)32.1 (3)19
Method 229.6 (1)28.6 (1)27.8 (1)19.6 (1)29.8 (1)19.5 (1)31.2 (1)31.1 (2)9
Method 331.2 (2)31.9 (2)32.7 (3)20.6 (3)32.7 (3)26.7 (3)33.2 (3)31.0 (1)20

χ²ᶠ = [12 / (n·k(k + 1))] · ΣRⱼ² − 3n(k + 1) = [12 / (8·3·4)] · (19² + 9² + 20²) − 3·8·4 = 9.25

That is above χ²(2) = 5.99, so p = 0.0098: the methods differ. Method 2 was fastest for 7 of the 8 operators, even though operators themselves range from about 20 s to 33 s. That spread would hide the effect in an ordinary Kruskal-Wallis or one-way ANOVA. The parametric equivalent is a randomized-block (two-way, no replication) ANOVA.

Beyond one-way ANOVA

Two-way ANOVA studies two factors at once and their interaction, for example head × shift. With planned factor settings this becomes a designed experiment. MANOVA handles several Y’s together (see MANOVA). When the Y is pass/fail rather than continuous, use proportion tests, chi-square or logistic regression (see the decision tree above).

Frequently asked questions

Why not just run several t-tests instead of ANOVA?

Each t-test has a 5% false-alarm risk, so three pairwise tests together carry about a 14% chance of at least one false positive. ANOVA tests all groups at once at 5%, and a post-hoc method such as Tukey then finds which pairs differ while controlling that risk.

When should I use a non-parametric test?

Use one when samples are small and clearly non-normal, when outliers are real and cannot be removed, when the data are ordinal (ratings or ranks), or when the median matters more than the mean, as with cycle and resolution times.

Is Kruskal-Wallis a test of medians?

Only if the groups have similar shapes and spreads. In general it tests whether one group tends to produce larger values than another. Mood’s median test is a direct test of medians, at the cost of some power.

What does a significant Levene’s test mean for my ANOVA?

The groups have different variances. With equal group sizes, ANOVA is usually still acceptable. With unequal sizes, use Welch’s ANOVA or a non-parametric test, and treat the variance difference itself as a finding, because reducing variation is often the Six Sigma goal.

Previous: Hypothesis testingAll topicsNext: Correlation and regression

Related guides

  • Attribute MSA (agreement analysis)
  • Correlation and regression
  • Normality and data transformation
  • Sample size and sampling
  • Statistical distributions
  • Design of experiments (DOE)
  • ASQ free training guide
  • Free Lean Six Sigma training guide

Last updated: November 11, 2026 · Published by Lean Six Sigma Training Guide (sixsigmatrainingfree.com)