c+CalcLantern

Linear regression prediction

Fit y = intercept + slope × x and predict a value.

How this works

Ordinary least squares minimizes vertical squared residuals.

Example

Using the example inputs, predicted y is 8.

X values
1, 2, 3
Y values
2, 4, 6
Predict at x
4
Predicted y
8

Scope and assumptions

Predictions are descriptive, not guaranteed; extrapolation outside the observed range is risky.

NIST statistical methods handbook

Related calculators

Sample covariance

Pearson correlation

Binomial probability

Poisson probability

Normal interval probability

BUILT FOR CLARITY

Useful tools. Honest answers.

An original collection of calculators for everyday estimates and learning.

Calculations run in your browser. This site does not send your inputs to a server or serve advertising. Optional analytics runs only after you allow it. Results are estimates within each tool’s stated scope, not professional advice.

Financial, health and building-related tools have specific limitations. Check important decisions with a qualified professional. No live currency rates, tax tables or current price feeds are connected.