Statistics & Data Science · pattern F, Dataset
Paste x and y pairs for the fitted line, its slope and intercept, r and r², and the step-by-step substitution into the least-squares formulas.
b = Σ(x − x̄)(y − ȳ) ÷ Σ(x − x̄)², a = ȳ − b·x̄
The fitted line always passes through the point of means, which is a useful check: substitute x̄ and you should get ȳ.
y = 1.9321x + 0.3429
n = 7 pairs · r = 0.9984 · r² = 0.9967 — strong linear association
2.3013.60
1b = Σ(x−x̄)(y−ȳ) ÷ Σ(x−x̄)² = 54.100 ÷ 28.000 = 1.93214
the slope is the covariance of x and y over the variance of x
2a = ȳ − b·x̄ = 8.071 − 1.93214·4.000 = 0.34286
the line passes through the point of means
3r = 0.99835, r² = 0.99671
r² is the share of variation in y explained by x
The method minimises the squared vertical distances from the points to the line, so it treats x as known and y as uncertain. Regressing y on x and x on y therefore produce different lines, and they are not inverses of each other. Choose the direction that matches your question: the variable you would predict goes on the y axis.
If the number is not the part you are stuck on, that is what the service is for — a specialist who explains the working, not just the answer.
Statistical output here is for coursework and learning. Reported p-values and intervals assume the conditions stated on the page; nothing here checks whether those conditions hold for your data.