Skip to main content
UpSkill Sprint Consulting

Quality Engineering / Statistical Process Control • Intermediate • 70 min

Rare Event Control Charts (G & T)

Rare event control charts ask a different question: how long did we go without an adverse event? Learn to turn raw event logs into actionable evidence, distinguish improvement from deterioration, and reproduce two real Minitab analyses.

G
Count the opportunities

How many good units, transactions or days between events?

T
Measure the elapsed time

How many hours, minutes or days between events?

1. When zero is not enough

Suppose a mill inspects 1,000 pipes per day for critical weld failures. Two failures in ten days give eight zero-count days. A P chart is legitimate, but most points sit at zero and moderate increases in event frequency can be difficult to detect.

Illustrative daily counts; a P chart would divide each count by 1,000.
10,000pipes inspected
2critical failures
8/10zero-failure days
G counts acceptable units separating failures; T measures the elapsed exposure. Neither accumulates previous observations.
ChartWhat it plotsUse
Shewhart \(\bar{X}\)-R / I-MRIndividual or subgroup measurementsSudden changes in thickness, temperature or fill weight
P / NP / C / UFractions, defective counts or defectsRoutine attribute monitoring with known exposure
CUSUMCumulative deviationsSmall sustained shifts
EWMAExponentially weighted historySmall shifts and drift
MSPCJoint correlated variables (Hotelling T², etc.)Multivariate process behaviour
GDiscrete gapsRare adverse events
TElapsed timeRare breakdowns or incidents
\[C_i^+=\max(0,C_{i-1}^++Z_i-k),\qquad E_i=\lambda X_i+(1-\lambda)E_{i-1}\]
\[T^2=(\mathbf{x}-\boldsymbol{\mu})^\mathsf{T}\Sigma^{-1}(\mathbf{x}-\boldsymbol{\mu})\]

Here the CUSUM uses the standardized deviation \(Z_i\) and reference value \(k\); the EWMA \(E_i\) weights the current observation \(X_i\) by \(\lambda\); and Hotelling's statistic uses a vector of measurements \(\mathbf{x}\), baseline means \(\boldsymbol{\mu}\) and covariance \(\Sigma\). Rare-event T is not Hotelling's \(T^2\).

2. G chart: count the gaps

Use the G chart for independent opportunities with a stable event probability. Examples: critical weld defects, incorrect payments, lost deliveries, surgical infections and serious complaints. If product mix or daily exposure changes materially, stratify or use an exposure-adjusted model.

Failed pipeGood pipes between
100Starting point
251150
33280
633300
6340
835200
\[G_i=N_i-N_{i-1}-1\]

Here \(N_i\) is the sequential unit number of event \(i\). If the input is event dates, Minitab uses the actual integer difference in days, without subtracting one. Same-day distinct events generate zero.

The geometric model

\[P(X=x)=p(1-p)^x,\quad F(x)=1-(1-p)^{x+1},\quad x=0,1,2,\ldots\]
\[\widehat p=\frac{n}{n+\sum_{i=1}^n x_i}=\frac{1}{1+\bar x},\quad E(X)=\frac{1-p}{p},\quad \mathrm{Var}(X)=\frac{1-p}{p^2}\]

\(p\) is the event probability per opportunity; \(n\) is the number of completed intervals; \(x_i\) is the number-between count and \(\bar{x}\) its mean. The date-based model is a practical approximation when same-day multiple events exist. Its \(p\) is not the transaction-level defect probability.

\[Q(q)=\left\lceil\frac{\ln(1-q)}{\ln(1-p)}\right\rceil-1\]
\[LCL=Q(0.00135),\quad CL=Q(0.5),\quad UCL=Q(0.99865)\]

Minitab interpolates between the two adjacent geometric CDF values rather than using integer quantiles directly, then clips the lower limit at zero. For adjacent integer counts \(a\) and \(b = a + 1\) with \(F(a) \le q \le F(b)\), the interpolated value is:

\[Q_{\mathrm{interp}}(q)=a+\frac{q-F(a)}{F(b)-F(a)}\]

At \(p = 0.005\), the mean is 199 good pipes; the interpolated median is about 137.28 and the UCL about 1,317.22. The LCL is zero. A gap of 1,550 may indicate improvement; two successive zero gaps indicate a cluster.

Worked example, fixed \(p = 0.005\). A square or ring identifies a signal, not merely colour.

Benneyan test: catch repeated zeros

When the LCL is zero, a nonnegative count cannot fall below it. The Benneyan test counts consecutive points equal to the LCL; for the zero-LCL case the threshold is:

\[r=\left\lceil\frac{\ln[\Phi(-K)]}{\ln p}\right\rceil\]

