Statistics for engineers: the tools you will actually use

Updated

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

QuestionToolStart here
What do the data look like?Descriptive statistics and graphsDescriptive statistics, histogram
Is the process stable over time?Control chartsWhat is SPC?, choosing a control chart
Can it meet the specification?Capability analysisProcess capability explained
Can I trust the measurements?Measurement system analysisMSA explained
Did a change make a difference?Hypothesis tests and confidence intervalsHypothesis testing explained
What drives the output?Correlation and regressionRegression analysis
Which settings are best?Design of experimentsDOE 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–5Pins 6–10Pins 11–15Pins 16–20
12.00411.99812.00712.008
12.00612.00412.00611.996
12.00212.01212.00512.001
11.99912.00111.99811.993
12.00112.00012.00411.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 mm
Individuals chart of pin diameter11.9912.0012.01Diameter (mm)CL=12.002UCL=12.015LCL=11.989135791113151719Pin
Individuals chart of pin diameter

All 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.98

With 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

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.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab