Inference for Regression Math Example 1
Follow the full solution, then compare it with the other examples linked below.
Example 1
mediumA regression output shows: slope , , . Test vs at using a t-test.
Solution
- 1 Test statistic:
- 2 Degrees of freedom:
- 3 Critical value: (two-tailed at )
- 4 Since , reject ; the slope is significantly different from zero
Answer
. Reject . The slope is statistically significant at .
Testing whether the slope equals zero tests whether x is a useful predictor of y. Rejecting means the linear relationship exists (in the population). df = n-2 because two parameters (slope and intercept) are estimated.
About Inference for Regression
Using hypothesis tests and confidence intervals to draw conclusions about the true population slope of the linear relationship , based on sample data.
Learn more about Inference for Regression →More Inference for Regression Examples
Example 2 hard
Construct a 95% confidence interval for the slope [formula] given: [formula], [formula], [formula],
Example 3 easyList the four conditions for valid regression inference and explain why each must be checked.
Example 4 hardA regression of salary on years of experience gives: [formula], [formula], slope p-value=0.001. A co