Inference for Regression
Perform inference for the slope of a regression line using t-tests and confidence intervals.
Try the Interactive Version!
Learn step-by-step with practice exercises built right in.
Inference for Regression
The Regression Model
The population regression line:
We estimate this with the sample regression line:
The key question: Is there a significant linear relationship? (Is ?)
Conditions for Regression Inference
LINE conditions:
- Linear: The true relationship is linear (check residual plot)
- Independent: Observations are independent (10% condition)
- Normal: For each value of , the responses are Normally distributed (check Normal probability plot of residuals)
- Equal variance: The standard deviation of is the same for all (check residual plot for constant spread)
Hypothesis Test for the Slope
Hypotheses:
- (no linear relationship)
- (there is a linear relationship)
Test Statistic:
where and
Degrees of freedom:
Confidence Interval for
with
Interpretation: "We are [C]% confident that the true slope of the relationship between [x] and [y] is between [lower] and [upper]."
Reading Computer Output
A typical regression output includes:
| | Coef | SE Coef | T | P | |---|---|---|---|---| | Constant | | | | | | [x variable] | | | | |
[standard deviation of residuals] [ value]
The row for the x-variable gives you everything you need:
- = slope estimate
- = standard error of slope
- = test statistic for
- = p-value for the test
Interpreting Regression Output
- Slope (): For each 1-unit increase in , the predicted changes by units
- Standard error (): Measures the precision of the slope estimate
- t-statistic: How many SEs the slope is from 0
- P-value: Probability of observing this slope (or more extreme) if
Example Conclusion
"Since the p-value of 0.002 is less than , we reject . There is convincing evidence of a linear relationship between [x] and [y]."
AP Tip: You MUST be able to read computer regression output. Practice identifying , , , , , and from output tables. Also, always check LINE conditions before doing inference.
📚 Practice Problems
No example problems available yet.