39 step-by-step calculators

Regression Calculators

0%Accuracy
0/54Lessons
0Streak

regression

Simple Linear Regression

Find the best-fit line ŷ = a + bx for paired data.

Example answerŷ = 0.6x + 2.2, R² = 0.6

This is the worked example that ships with the calculator. Replace the values above with your own and press Calculate.

X Values
1, 2, 3, 4, 5
Y Values
2, 4, 5, 4, 5
  1. Simple linear regression: ŷ = a + bxFormulab = Σ(xᵢ-x̄)(yᵢ-ȳ) / Σ(xᵢ-x̄)², a = ȳ - b·x̄

    n = 5

  2. Means

    x̄ = 3.0000, ȳ = 4.0000

  3. Slope (b)Substituteb = 6.0000 / 10.0000

    0.6000

  4. Intercept (a)Substitutea = 4.0000 - 0.6000 · 3.0000

    2.2000

  5. Regression equation

    ŷ = 2.2000 + 0.6000x

  6. Correlation coefficient (r)

    0.7746

  7. Coefficient of determination (r²)Substituter² = 0.7746²

    0.6000

  8. Interpretation of r²

    60.00% of the variation in y is explained by the linear relationship with x.

  9. Residuals (yᵢ - ŷᵢ)

    -0.8000, 0.6000, 1.0000, -0.6000, -0.2000