Day 33 of 55Stage 3 · AnalyseWednesdayFriedman test

Every week, or just some?

Could two bad Mondays explain everything? Amara checks whether Monday is worst week after week.

Stage goal: Find and prove the root causes.
Team
Astrid (Data Analyst)
Techniques today Friedman test
Documents today Analysis record
How the day goes
  1. 09:00Arrange the data by week and day
  2. 11:00Friedman test with Astrid (Data Analyst)
  3. 15:00Plan capacity questions for Improve

Situation 1 of 1

11:00 · Friedman test with Astrid (Data Analyst)
Astrid (Data Analyst)
I have the median wait for each weekday in each of nine weeks. The weeks differ a lot from each other. Does that matter?

Which test fits?

When each group is measured in the same blocks (weeks, people, machines), compare within blocks: the Friedman test does this without assuming normal data.
Worked example 1

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.

WeekMondayTuesdayWednesdayThursdayFriday
Week 12138866
Week 131412979
Week 14147895
Week 15117686
Week 16149578
Week 17117769
Week 181410888
Week 191291169
Week 2014131179
Download the data (spreadsheet file)
  1. Why this testthe same weeks appear in every column (blocks), and data isn't normal= Friedman test
  2. Rank within each week1 = shortest wait that week, 5 = longest; ties share
  3. Add the ranks by dayMonday 45 · Tuesday 29.5 · Wednesday 23 · Thursday 17.5 · Friday 20
  4. Test statisticcompares the rank sums with what chance would give= 22.85
  5. p-valuechi-square with 4 degrees of freedom= 0.0001
What it meansMonday has the longest wait in almost every week, not just on average. The Monday effect is consistent, not caused by a few bad weeks.
What Amara decidesMonday capacity becomes a key target for the Improve phase.
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.

Concept

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

Common practice

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

Concept

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.

Your responsibility todayTesting an effect that repeats
Technique you usedFriedman test
Key points to remember
  • When each group is measured in the same blocks (weeks, people, machines), compare within blocks: the Friedman test does this without assuming normal data.
Techniques today Friedman test
Documents today Analysis record