Back to CalcVerse
CalcVerse📊 Stats & DataRegression & Best Fit Line
📉

Regression & Best Fit Line

Scatter plot with line of best fit and R² value

Grades HS
xy
1
2
3
4
5
6

6 valid points

Line of Best Fit (Least Squares)

ŷ = 1.96x + 0.14

Slope (m)1.96
Intercept (b)0.14
R (correlation)0.9993
R² (explained var.)0.9986
Strong positive correlation(|r| > 0.7)

Step-by-step (n = 6 points)

Σx = 21Σy = 42Σxy = 181.3Σx² = 91x̄ = 3.5ȳ = 7

m = (n·Σxy − Σx·Σy) / (n·Σx² − (Σx)²)

= (6×181.321×42) / (6×9121²)

b = (Σy − m·Σx) / n

Scatter Plot with Line of Best Fit

1.13.55.88.210.512.90.51.72.94.15.36.5xyR² = 0.999

Predict: enter x → get ŷ

ŷ = 1.96×7 + 0.14= 13.86