Lean Six Sigma · SPC

SPC: Statistical Process Control, Control Charts and Cp/Cpk

SPC (statistical process control) is the method of plotting measurements from a process on control charts so that an unusual change is caught before scrap is made. This page explains which control chart to use, how to read it, and how Cp, Cpk, Pp and Ppk are calculated with a worked numerical example.

What is SPC?

SPC is statistical process control: measurements taken from the process at regular intervals are plotted on a control chart, and the chart tells you whether the process is running "as usual" or "something has changed". The aim is not to separate good parts from bad ones but to intervene before the process starts making bad parts.

Final inspection is a filter that catches defects after production. SPC is an indicator that tells the operator at the machine "the tool is wearing", "the mould has heated up", "the new raw material lot behaves differently". That is why SPC belongs on the line, not in the quality laboratory. The operator keeps the chart, the operator sees the signal, and the first response is made by the operator or supervisor as written in the control plan.

SPC is the main tool of the Control phase in a DMAIC project, but it can also be set up on its own. Its precondition is a reliable measurement system. If measurement variation is as large as the tolerance, the chart tells the story of the gauge, not the process, so MSA and Gage R&R come first.

Common cause, special cause, and the most common confusion: control limits are not specification limits

Every process varies. Two parts made on the same machine with the same setting are never identical. This variation comes in two kinds:

  • Common cause: the sum of many small factors that are always present in the process's own structure. Reducing it means changing the process, which is work for management and project teams.
  • Special cause: a change that can be tied to an event: a broken tool, a new operator, a temperature controller that has drifted. This is what a control chart is designed to catch, and it is usually fixed by intervening on the line.

Control limits are calculated from the process's own data as the mean ±3 sigma, and they answer "what is the process doing". Specification (tolerance) limits come from the customer or the drawing and answer "what does the customer want". There is no mathematical link between the two.

Field notes

The mistake we see most is drawing tolerance lines on the control chart, or using the tolerance as the control limit. That chart raises the alarm when scrap is already being made, not when the process starts to slide. The reverse also happens: the process is within tolerance but out of control, and people say "the part is good, why stop". An out-of-control signal does not say today's part is bad. It says the process has changed.

Control charts: X-bar R, I-MR, p, np, c, u and when to use each

Chart choice comes down to two questions. Is the data measured (diameter, weight, temperature) or counted (defective units, number of defects)? Is the subgroup large and constant?

ChartData typeSubgroupTypical useCentre line and limits
X-bar RContinuousn = 2 to 9, usually 4 or 5High-volume machining, fill weightX̿ ± A₂·R̄; for R: D₃·R̄ and D₄·R̄
X-bar SContinuousn ≥ 10Large subgroups from automatic gaugingX̿ ± A₃·S̄; for S: B₃·S̄ and B₄·S̄
I-MRContinuousn = 1Batch processes, chemical analysis, low volume, one reading a dayX̄ ± 2.66·MR̄; MR upper limit 3.267·MR̄
pDefective / notMay varyScrap rate by shiftp̄ ± 3·√(p̄(1−p̄)/n)
npDefective / notConstantDefectives in a fixed 200-part check every hournp̄ ± 3·√(np̄(1−p̄))
cDefect countConstant inspection unitPaint defects on one car bodyc̄ ± 3·√c̄
uDefect countVariable inspection unitDefects per metre of fabric on rolls of different lengthū ± 3·√(ū/n)

For subgroup size 5 the constants are A₂ = 0.577, D₃ = 0, D₄ = 2.114 and d₂ = 2.326. If a lower limit falls below zero on a count chart, use zero.

Example: X-bar R chart limits

Say a lathe line measures shaft diameter every hour in subgroups of 5. From 25 subgroups the grand mean is X̿ = 25.010 mm and the average range is R̄ = 0.028 mm.

X-bar chart: UCL = 25.010 + 0.577 × 0.028 = 25.026 mm · LCL = 25.010 − 0.016 = 24.994 mm

R chart: UCL = 2.114 × 0.028 = 0.059 mm · LCL = 0

To calculate limits, use at least 20 to 25 subgroups (about 100 readings) from a period with no known change in the process. Read the R chart first: if the range is out of control, the X-bar limits are unreliable too, because they are calculated from R̄.

How to build a subgroup

Within a subgroup, conditions should be as similar as possible: five consecutive parts, same cavity, same station. The sources you are hunting for (shift, tool change, raw material lot) should sit between subgroups. If you take one part from each cavity of a four-cavity mould into the same subgroup, the cavity-to-cavity difference is buried inside the subgroup, the limits widen and the chart catches nothing.

How to read a control chart: Western Electric and Nelson rules

A point outside the control limits is the clearest signal, but not the only one. Patterns that stay within the limits but are very unlikely to occur by chance also point to a special cause. The Western Electric rules, and the Nelson rules that extend them, define these patterns. The chart is read by dividing each side of the centre line into 1, 2 and 3 sigma zones.

