Day 30 of 55Stage 3 · AnalyseFridayComparing two groups

What happened in week 12?

The run chart showed a shift at week 12. The rota shows a doctor cut from five sessions to three that week. Amara tests whether the waits really changed.

Stage goal: Find and prove the root causes.
Stakeholders
Aurelie (Practice Nurse Manager) Atticus (Director of Community Health)
Documents today Analysis record
How the day goes
  1. 09:00Look at the rota with Aurelie (Practice Nurse Manager)
  2. 11:00Compare before and after
  3. 15:00Report to Atticus (Sponsor)

Situation 1 of 2

09:00 · Look at the rota with Aurelie (Practice Nurse Manager)
Aurelie (Practice Nurse Manager)process owner
In week 12, one doctor cut from five sessions a week to three. We never covered the two sessions. Could that be it?

How do you check?

Compare two groups with a two-sample test. Check whether their spreads differ first, because it decides which version to use.

Situation 2 of 2

15:00 · Report to Atticus (Sponsor)
Atticus (Director of Community Health)sponsor
So it's proven?

What do you say?

A root cause is convincing when tests agree and there's a clear mechanism.
Worked example 1

Did something change at week 12?

The run chart showed a shift at week 12. The rota shows one doctor cut from five sessions a week to three that week, and the sessions were never covered. Astrid (Data Analyst) compares the weekly median waits before and after.

Weekly median waits before and after week 1205101520Before: median 8, quartiles 8 and 9, n = 118BeforeAfter: median 12, quartiles 11 and 12, n = 912After
WeekPeriodMedian wait (days)
Week 1Before8
Week 2Before9
Week 3Before8
Week 4Before7
Week 5Before9
Week 6Before8
Week 7Before9
Week 8Before8
Week 9Before8
Week 10Before9
Week 11Before8
Week 12After10
Week 13After10
Week 14After11
Week 15After11
Week 16After12
Week 17After12
Week 18After13
Week 19After12
Week 20After13
Download the data (spreadsheet file)
  1. Describe each groupbefore (11 weeks): mean 8.27, s 0.65 · after (9 weeks): mean 11.56, s 1.13
  2. Equal spreads? (F-test)F = 1.13² ÷ 0.65²; p = 0.10, and Levene's test p = 0.15= no evidence of different spreads
  3. Two-sample t-testt = (11.56 − 8.27) ÷ (0.895 × √(1/9 + 1/11))= 8.16
  4. p-value18 degrees of freedom= below 0.0001
  5. Check without assuming normal dataMann-Whitney: every week after is higher than every week before (U = 99 of 99)= p = 0.0001
  6. Size of the change11.56 − 8.27= about 3.3 days longer
What it meansSince week 12 the weekly median wait is about 3.3 days longer, and it's very unlikely to be chance. The timing matches the lost doctor sessions.
What Amara decidesRoot cause confirmed: about 30 routine appointments a week were lost at week 12 and never replaced.
Try it yourself in a spreadsheet
F-test p-value=F.TEST(C2:C12,C13:C21)
t-test p-value (equal variances)=T.TEST(C2:C12,C13:C21,2,2)
Unequal variances version=T.TEST(C2:C12,C13:C21,2,3)
Mann-Whitneyrank all 20 values with RANK.AVG and add each group's ranks; no built-in p-value

If the F-test had shown clearly different spreads, which version of the t-test would you use?

Show the answer

The unequal-variances version (often called Welch's t-test): =T.TEST(…,2,3). Here it also gives p below 0.0001.

Key concepts

The ideas behind today. Concept how the work is done, in our own words · Common practice widely used ways of working.

Common practice

Two groups: averages

  • A two-sample t-test compares two independent averages. Use the unequal-variances version if spreads differ. For before-and-after on the same items, use a paired test.

Where you will meet this: Two-sample t-test · paired t-test

Common practice

Two groups: spreads

  • An F-test compares two variances in normal data; Levene's test works for any shape. The answer decides which t-test to use.

Where you will meet this: Tests of equal variance

Common practice

Two groups without normal data

  • Mann-Whitney ranks all values from both groups and checks whether one group's ranks are higher.

Where you will meet this: Mann-Whitney test

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 30 complete

2 situations today.

Your responsibility todayComparing before and after
Technique you usedF-test, two-sample t-test, Mann-Whitney
Key points to remember
  • Compare two groups with a two-sample test. Check whether their spreads differ first, because it decides which version to use.
  • A root cause is convincing when tests agree and there's a clear mechanism.
Documents today Analysis record