Skip to content

About the Linear Regression Calculator

Least-squares line through paired data, with correlation, R², the residual standard error and a residual table.

How to use it

Examples

Questions

How is it calculated?
slope = Σ(x−x̄)(y−ȳ) ÷ Σ(x−x̄)²; intercept = ȳ − slope × x̄; r = Sxy ÷ √(Sxx Syy)
What does it assume?
Ordinary least squares: assumes a roughly linear relationship, independent errors with constant spread, and no extreme outliers. It does not test these.
Is my input uploaded?
No. Everything is calculated in your browser tab and nothing is uploaded or stored.

Free and runs in your browser. Sign in only if you want to save your work.