Locked lesson.
About this lesson
These three tests are for multiple samples of non-normal data. Each test has its strengths and weaknesses. The appropriate test will depend upon what is known, or not known, about the data in the samples. The Minitab interface to accomplish each of these tests is similar. This lesson will explain the differences and show how to conduct the test and read the results.
Exercise files
Download this lesson’s related exercise files.
Mood's Median Exercise.xlsx10.8 KB Mood's Median Exercise Solution.docx
230.2 KB
Quick reference
Mood’s Median, Kruskal-Wallis, Friedman Tests
When multiple non-normal data samples are compared in a hypothesis test, there are several potential tests that can be used. The Mood’s Median, Kruskal-Wallis, and Friedman tests are typical tests used and each is best suited to different characteristics of the data.
When to use
Many Lean Six Sigma projects requiring hypothesis tests are based on non-normal data sets. Mood’s Median Test, Kruskal-Wallis Test, and Friedman Test are used with multiple data sets. The specific test to be used will depend upon the characteristics of the data.
Instructions
The form of the hypotheses for all three of these tests is the same.:
H0: median1 = median2 = median3
Ha: median1≠median2 ≠median3
Mood’s Median Test
The Mood’s Median Test is appropriate for use with multiple data samples whose non-normal data sets have a similar shape – such as skewed left, skewed right, or bathtub. The test will work with multiple data samples. This test is particularly robust with respect to outliers. The test cannot be accomplished with Excel.
- Minitab:
- All the data must be combined into one column. Use the Data > Stack > Column command to merge multiple data sets into one column.
- Stat > Nonparametrics > Mood’s Median Test
- Select the data column for the Response field
- Select the data identified column for the Factor field
Kruskal-Wallis Test
The Kruskal-Wallis Test is appropriate for use with multiple non-normal data samples. This test is essentially an ANOVA test for non-normal data. The data items should be continuous (not discrete). The data samples do not need to have similar shapes as with the Mood’s Median Test. This test is sensitive to outliers. This test cannot be accomplished with Excel.
- Minitab:
- All the data must be combined into one column. Use the Data > Stack > Column command to merge multiple data samples into one column.
- Stat > Nonparametrics > Kruskal-Wallis
- Select the data column for the Response field
- Select the data identified column for the Factor field
Friedman Test
The Friedman Test is the most complex of the non-normal data hypothesis tests that we use with multiple data samples. The Friedman Test works with large blocks of data. It essentially compares the data within the blocks and then between the blocks. In this regard, it is a hybrid of the Paired T Test and an ANOVA or Kruskal-Wallis Test. The minimum sample size you should use in the Friedman Test is 30 data items. An additional attribute of the test setup is to be careful how you choose your blocks. Since there are two identifiers for each data point (data block and data item), switching those two may create a different result. This test cannot be accomplished with Excel.
- Minitab:
- All the data must be combined into one column. Use the Data > Stack > Column command to merge multiple data samples into one column.
- Stat > Nonparametrics > Friedman
- Select the data column for the Response field
- Select the data identified column for the Treatment field
- Select the data identified column for the Block field
Hints & tips
- Stacking data in one column is very easy in Minitab using the stack command. I load my data into Minitab with a separate column for each sample then stack once everything is in. With the Friedman test, the stacked column can easily have hundreds of entries. Loading the data first by sample columns allows me to easily find and fix data problems.
- The Friedman test has two identifier columns for the data. One is called the treatment and is similar to the Factor column in Kruskal Wallis; the second is the Block identifier.
- Run a normality check to see if your data is non-normal.
- Create a histogram of the data in each sample to see the shape of the data set.
Lesson notes are only available for subscribers.
PMI, PMP, CAPM and PMBOK are registered marks of the Project Management Institute, Inc.