Engineering Data Analysis
Lecture 7: Statistical Intervals — Large Formula Edition
1. Two-Sided Confidence Interval on the Mean (µ) with KNOWN Variance (σ 2 )
Formula:
CI = x̄ ± zα/2
σ
√
n
Short Concept: Creates a range that likely contains the true population mean based on a sample mean, using the
standard normal (Z) distribution because the population’s exact variance is already known.
How to Use: 1. Identify your sample mean (x̄), sample size (n), and known population standard deviation (σ). 2.
Find your significance level α = 1 − Confidence Level. 3. Look up the two-tailed critical value zα/2 from your Z-table
(e.g., 1.960 for 95% confidence). 4. Compute lower and upper bounds.
Keywords to look for: “Construct a [95%/99%] confidence interval”, “Assume population standard
deviation/variance is known”.
2. Sample Size (n) for a Specified Error on the Mean
Formula:
n=
α/2 · σ
z
2
E
Short Concept: Calculates exactly how many individual items or specimens you must test to ensure your sample
estimate stays within a strict maximum allowable margin of error (E).
How to Use: 1. If given the total interval length, divide by 2 to get E = length/2. 2. Plug in known σ and critical
zα/2 . 3. Square the result. Always round UP to the nearest whole integer (e.g., 15.1 → 16).
Keywords: “How many specimens must be tested”, “Error will not exceed...”, “length of at most...”.
3. One-Sided Confidence Bounds on the Mean
Formulas:
Upper Bound = x̄ + zα
σ
√
n
Lower Bound = x̄ − zα
σ
√
n
Short Concept: Establishes a strict maximum ceiling or minimum floor for the population mean, placing all of your
uncertainty (α) into just one tail of the distribution.
How to Use: Identical to the two-sided calculation, except you look up zα (one-tail) instead of zα/2 . For example, a
95% one-sided interval uses z0.05 = 1.645.
Keywords to look for: “Construct a lower, one-sided...”, “Construct an upper confidence bound”, “at
least”, “at most”.
4. Confidence Interval on the Mean (µ) with UNKNOWN Variance (σ 2 )
Formula:
CI = x̄ ± tα/2, n−1
s
√
n
Short Concept: Substitutes unknown population variance with sample variance (s), forcing the use of Student’s
t-distribution with n − 1 degrees of freedom to account for extra estimation uncertainty.
How to Use: 1. Compute sample mean (x̄) and sample standard deviation (s). 2. Calculate degrees of freedom:
df = n − 1. 3. Look up tα/2 from table. 4. Complete calculation.
Keywords: “sample standard deviation is...”, “unknown population variance”, “we found s = . . . ”.
5. Confidence Interval on a Population Proportion (p)
Formula:
r
CI = p̂ ± zα/2
p̂(1 − p̂)
n
x
where p̂ =
n
Short Concept: Approximates a binomial percentage range for a large population based on the success/failure ratio
observed in your sample.
How to Use: 1. Calculate p̂ = x/n. 2. Ensure np̂ ≥ 5 and n(1 − p̂) ≥ 5 to validate normal approximation condition.
3. Plug p̂, n, and standard zα/2 score into formula.
When to Use: Use this when your data counts categorical attributes (yes/no, pass/fail, defective/non-defective)
instead of continuous variables.
Keywords to look for: “Point estimator for the proportion”, “defective items”, “fraction of ”, “percentage of bearings”.
6. Sample Size (n) for a Specified Error on a Proportion
Formula:
n=
z
α/2
E
2
p(1 − p)
Note: If p is completely unknown, maximize it by setting p = 0.5, reducing the final term to 0.25.
How to Use: Identify allowable error E. If a prior estimate of p is available, use it. If no historical value is mentioned,
default p(1 − p) to 0.25. Always round up the final calculation to the next whole number.
Keywords: “How large a sample is required if error is less than [0.05]”, “confidence on proportion
within error”.
7. Tolerance Interval
Formula:
Interval = x̄ ± ks
Short Concept: Establishes a range that will capture a specific minimum percentage (γ%) of all individual measurements across the entire underlying population, rather than just locating the single average parameter center.
How to Use: 1. Extract x̄ and s from your sample data. 2. Look up tolerance factor k from Appendix Table XII
using sample size n, desired population proportion γ, and confidence level. 3. Calculate bounds.
When to Use: When engineering design limits require capturing a concrete proportion of total continuous factory
output.
Keywords to look for: “Find a tolerance interval”, “includes [90%] of the values in the population”,
“capturing at least γ% of values”.
8. Prediction Interval (PI)]
Formula:
r
PI = x̄ ± tα/2, n−1 · s
1+
1
n
Short Concept: Determines a bound that predicts exactly where the very next single future observation will land
based on your current sample profile, adding variance compensation for an individual point.
How to Use: Use sample stats (x̄, s, n), look up standard tα/2 score at n − 1 degrees of freedom, and apply the extra
p
point adjustment factor 1 + 1/n inside the error term.
Keywords: “If we plan to test a [23rd] specimen”, “prediction interval on a single future observation”,
“predict the next value”.