- Introduced by
- Various (Girshick & Rubin 1952 early signal detection; Menzefricke 2002 Bayesian control chart framework)
- Year
- 1950s (foundations); formalized 1990s–2000s
- Type
- Bayesian process monitoring technique
- Family
- Engineering methods
What does it do?
Bayesian Statistical Process Control (Bayesian SPC) applies Bayesian inference to process monitoring.
Instead of fixed control limits estimated from an in-control baseline, it maintains a probability distribution over the process parameters and revises it as each new measurement arrives. Alarms are based on the posterior probability that the process has shifted, so uncertainty in the parameters enters the decision explicitly. The approach is most relevant when the in-control state is poorly known at the start of monitoring.
The intuition behind the method
In classical SPC, control limits are estimated from an in-control baseline and then treated as fixed. If that baseline is noisy, the limits inherit the estimation error, and the chart can signal too often or too rarely without any indication of why. Bayesian SPC treats the process mean and/or variance as uncertain quantities with a prior distribution. Each new observation updates this belief through Bayes' theorem, giving a posterior distribution. The alarm is raised when the posterior probability of a shift exceeds a chosen threshold, so evidence accumulates across observations rather than resting on a single point crossing a line. The benefit is largest when prior information is available and historical data are limited.
History
Bayesian process monitoring extends the sequential monitoring ideas used in statistical process control. The available bibliographic sources do not establish a verified originator or date for the Bayesian formulation, so none is attributed here. Menzefricke (2002) concerns control chart factors for monitoring the process mean and variance.
When to use it
Choose Bayesian SPC when process parameters are uncertain at the start of monitoring, for example in short runs, new processes, or with small historical datasets, and when reliable prior knowledge exists that should be formally included. It is also relevant when the process distribution is clearly non-normal or the variance itself is uncertain, and when the consequences of false alarms and missed signals should be expressed as explicit probability thresholds. Do not use it as a drop-in replacement for classical SPC without a justified prior, since a poorly chosen prior can degrade performance relative to Shewhart charts. For stable, high-volume processes with a large Phase-I dataset, classical limits are usually already well estimated, and the added complexity may not be justified.
Limitations and considerations
- The prior is subjective. A poorly calibrated prior can raise the false-alarm rate or reduce sensitivity to shifts, and this effect is not visible from the chart alone.
- Non-conjugate models generally need numerical posterior computation such as MCMC, which is heavier than the recursive arithmetic of Shewhart or CUSUM charts.
- Average run length (ARL) properties are harder to derive analytically than for classical charts, so performance is usually assessed by simulation.
- Explaining posterior probabilities to production-floor staff requires more training than explaining a control limit.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Allows prior engineering knowledge to enter the monitoring rule, which matters most when baseline data are sparse, as in short runs or new processes.
- Carries estimation error in the process parameters into the alarm probability, rather than treating estimated control limits as known.
- Expresses the alarm as a posterior probability of a shift, so the decision threshold can be discussed in explicit probabilistic terms.
- The posterior distribution gives information about the probable direction and size of a detected shift, which can guide root-cause investigation.
Applications
- Short production runs in which each batch is too small to support a conventional baseline estimate.
- Monitoring a new process or material for which historical production data are limited and reliable prior knowledge exists.
- Sequential monitoring of defect proportions or defect counts per unit with conjugate Beta-Binomial or Gamma-Poisson models, where baseline counts are small.
How it works
How it works
Specify a prior distribution for the parameter(s) being monitored, typically the process mean and/or variance. The prior can be based on historical data, engineering knowledge, or a weakly informative choice when little is known. It should describe the in-control state before new production data are observed, and its influence should be checked later (see pitfalls).
Record sequential measurements (individual values, subgroup means, or attribute counts) in production order. Subgroup size and sampling frequency determine how quickly shifts of a given size can be detected, so they should reflect the process speed and the shift size of interest.
Apply Bayes' theorem to combine the prior with each new observation or subgroup, yielding a posterior distribution. For conjugate models, such as Normal-Normal for the mean or Normal-Inverse-Gamma for mean and variance jointly, the update has a closed-form solution. For other models, the posterior generally requires numerical methods such as Markov chain Monte Carlo (MCMC).
Compute a decision statistic from the posterior, such as the posterior probability that the mean has moved beyond an acceptable range, or the posterior predictive probability of the new observation under the in-control model. The shift statistic is defined relative to an in-control range or reference value that must be specified before monitoring; without it, the posterior probability of shift has no fixed meaning. Signal when this statistic exceeds a probability limit chosen in advance. This replaces the fixed sigma-multiple rule of classical charts with a probability criterion. The limit should be calibrated by simulating run lengths under the in-control model, and the resulting false-alarm rate should be reported.
When a signal occurs, investigate for an assignable cause. The location and spread of the posterior indicate the likely direction and size of the shift, which can narrow the search. After a corrective action, reset or update the prior for the next monitoring phase and document that choice.
Common pitfalls
- Using a diffuse prior when strong process knowledge exists discards the main advantage of the method. The prior should reflect the knowledge actually available.
- Omitting a prior sensitivity analysis. Rerun the chart with several defensible priors and check whether signals and alarm rates change materially.
- Applying the method to a stable, high-volume process with a large baseline dataset, where the added complexity brings little gain.
- Treating the posterior probability threshold as equivalent to a p-value or an ARL-based limit. The calibration differs and must be explained to stakeholders.
Frequently asked questions
How does Bayesian SPC differ from a standard CUSUM or EWMA chart?
CUSUM and EWMA are frequentist sequential methods that accumulate or weight recent data to detect sustained shifts, with control limits usually set to achieve a target in-control average run length (ARL). Bayesian SPC instead updates a posterior probability of the process state, and its alarm is a probability threshold. Prior knowledge enters formally, so a prior must be specified; CUSUM requires no prior and is simpler. Which approach performs better depends on how much is known before monitoring starts and on the shift sizes of interest, and should be checked by simulation for the process at hand.
What prior should I use if I have no historical data?
Without historical data, a weakly informative prior can be set around the nominal target, with a broad allowance for variance. Its influence on early alarm and false-alarm rates should be checked by sensitivity analysis across several plausible priors before use, and the prior should be updated as production data accumulate. An empirical Bayes approach, in which the prior is estimated from early data, is an option for the interim period, but because it reuses the same data, its effect on alarm rates should be checked.
Can Bayesian SPC be used for attribute data (pass/fail counts)?
Yes. For attribute data, a Beta-Binomial or Gamma-Poisson conjugate model replaces the Normal-based framework used for continuous measurements. The Beta-Binomial model is used for monitoring defect proportions, and the Gamma-Poisson model for defect counts per unit. The update and alarm logic is analogous to the continuous case.
Is Bayesian SPC recognized in quality standards?
Recognition depends on the governing standard. Classical SPC methods are the established reference in many quality frameworks, and whether a Bayesian chart is acceptable depends on the standard that applies and on internal validation practice. Confirm acceptability with the relevant regulator or standards body before use.
Does Bayesian SPC require specialist software?
Conjugate models can be programmed in general statistical environments such as R or Python. Non-conjugate or hierarchical models are usually fitted with probabilistic programming languages such as Stan or PyMC. Whether a particular SPC platform supports Bayesian charts should be checked directly with its provider.
Related methods
Sources
Menzefricke, U. (2002). On the evaluation of control chart factors for monitoring the process mean and variance. Journal of Quality Technology, 34(2), 167–178.
Open publication referenceStatistical process control. Wikipedia.
Open publication reference