Statistics

Statistics for Trades and Quality Control

Last updated: March 2026 · Intermediate
Before you start

You should be comfortable with:

Real-world applications
⚡
Electrical

Voltage drop, wire sizing, load balancing

📐
Carpentry

Measurements, material estimation, cutting calculations

In trades and manufacturing, statistics is how you maintain quality — ensuring parts are within tolerance, processes are stable, and defects are caught before they become costly. Whether you are a machinist holding a part to a thousandth of an inch, an electrician verifying voltage consistency, or a carpenter ensuring cut lumber meets spec, the principles of statistical quality control apply to your work.

This page connects the ideas from Mean, Median, and Mode and Range and Standard Deviation to practical quality control in the trades.

Measurement and Tolerances

Every manufactured part has a nominal value (the target dimension) and a tolerance (the acceptable range of variation around that target).

Acceptable range=Nominal value±Tolerance\text{Acceptable range} = \text{Nominal value} \pm \text{Tolerance}

For example, a shaft specified as 2.500±0.0052.500 \pm 0.005 inches has:

  • Nominal value: 2.500 inches
  • Upper specification limit (USL): 2.505 inches
  • Lower specification limit (LSL): 2.495 inches
  • Total tolerance band: 2×0.005=0.0102 \times 0.005 = 0.010 inches

Parts within the tolerance band are acceptable. Parts outside are rejected or reworked. Tighter tolerances cost more because they demand more precise equipment and slower production — so the goal is to set tolerances that are tight enough for function but not tighter than necessary.

Tolerance Stack-Up

When multiple parts are assembled together, their individual variations accumulate. If three parts each have a tolerance of ±0.005\pm 0.005, the total stack-up in the worst case is:

Worst-case stack-up=3×0.005=0.015 inches\text{Worst-case stack-up} = 3 \times 0.005 = 0.015 \text{ inches}

A more realistic estimate uses the statistical stack-up (root sum of squares), which assumes the variations are independent and random:

Statistical stack-up=0.0052+0.0052+0.0052=3×0.000025=0.000075≈0.00866 inches\text{Statistical stack-up} = \sqrt{0.005^2 + 0.005^2 + 0.005^2} = \sqrt{3 \times 0.000025} = \sqrt{0.000075} \approx 0.00866 \text{ inches}

The statistical method gives a smaller (and more realistic) value because it is unlikely that all three parts are simultaneously at their worst-case limits.

Understanding Process Variation

Every process produces variation. The critical distinction is between two types:

Common cause variation is the natural, random variability inherent to the process. It comes from many small, unpredictable sources — slight material differences, normal tool wear, ambient temperature changes. It is always present and produces a stable, predictable pattern.

Special cause variation is unusual, assignable variability caused by something specific — a worn cutting tool, a bad batch of material, a new operator, or a machine out of alignment. It produces unexpected shifts or patterns in the data.

The goal of statistical process control (SPC) is to:

  1. Eliminate special cause variation by identifying and fixing the assignable cause
  2. Reduce common cause variation by improving the process itself (better equipment, better materials, better training)

A process with only common cause variation is said to be in statistical control — it is stable and predictable, even though it still has some natural variation.

Control Charts (X-bar and R Charts)

A control chart is a time-series graph that plots a quality measurement over time, with three reference lines:

  • Center line (CL): the process mean (or mean of sample means)
  • Upper control limit (UCL): CL + 3 standard deviations
  • Lower control limit (LCL): CL - 3 standard deviations

Control limits are set at ±3σ\pm 3\sigma because, for a normal distribution, 99.73% of data falls within 3 standard deviations of the mean. A point outside the control limits is extremely unlikely to occur by chance alone — it signals a special cause.

The two most common control charts used together are:

  • X-bar chart: plots the mean of each sample (tracks the process center)
  • R chart: plots the range of each sample (tracks the process spread)

Example 1: X-bar Chart for Machined Parts

A machinist measures 5 parts every hour. Over 10 hours, the hourly sample means are:

Hour12345678910
Mean (in.)2.5012.4992.5022.4982.5032.5002.4972.5042.5012.499

Step 1 — Calculate the grand mean (x-double-bar).

xˉˉ=2.501+2.499+2.502+2.498+2.503+2.500+2.497+2.504+2.501+2.49910\bar{\bar{x}} = \frac{2.501 + 2.499 + 2.502 + 2.498 + 2.503 + 2.500 + 2.497 + 2.504 + 2.501 + 2.499}{10}

