What happens if all x values are equal?
There is no independent variation in x to estimate a unique slope, so the calculator asks for at least two different x values.
Paste x and y values to fit a straight line with an intercept. Add a new x to evaluate the fitted line, then check the residuals for the original data.
Ordinary least squares chooses the slope and intercept that minimize the sum of squared vertical residuals. For the five example pairs, the fitted line is ŷ = 1.3 + 0.9x. In this model, a one-unit increase in x corresponds to a 0.9-unit increase in fitted y.
A residual is observed y minus fitted y. At x = 3 in the example, the actual y is 5 and the fitted y is 4, so the residual is 1. R² is 0.81, indicating that the fitted line accounts for 81% of the observed variation in y about its mean. The result also includes the root mean squared residual, using the number of pairs as its divisor.
The fitted y at x = 4.5 is 5.35 for the example. An x above 5 or below 1 extends the fitted line past the observations and is marked as extrapolation. Predictions are point estimates based on this line. A curved pattern or a single influential observation can make the line a poor predictor.
There is no independent variation in x to estimate a unique slope, so the calculator asks for at least two different x values.
When x varies, the fitted line is horizontal and its intercept equals the common y value. R² is undefined here because observed y has zero total variation.
Yes. The columns are separated by tabs, one observation per row. The result text area contains just the table. The copy button also includes the equation and summary.