Least-Squares Regression Basics
Regression lines help you predict how a response variable changes as an explanatory variable changes. The equation for a regression line is ŷ = a + bx, where:
- ŷ (pronounced "y-hat") is your predicted value of y for a given x value
- b is the slope, showing how much y changes when x increases by one unit
- a is the y-intercept, the predicted value of y when x = 0
Remember the difference between y and ŷ: y is the actual value from your data, while ŷ is what your regression line predicts.
When analyzing car prices, for example, you might find that price decreases as mileage increases—a perfect application for regression analysis!
💡 Think of regression as your crystal ball—it uses known data points to make predictions about unknown values, but it's only as good as the relationship between your variables.


























