When to use it
The event is rare enough that ordinary attribute charts show mostly zeros, e.g. surgeries between infections, units between escapes, days between accidents (counted in discrete cases).
When not to: 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.
Step by step
Open it from the menu
Click Quality in the menu bar; under Rare Events choose g-Chart (Rare Events: Cases Between).
Fill in the form
Choose the columns: Opportunities between events. The form lists only columns whose type fits each field.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| Opportunities between events Events required | One numeric column. Cases/opportunities between consecutive events |
|---|
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Independence of observations
If it does not hold: 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.
How to check: 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.
A worked example
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).
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.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Is the number of procedures between hospital-acquired infections stable, improving, or deteriorating?
- Explain the g-Chart (rare-event, cases-between control chart) in plain words.
- What does exponential distribution mean?
Last reviewed November 16, 2026.
