Tolerance intervals: k factors, formula and an example

Updated

A tolerance interval is a range that contains at least a stated proportion of all the individual values of a process, with a stated confidence. For example, "with 95% confidence, at least 99% of heater elements have a resistance between 47.95 and 52.33 Ω". It answers a question about individual parts, which is the question a specification asks. It is wider than the familiar mean ± 3s because it allows for the uncertainty in both the sample mean and the sample standard deviation.

When to use it

  • You want to show, from a sample, that nearly all parts will meet a specification, for example in a validation or a first-article report.
  • You need to set specification limits or acceptance limits from data on a capable, stable process.
  • You have a small sample, so the sample mean and standard deviation are uncertain and mean ± 3s would overstate what you know.
  • A customer asks for a "95/99" statement: 95% confidence that 99% of the population is covered.

How it works

Assume the values come from a normal distribution and the process is stable. With sample size n, mean x̄ and standard deviation s, a two-sided tolerance interval is:

x̄ ± k₂ s

The factor k₂ depends on n, on the proportion P of the population you want to cover, and on the confidence γ. Exact factors need numerical integration. This article uses Howe's approximation, which is simple and very close to exact:

k₂ = √( (n − 1)(1 + 1/n) z² / χ²(1 − γ; n − 1) )

Here z is the standard normal quantile at (1 + P)/2, and χ²(1 − γ; n − 1) is the lower 1 − γ quantile of the chi-square distribution with n − 1 degrees of freedom. For n = 20 the approximation is within about 0.3% of the exact factor; the NIST/SEMATECH e-Handbook describes this and other methods.

Two-sided k₂ from Howe's approximation:

n95% confidence, 95% coverage95% confidence, 99% coverage
103.3824.445
152.9553.883
202.7523.617
302.5503.351
502.3793.126
1002.2332.934

As n grows, k₂ approaches the normal quantile (1.960 for 95% coverage, 2.576 for 99%), because the sample mean and standard deviation become exact.

A one-sided bound (x̄ − k₁s or x̄ + k₁s) uses a different factor, k₁, which comes from the noncentral t distribution. Use it when only one specification limit exists, such as a minimum strength.

Example

A supplier of heater elements must show that at least 99% of its elements fall within the specification of 47.5 to 52.5 Ω, with 95% confidence. A technician measures 20 elements from a stable production run:

Resistance (Ω)
50.349.650.850.149.2
50.551.049.950.249.4
50.750.049.851.350.4
49.750.650.148.950.3

The sample gives x̄ = 50.140 Ω and s = 0.6047 Ω. A normal probability plot is close to a straight line, and an Anderson-Darling test shows no evidence against normality.

For n = 20, P = 0.99 and γ = 0.95: z = 2.5758 and χ²(0.05; 19) = 10.117, so

k₂ = √( 19 × 1.05 × 2.5758² / 10.117 ) = 3.617

The tolerance interval is 50.140 ± 3.617 × 0.6047 = 50.140 ± 2.187, or 47.95 to 52.33 Ω.

Histogram of heater element resistance with specification limits0246FrequencyLSLUSL485052Resistance (Ω)
Histogram of heater element resistance with specification limits

For comparison, from the same data:

IntervalRange (Ω)What it covers
95% confidence interval for the mean49.86 to 50.42The process mean
x̄ ± 3s48.33 to 51.95About 99.7% of values, if x̄ and s were exact
95/95 tolerance interval (k₂ = 2.752)48.48 to 51.80At least 95% of values, 95% confidence
95/99 tolerance interval (k₂ = 3.617)47.95 to 52.33At least 99% of values, 95% confidence

How to read the results

  • The statement passes. The 95/99 interval, 47.95 to 52.33 Ω, lies inside the specification of 47.5 to 52.5 Ω. The supplier can state with 95% confidence that at least 99% of elements are within specification.
  • Read the two percentages separately. 99% is how much of the population the interval covers. 95% is how sure you are that it really covers that much. With a different sample of 20, the interval would move; about 95 samples in 100 would give intervals that cover at least 99% of the process.
  • Do not confuse it with the confidence interval for the mean. That interval (49.86 to 50.42 Ω) is narrow because it only locates the average. Individual elements spread far wider.
  • A small margin calls for more data. The upper end sits only 0.17 Ω inside the limit. With 50 elements instead of 20, k₂ drops to 3.126 and the interval would narrow if s stays the same.

Common mistakes

  • Using mean ± 3s from a small sample. With n = 20, it understates the range needed to cover 99% of parts with confidence. The k factor is there to account for that.
  • Ignoring normality. The normal k factors can be badly wrong for skewed data. Check with a normality test or a probability plot first.
  • Using data from an unstable process. A tolerance interval predicts future parts only if the process stays the same. Check stability with a control chart.
  • Mixing up one-sided and two-sided factors. A one-sided bound uses k₁, which is smaller than k₂ for the same coverage and confidence. Using k₂ for a one-sided requirement is conservative; using k₁ for a two-sided one is wrong.

Frequently asked questions

What is the difference between a tolerance interval and a confidence interval?

A confidence interval estimates a parameter, such as the process mean. A tolerance interval brackets a proportion of the individual values. The confidence interval shrinks toward a point as the sample grows; the tolerance interval shrinks toward the true range that holds that proportion of the population.

What does 95/99 mean?

95% confidence that at least 99% of the population falls inside the interval. Some industries write it the other way round, so always state which number is the confidence and which is the coverage.

Can I compute a tolerance interval without assuming normality?

Yes. A nonparametric tolerance interval uses the smallest and largest values of the sample. It needs more data: to claim with 95% confidence that at least 95% of values lie between the sample minimum and maximum takes 93 values. A one-sided version using only the maximum takes 59 values.

How many samples do I need for a tolerance interval?

It depends on how much margin you have between the process and the specification. See sample size for tolerance intervals to plan it.

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