\(K\) is the Test 1 normal-equivalent threshold (default 3), \(\Phi\) is the standard normal CDF, so \(\Phi(-3) \approx 0.00135\), and \(r\) is the number of consecutive zero gaps that signals. At \(p = 0.005\), \(r = 2\); at \(p = 0.08\), \(r = 3\). Three zero gaps mean four distinct events on the same date, or four consecutive defective units in a unit-based chart.

3. T chart: measure the time

Use the T chart when exact timestamps or actual operating durations are available. Examples include equipment trips, server outages, compressor failures and incidents per operating hour.

EventTimestampElapsed hours
1Nov 1, 08:00Starting point
2Nov 3, 08:0048
3Nov 4, 20:0036
4Nov 8, 08:0084
5Nov 8, 10:002
6Nov 10, 08:0046
\[T_i=t_i-t_{i-1}\]

\(t_i\) is the timestamp of event \(i\) and \(T_i\) the elapsed time since the previous event. Use a consistent time unit and actual exposure when equipment is idle.

Exponential

Constant hazard. Scale equals mean time between events.

\[f(t)=\lambda e^{-\lambda t},\quad F(t)=1-e^{-\lambda t}\]
\[\lambda=1/\theta,\quad\widehat\theta=\bar t\]

Weibull

Flexible hazard. Shape determines whether hazard rises or falls.

\[F(t)=1-e^{-(t/\eta)^\beta}\]
\[f(t)=\frac{\beta}{\eta}(t/\eta)^{\beta-1}e^{-(t/\eta)^\beta}\]
\[E(T)=\eta\Gamma(1+1/\beta),\qquad h(t)=\frac{\beta}{\eta}(t/\eta)^{\beta-1}\]

\(\theta\) is the exponential scale, \(\lambda\) the rate, \(\beta\) the Weibull shape, \(\eta\) the Weibull scale, \(\Gamma\) the gamma function and \(h(t)\) the hazard (instantaneous event rate). The exponential estimator is the mean of complete positive intervals; Minitab uses a different fitting procedure if zero durations are present.

\[Q_{\mathrm{exp}}(q)=-\theta\ln(1-q),\qquad Q_{\mathrm{Wei}}(q)=\eta[-\ln(1-q)]^{1/\beta}\]
\[LCL=Q(0.00135),\quad CL=Q(0.5),\quad UCL=Q(0.99865)\]
Shape 0.5: decreasing hazard; shape 1: constant; shape 2: increasing. These are model behaviours, not proof of an actual failure mechanism.
2 daysWorked mean interval
1.3863Median days
13.2153Upper limit days
0.002702Lower limit days (~3.89 min)
1.8 minutes is below the lower limit; 15 days exceeds the upper limit. Both require investigation.

4. Interactive distribution laboratory

Change the parameters and observe the probability distributions, control limits and signal thresholds. Try \(p = 0.005\) and \(p = 0.08\), then set the Weibull shape to one and the scale to seven to reproduce the T practice benchmark.

G chart calculator

Blue marks sample the probability mass at integer gaps; dashed limits and solid median mark the distribution.

T chart calculator

Shape one is exponential. The centre line is the median, not the mean.

Choose your exposure

1,000Units in 10 h at 100 units/h
5,000Units in 10 h at 500 units/h

The same ten-hour gap tells different stories when unit exposure differs. Choose the denominator that represents the event mechanism.

5. Minitab practice from raw records

The training data are synthetic but structured like real operational extracts. Each log has 38 event records and 37 completed intervals. Observation numbers in Minitab match the event record: record 1 has no preceding interval; interval 1 is observation 2. Do not sort by interval size.

Practice files

The two CSV files are date/time and record-ID extracts from the original workbook. Import either directly into Minitab.

Download G payment dates (CSV, 2 KB)Download T pump timestamps (CSV, 2 KB)

Original files

The workbook adds the Daily Exposure sheet and an answer key; the project holds all worksheets and both charts.

Download raw-records workbook (XLSX, 23 KB)Download interval extension workbook (XLSX, 9 KB)Download Minitab project (MPX, 107 KB)

Data dictionary

ColumnFileMeaning
ObservationBothEvent record number, 1–38, in time order. It matches Minitab’s observation number.
Exception_IDGPayment exception reference (PEX-…).
Event_DateGDate of the critical payment exception (YYYY-MM-DD). Several exceptions can share a date.
Work_OrderTMaintenance work order for the pump trip (WO-…).
Trip_Date_TimeTDate and time of the protective trip (YYYY-MM-DD hh:mm:ss).
PeriodBoth“Reference” for records 1–26 (the Phase I baseline) or “Monitoring” for later records.

All records are simulated for teaching.

Exercise A · Payment processing exceptions (G)

A bank processes approximately 10,000 transactions daily. Critical exceptions include duplicates, incorrect currency, routing and settlement amount. The daily model's historical event probability is 0.08, not the per-transaction probability.

Exception IDEvent_Date
PEX-2025-010412025-01-04
PEX-2025-010422025-01-12
PEX-2025-010432025-02-02
PEX-2025-010442025-02-05
PEX-2025-010452025-02-21
Minitab derives 8, 21, 3 and 16 days from the dates.
  1. Choose File → Open, select the original workbook's G Payment Exceptions sheet or the G CSV. Confirm Event_Date is a date column.
  2. Stat → Control Charts → Rare Event Charts → G.
  3. Form of data: Dates of events. Variables: Event_Date.
  4. G Chart Options → Parameters: historical proportion 0.08.
  5. Tests: select Test 1 (default 3), Test 2 (9 consecutive points) and Benneyan. Click OK twice.
  6. Identify signals, trace them to the event record, and examine transaction exposure.

Read the actual Minitab G chart

Original Minitab G chart of Event_Date: event probability 0.08, UCL 78.25, CL 7.32 and LCL zero. Signals at 27 (1), 31 (B), and 36, 37, 38 (2).
Actual Minitab output supplied by the learner, reproduced without changing its pixels. Select the chart to inspect it at full size.

What does the footnote mean? “An estimated historical parameter is used in the calculations” appears because you typed the historical value (0.08) in Options. Minitab did not estimate it from these 38 records. Leave Parameters blank and the footnote and limits change.

The horizontal axis is the event record number, and the vertical axis is days between payment exceptions. Record 1 has no preceding gap. The green centre line is the historical median of 7.32 days; the red lines are probability limits, not specifications.

27 · Test 1 · Long interval
87 days

The red square above 78.25 indicates an unusually long gap. Check for improved payment controls, missing reports or reduced exposure.

31 · Benneyan test (B)
3 zeros

Four exceptions on February 3 produce three successive zero-day gaps. The third zero triggers B; none can fall below the zero LCL.

36–38 · Test 2 · Sustained change
11 gaps

Observations 28–38 are all below the 7.32-day median. The ninth point triggers Test 2 at 36; two further points repeat the signal.

Conclusion: The payment process is statistically unstable. The final sequence indicates more frequent exceptions; investigate the transaction-level exposure and the same-day cluster before estimating the true per-transaction defect rate.

Reveal the expected results and investigation
78.25UCL (days)
7.32CL (days)
0LCL (days)
Calculated SVG reconstruction for comparison with the actual Minitab output above.
Minitab observationSignalInterpretation
27187 days; Nov 3 2025 to Jan 29 2026. Investigate potential improvement or missing reporting.
31BFour events on Feb 3 2026 produce three consecutive zero intervals.
36–382Nine or more successive points below the centre line; sustained increase in frequency.
Observed mean days between payment exceptions, before and after the long gap.

First 25 completed intervals average 12.12 days. Last 11 average 2.91 days, about 76.0% shorter (4.17 times the reciprocal interval rate). Daily transaction exposure in the original workbook’s transaction log averages 10,000.47, with sample CV 2.37% and range 9,600–10,398. That supports similar daily exposure, but same-day multiple exceptions still make the daily geometric model approximate.

Exercise B · Cooling-water pump P-204A (T)

The maintenance log records protective trips, work orders and alarm descriptions. Treat the pump as continuously exposed for this exercise. In real work exclude planned downtime or use operating hours.

Work orderTrip_Date_Time
WO-2025-038012025-02-03 06:42:00
WO-2025-038022025-02-06 07:46:00
WO-2025-038032025-02-17 03:53:00
WO-2025-038042025-02-18 01:42:00
WO-2025-038052025-02-25 06:08:00
  1. Open the workbook T Pump Trip Log sheet or T CSV. Check that Trip_Date_Time is a date/time column.
  2. Stat → Control Charts → Rare Event Charts → T.
  3. Select Dates/Times of events or Time between events, then Trip_Date_Time.
  4. T Chart Options → Parameters: Exponential; historical scale 7 (days).
  5. Enable Test 1 and Test 2 (default 3 and 9). Click OK twice.
  6. Trace signals to work orders and propose engineering investigations.

Read the actual Minitab T chart

Original Minitab T chart of Trip_Date_Time: exponential scale 7, UCL 46.25, CL 4.85, rounded LCL 0.01 days. Signals at observations 27 and 28 (1), and 36, 37, 38 (2).
Actual Minitab output supplied by the learner, reproduced without changing its pixels. Select the chart to inspect it at full size.