xˉˉ=25.00410=2.5004\bar{\bar{x}} = \frac{25.004}{10} = 2.5004

Step 2 — Check against control limits.

If the control limits for this process are UCL = 2.505 and LCL = 2.495:

  • Every sample mean falls between 2.495 and 2.505
  • No sample mean is outside the control limits
  • No obvious patterns (no runs of 7+ on one side, no trending)

Conclusion: The process is in statistical control. The variation we see is normal common cause variation.

Out-of-Control Signals

A process is flagged as out of control when the control chart shows any of these patterns:

  1. One point beyond the control limits — the most obvious signal
  2. Seven or more consecutive points on one side of the center line (a “run”) — suggests the process mean has shifted
  3. Seven or more consecutive points trending in one direction (steadily increasing or decreasing) — suggests drift, such as tool wear
  4. Alternating pattern — points consistently alternating above and below the center line, suggesting two different processes are being mixed (e.g., two machines, two shifts)

When an out-of-control signal appears, stop the process, investigate, and identify the special cause before continuing production.

Process Capability

While control charts tell you whether a process is stable, process capability tells you whether it is good enough to meet specifications. A process can be in statistical control but still produce parts outside the tolerance.

The process capability index (CpC_p) compares the specification width to the natural process spread:

Cp=USL−LSL6σC_p = \frac{USL - LSL}{6\sigma}

where σ\sigma is the process standard deviation.

CpC_p ValueInterpretation
Less than 1.0Not capable — process spread exceeds tolerance
1.0 — 1.33Marginally capable — needs monitoring
1.33 or higherCapable — process easily fits within tolerance
2.0 or higherHighly capable — Six Sigma level

Example 2: Process Capability for Shaft Diameter

A shaft is specified as 2.500±0.0102.500 \pm 0.010 inches (USL = 2.510, LSL = 2.490). The process standard deviation is σ=0.003\sigma = 0.003 inches.

Cp=USL−LSL6σ=2.510−2.4906×0.003=0.0200.018≈1.111C_p = \frac{USL - LSL}{6\sigma} = \frac{2.510 - 2.490}{6 \times 0.003} = \frac{0.020}{0.018} \approx 1.111

Since Cp=1.111C_p = 1.111 is less than 1.33, the process is not fully capable. The natural variation (6σ=0.0186\sigma = 0.018) nearly fills the entire tolerance band (0.0200.020), leaving very little margin. Options to improve capability include reducing variation (better tooling, better fixturing) or widening the tolerance (if the design allows).

Note: CpC_p assumes the process is centered. A related index, CpkC_{pk}, accounts for a process that is off-center:

Cpk=min⁡ ⁣(USL−xˉ3σ,  xˉ−LSL3σ)C_{pk} = \min\!\left(\frac{USL - \bar{x}}{3\sigma},\; \frac{\bar{x} - LSL}{3\sigma}\right)

Using Averages for Quality Decisions

When inspecting quality data, the choice between mean and median matters:

  • Use the mean when the data is roughly symmetric and there are no extreme outliers — this gives the best estimate of the true process center
  • Use the median when data is skewed or contains outliers — for example, if one measurement was clearly an error (a part measured at 2.600 instead of 2.500), the median will not be distorted while the mean will be pulled far from the true center

In practice, most SPC charts use the mean because sample sizes are small (typically 3—5 parts per sample) and extreme outliers are investigated and removed.

Real-World Application: Electrician — Voltage Consistency Monitoring

An electrician checks voltage at 10 outlets in a commercial building. The readings (in volts) are:

120.1,  119.8,  120.3,  119.5,  120.0,  120.2,  119.7,  120.4,  119.9,  120.1120.1, \; 119.8, \; 120.3, \; 119.5, \; 120.0, \; 120.2, \; 119.7, \; 120.4, \; 119.9, \; 120.1

Step 1 — Calculate the mean.

xˉ=120.1+119.8+120.3+119.5+120.0+120.2+119.7+120.4+119.9+120.110=1200.010=120.00 V\bar{x} = \frac{120.1 + 119.8 + 120.3 + 119.5 + 120.0 + 120.2 + 119.7 + 120.4 + 119.9 + 120.1}{10} = \frac{1200.0}{10} = 120.00 \text{ V}

Step 2 — Calculate the range.

