J-Kit
Português

Linear Regression Calculator

Compute simple linear regression via OLS with equation, r², standard error, and prediction.

Details below
About this tool

OLS linear regression with r², standard error, and prediction.

Simple linear regression models the relationship between an independent variable X and a dependent variable Y as a straight line: Ŷ = β₀ + β₁X. Coefficients are estimated by Ordinary Least Squares (OLS), which minimizes the sum of squared residuals. r² indicates how well the line fits the data.

How to use

Enter data pairs and get the regression line equation.

  1. Type x, y pairs — one per line. Use comma, semicolon, or space as separator.
  2. The tool automatically computes slope, intercept, r², and standard error.
  3. Use the prediction section to compute the expected Y for any X value.
References

Sources and references for this tool

These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.

FAQ

Frequently asked questions

Simple linear regression is a statistical model that describes the linear relationship between an independent variable (X) and a dependent variable (Y) as a line: Ŷ = β₀ + β₁X.

Mathematics