Statistics for engineers: the tools you will actually use
Engineers do not need all of statistics. Most day-to-day work in a plant or lab comes down to seven questions: what do my data look like, is the process stable, can it meet the specification, can I trust the measurement, did a change make a difference, what drives the output, and which settings are best. Each question has a standard tool: descriptive statistics, control charts, capability analysis, measurement system analysis, hypothesis tests, regression and design of experiments. This guide is a map of those tools, the order in which they usually come, and where to learn each one.
The map
| Question | Tool | Start here |
|---|---|---|
| What do the data look like? | Descriptive statistics and graphs | Descriptive statistics, histogram |
| Is the process stable over time? | Control charts | What is SPC?, choosing a control chart |
| Can it meet the specification? | Capability analysis | Process capability explained |
| Can I trust the measurements? | Measurement system analysis | MSA explained |
| Did a change make a difference? | Hypothesis tests and confidence intervals | Hypothesis testing explained |
| What drives the output? | Correlation and regression | Regression analysis |
| Which settings are best? | Design of experiments | DOE explained |
The order matters more than it looks. A capability index from an unstable process predicts nothing, and a test on data from a poor gage mostly measures the gage. A sound sequence is: look at the data, check the measurement, check stability, then judge capability, and only then start testing changes and modeling causes.
1. Describe the data
Before any analysis, look. Descriptive statistics give the center (mean, median), the spread (standard deviation, range, quartiles) and the count, including how many values are missing. A histogram or boxplot shows the shape: one peak or two, a long tail, a few values far from the rest. A time series plot or run chart shows the order, which a histogram hides.
Three things to check every time: values typed in the wrong units or with a misplaced decimal, measurements recorded too coarsely to show the variation (see the chunky-data check), and groups mixed together that should be separate, such as two machines or two cavities.
2. Is the process stable? Control charts
A process is stable, or in statistical control, when its variation comes only from the many small common causes that are always present. A control chart plots the data in time order with limits at about three standard deviations of that routine variation. Points outside the limits, or patterns such as nine points in a row on one side of the center line, signal a special cause worth finding. The special-cause tests article lists all eight standard rules.
Which chart depends on the data: an I-MR chart for single measurements, an Xbar-R chart for small subgroups, a P chart for the fraction defective, a C chart for defect counts. Choosing a control chart walks through the decision.
3. Can it meet the specification? Capability
Control limits describe what the process does; specification limits describe what the customer needs. Capability analysis compares the two. Cp and Cpk use the short-term, within-subgroup standard deviation; Pp and Ppk use the overall standard deviation. Cp ignores where the process is centered; Cpk does not. Capability only means something for a stable process, which is why it comes after the control chart. For data that are clearly not normal, see nonnormal capability.
4. Can you trust the measurements? MSA
Every measurement is the part's true value plus measurement error. A gage R&R study splits the observed variation into the part-to-part share and the share due to the gage and the people using it (repeatability and reproducibility). If the gage takes up a large share of the tolerance or of the process variation, fix the measurement before you chart, judge capability or run tests. MSA explained covers the study types, including linearity and bias and attribute agreement for pass/fail inspection.
5. Did a change make a difference? Tests and intervals
New supplier, new tool, new setting: did the average move, did the spread shrink? A hypothesis test tells you whether the difference you saw is larger than chance alone would easily produce, and a confidence interval tells you how large the difference plausibly is. The p-value is the probability of seeing a difference at least that large if nothing had really changed. To pick the right test, such as a two-sample t-test, a paired t-test or a one-way ANOVA, see which hypothesis test to use. To decide how much data to collect, see how many samples.
6. What drives the output? Correlation and regression
When an output varies with an input you can measure, such as hardness with furnace temperature or torque with thread length, a scatterplot shows the relationship and correlation puts a number on its strength. Regression gives an equation to predict the output and to set the input's tolerance. Correlation in historical data is a clue, not proof: the input may move together with something else that is the real cause.
7. Which settings are best? Design of experiments
Changing one factor at a time is slow and misses interactions, where the best setting of one factor depends on another. Design of experiments changes several factors together in a planned pattern, so each run informs every factor. A factorial design is the usual start; a screening design narrows down many factors; a response surface design finds an optimum. When many suspects and little data are the problem, dominant-cause search offers a different route.
Worked example: ground pins
A grinding cell makes pins with a diameter of 12.000 ± 0.015 mm, so the limits are 11.985 and 12.015 mm. The new process engineer has 20 consecutive pins, measured in mm with a gage that reads to 0.001 mm, and wants to know where the process stands.
| Pins 1–5 | Pins 6–10 | Pins 11–15 | Pins 16–20 |
|---|---|---|---|
| 12.004 | 11.998 | 12.007 | 12.008 |
| 12.006 | 12.004 | 12.006 | 11.996 |
| 12.002 | 12.012 | 12.005 | 12.001 |
| 11.999 | 12.001 | 11.998 | 11.993 |
| 12.001 | 12.000 | 12.004 | 11.996 |
Step 1, describe. The mean is 12.00205 mm and the sample standard deviation is 0.00467 mm. The quartiles, at rank (n + 1)p of the sorted data, are 11.99825, 12.00150 (the median) and 12.00575 mm. The range runs from 11.993 to 12.012 mm. Mean and median agree, so there is no sign of a long tail.
Step 2, check stability. For single measurements, an individuals chart estimates the short-term σ from the average moving range, the mean absolute difference between consecutive pins:
σ̂ = MR̄ / d₂ = 0.0049474 / 1.128 = 0.0043860 mm
UCL = x̄ + 3σ̂ = 12.00205 + 3 × 0.0043860 = 12.01521 mm
LCL = x̄ − 3σ̂ = 12.00205 − 3 × 0.0043860 = 11.98889 mmAll 20 points are inside the limits, and none of the eight special-cause tests is triggered. The largest moving range, 0.012 mm, is below its upper limit of 3.267 × 0.0049474 = 0.0162 mm. Twenty points are a short history, but there is no evidence of instability.
Step 3, judge capability. With the within σ̂ of 0.0043860 mm:
Cp = (USL − LSL) / 6σ̂ = 0.030 / 0.026316 = 1.14
Cpk = min(USL − x̄, x̄ − LSL) / 3σ̂ = min(0.01295, 0.01705) / 0.013158 = 0.98With the overall standard deviation, 0.00467 mm, Pp = 1.07 and Ppk = 0.92. Cpk is lower than Cp because the mean sits 0.002 mm above nominal, closer to the upper limit. Centering the process would lift Cpk toward 1.14 without any other change.
Step 4, question the gage. If the gage's own repeatability were σ = 0.002 mm, it would account for (0.002 / 0.0043860)² = 21% of the observed variance, and the pins themselves would vary with σ ≈ 0.0039 mm. A gage R&R study would tell the engineer whether better measurement alone would raise the indices.
Step 5, test the fix. After an offset correction, a new sample would show whether the mean moved toward 12.000 mm, with a one-sample t-test against the nominal and a confidence interval for the new mean.
Five tools, one short data set, and a clear plan: center the process, check the gage, and confirm with data.
Supporting tools worth knowing
- Pareto chart: rank defect types or downtime causes, to work on the biggest first.
- Cause-and-effect diagram: organize possible causes before collecting data.
- Normality test and probability plot: check the shape that capability and many tests assume.
- Tolerance intervals: a range that covers a stated share of individual parts, not just the mean.
- The normal distribution: the model behind control limits, capability and parts per million.
- Data tools such as stack columns and the calculator: put the data in the layout an analysis needs.
Frequently asked questions
Which statistics should an engineer learn first?
Descriptive statistics, control charts and capability, in that order. They answer the most common questions in production and teach the ideas everything else builds on: center, spread, and the difference between routine and unusual variation.
Do I need a lot of data?
Less than many people think, but enough for the question. Twenty to twenty-five subgroups or individual values give usable control limits. Comparing two settings may need only ten parts each if the difference is large compared with the noise. See how many samples for the calculation.
Why does the standard deviation on my control chart differ from the one in my summary?
The control chart uses the short-term, within variation (here MR̄/1.128 = 0.00439 mm), while the summary uses all the data at once (0.00467 mm). If the process drifts, the overall value is larger. That difference is also the gap between Cpk and Ppk.
Is a small p-value proof that my change worked?
No. It says the difference is unlikely to be chance alone. Whether the change caused it depends on how the data were collected, and whether it matters depends on its size. Read the p-value guide and report a confidence interval alongside the test.