Inference for Quantitative Data: Slopes
AP Statistics · Advanced Placement
Inference for Quantitative Data: Slopes: the big picture
When two quantitative variables show a linear pattern, the least-squares regression line models the relationship. Inference for the slope uses a t procedure with n − 2 degrees of freedom to estimate and test the true slope, after checking linearity, independence, normality of residuals and equal spread of residuals.
Conditions and the regression model
The population model is y = α + βx + ε with errors that are independent and normal with constant standard deviation. Before inference, residual plots are examined for curvature and changing spread, and a normal probability plot or histogram of residuals checks normality. The least-squares line ŷ = a + bx minimises the sum of squared residuals, and b = r·s_y/s_x.
{{illustration:mh-math-apstats-u9-f1}}
Key relations
- Least-squares slope. the slope equals the correlation times the standard deviation of y divided by the standard deviation of x
Confidence intervals and tests for the slope
The standard error of the slope SE_b is given by regression output and the statistic t = (b − 0)/SE_b has n − 2 degrees of freedom under H₀: β = 0. A confidence interval is b ± t*·SE_b. A small P-value gives evidence of a linear relationship between x and y in the population, and an interval for β estimates the average change in y per unit x. Extrapolation and influential points should be considered.
Key relations
- t for the slope. t equals the slope estimate divided by its standard error, with n minus 2 degrees of freedom