MathsStatistics & Probability

Process Capability
calculator.

Cp and Cpk compare the spread of your process with the limits your customer allows.

How it's worked out

Specification limits say what is acceptable: the lower limit LSL and the upper limit USL. The mean and standard deviation say what the process makes. Capability is about fit: if six standard deviations of output fit well inside the limits, almost every part conforms.

Cp\displaystyle C_p=USL−LSL6σ\displaystyle {}= \frac{USL - LSL}{6\sigma}
Cpu\displaystyle C_{pu}=USL−μ3σ\displaystyle {}= \frac{USL - \mu}{3\sigma}
Cpl\displaystyle C_{pl}=μ−LSL3σ\displaystyle {}= \frac{\mu - LSL}{3\sigma}

Cp ignores where the process sits, so it shows only what is possible. Cpk is the smaller of Cpu and Cpl, so a mean close to one limit pulls it down. NIST gives these formulas, along with Cpm, which also charges for distance from a target T:

Cpm\displaystyle C_{pm}=USL−LSL6σ2+(μ−T)2\displaystyle {}= \frac{USL - LSL}{6\sqrt{\sigma^2 + (\mu - T)^2}}

The C indices here use the short-term spread within runs, and Pp and Ppk repeat the same sums with the long-term spread across all the data. With raw measurements, the short-term σ comes from the average moving range divided by 1.128, the d₂ constant NIST uses for an individuals chart. The long-term σ is the ordinary sample standard deviation. The parts-per-million figures are the tails of a normal curve with the long-term σ.

For counts of defects, DPMO is defects per million opportunities. The sigma level turns that rate into a z value and adds 1.5, a convention rather than a measured shift.

Worked examples

The NIST example: a process that sits off-center

With limits of 8 and 20, a mean of 16 and σ of 2, NIST gets Cp = 1, so the process would only just fit if it were centered. It is not. Cpu is 0.667 and Cpl is 1.333, so Cpk = 0.667.

That means about 22,782 parts per million outside the limits, 22,750 of them above the upper one. NIST's verdict is that this is not a good process.

Open this example in the tool

Centering can beat a tighter process

Limits of 90 and 110 with σ of 2 give Cp = 1.667, which looks fine. With the mean at 104 and not 100, Cpk is only 1, and 1,350 parts per million fall outside.

Moving the mean to 100 lifts Cpk to 1.667 and cuts the rate to 0.57 parts per million. To reach 1.33 without moving the mean, you would need σ of about 1.5, a cut of about 25%.

Open this example in the tool

Short-term against long-term

A mean of 102, a σ within runs of 2.5 and a long-term σ of 2.8 give Cpk = 1.067 and Ppk = 0.952. The gap of 0.11 is what drift between runs costs you.

The default raw measurements show the method: 15 readings have an average moving range of 2.486, which gives a short-term σ of 2.204. The sample standard deviation of the same readings is 1.526.

Open this example in the tool

Reading your result

Check for stability first. NIST frames capability as a comparison of an in-control process with its limits. If the process drifts or spikes, the indices describe a moment, and the predicted rate will be wrong. Paste raw data and the tool flags any point outside the individuals chart limits.

Use the published minimums as a starting point. SAS's documentation lists Montgomery's minimums: for an existing process, 1.33 for a two-sided ratio and 1.25 for a one-sided ratio. iSixSigma says most businesses want a Cpk of at least 1.33, and 1.67 where staying in spec is critical. A contract may set its own figure.

Parts per million outside the limits, for a centered normal process
IndexTo each limitppm
0.672.01σ44,431.2
13σ2,699.8
1.334σ63.3
1.54.5σ6.8
1.675σ0.573
26σ0.002

Treat a sigma level as a convention. The 1.5 added means 6 sigma stands for 3.4 defects per million, not the 0.002 parts per million of a centered process with Cpk of 2.

Sigma level and DPMO, with the 1.5 sigma convention
Sigma levelDPMO
2σ308,537.5
3σ66,807.2
4σ6,209.7
5σ232.6
6σ3.4

Remember that a Cpk is an estimate. NIST's approximate interval puts a Cpk of 1.33 from 30 parts within about ±0.36, and from 100 parts within about ±0.2. NIST warns that the approximation needs at least 25 parts, and that capability studies need about 100.

Common mistakes

  • Trusting the parts-per-million figure on skewed data. NIST notes that these statistics assume normal data. Flatness, roundness and impurity levels are often bounded at zero and lean to one side, which puts far more in one tail than the curve says.
  • Mixing up Cpk and Ppk in a report. They differ only in which σ they use, and people use the names loosely. Agree which one the customer wants, and give the σ you used.
  • Computing the short-term σ on shuffled data. The moving range compares each reading with the one before it, so the measurements must stay in time order.
  • Quoting Cp alone. A Cp of 2 says nothing about whether the process is near a limit.

Questions people ask

Both compare the distance from the mean to the nearer limit with three standard deviations. Cpk uses the short-term σ within runs, and Ppk uses the long-term σ of all the data. A Ppk well below Cpk, such as 0.952 against 1.067, points to drift between runs.

Sources