Range=120.4−119.5=0.9 V\text{Range} = 120.4 - 119.5 = 0.9 \text{ V}

Step 3 — Assess against standards.

The National Electrical Code allows ±5%\pm 5\% of nominal voltage (120 V), so the acceptable range is 114 — 126 V. All readings are well within this range, and the tight spread (0.9 V range) suggests the electrical system is stable. If future readings showed a sudden increase in spread or a shift in the mean, that would signal a wiring issue, a failing transformer, or an overloaded circuit.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: A bolt is specified as 0.750 ± 0.003 inches. What are the upper and lower specification limits? If a sample of 20 bolts has a mean of 0.7515 and a standard deviation of 0.001, is the process centered?

USL=0.750+0.003=0.753USL = 0.750 + 0.003 = 0.753

LSL=0.750−0.003=0.747LSL = 0.750 - 0.003 = 0.747

The process mean (0.7515) is above the nominal value (0.750) by 0.0015 inches — it is shifted toward the upper spec limit. While still within tolerance, the process is not centered. The CpkC_{pk} would be lower than CpC_p because of this shift.

Problem 2: A carpenter cuts 8 boards to a target length of 48.0 inches. The measured lengths are: 48.1, 47.9, 48.0, 48.2, 47.8, 48.0, 48.1, 47.9. Calculate the mean and range.

xˉ=48.1+47.9+48.0+48.2+47.8+48.0+48.1+47.98=384.08=48.00 inches\bar{x} = \frac{48.1 + 47.9 + 48.0 + 48.2 + 47.8 + 48.0 + 48.1 + 47.9}{8} = \frac{384.0}{8} = 48.00 \text{ inches}

Range=48.2−47.8=0.4 inches\text{Range} = 48.2 - 47.8 = 0.4 \text{ inches}

Answer: The mean is 48.00 inches (right on target) and the range is 0.4 inches.

Problem 3: A process has USL = 10.0 mm, LSL = 9.0 mm, and process standard deviation σ=0.12\sigma = 0.12 mm. Calculate CpC_p and determine whether the process is capable.

Cp=USL−LSL6σ=10.0−9.06×0.12=1.00.72≈1.389C_p = \frac{USL - LSL}{6\sigma} = \frac{10.0 - 9.0}{6 \times 0.12} = \frac{1.0}{0.72} \approx 1.389

Answer: Cp=1.389C_p = 1.389, which is greater than 1.33. The process is capable — the tolerance band is comfortably wider than the natural process spread.

Problem 4: A control chart shows 8 consecutive sample means all above the center line, but none outside the control limits. Is the process in control? What action should you take?

Answer: The process is out of control. Eight consecutive points on one side of the center line exceeds the “7 in a row” rule, indicating the process mean has shifted upward. Even though no individual point is outside the limits, this pattern is extremely unlikely to occur by chance. You should investigate for a special cause — perhaps a tool adjustment, material change, or environmental shift.

Problem 5: Two parts are assembled together. Part A has tolerance ±0.004\pm 0.004 inches and Part B has tolerance ±0.006\pm 0.006 inches. Calculate both the worst-case and statistical tolerance stack-up.

Worst case:

0.004+0.006=0.010 inches0.004 + 0.006 = 0.010 \text{ inches}

Statistical (root sum of squares):

0.0042+0.0062=0.000016+0.000036=0.000052≈0.00721 inches\sqrt{0.004^2 + 0.006^2} = \sqrt{0.000016 + 0.000036} = \sqrt{0.000052} \approx 0.00721 \text{ inches}

Answer: The worst-case stack-up is 0.010 inches and the statistical stack-up is 0.00721 inches. The statistical method predicts about 28% less total variation because it accounts for the low probability that both parts are simultaneously at their extreme limits.

Key Takeaways

  • Tolerances define the acceptable range of variation: nominal value plus or minus the tolerance
  • Common cause variation is normal and inherent to the process; special cause variation is assignable and must be eliminated
  • Control charts track process stability over time — points outside ±3σ\pm 3\sigma limits or patterns like 7-in-a-row signal an out-of-control condition
  • Process capability (CpC_p) compares tolerance width to process spread — a CpC_p of 1.33 or higher is the standard target
  • Statistical stack-up (root sum of squares) gives a more realistic estimate of combined tolerances than worst-case addition

Return to Statistics for more topics in this section.

Last updated: March 29, 2026