Data and statistics · cheat sheet

Proportion tests

Tests for yes-or-no data: whether a share differs from a benchmark (one-proportion), or whether two groups' shares differ (two-proportion).

Common practice
4 steps
Used by Process Improvement Specialist

What it is

Proportion tests compare shares of yes-or-no outcomes, either with a benchmark or between two groups, using the normal approximation.

When to use it

With pass or fail, attended or missed, complaint or not, and similar data.

Why it works

Much improvement data is yes or no: defective or not, on time or late, attended or missed.

Do

  • Yes-or-no data needs larger samples than measured data.

Don't

  • Small samples where the normal approximation fails (use an exact test).
  • Reading a link between groups as proof of cause.

Step by step

  1. Shares
  2. z statistic
  3. p-value
  4. Report the difference In percentage points.
Also called: One-proportion and two-proportion z-testPrint the blank template ↗

Worked example

The situation. Defective parts from two suppliers, 400 each.

  1. 12 (3%) against 28 (7%); pooled 5%.

The result. The second supplier's defect rate is really higher; incoming checks were tightened.

Proportion test worksheet Print blank
PartValue
z2.60
p-value0.009

Filled in for: Defective parts from two suppliers, 400 each.

GroupCountTotalShare

Copy this structure, or print the blank version and fill it in by hand. z = ______ p = ______ difference in points = ______

Before you use it: check these

CheckIf it fails
Expected counts of at least about 5 to 10 in each outcomeUse an exact (binomial or Fisher) test
Independent itemsClustered data (for example many items from one customer) needs other methods

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.

Worked example with real data

Missed appointments: against the benchmark, and with or without a reminder

From Day 34: Missed appointments of the Process Improvement Specialist story

Over four weeks, 1,400 routine appointments: 220 were missed. Only appointments booked online get a text reminder.

Share of appointments missed, in percent05101520With / reminder: 8.18.1WithreminderNo / reminder: 19.019.0NoreminderAll: 15.715.7All

Step by step

  1. One-proportion test: hypothesesH0: the clinic's rate is the 8% benchmark. H1: it's higher
  2. One-proportion testz = (0.157 − 0.08) ÷ √(0.08 × 0.92 ÷ 1,400)= z = 10.6, p below 0.0001
  3. Two-proportion test: hypothesesH0: reminders make no difference
  4. Pooled share220 ÷ 1,400= 0.157
  5. Two-proportion testz = (0.190 − 0.081) ÷ √(0.157 × 0.843 × (1/420 + 1/980))= z = 5.13, p below 0.0001
  6. Size of the difference19.0% − 8.1%= 10.9 points
GroupAppointmentsMissedShare missed
Text reminder (booked online)420348.1%
No reminder (booked by phone or at the desk)98018619.0%
All140022015.7%

How to read the result

The clinic misses about twice as many appointments as the benchmark, and patients without a reminder miss more than twice as often as those with one.

What it led to

Root cause confirmed: no reminders for phone and desk bookings. (Online bookers may differ in other ways too, so the pilot in Improve will test reminders directly.)

Do it in a spreadsheet

Share=C2/B2
One-proportion z=(0.157-0.08)/SQRT(0.08*0.92/1400)
Two-proportion z=(D3-D2)/SQRT(D4*(1-D4)*(1/B2+1/B3))
p-value (two-sided)=2*(1-NORM.S.DIST(ABS(z),TRUE))
Try it yourself: Why can't you conclude from this data alone that reminders cause fewer missed appointments?

Patients who book online might be different (younger, more organised). The data shows a strong link, not proof of cause. A pilot where reminders are added for phone bookings would test cause directly.

Worked example with real data

Did the pilot work?

From Day 43: The pilot of the Process Improvement Specialist story

For four weeks, the package runs: book up to 2 weeks ahead, reminders for every booking, protected urgent slots, two extra Monday sessions. Astrid (Data Analyst) takes 60 random requests from the pilot, by the same definition as the baseline.

Waits before the project and during the pilot010203040Before: median 10, quartiles 5 and 14.25, n = 6010BeforePilot: median 4, quartiles 3 and 5, n = 604Pilot

