GARETH GRANTTECHNOLOGY · DATA · INNOVATION
Explore

39 / Quality & reliability

Process capability: Cp, Cpk and expected rejects

Capability analysis compares process variation with externally defined acceptance limits. It helps separate a process that is too variable from one that is poorly centred, and connects those differences to a modelled rejection rate.

IntermediateLive exploration + Python

The business question

Can a stable process consistently meet the product specification?

  • Assess whether a filling, cutting or calibration process is compatible with a specified tolerance.
  • Compare centring and variation-reduction proposals before deciding which production improvement to trial.

How the method works

Begin with the specification, not the observed histogram. Specification limits express what a customer or design requires. A control chart asks whether the process is stable over time; capability then asks whether that stable behaviour is sufficiently narrow and well located. Combining a drifting process into one apparent standard deviation can hide different operating states.

Cp compares the specification width with six short-term process standard deviations. It measures potential capability if the process were appropriately centred. Cpk uses the nearer specification boundary, so an off-centre mean lowers it. An identical Cp can therefore conceal very different exposure to the upper and lower tails. A negative Cpk means the process mean is outside at least one limit.

For an appropriate normal model, compute rejection from both tails directly rather than inferring it from Cp alone. State whether sigma estimates within-process or overall variation; using overall spread leads to performance indices commonly labelled Pp/Ppk. Sample estimates have uncertainty, particularly with little data. Capability targets depend on the customer, consequence of failure and governing process requirements, not a universal website threshold.

The calculation

Cp = (USL−LSL)/(6 sigma); Cpk = min[(USL−mu)/(3 sigma), (mu−LSL)/(3 sigma)]; reject probability = Phi((LSL−mu)/sigma) + 1−Phi((USL−mu)/sigma).
Read the symbols
SymbolMeaning
LSL, USLExternally set lower and upper acceptance limits.
mu, sigmaStable process mean and appropriate within-process standard deviation.
PhiStandard normal cumulative distribution function; its applicability must be checked.

A worked business example

ILLUSTRATIVE SCENARIO

Illustrative bottling line: assume a stable normal fill process has a verified mean and within-process standard deviation.

Inputs

  • Mean 502 ml; standard deviation 4 ml.
  • Acceptable range 490 to 510 ml; 10,000 bottles per day.
  • Assumed handling loss per rejected bottle: R3.

Work through the numbers

  1. Cp = (510−490)/(6 × 4) = 0.833333.
  2. Cpk = min[(510−502)/12, (502−490)/12] = min(0.666667,1) = 0.666667.
  3. Lower-tail z = (490−502)/4 = −3; upper-tail z = (510−502)/4 = 2.
  4. Normal rejection probability = 0.001349898 + 0.022750132 = 0.024100030.
  5. Expected daily rejects = 10,000 × 0.024100030 = 241.0003; modelled reject cost = R723.0009.
The model predicts about 241 rejects per day, with poorer protection at the upper specification.

Centring can address the asymmetry, but the low Cp also indicates substantial spread relative to the tolerance. The predicted count is not an observed production result.

Explore the decision

Compare a stable process with requirements. The live explorer has its own example inputs; it is separate from the worked calculation above.

Enable JavaScript to use this calculator. The worked example and executable Python remain available.

Apply it at work

  1. Verify the measurement system and obtain the actual customer or engineering specification.
  2. Use time-ordered data to investigate stability before interpreting a capability index.
  3. Estimate the relevant mean and sigma, examine distribution shape and quantify index uncertainty.
  4. Compare a centring or variation-reduction pilot using accepted output, full costs and specification compliance.

Check these assumptions

  • The process is stable over the period to which the capability statement applies.
  • The measurement system is sufficiently reliable relative to the tolerance.
  • The normal model is suitable for translating capability into the displayed tail probabilities.
  • The selected sigma definition and subgrouping method match the interpretation of Cp/Cpk.

Common mistakes and how to avoid them

  • Control limits and specification limits answer different questions and must not be substituted for one another.
  • A point estimate of Cpk from a tiny sample is not proof that future shipments will conform.
  • Equal costs for overfills and underfills are an illustrative simplification; accepted overfill giveaway may also matter.

How this can help the business

  • The analysis can help identify whether recalibrating the centre, reducing variation or redesigning the process is the more relevant intervention.
  • Connecting tail risk to production volume makes the proposed quality decision financially concrete while preserving its assumptions.
A decision rule to adapt

Compare capability with the applicable requirement and uncertainty, then verify any proposed improvement on fresh stable data and its actual accepted-output cost.

When to use another approach

Use a justified non-normal capability method or empirical quantile assessment when shape assumptions fail; use a measurement study first when gauge noise dominates.

Reproduce the worked example in Python

The code is self-contained for this example. Dependencies and run instructions are included with the downloadable notebook.

Show executable code and recorded output
from scipy.stats import norm
mean, sigma = 502, 4
lower, upper = 490, 510
cp = (upper-lower) / (6*sigma)
cpk = min((upper-mean)/(3*sigma), (mean-lower)/(3*sigma))
reject_rate = norm.cdf((lower-mean)/sigma) + norm.sf((upper-mean)/sigma)
print("Cp:", round(cp, 3), "Cpk:", round(cpk, 3))
print("Expected reject %:", round(100*reject_rate, 4))
print("Expected rejects per day:", round(10000*reject_rate, 2))
print("Modelled daily reject cost: R", round(10000*reject_rate*3, 2))

Recorded output

Cp: 0.833 Cpk: 0.667
Expected reject %: 2.41
Expected rejects per day: 241.0
Modelled daily reject cost: R 723.0
Download all worked examples

Sources and further reading

Concepts are linked to primary teaching or technical sources. The business examples are illustrative applications, not reported client results.