arrow_backAll Calculators/Probability & Statistics/Linear Regression Calculator
tune
doomath Calculator

Linear Regression Calculator

Fit a straight line to paired data and calculate slope, intercept and correlation.

InputsChange a value to recalculate instantly
ResultUpdates as you type
Pearson r0.98
Slope1.9
Intercept0
0.96
How it worksTransparent math
Formulay=a+bx; b=Sxy/Sxx; r=Sxy/√(SxxSyy)

Fits a least-squares straight line to four paired observations and reports Pearson correlation and R².

Result breakdownSee the important numbers together
1Pearson r0.98
2Slope1.9
3Intercept0
40.96
λ DooMathWork with this calculation
Local · deterministic · optional
auto_awesome
Quick mathNatural-language-style shortcuts for deterministic arithmetic.
Calculator guide

How to use the Linear Regression Calculator

Fit a straight line to paired data and calculate slope, intercept and correlation.

01Set inputsChoose values, units and assumptions.
02Apply the modely = a + bx
03Read the resultCheck the output against the assumptions before using it.
menu_book

What this calculator does

Fit a straight line to paired data and calculate slope, intercept and correlation.

functions

Formula & method

y = a + bx

fact_check

Assumptions & notes

Review the inputs, units and assumptions before using the result for a real decision.