A test that compares averages: one average against a target (one-sample), two independent groups (two-sample), or the same items before and after (paired).
Common practice 5 steps Used by Process Improvement Specialist
What it is
A t-test compares averages using the t distribution, which allows for the uncertainty of estimating the spread from a sample.
When to use it
With continuous data that is roughly normal, or samples large enough for the central limit theorem to help.
Why it works
It's the standard test for comparing averages of measured data.
Do
For paired data, test the differences with a one-sample t-test.
If spreads differ, use the unequal-variances version.
Filled in for: Two couriers' delivery times (days), 12 orders each.
Group
n
Mean
Standard deviation
Copy this structure, or print the blank version and fill it in by hand. Version: one-sample / two-sample / paired · Equal spreads? · t = ______ · degrees of freedom = ______ · p = ______
Before you use it: check these
Check
If it fails
Roughly normal data, or 30 or more per group
Use Mann-Whitney (two groups) or Wilcoxon (one group, or paired)
Independent groups (two-sample)
If the same items are measured twice, use the paired t-test
Similar spreads, for the pooled version
Use the unequal-variances (Welch) version
How to do it with real data
The full calculation, as it happens in the story: the data, every step, how to read the result, and the spreadsheet functions to do it yourself.
A sample mean this far above 7 would almost never happen by chance if the real average were 7. The difference is also big enough to matter to patients.
What it led to
The gap to the target is real. The project moves on to finding which causes create it.
Do it in a spreadsheet
t statistic
=(AVERAGE(B2:B61)-7)/(STDEV.S(B2:B61)/SQRT(60))
p-value (one-sided)
=T.DIST.RT(D2,59)
Try it yourself: With a sample of 2,000 a test finds the mean wait is 7.1 days, p = 0.01, against a target of 7. Is it a problem worth a project?
It's statistically significant but practically tiny: 0.1 day. Large samples make small differences significant. Always ask whether the size of the difference matters.
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.
Step by step
Describe each groupbefore (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