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.
公式
m = (n×Σxy - Σx×Σy) / (n×Σx² - (Σx)²); b = (Σy - m×Σx) / n
ステップバイステップガイド
- 1Input data points (x, y)
- 2Calculate sums: Σx, Σy, Σxy, Σx²
- 3Compute slope m and intercept b using the formula
解いた例
入力
Points: (1,2), (2,4), (3,5)
結果
y ≈ 1.5x + 0.5
Least squares regression line
避けるべきよくある間違い
- ✕Confusing correlation with causation
- ✕Not checking for outliers affecting the line
計算する準備はできましたか?無料の Regression Line 計算機をお試しください
自分で試してみる→