Process statistics

Cpk Confidence Intervals and Sample Size: How Many Readings a Capability Study Needs

Kitstead Labs · Engineering reference · Synthetic worked example

A Cpk computed from 30 readings is an estimate, and its uncertainty is usually larger than the difference between "capable" and "not capable". This guide gives the published interval formulas, shows which standard deviation they assume, works out what changes when Cpk comes from the moving range, and turns the formulas into a sample-size table, with one synthetic process measured twice: from its first 30 readings and from all 125.

Quick answer

For Cpk and Ppk, a commonly used approximate confidence interval is Ĉ ± z·√(1/(9n) + Ĉ²/(2ν)), where ν is the degrees of freedom of the standard deviation behind the index [R1][R3][R4]. For Ppk, which uses the ordinary sample standard deviation s, ν = n − 1 [R3]. For the moving-range Cpk that the site's capability calculator reports, the moving ranges carry less information than s: an approximate calculation on this page puts ν at about 0.61(n − 1), so the interval is wider than the same formula with n − 1 suggests. To claim that a process meets 1.33, compare the one-sided lower confidence bound, not the estimate, with 1.33. If an estimate of 1.50 stayed at 1.50, the lower bound would reach 1.33 at about 117 readings for Ppk and about 186 for the moving-range Cpk. In the example below, 30 readings from a process whose true Cpk is 1.50 give Cpk 1.243 with a 95 % lower bound of 0.886; all 125 readings give Ppk 1.496 with a lower bound of 1.332.

Why a Cpk from 30 readings is uncertain

Cpk divides the distance from the mean to the nearer specification limit by three standard deviations. Both the mean and the standard deviation are estimated from the readings, and both would come out differently from another 30 readings of the same process. The standard deviation is the larger problem: as the statistical tables guide shows with twelve titrations, a 95 % confidence interval for σ from a small sample runs from well below s to far above it. Because σ sits in the denominator of every index, its uncertainty passes straight into Cp, Cpk, Pp and Ppk.

NIST's e-Handbook states the consequence directly: capability estimates are valid only for samples that are "large enough", which it puts at about 50 independent values, and it adds that capability studies generally need n ≥ 100 [R1]. The site's capability calculator flags results from fewer than 25 readings as a screening estimate. Neither rule says what a given n buys; a confidence interval does.

The interval formulas

All the formulas below assume readings that are independent, come from a stable process and follow a normal distribution [R1].

Cp and Pp. Because Cp is (USL − LSL)/(6σ), its interval follows from the chi-square interval for σ [R1][R4]:

Lower bound = Ĉp·√(χ²(α/2, ν)/ν) Upper bound = Ĉp·√(χ²(1 − α/2, ν)/ν)

Here χ²(p, ν) is the value with probability p below it, so the lower bound of Cp uses the small chi-square value from the left tail. The statistical tables guide lists these values by upper-tail probability: χ²(0.025, ν) in this notation is the entry in its 0.975 column. The same formula with s gives the interval for Pp [R3].

Cpk and Ppk. NIST notes that the one-sided indices Ĉpu and Ĉpl have distributions related to the non-central t distribution, and presents a normal approximation for the confidence limits of Cpk [R1]. Minitab's documentation uses the same expression, with its default tolerance of six standard deviations, for both Cpk and Ppk [R3][R4]:

Ĉpk ± z(1 − α/2)·√(1/(9n) + Ĉpk²/(2ν))

The first term under the root comes from estimating the mean, the second from estimating the standard deviation; for any index above about 0.5 the second term dominates. NIST notes that the approximation needs at least 25 readings [R1]. Like the chi-square interval below, it is an approximation: its actual coverage is close to, not exactly, the stated level.

One-sided lower bounds. A requirement such as "Cpk at least 1.33" is one-sided. The 95 % lower confidence bound uses z(0.95) = 1.645 in place of z(0.975) = 1.960:

Lower bound = Ĉpk − 1.645·√(1/(9n) + Ĉpk²/(2ν))

