Skip to content
Statistics CalculatorStatistics Calculator

Linear regression

Fitting a straight line to model the relationship between two variables.

Linear regression finds the line that best predicts a dependent variable y from an independent variable x, using ordinary least squares to minimize the squared residuals. Its key outputs are the slope, intercept, and R².