G chart: control chart for rare events between counts

Updated

A G chart monitors rare events by plotting how many opportunities pass between one event and the next: the number of surgeries between two surgical-site infections, of welds between leaks, of shipments between damage claims. Each event adds one point. When events become more frequent, the counts get smaller; when they become rarer, the counts get larger. The counts follow a geometric distribution, so the limits and center line come from that distribution rather than from a normal one.

When to use it

  • The event is rare, so a P chart or C chart for each week or month would show mostly zeros and have an LCL of zero.
  • You can count the opportunities between events: procedures, units, batches, or days if each day carries the same risk.
  • Each opportunity has roughly the same small chance of an event, independent of the others.

If you record the exact time between events rather than a count of opportunities, use the T chart for time between rare events. If events are common enough that most periods have several, a P chart or U chart is simpler.

How it works

Let g be the number of opportunities between consecutive events, not counting the event itself, and ḡ the average from a stable baseline. If each opportunity has probability p of an event, g follows a geometric distribution with mean (1 − p)/p, so

p̂ = 1 / (ḡ + 1)

The distribution is strongly skewed: many short gaps, a few very long ones. The limits are its 0.135% and 99.865% points, the same tail areas as 3-sigma limits on a normal chart, and the center line is its median:

UCL = ln(0.00135) / ln(1 − p̂) − 1 CL = ln(0.5) / ln(1 − p̂) − 1 LCL = max(0, ln(0.99865) / ln(1 − p̂) − 1)

The LCL is zero unless ḡ is above about 740, and even then it is small. This has a practical consequence: one unusually short gap cannot show that the event rate went up. Deterioration shows up as a run of short gaps instead.

That is why the center line is the median rather than the mean. With a median center line, each point has about a 50% chance of falling below it, so Test 2 from the tests for special causes, 9 points in a row on one side of the center line, keeps its usual false-alarm rate. Around the mean of this skewed distribution, more than half the points fall below the line and runs below it would appear by chance.

Use Test 1 and Test 2:

  • A point above the UCL is a gap much longer than the process normally gives: a sign of improvement.
  • Nine points in a row below the center line signal that events have become more frequent; nine above signal that they have become rarer.

The zone tests (Tests 5 and 6) and Tests 3, 4, 7 and 8 assume a symmetric distribution and are not used.

Example

A surgical department tracks surgical-site infections after elective procedures. For each infection, the infection-control nurse records the number of procedures performed since the previous infection. The 20 gaps from the last two years form the baseline:

Infections 1–56–1011–1516–20
286, 86, 144, 128, 788, 74, 82, 35, 28118, 21, 191, 208, 4210, 324, 12, 14, 123
  • ḡ = 2012 / 20 = 100.6 procedures, so p̂ = 1/101.6 = 0.00984, about 9.8 infections per 1,000 procedures.
  • CL = ln(0.5) / ln(1 − 0.00984) − 1 = 69.1 procedures.
  • UCL = ln(0.00135) / ln(1 − 0.00984) − 1 = 667.0 procedures.
  • LCL = 0.

The next nine infections came after gaps of 25, 43, 38, 33, 11, 21, 51, 4 and 30 procedures.

G chart of procedures between surgical-site infections0200400600Procedures since previous infectionCL=69.1UCL=667LCL=014710131619222528Infection
G chart of procedures between surgical-site infections

No point is beyond a limit, but infections 21 to 29 are nine in a row below the center line, which triggers Test 2 at infection 29. Under the baseline rate, nine gaps in a row below the median would happen by chance with a probability of about 0.002. The nine recent gaps average 28.4 procedures, roughly 34 infections per 1,000 procedures. An audit found that, after a change in the pre-operative workflow, the prophylactic antibiotic was often given more than an hour before incision. The timing step was moved back into the operating room checklist.

How to read the results

  • Short gaps mean more events. Points falling low on a G chart are bad news; points high are good news. This is the opposite of a P or C chart.
  • A run below the center line is the main signal of deterioration. Count from the first short gap to estimate when the change began.
  • A point above the UCL suggests a real improvement. Confirm it with the next few gaps before recomputing the limits.
  • The rate behind the chart is easier to communicate than the gap: p̂ = 1/(ḡ + 1), or about 1,000/(ḡ + 1) events per 1,000 opportunities.

Common mistakes

  • Using the mean as the center line. For a skewed distribution, most points fall below the mean, so runs below it are not evidence of anything.
  • Waiting for a point below the LCL. The LCL is usually zero, so deterioration only shows as a run of short gaps.
  • Mixing opportunity types. If high-risk and low-risk procedures are counted together and the mix changes, the gaps change even when the care has not. Chart them separately or adjust for risk.
  • Counting the event as an opportunity inconsistently. Decide whether g includes the procedure with the event, and keep that rule; the formulas above use the count of procedures without an event.

Frequently asked questions

What does the G stand for?

It refers to the geometric distribution, which describes the number of trials before the first event when each trial has the same small chance of an event.

Should I use probability limits or 3-sigma limits?

Some practitioners use ḡ + 3√(ḡ(ḡ + 1)) for the UCL. Because the geometric distribution is skewed, that limit is much lower than the 99.865% point; with ḡ = 100.6 it is 403.9 instead of 667.0, and about 1.8% of in-control gaps exceed it. Probability limits keep false signals of improvement rare.

How many events do I need for a baseline?

Each point is one event, so baselines grow slowly. Twenty or more gaps give a usable estimate of ḡ; with fewer, treat the limits as provisional and update them as events accumulate.

Can I use days instead of procedures?

Yes, if each day carries about the same risk. If the workload changes from day to day, counts of opportunities are better, or use the T chart with continuous time.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab