Home Categories Popular About

Regression Tool





How the Calculator Works

The calculator uses the formulas for simple linear regression:

Slope (m)     = Σ[(x − x̄)(y − ȳ)] / Σ[(x − x̄)²]  
Intercept (b) = ȳ − m × x̄  
Regression Line: y = m × x + b
  

This finds the best‑fit line that minimizes squared error between predicted and actual values.

Example

X: 1, 2, 3, 4  
Y: 2, 3, 5, 4  

Possible Output:
Slope = 0.8  
Intercept = 1.5  
Equation: y = 0.8x + 1.5