Linear Regression Calculator
Fit least-squares line ŷ = mx + b with R², correlation r, and live scatter plot.
Inputs
Results
| Step-by-Step Breakdown | Results |
|---|
Worked Example
Default sample calculation evaluated with standard parameters.
| Inputs | Value |
|---|---|
| Pairs (x, y per line) | 1, 2.1 ; 2, 3.9 ; 3, 6.2 ; 4, 8.1 ; 5, 9.8 ; 6, 12.3 |
| Results | Value |
|---|---|
| Equation ŷ | 2.017x + 0.007 |
| R² | 0.99764 |
| Slope (m) | 2.0171 |
| Intercept (b) | 0.0067 |
Technical Reference
Formula:
ŷ = mx + b, R² = r²- Category
- Statistics & Probability
- Input Parameters
- Pairs (x, y per line)
- Primary Outputs
- Equation ŷ, R², Slope (m), Intercept (b)
- Unit Standard
- Dimensionless / Pure Math
How to Use
- 1Inputs: Linear Regression Calculator (ŷ = mx + b, R² = r²).
- 2Calculate: Formula ŷ = mx + b, R² = r².
- 3Results: Copy Link / Export CSV / Print.
Frequently Asked Questions
Linear Regression Calculator — Formula?
Linear Regression Calculator: ŷ = mx + b, R² = r².
Export CSV / Print?
Results: Copy Link · Export CSV · Print.
100% Private?
This calculator runs locally in your browser and requires JavaScript.