Every week, or just some?
Could two bad Mondays explain everything? Amara checks whether Monday is worst week after week.
- 09:00Arrange the data by week and day
- 11:00Friedman test with Astrid (Data Analyst)
- 15:00Plan capacity questions for Improve
Situation 1 of 1
11:00 · Friedman test with Astrid (Data Analyst)Which test fits?
Is Monday worse every week, or just on average?
A busy week could make one Monday look bad. Astrid (Data Analyst) takes the median wait for each weekday in each of the nine weeks, and compares days within each week.
| Week | Monday | Tuesday | Wednesday | Thursday | Friday |
|---|---|---|---|---|---|
| Week 12 | 13 | 8 | 8 | 6 | 6 |
| Week 13 | 14 | 12 | 9 | 7 | 9 |
| Week 14 | 14 | 7 | 8 | 9 | 5 |
| Week 15 | 11 | 7 | 6 | 8 | 6 |
| Week 16 | 14 | 9 | 5 | 7 | 8 |
| Week 17 | 11 | 7 | 7 | 6 | 9 |
| Week 18 | 14 | 10 | 8 | 8 | 8 |
| Week 19 | 12 | 9 | 11 | 6 | 9 |
| Week 20 | 14 | 13 | 11 | 7 | 9 |
- Why this test
the same weeks appear in every column (blocks), and data isn't normal= Friedman test - Rank within each week
1 = shortest wait that week, 5 = longest; ties share - Add the ranks by day
Monday 45 · Tuesday 29.5 · Wednesday 23 · Thursday 17.5 · Friday 20 - Test statistic
compares the rank sums with what chance would give= 22.85 - p-value
chi-square with 4 degrees of freedom= 0.0001
Try it yourself in a spreadsheet
| Rank within a week | =RANK.AVG(B2,$B2:$F2,1) |
| Rank sum for Monday | =SUM(G2:G10) |
| Test statistic | =12/(9*5*6)*SUMSQ(rank sums)-3*9*6 (no tie adjustment) |
| p-value | =CHISQ.DIST.RT(statistic,4) |
Why not use Kruskal-Wallis on these 45 numbers?
Show the answer
Because each row is the same week: the values aren't independent. Friedman compares days within each week, removing the week-to-week differences.
Key concepts
The ideas behind today. Concept how the work is done, in our own words · Common practice widely used ways of working.
Blocks
- When every condition is measured in the same blocks (weeks, people, machines), the blocks add variation of their own. Comparing within blocks removes it.
Where you will meet this: Blocking · related samples
Friedman test
- Rank the conditions within each block, add the ranks per condition, and test whether the totals differ more than chance would give.
Where you will meet this: Friedman test
Consistent effects
- An effect that appears in every block is far more convincing, and easier to plan for, than one driven by a few extreme blocks.
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 33 complete
1 situation today.
- When each group is measured in the same blocks (weeks, people, machines), compare within blocks: the Friedman test does this without assuming normal data.