Linear Regression Calculator
Compute the regression slope and intercept from data points.
Input Data
X
Y
Results
Computed regression slope.
0.8
Explanatory note about the result.
y = 1.8 + 0.8·x(斜率 b=0.8、截距 a=1.8)。
At a glance:Least squares: b = Σ((x−x̄)(y−ȳ)) / Σ(x−x̄)²; a = ȳ − b·x̄. Complements correlation and mean calculators.
Formula
b = Σ(x−x̄)(y−ȳ) / Σ(x−x̄)².
a = ȳ − b·x̄.
How to Use
- Enter paired X and Y values.
- The tool returns the slope and intercept.
Case Studies
X 1-5 / Y 2,4,5,4,6 → slightly positive slope
Fitted by least squares.
FAQ
How is this different from correlation?
Correlation gives the strength of the linear link; regression gives the fitted line equation.
Related Tools
References
Content review: Calculatorism Science Team. Results are for reference only; please refer to the relevant authorities for the official figures.