Process
Process Capability Calculator (Cp, Cpk, Pp, Ppk)
Paste individual measurements in the order they were collected and enter the specification limits to get Cp and Cpk from the within-process spread and Pp and Ppk from the overall spread. Every reading and limit is entered by you; the tool adds no data of its own.
01Inputs
02Result
Indices and estimates
03Method
Use this tool when you have a run of individual measurements taken one at a time in a known order, such as thickness readings from one line over a day, and a specification with one or both limits. It gives Cp and Cpk from the within-process spread and Pp and Ppk from the overall spread. It is not for data collected in subgroups, it does not convert an index into a defect rate, and it does not test stability: check an I-MR chart first.
AHow it is calculated
The tool estimates the spread of the process in two ways and compares each with the specification. With n readings x1, x2, …, xn in collection order and their mean x̄:
- The moving ranges are the absolute differences between consecutive readings, MRi = |xi − xi−1|, for i = 2 to n. Their average MR̄ measures short-term, reading-to-reading variation.
- The within-process standard deviation divides MR̄ by d2 = 1.128, the constant for ranges of two consecutive values.
- The overall standard deviation is the ordinary sample standard deviation of all the readings, with n − 1 in the denominator. It includes every source of variation in the data, such as shifts and drifts between the start and the end of the run.
- Cp and Pp compare the width of the specification with six standard deviations. They need both limits and ignore where the mean sits.
- Cpk and Ppk compare the distance from the mean to the nearer limit with three standard deviations: the smaller of the upper and lower one-sided indices. With only one limit, that side alone gives Cpk and Ppk.
The guide example, ten thickness readings with LSL 9.50 µm and USL 10.50 µm, gives σwithin = 0.0394 µm and s = 0.1076 µm, so Cpk = 3.113 and Ppk = 1.140, with Cp = 4.230. The details under the result list Cp, Pp, MR̄, the minimum and maximum, the four one-sided indices and the distance from the mean to the nearer limit.
BScope and limitations
- Individual readings only. The within estimate uses moving ranges of single readings. Data collected in rational subgroups, such as five parts every hour, need a subgroup estimate (R̄/d2 or s̄/c4), which this tool does not provide.
- Collection order matters. The moving ranges are only meaningful when the readings are pasted in the order they were collected. Sorted or shuffled data give a different, usually smaller, σwithin and a higher Cpk.
- No defect rate. The tool does not convert the indices into ppm or a fraction out of specification. That conversion assumes a stable process and a known distribution shape, which the indices alone do not show. Sigma level and the 1.5σ shift works one through, with and without the 1.5σ shift.
- Normal readings assumed. The indices compare the distance to a limit with three standard deviations, which marks the 99.865th percentile only when the readings are normal. For skewed readings such as flatness or runout, Process capability for non-normal data shows how to use this tool on log-transformed or Box-Cox-transformed readings and how much the answer depends on the shape.
- Small samples are screening estimates. Both standard deviations are uncertain when there are few readings. Below 25 readings the result says so; a capability qualification usually needs a larger, stable data set defined in your procedure. Cpk confidence intervals and sample size shows how wide that uncertainty is and how many readings it takes for a lower bound to reach 1.33. For a single limit, Tolerance intervals for normal data shows what proportion of units a given Ppk and number of readings demonstrate.
- A standard deviation of zero does not mean infinite capability. When all readings are identical, often because the gauge resolution is too coarse, no index is calculated.
- Negative values. A negative Cpk or Ppk means the mean lies outside the specification on that side. The value is shown as calculated, not set to zero.
- For the reasoning behind the two estimates, read the Cpk vs Ppk guide and the I-MR chart guide. The d2 = 1.128 used for the within-process sigma is the n = 2 row of the control chart constants table.
CCommon mistakes
- Reporting Cpk as if it were Ppk. Cpk uses the short-term, within spread and is usually the higher of the two. A customer asking for long-term performance needs Ppk; label which one you report.
- Sorting before calculating. Sorting removes the time sequence and shrinks the moving ranges, so σwithin falls and Cpk rises for the same data. Keep the readings in collection order.
- Using Cpk to claim the process is stable. An index summarises spread and centering; it does not test for shifts or trends. Check a control chart, such as an I-MR chart, first. In the guide example a level shift halfway through still gives Cpk 3.113.
- Treating a small sample as a qualification. Ten or twenty readings give a first estimate. Qualification needs the sample size, period and stability evidence your procedure defines.
Related tools
- Loading…
Further reading
- Montgomery, D. C., Introduction to Statistical Quality Control, 7th ed., Wiley, 2013, Chapter 8. Covers process capability analysis and the capability indices.
- NIST/SEMATECH e-Handbook of Statistical Methods, Section 6.1.6, What is Process Capability? Covers Cp, Cpk and their estimation.
- AIAG Statistical Process Control (SPC) Reference Manual and ISO 22514-2 — referenced by name; not reproduced here.