Minitab's interpretation page describes the same comparison: when the 95 % lower bound of Ppk exceeds a benchmark of 1.33, the process can be considered capable with high confidence [R2].

Which standard deviation the interval assumes

NIST writes the estimated indices with the sample standard deviation s [R1]. On this site, s is the overall standard deviation behind Pp and Ppk; the Cpk vs Ppk guide explains why the site's Cp and Cpk use the within-process estimate MR̄/1.128 instead. For Ppk, ν = n − 1, as Minitab's overall-capability page states [R3], and the formula applies as written.

For the moving-range Cpk, the formula needs the degrees of freedom of MR̄/1.128. Minitab's methods page lists ν ≈ k − Rspan + 1 for the average moving range, where k is the number of samples and Rspan the length of the moving range [R4]; for individual readings with moving ranges of two, this works out to n − 1, the same as for s (interpretation).

An approximate calculation on this page gives a smaller number. For independent normal readings, each moving range is the absolute difference of two readings, and neighboring moving ranges share a reading, so they are correlated. Working out the variance of MR̄ with that correlation and matching its relative variance to that of a chi-square-based estimate gives

ν(MR) = m²·(4/π) / (2·[m·a + 2(m − 1)·c]), m = n − 1, a = 2(1 − 2/π) ≈ 0.7268, c = (4/π)(√3/2 + π/12 − 1) ≈ 0.1628

which is 17.7 at n = 30, 75.2 at n = 125, and tends to 0.605(n − 1) as n grows (derivation; the steps are in the notes to this guide). The variance of MR̄ is exact for independent normal readings, but matching it to a chi-square-based estimate is a first-order approximation: MR̄/1.128 does not follow a scaled chi-square distribution, so the Cpk and Cp intervals built with ν(MR) are approximations too. In other words, the 100 moving ranges of 101 readings carry about as much information about σ as the sample standard deviation of 62 readings.

The difference matters for coverage. In 100,000 simulated studies of the example process (true Cpk 1.50) at each of n = 30 and n = 125, the two-sided 95 % interval built around the moving-range Cpk with ν = n − 1 contained the true value in 88.4 % and 88.1 % of studies, and the one-sided 95 % lower bound was below the true value in 90.9 % and 90.8 %. With ν(MR), the same intervals covered 95.3 % and 95.1 %, and the lower bounds 95.9 % and 95.5 %. The Ppk interval with ν = n − 1 covered 95.1 % at both sizes, and its lower bound 94.6 % and 94.9 % (simulation on this page; seeds and code in the notes). The simulation covers one process, one distance from the nearer limit and two sample sizes; it supports the direction of the difference, not a coverage guarantee for every case. It compares the published formulas only: Minitab itself was not run for this guide.

How many readings

Setting the one-sided 95 % lower bound equal to 1.33 and solving for n gives, for a fixed estimate and this approximation, the smallest n at which the bound clears 1.33. It is not a sample-size plan with a stated chance of success: the estimate itself will move as readings are added, and a study sized from this table passes only if the estimate holds.

Readings needed before the one-sided 95 % lower bound reaches 1.33, if the estimate stays the same
EstimatePpk (s, ν = n − 1)Cpk (MR̄/1.128, ν(MR))
1.40604957
1.50117186
1.673758
2.0014, use at least 2522, use at least 25

Two things stand out. An estimate just above the requirement needs hundreds of readings before the data can separate it from the requirement: with an estimate of 1.40, it takes 604 readings for Ppk and 957 for the moving-range Cpk. And a moving-range Cpk needs roughly 1.6 times as many readings as a Ppk for the same lower bound, the inverse of 0.61. NIST's 25-reading floor applies to its own approximation [R1], so the last row is limited by that rule, not by the formula. For the moving-range version the simulation on this page did not test n = 25, so 25 is a minimum, not evidence that the interval works there.

Worked example: one process, 30 readings and 125 readings