Footnote check: “At least one estimated historical parameter is used in the calculations” confirms the historical scale of 7 days came from Options, not from these records.

The chart measures elapsed days between protective pump trips. The exponential scale is seven days, but its median is 4.85 days. The plotted LCL rounds to 0.01 days; use the unrounded 0.009456 days (13.62 minutes) for interpretation.

27 · Test 1 · Long interval
52.10 days

The interval exceeds the 46.25-day UCL. Investigate possible improvements, idle time and completeness of the trip log.

28 · Test 1 · Short interval
8 minutes

The pump tripped again at 09:16 after a 09:08 low-suction-pressure trip. Eight minutes is below the 13.62-minute LCL. Check suction pressure, restrictions and restart procedure.

36–38 · Test 2 · Sustained change
11 gaps

Observations 28–38 are all below 4.85 days. Most are inside the limits individually, yet nine consecutive points trigger Test 2 at 36.

Conclusion: Pump reliability is statistically unstable. The final intervals average about 1.02 days compared with a seven-day historical mean. Verify operating exposure and investigate the recurring trip mechanism; the chart does not prove a root cause.

Reveal the expected results and investigation
46.25UCL days
4.85CL days
0.009456LCL days (13.62 min)
Calculated SVG reconstruction for comparison with the actual Minitab output above.
Minitab observationSignalInterpretation
27152.095 days between trips; potential improvement.
2818 minutes between low-suction-pressure alarms; below 13.62 minutes.
36–382Nine or more successive gaps below the centre line.
Actual interval is about 41% below the lower limit.

Work orders WO-2025-03827 and 03828 record trips at 09:08 and 09:16 on Aug 18 2025. Check suction valve position, inlet restriction, strainer, cavitation, instrumentation and restart procedure. The repeat alarm is a lead, not proof of root cause.

7.00 daysHistorical scale
5.76 daysFirst 25 intervals
1.02 daysLast 11 intervals
Mean time between trips, in days.

The final mean gap is 85.4% shorter than the seven-day benchmark, equivalent to about 6.86 times the reciprocal interval rate. These are observed comparisons, not a causal estimate.

Compare the Minitab outputs

FeatureGT
DistributionGeometricExponential
Historical input0.087 days
Upper signal2727
Lower signalNo point below zero28
Benneyan31Not applicable
Persistent shift36–3836–38

6. Phase I vs. Phase II

Phase I · establish

Use a reference period, inspect signals and investigate special causes before freezing limits.

Phase II · monitor

Apply the frozen parameters to the subsequent observations. Do not let a deteriorating process redefine its own benchmark.

  1. Subset the first 26 event records (25 completed intervals), e.g. Data → Subset Worksheet.
  2. Recreate each chart, leaving historical parameters blank. Evaluate baseline stability and model suitability.
  3. Record the parameters, then apply them to the complete data. Do not automatically use Period as a stage variable; default stage limits can be recalculated independently.
  4. Compare an exponential and Weibull T chart using a distribution identification plot for complete positive intervals. Evaluate fit and engineering plausibility.

Expected reference estimates: geometric number-between model \(\hat{p} = 1/(1+12.12) \approx 0.07622\); exponential scale \(\hat{\theta} \approx 5.76025\) days. Your signal patterns may change with the limits.

7. Why tests matter, and common mistakes

Test 1

One extreme interval beyond a probability limit. The lower tail is often close to zero.

Test 2

Nine successive points on one side of the median detect sustained change.

Benneyan

Repeated intervals equal to the G chart lower limit; useful when zero gaps cluster.

Specialized CUSUM / EWMA

Distribution-aware rare-event versions can detect smaller shifts. Ordinary normal CUSUM/EWMA limits should not be applied blindly to skewed gaps.
CheckWhy
Chronological, complete reportingMissed events inflate gaps
Independent intervals and consistent definitionClustering changes signal probabilities
Comparable exposure and event riskCalendar gaps may mislead during shutdown or volume changes
Suitable distributionMisfit gives misleading limits
Enough stable reference dataFew events produce uncertain parameters
Ongoing intervalRight-censored until another event occurs
Control vs capabilityStable does not necessarily mean acceptable

A high point may signal improvement, but investigate both directions. A lower control limit is not a target or a specification.

Do it in software

Statistics Implementation

Psst. Turn raw records into limits without guessing.You unlocked the calculations.
Unlock the rare-event toolkit ⌄Hide the toolkit ⌃

Excel Functions

