ReliabilityPro
HomeTools › Regression & Modeling

Linear Regression Calculator

Linear regression fits the straight line that minimises squared vertical distances to your data. In reliability work it underpins degradation analysis, probability plotting and any trend extrapolation — which makes its assumptions worth checking rather than assuming.

Open the Linear Regression tool iOS app Android app

Formula

Slopeb = Σ[(xᵢ − x̄)(yᵢ − ȳ)] / Σ[(xᵢ − x̄)²]
Intercepta = ȳ − b·x̄
Coefficient of determinationR² = 1 − (SS_residual / SS_total)
Standard error of estimateSE = √[ SS_residual / (n − 2) ]

Worked example

Wear depth measured at five intervals: (100, 0.12), (200, 0.21), (300, 0.33), (400, 0.40), (500, 0.52) — hours versus mm.

  1. x̄ = 300, ȳ = 0.316
  2. Σ(x−x̄)(y−ȳ) = 99.0; Σ(x−x̄)² = 100000
  3. b = 99.0 / 100000 = 9.90 × 10⁻⁴ mm per hour
  4. a = 0.316 − (9.90 × 10⁻⁴ × 300) = 0.316 − 0.297 = 0.019 mm
  5. Extrapolating to a 1.0 mm wear limit: t = (1.0 − 0.019)/9.90×10⁻⁴ = 991 hours

Wear accumulates at about 0.99 µm per hour and reaches the 1.0 mm limit near 991 hours. That extrapolation assumes the wear rate stays linear well beyond the measured range — for many wear mechanisms it accelerates, so treat it as an upper bound on remaining life, not a prediction.

Run this with your own numbers

Common mistakes

Related tools

Multivariate AnalyzerRegression & Modeling Time SeriesRegression & Modeling Probit AnalysisRegression & Modeling Cox RegressionRegression & Modeling Bayesian EstimationRegression & Modeling Distribution AnalyzerLife Data & Field Analysis

About Reliability Pro

Linear Regression is part of a suite of 126 reliability, maintenance and quality engineering tools covering life data analysis, accelerated testing, system reliability, FMEA and root cause, SPC, and design for reliability. It runs in the browser and as native iOS and Android apps, so the same calculation is available at a desk or in front of the asset.

Browse all 126 tools Open the web app