In statistics, we often want to understand how one variable influences another. For instance, does the amount of time spent studying predict an exam score? Does exam anxiety affect performance? To answer these questions, we use a mathematical framework known as Simple Linear Regression. This method allows us to model the relationship between an independent variable () and a dependent variable () using a straight line, helping us make predictions and quantify the strength of the connection.
The Linear Model: Intercept and Slope
A straight line can be described by two fundamental parameters: the intercept and the slope. In a perfect world, we would know the "true" relationship between our variables, but in reality, we only have sample data.
The model is expressed by the equation: where:
- is the true intercept. This is the value of when is zero—essentially, where the line hits the vertical axis.
- is the true slope. This represents the rate of change: how much is expected to change for every one-unit increase in .
Because real-world data is messy, we cannot observe and directly. Instead, we use our sample data to calculate "estimates" (denoted as and ) that serve as our best guesses for these true values.
Modeling the "Misses": Residuals
No matter how good our line looks, it will rarely pass through every single data point perfectly. The vertical distance between an actual observed data point () and the value predicted by our regression line is called a residual.
Keep reading for free.
Create an account to finish this reading and make it part of your study routine.
Continue reading freeAlready have an account? Log in
Updated