Skip to main content

learn.howToCalculate

learn.whatIsHeading

Regression analysis finds the best-fit line (y = mx + b) through a set of data points. It minimizes the sum of squared differences and is fundamental to predictive modeling.

Formule

m = (n×Σxy - Σx×Σy) / (n×Σx² - (Σx)²); b = (Σy - m×Σx) / n

Guide étape par étape

  1. 1Input data points (x, y)
  2. 2Calculate sums: Σx, Σy, Σxy, Σx²
  3. 3Compute slope m and intercept b using the formula

Exemples résolus

Entrée
Points: (1,2), (2,4), (3,5)
Résultat
y ≈ 1.5x + 0.5
Least squares regression line

Erreurs courantes à éviter

  • Confusing correlation with causation
  • Not checking for outliers affecting the line

Prêt à calculer ? Essayez la calculatrice gratuite Regression Line

Essayez-le vous-même →

Paramètres