ŷ

Linear Regression Calculator

The least-squares line through paired data, its fit, and a prediction.

Statistics & ProbabilityTop 100 · #71Runs in your browser

Result…

 

…

How it's calculated

b = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)²
a = ȳ − b × x̄
ŷ = a + b × x

Ordinary least squares picks the straight line that makes the sum of squared vertical distances to the points as small as possible. R² is the share of the variation in y the line explains. Predictions far outside the range of your x values are guesses, not results.

Your numbers, step by step

    More in Statistics & Probability