Checking with ranks and medians
ANOVA assumes roughly normal data, and the waits are skewed. Amara confirms the Monday effect with tests that don't need it.
- 09:00Kruskal-Wallis with Astrid (Data Analyst)
- 11:00Mood's median test
- 15:00Agree the root cause with Aurelie (Practice Nurse Manager)
Situation 1 of 2
09:00 · Kruskal-Wallis with Astrid (Data Analyst)Why confirm with another test?
Situation 2 of 2
15:00 · Agree the root cause with Aurelie (Practice Nurse Manager)How do you state it?
Checking the Monday effect without assuming normal data
The same 60 waits by day, tested on ranks and on medians instead of averages.
| Request | Day of first request | Wait (days) |
|---|---|---|
| R01 | Friday | 12 |
| R02 | Wednesday | 13 |
| R03 | Monday | 12 |
| R04 | Monday | 28 |
| R05 | Friday | 11 |
| R06 | Monday | 12 |
| R07 | Thursday | 16 |
| R08 | Thursday | 7 |
| R09 | Tuesday | 3 |
| R10 | Monday | 4 |
| R11 | Tuesday | 4 |
| R12 | Tuesday | 10 |
| R13 | Wednesday | 4 |
| R14 | Tuesday | 17 |
| R15 | Tuesday | 5 |
| R16 | Wednesday | 8 |
| R17 | Thursday | 5 |
| R18 | Tuesday | 5 |
| R19 | Friday | 5 |
| R20 | Monday | 20 |
| R21 | Thursday | 3 |
| R22 | Wednesday | 15 |
| R23 | Wednesday | 5 |
| R24 | Friday | 9 |
| R25 | Tuesday | 5 |
| R26 | Wednesday | 5 |
| R27 | Wednesday | 15 |
| R28 | Monday | 15 |
| R29 | Wednesday | 14 |
| R30 | Friday | 13 |
| R31 | Monday | 18 |
| R32 | Friday | 16 |
| R33 | Tuesday | 3 |
| R34 | Wednesday | 5 |
| R35 | Monday | 10 |
| R36 | Friday | 7 |
| R37 | Thursday | 6 |
| R38 | Thursday | 10 |
| R39 | Thursday | 10 |
| R40 | Tuesday | 5 |
| R41 | Friday | 5 |
| R42 | Thursday | 4 |
| R43 | Friday | 5 |
| R44 | Thursday | 6 |
| R45 | Friday | 7 |
| R46 | Monday | 11 |
| R47 | Monday | 11 |
| R48 | Tuesday | 3 |
| R49 | Monday | 13 |
| R50 | Monday | 26 |
| R51 | Monday | 12 |
| R52 | Monday | 22 |
| R53 | Monday | 27 |
| R54 | Wednesday | 18 |
| R55 | Thursday | 4 |
| R56 | Tuesday | 14 |
| R57 | Monday | 20 |
| R58 | Tuesday | 3 |
| R59 | Monday | 6 |
| R60 | Monday | 19 |
- Kruskal-Wallis: rank everything
rank all 60 waits from 1 to 60, ties sharing the average rank - Compare average ranks
do the days' average ranks differ more than chance would give?= H = 19.66 - Kruskal-Wallis: p-value
chi-square with 4 degrees of freedom= 0.0006 - Mood's median: overall median
median of all 60= 10 days - Count above and below
Monday: 15 above, 3 at or below · Tuesday: 2 and 10 · Wednesday: 5 and 5 · Thursday: 1 and 9 · Friday: 4 and 6 - Mood's median: p-value
chi-square on that table= 0.0006
Try it yourself in a spreadsheet
| Ranks | =RANK.AVG(C2,$C$2:$C$61,1) |
| Average rank by day | =AVERAGEIFS(D2:D61,B2:B61,"Monday") |
| Mood's table | =COUNTIFS(B2:B61,"Monday",C2:C61,">10") |
| Chi-square p-value | =CHISQ.TEST(observed,expected) |
Which of the two tests would you trust more if a few waits were extremely long (say 80 days)?
Show the answer
Mood's median: it only asks whether each value is above or below the median, so extreme values can't pull it. Kruskal-Wallis is also robust but uses more information.
Key concepts
The ideas behind today. Concept how the work is done, in our own words · Common practice widely used ways of working.
Kruskal-Wallis
- Rank all values together; test whether groups' average ranks differ. The rank-based version of one-way ANOVA.
Where you will meet this: Kruskal-Wallis test
Mood's median test
- Count values above and below the overall median in each group, then run a chi-square test. Less powerful, but unaffected by extreme values.
Where you will meet this: Mood's median test
State the root cause precisely
- A root cause says what in the process creates the effect, specifically enough to act on, not just where the problem shows up.
Explained in our own words. This helps you understand the concepts behind the certifications; it does not reproduce or replace any official guide. Sources
Day 32 complete
2 situations today.
- For skewed data, compare several groups with Kruskal-Wallis (ranks) or Mood's median test (medians).
- State a root cause as what in the process creates the effect, specifically enough to act on.