Regression & correlation

Simple linear regression calculator

Fit a linear regression line to the paired data and review the residuals and R-squared statistic to determine the amount of variation accounted for in the data.

Your inputs

Your entered data stays in this browser. Changing the calculation does not upload the dataset.

Your result

Enter your values, then click "Calculate".

How this calculation works

Slope = Σ[(x − x̄)(y − ȳ)] / Σ(x − x̄)²

Before you interpret the answer

Ordinary Least Squares Regression with an Intercept. Any extrapolation from the fitted Line and Causal Interpretation will require Evidence beyond the Fitted Line.

Be sure to check the units of measurement and study design prior to applying the result. The calculation provides the answer to the question defined by its input parameters; it does not provide any evaluation regarding the validity of the original measurements.

Numerical methods and sources →

Related calculations

All calculators →