Digital Solomon is not taking new clients at this time.

← All measures

Linear regression from lists

Statistics · Least-squares line through paired x and y lists: slope, intercept, r squared and a predicted y for any x.

y = a + bx, b = ∑(x − x̄)(y − ȳ)∑(x − x̄)2, a = ȳ − bx̄

Result

Turn on JavaScript to calculate.

How it works

The line chosen makes the sum of squared vertical gaps between the points and the line as small as possible. The slope is the change in y per one step in x; the intercept is y when x is zero; r squared is the share of the variation in y the line accounts for. Predicting far outside the x values you entered is unreliable.

Results are estimates for learning and planning. Check anything you rely on with a qualified professional.