Home/Calculators/Linear Regression Calculator

Ad

Math & Statistics

Linear Regression Calculator

Calculate the simple linear regression line (y = mx + c) for 3 coordinate points.

Inputs

-1,0001,000
-1,0001,000
-1,0001,000
-1,0001,000
-1,0001,000
-1,0001,000

Calculation Results

Slope (m)

1.5

Y-Intercept (c)

0.67

Coefficient of Determination (R²)

0.96

Back to Calculators Hub

Formula & Mathematical Explanation

y=mx+c,m=nxyxynx2(x)2\displaystyle y = mx + c, \quad m = \frac{n\sum xy - \sum x \sum y}{n\sum x^2 - (\sum x)^2}

Linear regression finds the best-fitting straight line through the points by minimizing the sum of squared residuals. The slope (m) and y-intercept (c) define the line, and R-squared measures the goodness of fit.

Ad