x for the explanatory (independent) variable and y for the response (dependent) variable.Statistics • Simple Linear Regression
x for the explanatory (independent) variable and y for the response (dependent) variable.It finds the best-fitting straight line that predicts a response y from a single explanatory variable x using least squares. The output includes the fitted equation yhat = b0 + b1 x and measures of fit.
The slope b1 is computed from how x and y vary together relative to how x varies, and the intercept b0 is then set so the line passes through the point (xbar, ybar). This ensures the fitted line matches the sample means.
A residual is the vertical difference between an observed y value and the fitted value at the same x: e = y - yhat. Showing residuals helps visualize how far points are from the regression line.
R^2 is the proportion of the total variation in y explained by the linear model. Values closer to 1 indicate a stronger linear fit, while values closer to 0 indicate a weaker linear relationship.
Enter your (x, y) data, then fill in the Predict at x0 field and click Calculate. The calculator will report yhat(x0) and the mean-response standard error when the sample size is sufficient.