Simple linear regression model
Understanding the Simple Linear Regression Model
In AP Statistics, the simple linear regression model is a statistical tool used to describe the linear relationship between two quantitative variables. When we perform inference for slopes, we are essentially trying to draw conclusions about this underlying linear relationship in the population based on a sample of data. The model assumes that for each value of the explanatory variable (x), the response variable (y) has a distribution whose mean falls on a straight line.
The Population Regression Line
The true, unknown relationship between the explanatory variable (x) and the response variable (y) in the population is represented by the population regression line. This line is expressed by the equation:
- μy = α + βx
Here:
- μy (mu sub y) represents the true mean of the response variable (y) for a given value of x.
- α (alpha) is the true y-intercept of the population regression line. It represents the mean value of y when x is 0.
- β (beta) is the true slope of the population regression line. It represents the average change in y for every one-unit increase in x. This is the parameter we are most often interested in when performing inference.
The Individual Observation Model
While the population regression line describes the mean relationship, individual observations will typically deviate from this line. This deviation is accounted for by the error term.
- y = α + βx + ε
Here:
- y is an individual observed value of the response variable.
- ε (epsilon) is the random error term, representing the difference between an observed y-value and the true mean y-value for a given x. These errors are assumed to be independent and follow a normal distribution with a mean of 0 and a constant standard deviation (σ).
Estimating the Model Parameters: The Least-Squares Regression Line
Since we cannot observe the entire population, we use sample data to estimate the unknown population parameters α and β. The least-squares regression line is the sample-based estimate of the population regression line. It is given by:
- ŷ = a + bx
Here:
- ŷ (y-hat) is the predicted value of the response variable for a given x.
- a is the estimated y-intercept, serving as a point estimate for α.
- b is the estimated slope, serving as a point estimate for β. This is calculated using the formula: b = r(sy/sx), where r is the correlation coefficient, sy is the standard deviation of y, and sx is the standard deviation of x.
Conditions for Inference
Before performing inference about the slope (β), several conditions must be met. These are often remembered by the acronym LINER:
- L: Linearity – The true relationship between x and y is linear. This can be checked with a scatterplot and a residual plot (no clear pattern).
- I: Independence – The observations (and thus the errors) are independent. This is often checked by examining the data collection method (random sampling/assignment).
- N: Normality – For any fixed x, the response variable y (and thus the errors ε) are normally distributed. This can be checked with a histogram or normal probability plot of the residuals.
- E: Equal Variance (or Homoscedasticity) – The standard deviation of y (and thus the errors ε) is the same for all values of x. This is checked with a residual plot (constant scatter).
- R: Random – The data come from a well-designed random sample or randomized experiment.
Failing to meet these conditions can invalidate the results of inferential procedures.
Practice questions
What does the parameter β represent in the population regression line μ<sub>y</sub> = α + βx?
Which condition for inference is violated if a residual plot shows a fanning-out pattern?
How does the random error term ε relate to the population regression line?
What is the primary purpose of constructing a least-squares regression line from sample data?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/statistics/unit-9-inference-for-quantitative-data-slopes/simple-linear-regression-model