Vijay_Wiki
/ Maths for engineers / Statistics for test data

Statistics for Test Data: Mean, Scatter, Confidence Intervals and Linear Regression

K Vijay Anand · Vijay_Wiki quick-reference article · 24 November 2026
StatisticsRegressionConfidence intervalsTest data

Test data is noisy. Before concluding that a temperature rose or a vibration trend is real, you need to know how much scatter to expect and how confident you can be in a mean or a slope. A handful of statistical tools, used correctly, separate real changes from noise and prevent both false alarms and missed trends.

Key takeaways

  • Standard deviation s describes scatter of readings; the standard error s/√n describes uncertainty of the mean.
  • 95 % confidence interval of a mean: x̄ ± t0.975,n−1·s/√n (t ≈ 2.0 for large n, larger for small n).
  • Linear regression gives slope and intercept; report the slope with its standard error or confidence interval, not just R².
  • A trend is statistically significant at 95 % if the slope's confidence interval does not include zero.
  • Always plot residuals: curvature, outliers and changing scatter break the assumptions.

1. Describing repeated readings

Mean x̄ = Σx/n s = √[Σ(x − x̄)²/(n − 1)] Standard error SE = s/√n 95 % CI of mean: x̄ ± t(0.975, n−1)·s/√n
n − 1123456810152030∞
t (95 %, two-sided)12.714.303.182.782.572.452.312.232.132.092.041.96

2. Linear regression

Slope b = Σ(x − x̄)(y − ȳ)/Σ(x − x̄)² Intercept a = ȳ − b·x̄ Residual std error s_e = √[Σ(y − ŷ)²/(n − 2)] SE(b) = s_e/√Σ(x − x̄)² 95 % CI of slope: b ± t(0.975, n−2)·SE(b) R² = 1 − Σ(y − ŷ)²/Σ(y − ȳ)²
0.911.11.21.31.40100200300400500600700800900running hoursvibration (mm/s)fit: y = 0.976 + 0.398·x/1000
Figure 1. Vibration trend over 800 running hours with least-squares fit.
ResultValue
Slope0.398 mm/s per 1000 h
95 % CI of slope0.349 to 0.446 per 1000 h
R²0.985
ConclusionRising trend is significant (CI excludes zero)

3. Cautions

4. Calculators

Mean, confidence interval and linear regression

Enter x,y pairs separated by spaces, e.g. 100,1.02 200,1.05 … (for a mean only, use any x values).

5. Self-test: check your understanding

Pick an answer to see the explanation. Numerical answers are accepted within the stated tolerance (±3 % unless noted).

Score

6. References and further reading

  1. Montgomery, D. C. and Runger, G. C., Applied Statistics and Probability for Engineers, 7th ed., Wiley, 2018.
  2. NIST/SEMATECH e-Handbook of Statistical Methods.
  3. Draper, N. R. and Smith, H., Applied Regression Analysis, 3rd ed., Wiley, 1998.

Web pages

Disclaimer

This article is for education and quick reference. Formulas are simplified first estimates and examples use typical data. For design, safety and maintenance decisions use manufacturers' data and the applicable standards.

Related Vijay_Wiki articles