ŷ
Linear Regression Calculator
The least-squares line through paired data, its fit, and a prediction.
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
σStandard deviationHow spread out your numbers are around their mean, for a sample or a whole population.Top 100 · #59Open →s²VarianceThe average squared distance of your numbers from their mean.Top 100 · #60Open →PProbabilityThe chances of both, either, or neither of two independent events happening.Top 100 · #61Open →nCrCombinationsHow many ways to choose r items from n when the order does not matter, exactly.Top 100 · #62Open →nPrPermutationsHow many ordered arrangements of r items can be taken from n, exactly.Top 100 · #63Open →CIConfidence intervalThe range that likely holds the true mean, from a sample mean, standard deviation and size.Top 100 · #64Open →