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?
| Chart | Data type | Subgroup | Typical use | Centre line and limits |
|---|---|---|---|---|
| X-bar R | Continuous | n = 2 to 9, usually 4 or 5 | High-volume machining, fill weight | X̿ ± A₂·R̄; for R: D₃·R̄ and D₄·R̄ |
| X-bar S | Continuous | n ≥ 10 | Large subgroups from automatic gauging | X̿ ± A₃·S̄; for S: B₃·S̄ and B₄·S̄ |
| I-MR | Continuous | n = 1 | Batch processes, chemical analysis, low volume, one reading a day | X̄ ± 2.66·MR̄; MR upper limit 3.267·MR̄ |
| p | Defective / not | May vary | Scrap rate by shift | p̄ ± 3·√(p̄(1−p̄)/n) |
| np | Defective / not | Constant | Defectives in a fixed 200-part check every hour | np̄ ± 3·√(np̄(1−p̄)) |
| c | Defect count | Constant inspection unit | Paint defects on one car body | c̄ ± 3·√c̄ |
| u | Defect count | Variable inspection unit | Defects 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.
| Rule | Pattern | What it usually shows on the shop floor |
|---|---|---|
| 1 | One point beyond the 3 sigma limit | A sudden event: broken tool, wrong setting, measurement error |
| 2 | 9 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 |
| 3 | 6 points in a row steadily rising or falling | A trend: tool wear, warm-up, a clogging filter |
| 4 | 14 points in a row alternating up and down | Two sources measured in turn: two machines, two operators |
| 5 | 2 of 3 points in a row beyond 2 sigma on the same side | An early sign of a shift |
| 6 | 4 of 5 points in a row beyond 1 sigma on the same side | A small but lasting shift |
| 7 | 15 points in a row within 1 sigma of the centre | Limits wrongly calculated, or mixed sources in the subgroup |
| 8 | 8 points in a row beyond 1 sigma on both sides | Two 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.
| Step | Calculation | Result |
|---|---|---|
| Short-term sigma | 0.028 / 2.326 | σwithin ≈ 0.012 mm |
| Cp | 0.10 / (6 × 0.012) = 0.10 / 0.072 | 1.39 |
| Upper side | (25.05 − 25.01) / (3 × 0.012) = 0.04 / 0.036 | 1.11 |
| Lower side | (25.01 − 24.95) / 0.036 = 0.06 / 0.036 | 1.67 |
| Cpk | min(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.
| Index | Sigma | Question | Common acceptance threshold |
|---|---|---|---|
| Cp | Short-term | Would it fit if centred? | ≥ 1.33 |
| Cpk | Short-term | Does it fit where it sits today? | ≥ 1.33; customers may ask 1.67 on special characteristics |
| Pp | Long-term | Would it fit with all the variation? | ≥ 1.67 in preliminary studies |
| Ppk | Long-term | What 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:
- Free introductory call and site visit. We look at your current control plan, measurement points and complaint history.
- Characteristic selection. Together we decide which product and process characteristics get charts, using the control plan and FMEA.
- Measurement system validation. A Gage R&R is run on the chosen characteristics; no chart is opened on a measurement system that fails.
- 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.
- Capability study and roll-out. Cp/Cpk and Pp/Ppk are calculated from stable data and the result moves to other lines.
- 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.