Linear Regression Calculator
Best-fit line for a set of (x, y) points.
Amortization schedule
| # | Payment | Principal | Interest | Balance |
|---|---|---|---|---|
Growth over time
| Year | Invested | Value |
|---|---|---|
Introduction
Linear Regression Calculator — Best-fit line for a set of (x, y) points. Enter Points (x,y per line) to get an instant, accurate result.
Formula
Ordinary least squares: slope = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²); intercept = (Σy − slope×Σx) / n.
Step-by-step
- Enter the Points (x,y per line).
- Click Calculate to see your result instantly.
Real-world example
Example: With the defaults shown above, the Linear Regression Calculator gives Slope: 1.8, Intercept: 0.2, Points: 5.
Frequently Asked Questions
What does the slope represent?
How many points do I need?
What inputs does the Linear Regression Calculator need?
How accurate is the Linear Regression Calculator?
Is the Linear Regression Calculator free to use?
About the Linear Regression Calculator
The Linear Regression Calculator uses a real, verifiable formula — Ordinary least squares: slope = (nΣxy − ΣxΣy) / (nΣx² − (Σx)²); intercept = (Σy − slope×Σx) / n. — so results are accurate every time, not an approximation.