Slope of the regression line
b₁
How much y changes per unit of x along the fitted line, from the sums of squares: the sum of products over the sum of squares of x.
b₁=2.5
b₁ equals 25 divided by 10, equals 2.5
Den här sidan finns på svenska. Byt till svenska
Definition — what does that mean?
How much y changes per unit of x along the least-squares line.
In Swedish: Regressionslinjens lutning
b₁
How much y changes per unit of x along the fitted line, from the sums of squares: the sum of products over the sum of squares of x.
b₁=2.5
b₁ equals 25 divided by 10, equals 2.5
You are given
b₁ = S_xy / S_xx
Holds for the least-squares line when at least two x values differ. Swedish courses write the estimate β̂₁; many English texts write b₁.
S_xx = Σ(xᵢ − x̄)² is the sum of squares of x and S_xy = Σ(xᵢ − x̄)(yᵢ − ȳ) the sum of products. The least-squares line page works them out from the lists; here they are inputs.
Height and mass of 15 women (Wikipedia, simple linear regression): S_xx = 0.18269 and S_xy = 11.194, so b₁ = 11.194 / 0.18269 ≈ 61.27 kg per metre.
S_xy = −30 and S_xx = 10 give b₁ = −3: y falls by 3 for each unit x rises. S_xx is a sum of squares and cannot be negative, so the sign of the slope is the sign of S_xy.
| S_xy | S_xx | b₁ |
|---|---|---|
| 25 | 10 | 2.5 |
| −30 | 10 | −3 |
With b₁ known, the intercept is the next step.
| Solve for | Rearranged | With the numbers | Comes to |
|---|---|---|---|
| b₁ | SxySxx | 2510 | 2.5 |
| Sxy | b₁Sxx | 2.5·10 | 25 |
| Sxx | Sxyb₁ | 252.5 | 10 |
Last reviewed October 11, 2026 ·How pages are reviewed
Statistics and probabilityAll formulas
Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.