Statistical quality control and control charts

Common and special causes, Shewhart X̄–R, p and c charts with standard constants, run rules, Cp/Cpk capability and acceptance-sampling risks, with X̄–R/capability, p-chart and c-chart numericals.

Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

A car contains thousands of toleranced dimensions — piston-pin diameters, brake-disc thickness, bore sizes, torque on wheel nuts — and suppliers must prove that their processes hold them consistently, not just that the last batch passed inspection. Control charts show, while production is running, whether a process is stable or has been disturbed by a special cause, and capability indices (Cp, Cpk) show whether a stable process is good enough for the specification. Both are standard topics in GATE and are demanded under the automotive quality system (IATF 16949, PPAP).

Key ideas

Variation. Every process varies.

  • Common (chance) causes are many small, random sources built into the process (small vibrations, slight material variation). They give a stable, predictable distribution. Reducing them needs a change to the process (management action).
  • Special (assignable) causes are identifiable events — a worn tool, a new batch of material, a wrong offset. They make the process unstable and should be found and removed at the machine (operator action). A process with only common-cause variation is in statistical control.

Control charts (Shewhart). Samples (subgroups) are taken at intervals and a statistic is plotted against a centre line (CL) and control limits usually at ±3 standard deviations of that statistic. With normal data, about 99.73 % of points fall inside ±3σ when the process is in control, so a point outside is strong evidence of a special cause. Other signals: a run of 7–8 points on one side of the CL, a steady trend of 6–7 points rising or falling, cycles, or points hugging the limits (Western Electric / Nelson run rules).

Control limits are not specification limits. Control limits come from the process (what it does); specification limits come from the design (what it must do). A process can be in control but still produce out-of-specification parts if it is not capable.

Charts for variables (measured data).

  • X̄ chart — subgroup means; detects shifts in the mean.
  • R chart — subgroup ranges; detects changes in spread. Use with small subgroups (n ≤ about 10).
  • X̄–s chart — standard deviation for larger subgroups.
  • Always check the R chart first: X̄ limits depend on R̄, so they are meaningless if spread is out of control.

Charts for attributes (counted data).

  • p chart — fraction defective (sample size may vary); np chart — number defective (constant n).
  • c chart — number of defects per unit of constant size (paint defects per car body, porosity per casting); u chart — defects per unit when unit size varies. p and np assume a binomial model; c and u assume a Poisson model.