FunctionSyntaxPurposeWhen to use
DAYS=DAYS(B3,B2)Integer day differenceDate-only log
Subtraction=B3-B2Elapsed days including fractionsTimestamp log
AVERAGE=AVERAGE(C3:C27)Mean completed intervalReference estimation
LN=LN(0.5)Log quantileGeometric or exponential limits
EXPON.DIST=EXPON.DIST(x,lambda,TRUE)Cumulative probabilityExponential fit
WEIBULL.DIST=WEIBULL.DIST(x,shape,scale,TRUE)Cumulative probabilityWeibull model
ROUNDUP=ROUNDUP(LN(0.00135)/LN(p),0)Zero-run thresholdBenneyan test at default 3 sigma
NEGBINOM.DIST=NEGBINOM.DIST(x,1,p,TRUE)Geometric CDF \(F(x)=1-(1-p)^{x+1}\)Checking a G gap or limit (one “success” = one event)
GAMMA=E4*GAMMA(1+1/E3)Weibull mean \(\eta\,\Gamma(1+1/\beta)\)Comparing a Weibull T chart’s mean with its median
NORM.S.DIST=NORM.S.DIST(-3,TRUE)Tail area 0.00135 behind the limitsChanging the Test 1 sigma level

Excel Use Cases

Put chronologically sorted dates in B2:B39, leave C2 blank, and fill =DAYS(B3,B2) down for the G log. For timestamps use =B3-B2 and format C as Number, then multiply by 1,440 for minutes. Estimate the baseline using C3:C27 (25 intervals). For G use =1/(1+AVERAGE(C3:C27)); for T use =AVERAGE(C3:C27).

For historical exponential scale in E2, use =-E2*LN(0.99865), =E2*LN(2), =-E2*LN(0.00135). For Weibull shape in E3 raise each negative logarithm to 1/E3. In EXPON.DIST use the rate, not the scale; in WEIBULL.DIST use shape and scale.

Excel checkpoints for the practice data

FormulaResult
=AVERAGE(C3:C27) on the G log12.12 days
=1/(1+AVERAGE(C3:C27))0.07622
=AVERAGE(C3:C27) on the T log5.76025 days
=-7*LN(0.99865)*144013.62 minutes
=7*LN(2) and =-7*LN(0.00135)4.85 and 46.25 days
=NEGBINOM.DIST(78,1,0.08,TRUE) and =NEGBINOM.DIST(79,1,0.08,TRUE)0.99862 and 0.99873: they bracket 0.99865, so the UCL lies between 78 and 79 (78.25)

Minitab Navigation

Stat → Control Charts → Rare Event Charts → G for dates/counts; Stat → Control Charts → Rare Event Charts → T for timestamps/durations. See the practice above. For direct count data, select Number of opportunities between events or Number of opportunities until an event as appropriate; Minitab converts until counts to between counts.

Which option should you choose? Use G when you count opportunities (units, transactions, days) between events; use T when you have exact times or operating hours. Fill Options → Parameters only with a trusted Phase I value; otherwise leave it blank and let Minitab estimate it.

Exam Tips

Focus on chart selection, distribution assumptions, common versus special causes, false alarms, and interpreting data against a stable baseline. G/T charts are useful applied SPC methods; do not assume they are named explicitly in the ASQ CQE or CSSBB exam outlines. Consult the applicable current body of knowledge.

  • The CQE body of knowledge asks you to apply reliability models such as the exponential and Weibull, and indices such as MTBF and failure rate. The T chart is that idea in action: the exponential scale is the MTBF.
  • Know that the exponential is the Weibull with shape 1, so its hazard is constant.
  • Remember the skew: the centre line of a G or T chart is the median, not the mean, and the lower limit is often zero or close to it.
  • Control limits are not targets or specifications; a long gap can be good news, so check reporting before celebrating.

Knowledge check

Check your understanding

Comprehension quiz

Pick the strongest answer, then submit. Explanations appear after you submit.

1. Which raw input is best for a date-only rare-event G chart?
2. A pump trip log has exact timestamps. Which chart directly uses elapsed time?
3. What does a point above UCL mean for an undesirable event?
4. Why is the G chart LCL frequently zero?
5. At \(p = 0.08\), how many consecutive zeros trigger the default Benneyan test?
6. What is the exponential distribution's Weibull shape?
7. For the number-between G model, what is the mean at \(p = 0.005\)?
8. Why is the 8-minute pump interval a signal?
9. Why use a reference period to estimate parameters?
10. What should be checked before using calendar days as exposure?

References

Training records are simulated; the source screenshots are the learner's Minitab outputs. Calculated SVG charts are clearly distinguished from software outputs.

← Back to Quality Engineering lessons