Calculatorism

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

  1. Enter paired X and Y values.
  2. 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.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Linear Regression Calculator(/statistics/regression)。