Statistical quality control and control charts
Common vs assignable causes, X̄–R and attribute (p, np, c, u) control charts, rational subgrouping, and process capability Cp and Cpk, with worked 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
No machine makes two identical parts. Statistical quality control (SQC) tells you whether the variation you see is the normal "noise" of a stable process or a signal that something has changed — a worn tool, a new batch of material — so you adjust only when you should. Capability indices then tell you whether a stable process can actually hold the drawing tolerance.
Key ideas
- Two kinds of variation.
- Common (chance, random) causes — many small, always-present effects; a process with only these is in statistical control and predictable.
- Assignable (special) causes — identifiable events such as tool wear, a wrong setting or a bad material lot. Control charts are designed to detect these.
- Control chart logic. Plot a sample statistic over time with a centre line (CL) and control limits at ±3 standard errors of that statistic. For a normal statistic, 99.73% of points fall inside when the process is in control, so a false alarm happens about 3 times in 1,000 samples. A point outside the limits, or a non-random pattern (a run of about 7–8 points on one side of CL, a steady trend, cycles), signals an assignable cause.
- Control limits are not specification limits. Control limits come from the process data and describe what the process does; specification (tolerance) limits come from the design and describe what the customer needs. A process can be in control and still make defective parts.
- Rational subgroups. Take small samples (often n = 4–5) of consecutive parts so variation within a sample is only common-cause; differences between samples then reveal shifts. Typically 20–25 subgroups are used to set trial limits.
- Charts for variables (measured data).
- X̄ chart — monitors the process mean (centring).
- R chart — monitors spread using the range; used for small n. An S chart uses the sample standard deviation for larger n.
- Always read the R chart first: X̄ limits depend on R̄, so they are meaningless if spread is out of control.
- By the central limit theorem, sample means are close to normal even if individual values are not, and their standard deviation is σ/√n.
- Charts for attributes (counted data).
- p chart — fraction defective; works with constant or varying sample size.
- np chart — number of defectives; constant sample size only.
- c chart — number of defects per unit (one unit or a constant inspection area), based on the Poisson distribution.
- u chart — defects per unit when the inspected amount varies.
- Note the difference: a defective is a rejected item; a defect is a single non-conformity, and one item may have several.
- Process capability. For a stable process with normal output, the natural spread is 6σ. Cp compares the tolerance width with 6σ (potential capability, ignores centring). Cpk uses the distance from the mean to the nearer specification limit (actual capability). Cpk ≤ Cp, with equality only when the process is centred. Cp < 1 means defects even when centred; Cp ≈ 1.33 or more is a common industrial minimum (customer requirements vary).
- Acceptance sampling (link). Accepting or rejecting lots from samples, described by an operating-characteristic (OC) curve, producer's risk α and consumer's risk β, is the inspection side of SQC; control charts are the process side.
Formulas
- Standard error of the mean:
σ_x̄ = σ / √n - X̄ chart (from R̄):
CL = X̿,UCL = X̿ + A₂·R̄,LCL = X̿ − A₂·R̄ - R chart:
CL = R̄,UCL = D₄·R̄,LCL = D₃·R̄ - Estimate of process σ:
σ̂ = R̄ / d₂- X̿ = grand mean of subgroup means (mm); R̄ = mean subgroup range (mm); n = subgroup size; A₂, D₃, D₄, d₂ = factors from the SQC constants table for that n (for n = 5: A₂ = 0.577, D₃ = 0, D₄ = 2.114, d₂ = 2.326).
- X̄ chart with known σ:
UCL, LCL = μ ± 3σ/√n - p chart:
CL = p̄,UCL, LCL = p̄ ± 3·√(p̄(1 − p̄)/n) - np chart:
CL = n·p̄,UCL, LCL = n·p̄ ± 3·√(n·p̄(1 − p̄)) - c chart:
CL = c̄,UCL, LCL = c̄ ± 3·√c̄ - u chart:
CL = ū,UCL, LCL = ū ± 3·√(ū/n)- A negative LCL is set to zero for all attribute charts.
- Capability:
Cp = (USL − LSL) / (6σ) Cpk = min[(USL − μ) / (3σ), (μ − LSL) / (3σ)]- USL, LSL = upper and lower specification limits; μ = process mean; σ = process standard deviation (all in the same unit, e.g. mm).
Worked examples
Example 1 (standard): X̄ and R charts and capability Twenty subgroups of n = 5 shaft diameters give X̿ = 25.02 mm and R̄ = 0.05 mm. Specification 24.95 to 25.10 mm. For n = 5: A₂ = 0.577, D₃ = 0, D₄ = 2.114, d₂ = 2.326.
- X̄ chart: UCL = 25.02 + 0.577 × 0.05 = 25.02 + 0.0289 = 25.049 mm; LCL = 25.02 − 0.0289 = 24.991 mm.
- R chart: UCL = 2.114 × 0.05 = 0.106 mm; LCL = 0 × 0.05 = 0 mm.
- σ̂ = R̄/d₂ = 0.05/2.326 = 0.0215 mm; 6σ̂ = 0.129 mm.
- Cp = (25.10 − 24.95)/0.129 = 0.15/0.129 = 1.16.
- Cpk = min[(25.10 − 25.02)/(3 × 0.0215), (25.02 − 24.95)/(3 × 0.0215)] = min[0.08/0.0645, 0.07/0.0645] = min[1.24, 1.09] = 1.09. Answer: X̄ limits 24.991–25.049 mm, R limits 0–0.106 mm; Cp = 1.16, Cpk = 1.09 — capable but slightly off-centre toward the LSL; below a 1.33 target.
Example 2 (GATE level): attribute charts (a) Samples of n = 200 bearings each give an average fraction defective p̄ = 0.04.
- σ_p = √(0.04 × 0.96/200) = √0.000192 = 0.01386.
- p chart: UCL = 0.04 + 3 × 0.01386 = 0.0816; LCL = 0.04 − 0.0416 < 0 → 0.
- Equivalent np chart: CL = 200 × 0.04 = 8 defectives; UCL = 8 + 3√(200 × 0.04 × 0.96) = 8 + 3 × 2.771 = 16.31; LCL = 0.
- A sample with 18 defectives (p = 0.09) is above both UCLs → look for an assignable cause. (b) Painted panels show on average c̄ = 9 defects per panel.
- c chart: UCL = 9 + 3√9 = 18 defects; LCL = 9 − 9 = 0. Answer: p chart 0–0.0816 (CL 0.04); np chart 0–16.3 defectives (CL 8); c chart 0–18 defects per panel (CL 9).
Common mistakes
- Confusing control limits with specification limits, or putting tolerance limits on an X̄ chart.
- Using σ instead of σ/√n for the X̄ chart limits.
- Using the c chart for defectives or the np chart for defects.
- Leaving a negative LCL on an attribute chart instead of setting it to zero.
- Reporting Cp for an off-centre process and calling it capable; check Cpk.
- Computing capability from data that are not in statistical control.
- Picking A₂, D₄ or d₂ for the wrong subgroup size; take them from your SQC table for the actual n.
For GATE ME
Expect control-limit calculations for X̄–R, p, np and c charts (constants are given when needed), questions on which chart suits which data, Cp and Cpk numericals including the effect of shifting the mean, interpretation of patterns and out-of-control points, and the meaning of 3σ limits (99.73%). Acceptance-sampling basics (OC curve, α and β) can also appear. Practise quick square-root arithmetic and setting negative LCLs to zero.
Quick check
- c̄ = 4 defects per unit. Find the UCL of the c chart.
- USL = 50 mm, LSL = 30 mm, σ = 2 mm. Find Cp.
- In Q2 the mean is 44 mm. Find Cpk.
- Which chart would you use for the number of scratches on each car door?
- What fraction of points falls inside 3σ limits for an in-control normal process?
Answers: 1. 4 + 3 × 2 = 10. 2. 20/12 = 1.67. 3. min(6/6, 14/6) = 1.0. 4. c chart. 5. 99.73%.
Interview questions
All Metrology, CIM and Industrial Engineering interview questionsTry answering each one aloud before you open it.
1.What is statistical quality control (SQC)?Concept
Statistical quality control (SQC) is a method used in manufacturing and service industries to ensure that the quality of products or services meets certain standards. It involves using statistical methods to monitor and control a process. By analyzing data from the production process, SQC helps identify variations and defects, allowing for corrective actions to be taken to maintain quality.
2.Explain the purpose of control charts in quality control.Concept
Control charts are used in quality control to monitor the stability of a process over time. They help in identifying any variations that may indicate a problem with the process. By plotting data points on a chart with control limits, it becomes easier to see trends, shifts, or any unusual patterns that may require investigation. Control charts are essential for maintaining consistent quality and improving processes.
3.What are the differences between a p-chart and an np-chart?Concept
A p-chart is used to monitor the proportion of defective items in a process, while an np-chart is used to monitor the number of defective items. The p-chart is suitable when the sample size varies, as it plots the proportion of defects, whereas the np-chart is used when the sample size is constant, plotting the actual count of defects. Both charts help in identifying variations in quality over time.
4.Why is the Central Limit Theorem important in statistical quality control?Application
The Central Limit Theorem is important in statistical quality control because it allows us to assume that the distribution of sample means will be approximately normal, even if the underlying data is not normally distributed. This is crucial for constructing control charts and making inferences about the process. It enables the use of statistical methods that rely on normal distribution, facilitating more accurate monitoring and control of quality.
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. Corrective actions must be taken to bring the process back into control, such as adjusting machinery, retraining staff, or modifying procedures. Continuous monitoring is necessary to ensure the process remains stable.
6.How can control charts be used to improve a manufacturing process?Application
Control charts can be used to improve a manufacturing process by providing a visual representation of process stability over time. By identifying trends, shifts, or unusual patterns, they help in pinpointing areas where improvements are needed. Continuous monitoring with control charts allows for timely interventions, reducing defects and variability. This leads to more consistent quality, increased efficiency, and cost savings.
7.Calculate 3-sigma control limits for an X̄ chart if the process mean is 50 mm, the process standard deviation is 5 mm and the subgroup size is n = 25.Numerical
The standard deviation of subgroup means is σ/√n = 5/√25 = 1 mm. With 3-sigma limits, UCL = 50 + 3 × 1 = 53 mm and LCL = 50 − 3 × 1 = 47 mm, with the centre line at 50 mm. About 99.73% of subgroup means fall inside these limits when the process is in control.
8.What is the role of the process capability index Cpk in quality control?Concept
Cpk measures how well a stable process actually meets its specification, taking centring into account: Cpk = min[(USL − μ)/3σ, (μ − LSL)/3σ]. Unlike Cp, which only compares the tolerance width with the 6σ process spread, Cpk drops when the mean drifts toward one limit, so Cpk ≤ Cp. Cpk ≥ 1 means the nearer limit is at least 3σ from the mean; many customers ask for 1.33 or more. It is only meaningful for a process that is in statistical control.
9.Explain how a Pareto chart can be used in quality control.Application
A Pareto chart is used in quality control to identify the most significant factors contributing to a problem. It is based on the Pareto principle, which states that a small number of causes often account for a large portion of the effect. By displaying the frequency of defects or issues in descending order, a Pareto chart helps prioritize areas for improvement, focusing efforts on the most impactful problems.
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
Cpk is calculated using the formula: Cpk = min((USL - mean) / (3σ), (mean - LSL) / (3σ)). Here, USL = 120, LSL = 80, mean = 100, and σ = 10. Cpk = min((120 - 100) / (3 * 10), (100 - 80) / (3 * 10)) = min(20/30, 20/30) = 0.67. Therefore, the Cpk is 0.67, indicating the process is not very capable.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?