RulePatternWhat it usually shows on the shop floor
1One point beyond the 3 sigma limitA sudden event: broken tool, wrong setting, measurement error
29 points in a row on the same side of the centre (7 or 8 in some guides)A shift in the mean: new raw material lot, offset change
36 points in a row steadily rising or fallingA trend: tool wear, warm-up, a clogging filter
414 points in a row alternating up and downTwo sources measured in turn: two machines, two operators
52 of 3 points in a row beyond 2 sigma on the same sideAn early sign of a shift
64 of 5 points in a row beyond 1 sigma on the same sideA small but lasting shift
715 points in a row within 1 sigma of the centreLimits wrongly calculated, or mixed sources in the subgroup
88 points in a row beyond 1 sigma on both sidesTwo different distributions mixed together

Switching on all the rules at once raises the number of false alarms. On the line we usually start with rules 1, 2, 3 and 5 and add the others as operators get used to reading the chart. Which rules apply and who does what when a signal appears must be written in the control plan and the reaction plan.

What are Cp and Cpk and how are they calculated?

Cp and Cpk are process capability indices that show how comfortably a stable process fits within the specification limits. Cp looks only at spread: how many times does the tolerance width contain the process spread? Cpk also considers where the mean sits: how many "three sigmas" is the mean from the nearest limit?

Cp = (USL − LSL) / (6 × σwithin)

Cpk = min[ (USL − X̄) / (3 × σwithin) , (X̄ − LSL) / (3 × σwithin) ]

Here σwithin is the within-subgroup (short-term) standard deviation, estimated from an X-bar R chart as R̄ / d₂.

Worked example

Continue the shaft example. The drawing says diameter 25.00 ± 0.05 mm: USL = 25.05, LSL = 24.95, tolerance 0.10 mm. The chart is stable, X̄ = 25.010 mm, R̄ = 0.028 mm.

StepCalculationResult
Short-term sigma0.028 / 2.326σwithin ≈ 0.012 mm
Cp0.10 / (6 × 0.012) = 0.10 / 0.0721.39
Upper side(25.05 − 25.01) / (3 × 0.012) = 0.04 / 0.0361.11
Lower side(25.01 − 24.95) / 0.036 = 0.06 / 0.0361.67
Cpkmin(1.11 ; 1.67)1.11

Reading it: Cp = 1.39 says the spread fits the tolerance, and Cpk = 1.11 says the mean has drifted towards the upper limit. If the mean is pulled back to nominal (25.00), Cpk becomes equal to Cp at 1.39. So the first job on this process is an offset adjustment, not a new machine. If Cp had been low, the problem would be variation rather than centring, and a DMAIC project or design of experiments would be needed.

Cp, Cpk, Pp and Ppk: the difference, and what Cpk should be

The formulas are the same; the sigma is what changes. Cp and Cpk use the within-subgroup (short-term) sigma. Pp and Ppk use the overall (long-term) standard deviation of all the data. Overall sigma is usually larger because it includes shifts between shifts, lots and days.

Suppose the overall standard deviation of all 125 readings in our example is 0.015 mm:

Pp = 0.10 / (6 × 0.015) = 1.11 · Ppk = (25.05 − 25.01) / (3 × 0.015) = 0.89

Ppk dropping to 0.89 while Cpk is 1.11 says there is extra variation between subgroups, from hour to hour or shift to shift. In the long run this process would put about 3,800 parts per million beyond the upper limit. The bigger the gap between Cpk and Ppk, the stronger the special cause destabilising the process.

IndexSigmaQuestionCommon acceptance threshold
CpShort-termWould it fit if centred?≥ 1.33
CpkShort-termDoes it fit where it sits today?≥ 1.33; customers may ask 1.67 on special characteristics
PpLong-termWould it fit with all the variation?≥ 1.67 in preliminary studies
PpkLong-termWhat does the customer actually get?≥ 1.67 in preliminary studies (PPAP); 1.33 to 1.67 conditional

As a general reading, below 1.00 is incapable (the process overflows the tolerance), 1.00 to 1.33 is marginal and needs tight control, and 1.33 and above is considered capable. A Cpk of 1.33 means the mean is 4 sigma from the nearest limit. Always check thresholds against your own customer's specification; customer-specific rules are common in automotive.

Two preconditions are easy to forget: the process must be stable on the control chart (in an unstable process a single Cpk number is meaningless) and the data must be roughly normal. With one-sided tolerances, such as surface roughness with only an upper limit, the distribution is often skewed, and a Cpk calculated under a normal assumption misleads. Use a transformation or a suitable distribution.

Mistakes that spoil SPC on the shop floor

  • Wallpaper SPC. Charts are filled in and pinned to the board, and nobody reacts to a signal. A chart with no reaction plan is a record form.
  • A chart for every dimension. Forty dimensions on the drawing, forty charts, and the operator can no longer produce. Open charts for the few characteristics that matter to the customer and vary, and for the process parameters that drive them. The FMEA and the control plan guide the selection.
  • Making limits equal tolerance, or never updating them. Control limits come from process data. After an improvement they are recalculated from new stable data. Limits tightened because "the quality manager wanted it" produce constant false alarms.
  • Reacting to every point. Adjusting the machine at every small deviation inside the limits increases variation instead of reducing it.
  • Calculating Cpk from an unstable process. Deleting out-of-control points to send the customer a number is unfortunately common. It misleads you, not the customer.
  • Never questioning the measurement system. When a chart goes out of control, one of the first questions is whether the gauge or the person measuring has changed.

