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.
- 09:00Look at the rota with Aurelie (Practice Nurse Manager)
- 11:00Compare before and after
- 15:00Report to Atticus (Sponsor)
Situation 1 of 2
09:00 · Look at the rota with Aurelie (Practice Nurse Manager)How do you check?
Situation 2 of 2
15:00 · Report to Atticus (Sponsor)What do you say?
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.
| Week | Period | Median wait (days) |
|---|---|---|
| Week 1 | Before | 8 |
| Week 2 | Before | 9 |
| Week 3 | Before | 8 |
| Week 4 | Before | 7 |
| Week 5 | Before | 9 |
| Week 6 | Before | 8 |
| Week 7 | Before | 9 |
| Week 8 | Before | 8 |
| Week 9 | Before | 8 |
| Week 10 | Before | 9 |
| Week 11 | Before | 8 |
| Week 12 | After | 10 |
| Week 13 | After | 10 |
| Week 14 | After | 11 |
| Week 15 | After | 11 |
| Week 16 | After | 12 |
| Week 17 | After | 12 |
| Week 18 | After | 13 |
| Week 19 | After | 12 |
| Week 20 | After | 13 |
- Describe each group
before (11 weeks): mean 8.27, s 0.65 · after (9 weeks): mean 11.56, s 1.13 - Equal spreads? (F-test)
F = 1.13² ÷ 0.65²; p = 0.10, and Levene's test p = 0.15= no evidence of different spreads - Two-sample t-test
t = (11.56 − 8.27) ÷ (0.895 × √(1/9 + 1/11))= 8.16 - p-value
18 degrees of freedom= below 0.0001 - Check without assuming normal data
Mann-Whitney: every week after is higher than every week before (U = 99 of 99)= p = 0.0001 - Size of the change
11.56 − 8.27= about 3.3 days longer
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-Whitney | rank 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.
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
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
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.
- 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.