Computing β₀: The Intercept Estimate
You'll learn how to calculate the intercept of your regression line and why it's positioned exactly where it is.
The Core Idea
In the previous lesson, you computed β₁ (the slope) using the least squares formula. Now you need β₀ (the intercept)—the point where your line crosses the y-axis. The formula is beautifully simple:
β₀ = ȳ - β₁ · x̄
Where:
- ȳ is the mean of your y-values
- x̄ is the mean of your x-values
- β₁ is the slope you just calculated
Why This Formula Works
Think of it this way: the least squares method guarantees that your regression line passes directly through the center point of your data cloud—the point (x̄, ȳ).
If you know the line must pass through (x̄, ȳ) and you already know its slope β₁, you can work backward using the basic line equation:
ȳ = β₀ + β₁ · x̄
Rearranging gives you β₀ = ȳ - β₁ · x̄
Geometric Meaning
Imagine your data has a center of gravity at (x̄, ȳ). The regression line pivots through this exact point, tilted according to the slope β₁. The intercept β₀ is simply where that tilted line would hit the y-axis if you extended it leftward to x = 0.
This "anchoring" to the mean point ensures your predictions aren't systematically too high or too low—the residuals balance out perfectly around the line.
Key Takeaway: The intercept β₀ = ȳ - β₁ · x̄ positions the regression line so it passes through the mean point (x̄, ȳ), ensuring the least squares criterion is satisfied and residuals sum to zero.