Process capability. For a stable process, estimate σ from R̄/d₂ (or from s). Cp compares the tolerance width with the process spread (6σ) and ignores centring; Cpk uses the distance from the mean to the nearer specification limit, so it penalises an off-centre process. Cp = Cpk only when the process is centred. Typical automotive targets: Cpk ≥ 1.33 for ongoing production and ≥ 1.67 for new or critical characteristics (check your customer's requirement).

Acceptance sampling (link). When incoming lots are inspected by sampling (n items, accept if defectives ≤ c), the operating characteristic (OC) curve gives the probability of accepting a lot at each quality level; the producer's risk α is rejecting a good lot (at AQL) and the consumer's risk β is accepting a bad lot (at LTPD).

Control-chart constants (from standard tables, n = subgroup size).

n A₂ D₃ D₄ d₂
2 1.880 0 3.267 1.128
3 1.023 0 2.574 1.693
4 0.729 0 2.282 2.059
5 0.577 0 2.114 2.326
6 0.483 0 2.004 2.534

Formulas

X̿ = Σ X̄_i / k, R̄ = Σ R_i / k

  • Grand mean and average range over k subgroups (same unit as the measurement, e.g. mm).

X̄ chart: CL = X̿, UCL = X̿ + A₂·R̄, LCL = X̿ − A₂·R̄

R chart: CL = R̄, UCL = D₄·R̄, LCL = D₃·R̄

X̄ chart with known σ: X̿ ± 3·σ/√n

  • σ = process standard deviation of individual values.

p chart: CL = p̄, limits = p̄ ± 3·√(p̄(1 − p̄)/n)

  • p̄ = total defectives / total inspected; LCL taken as 0 if negative.

c chart: CL = c̄, limits = c̄ ± 3·√c̄

  • c̄ = average defects per unit.

σ̂ = R̄ / d₂

Cp = (USL − LSL) / (6σ), Cpk = min(USL − μ, μ − LSL) / (3σ)

  • USL, LSL = specification limits; μ = process mean.

Worked examples

Example 1 (standard → GATE level) — X̄–R chart and capability. Given: piston-pin diameter, 20 subgroups of n = 5; X̿ = 20.010 mm, R̄ = 0.020 mm; specification 20.00 ± 0.03 mm.

  1. X̄ chart: UCL = 20.010 + 0.577 × 0.020 = 20.0215 mm; LCL = 20.010 − 0.0115 = 19.9985 mm
  2. R chart: UCL = 2.114 × 0.020 = 0.0423 mm; LCL = 0 × 0.020 = 0
  3. σ̂ = R̄ / d₂ = 0.020 / 2.326 = 0.00860 mm
  4. Cp = 0.060 / (6 × 0.00860) = 1.16
  5. Cpk = min(20.030 − 20.010, 20.010 − 19.970) / (3 × 0.00860) = 0.020 / 0.0258 = 0.78

Answer: X̄ limits 19.9985–20.0215 mm, R limits 0–0.0423 mm; Cp ≈ 1.16 but Cpk ≈ 0.78 — the spread is acceptable but the process is off-centre and must be re-centred at 20.000 mm.

Example 2 (GATE level) — p chart. Given: 25 samples of 200 brake pads each; 150 defectives in total.

  1. p̄ = 150 / (25 × 200) = 0.030
  2. σ_p = √(0.03 × 0.97 / 200) = 0.01206
  3. UCL = 0.030 + 3 × 0.01206 = 0.0662; LCL = 0.030 − 0.0362 < 0 → 0

Answer: CL 0.030, UCL 0.066, LCL 0 — a sample with 14 defectives (p = 0.07) would signal a special cause.

Example 3 — c chart. Given: average of 4 paint defects per car body. UCL = 4 + 3√4 = 10, LCL = 4 − 6 < 0 → 0. Answer: a body with 11 or more defects signals an out-of-control paint process.

Common mistakes

  • Treating control limits as tolerance limits, or computing control limits from specification limits.
  • Using A₂ for the wrong subgroup size, or using the number of subgroups k instead of the subgroup size n to pick constants.
  • Assuming R̄ equals σ; σ̂ = R̄/d₂.
  • Reporting a negative LCL for an R, p or c chart; it is set to zero.
  • Using Cp alone for an off-centre process — Cpk is the one that reflects actual defects.
  • Using a p chart for defects per unit (should be c or u) or a c chart for fraction defective (should be p).

For GATE ME

Expect calculations of X̄ and R chart limits with given constants, p and c chart limits, Cp and Cpk, and conceptual questions on chance versus assignable causes, which chart suits which data, and OC-curve risks. Practise reading the constants table correctly and checking for negative lower limits.

Quick check

  1. n = 4, X̿ = 50.0, R̄ = 2.0. Find the X̄ chart UCL.
  2. USL = 10.6, LSL = 9.4, σ = 0.1, mean 10.0. Find Cp and Cpk.
  3. Which chart for the number of scratches per bumper?
  4. Is a point inside the control limits but outside the specification a control problem or a capability problem?
  5. c̄ = 9. What are the c-chart limits?

Answers: 1. 50.0 + 0.729 × 2.0 = 51.46. 2. Cp = 1.2/0.6 = 2.0; Cpk = 0.6/0.3 = 2.0. 3. c chart. 4. Capability. 5. UCL = 18, LCL = 0.

Try answering each one aloud before you open it.

  1. 1.What is statistical quality control (SQC) and why is it important in manufacturing?Concept

    Statistical quality control (SQC) is a method used in manufacturing to monitor and control the quality of products. It involves using statistical methods to measure and analyze variations in the production process. SQC is important because it helps in identifying defects, reducing variability, and ensuring that the products meet quality standards. By using SQC, manufacturers can improve product quality, reduce waste, and increase customer satisfaction.

  2. 2.Explain the purpose of control charts in statistical quality control.Concept

    Control charts are tools used in statistical quality control to track the performance of a process over time. They help in identifying trends, shifts, or any unusual variations in the process. The main purpose of control charts is to determine whether a process is in a state of statistical control or if corrective actions are needed. By using control charts, manufacturers can maintain consistent quality and prevent defects before they occur.

  3. 3.What are the differences between X-bar and R charts?Concept

    X-bar charts and R charts are both types of control charts used to monitor process variability. The X-bar chart is used to track the average of a sample over time, while the R chart is used to track the range within a sample. X-bar charts are useful for detecting shifts in the process mean, whereas R charts are useful for detecting changes in process variability. Together, they provide a comprehensive view of the process stability.

  4. 4.Why is it important to use a sample size when creating control charts?Application

    Using a sample size when creating control charts is important because it allows for the estimation of process parameters without having to inspect every item produced. Sampling reduces the time and cost associated with quality control while still providing reliable data about the process. A well-chosen sample size ensures that the control charts accurately reflect the process performance and help in making informed decisions about process improvements.

  5. 5.What happens if a process is found to be out of control on a control chart?Application

    If a process is found to be out of control on a control chart, it indicates that there are variations in the process that are not due to random chance. This requires investigation to identify the root cause of the variation. Once the cause is identified, corrective actions should be taken to bring the process back into control. Ignoring an out-of-control process can lead to increased defects, higher costs, and customer dissatisfaction.

  6. 6.How can control charts be used to improve process efficiency?Application

    Control charts can be used to improve process efficiency by providing a visual representation of process performance over time. They help in identifying trends, shifts, and variations that may indicate inefficiencies. By analyzing control charts, manufacturers can pinpoint areas where improvements are needed, implement changes, and monitor the effects of those changes. This continuous monitoring and improvement cycle leads to more efficient processes and higher quality products.

  7. 7.Calculate the control limits for an X-bar chart given a process mean of 50, a process standard deviation of 5 (individual values), and a sample size of 4.Numerical

    When σ of individual values is known, the X̄ chart limits are μ ± 3σ/√n, because the standard deviation of subgroup means is σ/√n. Here 3 × 5/√4 = 7.5, so UCL = 57.5, CL = 50 and LCL = 42.5. The A₂·R̄ formula is used only when the spread is estimated from subgroup ranges; it is wrong to put σ in place of R̄, because R̄ = d₂·σ (about 2.059σ for n = 4).

  8. 8.What is the role of the central line in a control chart?Concept

    The central line in a control chart represents the average or expected value of the process being monitored. It serves as a reference point to compare the actual process data against. The central line helps in identifying whether the process is operating at its expected level or if there are deviations that need attention. By analyzing the data points in relation to the central line, manufacturers can determine if the process is stable or if corrective actions are needed.

  9. 9.Explain how a Pareto chart can be used in conjunction with control charts.Application

    A Pareto chart is a bar graph that represents the frequency or impact of problems in a process. It is based on the Pareto principle, which states that a small number of causes often account for a large portion of the problems. When used with control charts, Pareto charts help in identifying the most significant issues affecting process quality. By focusing on these key issues, manufacturers can prioritize improvements and achieve more effective quality control.

  10. 10.Given a process with a mean of 100 and a standard deviation of 10, calculate the process capability index (Cpk) if the specification limits are 80 and 120.Numerical

    The process capability index (Cpk) is calculated using the formula: Cpk = min((USL - μ) / (3σ), (μ - LSL) / (3σ)), where USL is the upper specification limit, LSL is the lower specification limit, μ is the process mean, and σ is the standard deviation. For this process, Cpk = min((120 - 100) / (3 * 10), (100 - 80) / (3 * 10)) = min(0.67, 0.67) = 0.67. A Cpk of 0.67 indicates that the process is not capable of meeting the specification limits consistently.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?