The readings are synthetic pin diameters in millimeters from one stable normal process with true mean 10.006 mm and true standard deviation 0.012 mm, rounded to 0.001 mm and listed in collection order. The specification is 9.940 to 10.060 mm, so the true Cpk and Ppk are both 1.500 and the true Cp is 1.667. Neither the 30-reading nor the 125-reading set has a point outside its I chart or MR chart limits in the I-MR Control Chart Calculator.

Readings 1 to 30, the small study, in order: 10.010, 10.005, 9.993, 10.010, 10.011, 9.985, 10.026, 10.004, 10.014, 10.031, 10.003, 9.985, 9.999, 10.007, 9.993, 10.007, 9.998, 10.016, 9.985, 10.013, 10.030, 10.003, 10.001, 9.981, 9.995, 9.997, 10.020, 9.994, 10.006, 9.988.

Readings 31 to 125, in order; with readings 1 to 30 they make the full study: 9.999, 9.997, 9.995, 10.009, 9.995, 10.020, 10.005, 9.977, 10.012, 10.020, 9.986, 10.009, 10.020, 9.991, 9.997, 10.036, 10.015, 10.005, 9.984, 9.992, 10.009, 10.011, 9.992, 10.000, 9.995, 9.990, 10.006, 10.000, 10.013, 10.015, 10.011, 10.022, 10.008, 10.006, 10.002, 10.016, 9.999, 10.005, 9.988, 9.996, 10.004, 10.011, 10.011, 10.010, 10.013, 10.008, 10.005, 10.004, 9.989, 10.014, 9.985, 10.001, 9.995, 9.999, 10.005, 10.028, 10.012, 10.016, 9.989, 10.015, 10.030, 10.028, 10.013, 10.030, 9.987, 9.999, 10.002, 10.010, 10.003, 9.996, 10.013, 10.032, 10.002, 10.013, 10.009, 10.015, 9.991, 9.996, 10.020, 10.005, 10.008, 10.012, 9.990, 9.990, 10.003, 9.987, 10.029, 10.000, 10.011, 10.009, 10.016, 9.998, 9.991, 10.009, 10.005.

Step 1: the indices. Pasting the first 30 readings, then all 125, into the Process Capability Calculator with LSL 9.940 and USL 10.060 gives:

Process Capability Calculator results for the first 30 and for all 125 pin diameters
30 readings125 readings
Mean (mm)10.003710.0050
σ within, MR̄/1.128 (mm)0.01510.0125
s, overall (mm)0.01320.0123
Cpk1.2431.470
Ppk1.4271.496
Cp1.3241.603
Pp1.5201.632

The 30-reading Cpk of 1.243 would fail a 1.33 requirement, and it is lower than the Ppk from the same readings. Nothing changed in the process: the moving ranges among the first 30 readings happen to be large, and with 29 moving ranges that is ordinary sampling variation.

Step 2: the Ppk interval from 125 readings. With Ĉ = 1.4958, n = 125 and ν = 124:

1/(9 × 125) = 0.000889 and 1.4958²/(2 × 124) = 0.009022, so the standard error is √0.009911 = 0.0996.

The one-sided 95 % lower bound is 1.4958 − 1.645 × 0.0996 = 1.332, just above 1.33, and the two-sided 95 % interval is 1.301 to 1.691.

Step 3: the intervals for all four indices, plus the n − 1 comparison for Cpk. The same arithmetic with the other estimates gives (95 % two-sided interval, then the one-sided 95 % lower bound):

Two-sided 95 % intervals and one-sided 95 % lower bounds from 30 and from 125 readings
30 readings125 readings
Ppk, ν = n − 11.041 to 1.813; 1.1031.301 to 1.691; 1.332
Cpk, ν(MR)0.817 to 1.670; 0.8861.228 to 1.712; 1.267
Cpk, ν = n − 10.902 to 1.585; 0.9571.278 to 1.662; 1.309
Pp, ν = n − 1 (chi-square)1.130 to 1.9081.429 to 1.834
Cp, ν(MR) (chi-square)0.892 to 1.7561.347 to 1.859

