Linear Regression Calculator
Calculate linear regression equation, slope, intercept, and correlation
About Linear Regression
Linear regression finds the best-fit line through a set of data points using the least squares method.
Equation: y = b₁x + b₀
Slope: b₁ = Σ((x - x̄)(y - ȳ)) / Σ(x - x̄)²
Intercept: b₀ = ȳ - b₁x̄
R² measures how well the line fits the data (0 to 1, closer to 1 is better).