Method · Statistics Library

g-Chart (rare-event, cases-between control chart)

A g-chart tracks the number of cases or opportunities BETWEEN rare events (using the geometric distribution) rather than counting events per period, which is the right chart when events are so rare that a p- or c-chart would be mostly zeros.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

Hospital-acquired infections, workplace accidents, and other genuinely rare events do not happen often enough for an ordinary defect-count chart to say much: you would get a long string of zeros with an occasional 1, which tells you almost nothing about whether the underlying rate has changed. The g-chart flips the question around: instead of asking 'how many events this period', it asks 'how many cases passed BETWEEN one event and the next'.

That reframing matters because gaps between rare events are actually informative: more informative than a mostly-zero count. If the gaps are getting shorter, the event is happening more often (things are getting worse); if the gaps are getting longer, the event is happening less often (things are improving).

This is the one control chart on this list where the direction is FLIPPED from what you'd instinctively expect: a point ABOVE the upper control limit is actually GOOD news (an unusually long, event-free stretch), while short gaps clustering near zero are the bad sign. Read this chart carefully: it inverts the usual 'high is bad' intuition.

A g-chart is a geometric control chart, also called a cases between events chart or a rare event chart: it plots how many cases or opportunities passed between events.

Practitioner explanation

KernelStats models the count of cases between consecutive rare events as geometric (Benneyan 2001, the standard healthcare-SPC reference), with center line g-bar (the mean gap) and limits UCL/LCL = g-bar +/- 3*sqrt(g-bar*(g-bar+1)), using the geometric distribution's own variance formula g-bar*(g-bar+1) rather than a normal-theory approximation. LCL is floored at 0 and, with this formula, is ALWAYS 0 (3*sqrt(g-bar*(g-bar+1)) exceeds g-bar for every g-bar >= 0), so no single short gap can ever fall below the LCL; a worsening rate shows up only as a pattern of short gaps, never as a limit breach. That is a consequence of the heavy right skew, not a computation error.

Because the geometric distribution is heavily right-skewed, these 3-sigma limits are an approximation carried over from Shewhart-chart convention: the true false-alarm rate above the UCL is LARGER than the nominal 0.135% a symmetric-distribution chart would imply. KernelStats reports this 3-sigma form (the common textbook presentation) rather than exact geometric quantiles, and states this honestly rather than implying the limits carry a precise probability guarantee; a single point just over the UCL line should be read with more caution than the equivalent signal on a normal-theory chart.

The card additionally reports an implied event probability (1/(g-bar+1)) derived from the geometric mean-gap relationship, and separately flags points above the UCL as improvements (n_above_ucl) rather than lumping every out-of-control point into one undifferentiated count, because on this chart, unlike every other control chart in KernelStats, an out-of-control point on one side of the limits is good news, not bad.

When to use it

Consider it when

The event you are tracking is rare enough that an ordinary p- or c-chart would show mostly zeros with the occasional 1: surgeries between hospital-acquired infections, units produced between escapes, days between safety incidents, counted as discrete cases or opportunities between consecutive events.

Use caution when

Events that are common enough for an ordinary attribute chart (p, np, c, or u) to show meaningful variation; when the outcome is measured in continuous TIME between events rather than a discrete case count (a time-based rare-event chart, sometimes called a t-chart, is the closer analogue); or when precise, probability-calibrated limits are required, in which case exact geometric quantiles should replace the approximate 3-sigma form used here.

Formulas and symbols

Center line and control limits

gˉ=mean cases between events,UCL/LCL=gˉ±3gˉ(gˉ+1)\bar g = \text{mean cases between events}, \qquad UCL/LCL = \bar g \pm 3\sqrt{\bar g(\bar g+1)}

The geometric distribution's variance, parametrized by its mean, is g-bar*(g-bar+1). LCL is floored at 0.

Implied event probability

p^=1gˉ+1\hat p = \dfrac{1}{\bar g + 1}

The geometric distribution's success probability implied by the average number of cases between events.

Assumptions and checks

  • Independence of observations. The geometric model behind the g-chart assumes each case is an independent trial with the SAME underlying event probability; clustering of events (a common cause makes several events likely to occur close together) or a drifting event rate both violate the model and make the 3-sigma limits misleading.

    In KernelStats: Not checked by KernelStats: no test for constant event probability or clustering is run; the limits are computed directly from the geometric formula on whatever counts are supplied.

  • The geometric distribution is heavily right-skewed, so the textbook 3-sigma limits used here have a materially higher true false-alarm rate above the UCL than the nominal ~0.135%, and the LCL is always pinned at 0, so a worsening event rate can never produce a below-LCL signal.

    In KernelStats: Not checked by KernelStats: the Learn More content states the skewness caveat directly, but no exact geometric-quantile limit is computed or offered as an alternative.

Alternatives

  • t-Chart (Rare Events: Time Between). The natural unit between rare events is elapsed TIME rather than a discrete count of cases or opportunities.
  • c-Chart (Defect Count). Events are common enough that a per-period defect count is informative on its own, rather than being mostly zeros.
  • p-Chart (Fraction Nonconforming). You are tracking a proportion of defective items over reasonably sized samples, and the underlying event is not rare enough to need the between-events reframing.

Worked example

Scenario

Number of surgical procedures between consecutive hospital-acquired infections, tracked across 25 events.

Result

g-bar = 42.3 procedures between infections, UCL = 42.3 + 3 x sqrt(42.3 x 43.3) = 170.7, LCL = 0 (floored); the exact geometric chance of a gap above that UCL under a constant rate is about 1.8%, not 0.135%; one gap of only 3 procedures falls near the origin (not itself a signal, but part of a visibly shortening pattern).

Interpretation

The typical gap between infections is about 42 procedures with no individual gap breaching the limits, so there is no single statistically flagged signal here, but the very short recent gap is worth watching, since on a g-chart it is SHORT gaps clustering together, not any single point above the UCL, that would indicate the infection rate is worsening.

Common misconceptions

Misconception

A point above the g-chart's upper control limit is a bad sign, just like an out-of-control point on any other control chart.

Correction

On a g-chart the axis meaning is INVERTED: the chart tracks cases between events, so a point above the UCL means an unusually LONG gap occurred; the event rate improved. Short gaps clustering near zero, not points above the UCL, are the sign that things are getting worse.

Misconception

The g-chart's 3-sigma limits carry the same 0.135% false-alarm guarantee that a normal-theory chart's 3-sigma limits do.

Correction

The geometric distribution is heavily right-skewed, so the standard 3-sigma form used here is an approximation carried over from Shewhart-chart convention, not an exact probability statement: the true false-alarm rate above the UCL is larger than 0.135%. A single point just over the line should be treated with more caution than an equivalent signal on a chart built on a symmetric distribution.

References

  1. Statistical Process Control (SPC) methods for long-term surveillance of adverse event rates, Benneyan, J. C. (2001), Quality and Safety in Health Care, 10(2), 145-152.
  2. Introduction to Statistical Quality Control, Montgomery, D. C. (2019).