ν(MR) is 17.7 for 30 readings and 75.2 for 125; the chi-square values for these non-integer degrees of freedom come from a spreadsheet function such as CHISQ.INV, not from the printed table.

Reading the results. Every interval contains the true value, 1.500 for Cpk and Ppk and 1.667 for Cp and Pp. From 30 readings, the two-sided intervals are roughly 0.7 to 0.9 wide, with lower ends between about 0.8 and 1.1 and upper ends between about 1.6 and 1.9: the data cannot separate a marginal process from a comfortable one. From 125 readings, the Ppk lower bound clears 1.33 by 0.002, which matches the sample-size table: an estimate of 1.50 needs about 117 readings. The moving-range Cpk from the same 125 readings does not clear 1.33 with ν(MR), and would appear to come close with ν = n − 1. That gap is the subject of the previous section, not a property of this process.

estimate two-sided 95 % interval one-sided 95 % lower bound 0.8 1.0 1.2 1.4 1.6 1.8 2.0 Capability index Requirement 1.33 True value 1.50 30 readings Ppk, ν = n − 1 Cpk, ν(MR) Cpk, ν = n − 1 (comparison) 125 readings Ppk, ν = n − 1 lower bound 1.332 Cpk, ν(MR) Cpk, ν = n − 1 (comparison)
Two-sided 95 % confidence intervals (bars), point estimates (dots) and one-sided 95 % lower bounds (ticks) for Ppk and for the moving-range Cpk, from the first 30 and from all 125 readings of the same process. The dashed line marks the 1.33 requirement and the dotted line the true value, 1.50. Only the Ppk lower bound from 125 readings clears 1.33; the Cpk interval with ν = n − 1 is shown for comparison.

Common mistakes

  1. Comparing the estimate with the requirement. A Cpk of 1.47 from 125 readings does not by itself show that the process meets 1.33. Only a lower bound above 1.33 supports that claim at the stated confidence; in the example the 95 % lower bound is 1.267, so it does not. Report the bound, the confidence level and n with the index.
  2. Using 1.960 for a one-sided claim. "At least 1.33" is one-sided, and the 95 % lower bound uses 1.645. A two-sided 95 % interval has a 97.5 % lower bound.
  3. Plugging the moving-range Cpk into the formula with n − 1. In the simulation on this page, that interval covered the true value in about 88 % of studies, not 95 %. Either report the Ppk interval, where ν = n − 1 is the documented choice [R3], or use ν(MR) and say that it is an approximation derived on this page. Both intervals are approximations.
  4. Reading a small-sample difference between Cpk and Ppk as a process signal. In the example, 30 readings from a stable process give Cpk 1.243 and Ppk 1.427. The sigma level guide notes that a measured difference near zero can come out negative from sampling alone; at n = 30 it can be large.
  5. Forgetting what the interval assumes. The formulas cover sampling error only. A drifting mean, readings that depend on each other, or a skewed distribution are not inside the interval; check stability with an I-MR chart first, and check the shape of the distribution before trusting any normal-based index. Process capability for non-normal data works through skewed readings.
  6. Treating 25, 50 or 100 readings as a guarantee. In NIST's text, 25 is the floor for its approximation, about 50 is what is generally thought large enough for the estimates, and 100 is its general recommendation for capability studies [R1]; none of them guarantees a passing result. Whether a study is large enough depends on how far the estimate sits from the requirement, as the table shows.

Using the tools and guides

The Process Capability Calculator gives Cpk, Ppk, Cp, Pp and n from individual readings in collection order; it does not compute confidence intervals, so the bounds above are calculated by hand or in a spreadsheet from its output. The I-MR Control Chart Calculator checks stability before the indices are interpreted. The statistical tables guide lists z and chi-square values for integer degrees of freedom. The Cpk vs Ppk guide explains the two standard deviations, and Sigma level and the 1.5σ shift converts Cpk and Ppk into short-term and long-term Z. Tolerance intervals for normal data covers the related question of what proportion of units a sample demonstrates to be inside a single limit.

Sources and further reading