Field notes

To tell whether SPC has taken hold on a line, we look not at the charts but at the reaction records. How many signals came in the last month, how many were acted on, how many have a cause written down? If the charts are full and the reaction log is empty, SPC has not been set up.

SPC training and setting up SPC with Fega Partner

We set up SPC not as a software installation or a classroom course but as a control system that works on your line. The typical order is:

  1. Free introductory call and site visit. We look at your current control plan, measurement points and complaint history.
  2. Characteristic selection. Together we decide which product and process characteristics get charts, using the control plan and FMEA.
  3. Measurement system validation. A Gage R&R is run on the chosen characteristics; no chart is opened on a measurement system that fails.
  4. Pilot line. Chart type, subgroup and sampling frequency are set, limits calculated and the reaction plan written. Operator, supervisor and quality engineer learn to read the chart together at the line.
  5. Capability study and roll-out. Cp/Cpk and Pp/Ppk are calculated from stable data and the result moves to other lines.
  6. Sustainment audit. At agreed intervals we review reaction records and limit updates on site.

SPC training is given at operator level (filling in the chart and reading the rules), engineer level (chart selection, limit calculation, capability analysis) and manager level (deciding on signals), with different content for each. SPC is also part of the Green Belt and Black Belt programmes. Scope and number of participants are settled in the introductory call. Training and coaching are delivered in Turkish or English, face to face, in an open class or in-house. For the wider picture see Lean Six Sigma consulting and Lean Six Sigma training, or reach us through the contact section.

Frequently asked questions

Common questions.

What is SPC?

SPC stands for statistical process control. Measurements taken from a process at regular intervals are plotted on a control chart, which shows whether the process is within its natural variation or has changed because of a special cause. The aim is not to sort out defective parts afterwards but to act when the process starts to drift, before scrap is made.

What is the difference between Cp and Cpk?

Cp looks only at process spread against the tolerance and shows how comfortably the process would fit if it were centred. Cpk also takes the position of the mean into account and measures the distance to the nearest specification limit. If Cp is high but Cpk is low, the problem is centring, not variation, and moving the mean to nominal is usually enough.

What should Cpk be?

The commonly accepted minimum is 1.33, meaning the mean is 4 sigma from the nearest limit. Below 1.00 is incapable and 1.00 to 1.33 is marginal. In automotive, preliminary studies of new processes may ask for a Ppk of 1.67, and higher for special characteristics. Always check the customer's own specification.

How is Cpk calculated?

First the control chart confirms the process is stable, and short-term sigma is found by dividing the average range on an X-bar R chart by the constant d2. Then the distance from the mean to the upper limit and from the lower limit to the mean are each divided by three sigma. The smaller of the two results is Cpk.

What are Pp and Ppk and how do they differ from Cpk?

Pp and Ppk use the same formulas but with the overall standard deviation of all the data. Because overall sigma includes shifts between shifts, lots and days, Ppk is usually lower than Cpk. A large gap means there is a special cause between subgroups. Ppk is closer to the performance the customer actually receives.

Are control limits the same as specification limits?

No. Control limits are calculated from the process's own data as the mean plus or minus three sigma and show what the process is doing. Specification limits come from the customer or the drawing and show what is wanted. Drawing tolerance lines on a control chart removes its purpose of catching drift before scrap is made.

Which control chart should I use?

For measured data use X-bar R with subgroups of 2 to 9, X-bar S with 10 or more, and I-MR for individual readings. For counts of defective units use a p chart when the subgroup varies and an np chart when it is constant. For counts of defects use a c chart for a constant inspection unit and a u chart for a variable one.

How do you read a control chart?

First look for a point beyond the limits. Then look at patterns inside the limits: nine points in a row on one side of the centre, six points steadily rising or falling, two of three points beyond 2 sigma. These are the Western Electric and Nelson rules and indicate a special cause; the response follows the reaction plan.

How much data do I need to calculate control limits?

The usual practice is at least 20 to 25 subgroups from a period with no known change, which is about 100 readings with subgroups of 4 or 5. Limits from less data are treated as provisional and recalculated once enough data has built up. After a permanent improvement, limits are updated with the new data.

Who should attend SPC training?

Operators who fill in the chart and respond first, supervisors and shift leaders, and the quality and process engineers who choose charts and run capability studies. Content differs by level: operators learn to read the rules, engineers learn chart selection and Cp/Cpk, managers learn to decide on signals. Scope is agreed in the introductory call.

Abbas Erdenal

Led by

Abbas Erdenal

Lean Six Sigma Master Black Belt · Founder of Fega Partner

More than 25 years on the shop floor, over 1,000 improvement projects and programmes delivered in seven countries. Abbas Erdenal personally leads every consulting engagement and training.

About Abbas Erdenal

Let us set up an SPC system that works on your line.

Get in touch