Step by step

  1. Median waitbaseline 10 days; pilot= 4 days
  2. Within 7 daysbaseline 27 of 60 (45%); pilot 53 of 60= 88%
  3. Two-proportion testz = (0.883 − 0.45) ÷ √(0.667 × 0.333 × 2/60)= z = 5.03, p below 0.0001
  4. Mann-Whitneywaits before generally longer than in the pilot= p below 0.0001
  5. Missed appointments15.7% (220 of 1,400) to 8.5% (117 of 1,380); two-proportion z = 5.84= p below 0.0001
  6. Against the goalmedian 5 or less: met; 90% within 7 days: 88%= close
RequestPeriodWait (days)
R01Before12
R02Before13
R03Before12
R04Before28
R05Before11
R06Before12
R07Before16
R08Before7
R09Before3
R10Before4
R11Before4
R12Before10
R13Before4
R14Before17
R15Before5
R16Before8
R17Before5
R18Before5
R19Before5
R20Before20
R21Before3
R22Before15
R23Before5
R24Before9
R25Before5
R26Before5
R27Before15
R28Before15
R29Before14
R30Before13
R31Before18
R32Before16
R33Before3
R34Before5
R35Before10
R36Before7
R37Before6
R38Before10
R39Before10
R40Before5
R41Before5
R42Before4
R43Before5
R44Before6
R45Before7
R46Before11
R47Before11
R48Before3
R49Before13
R50Before26
R51Before12
R52Before22
R53Before27
R54Before18
R55Before4
R56Before14
R57Before20
R58Before3
R59Before6
R60Before19
P01Pilot8
P02Pilot5
P03Pilot2
P04Pilot4
P05Pilot3
P06Pilot4
P07Pilot5
P08Pilot2
P09Pilot6
P10Pilot2
P11Pilot4
P12Pilot6
P13Pilot6
P14Pilot3
P15Pilot10
P16Pilot5
P17Pilot2
P18Pilot4
P19Pilot3
P20Pilot5
P21Pilot2
P22Pilot5
P23Pilot2
P24Pilot7
P25Pilot5
P26Pilot8
P27Pilot3
P28Pilot1
P29Pilot2
P30Pilot4
P31Pilot11
P32Pilot5
P33Pilot8
P34Pilot3
P35Pilot3
P36Pilot3
P37Pilot7
P38Pilot3
P39Pilot3
P40Pilot9
P41Pilot3
P42Pilot4
P43Pilot2
P44Pilot4
P45Pilot6
P46Pilot7
P47Pilot2
P48Pilot1
P49Pilot5
P50Pilot9
P51Pilot3
P52Pilot5
P53Pilot4
P54Pilot1
P55Pilot1
P56Pilot4
P57Pilot5
P58Pilot2
P59Pilot3
P60Pilot3

How to read the result

The pilot cut the median wait from 10 days to 4 and missed appointments almost in half. 88% of patients were offered an appointment within 7 days, just short of the 90% goal, before the lost sessions are covered.

What it led to

Roll out the package, adding cover for the two lost sessions, which the regression says should close the gap. Watch the Thursday sessions that moved to Monday for side effects.

Do it in a spreadsheet

Within 7 days=COUNTIFS(B2:B121,"Pilot",C2:C121,"<=7")/60
Median=MEDIAN(IF(B2:B121="Pilot",C2:C121))
Two-proportion z=(0.883-0.45)/SQRT(0.667*0.333*(2/60))
Try it yourself: Thursday lost two sessions to Monday. What would you check to make sure the problem didn't just move?

Waits for requests made on Thursday and Friday, before and during the pilot. If they grew a lot, rebalance.

In the roles

How a Process Improvement Specialist uses it

Missed appointments: 15.7% against an 8% benchmark (z = 10.6); 8.1% with a reminder against 19.0% without (z = 5.13).

Questions people ask

When is the approximation unreliable?

When expected counts are small (under about 5 to 10): use an exact test.

Related techniques

← All techniques and tools