Inference for Regression Examples in Math
Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Inference for Regression.
This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.
Concept Recap
Using hypothesis tests and confidence intervals to draw conclusions about the true population slope \beta_1 of the linear relationship y = \beta_0 + \beta_1 x + \varepsilon, based on sample data.
You computed a sample regression line with slope b = 2.3. But is the true population slope actually different from zero? Maybe there's really no linear relationship and you just got a slope by chance. The regression t-test asks: 'Is my sample slope far enough from zero that it's unlikely to have occurred by random variation alone?'
Read the full concept explanation โHow to Use These Examples
- Read the first worked example with the solution open so the structure is clear.
- Try the practice problems before revealing each solution.
- Use the related concepts and background knowledge badges if you feel stuck.
What to Focus On
Core idea: The null hypothesis is typically H_0: \beta_1 = 0 (no linear relationship). A confidence interval for \beta_1 is b \pm t^* \cdot \text{SE}_b. Conditions: linearity, independence, normality of residuals, and equal variance.
Common stuck point: Students forget to check the conditions: (1) the residual plot should show no pattern, (2) residuals should be approximately normal, (3) the spread of residuals should be roughly constant across x.
Worked Examples
Example 1
mediumSolution
- 1 Test statistic: t = \frac{b - \beta_0}{SE_b} = \frac{2.5 - 0}{0.8} = 3.125
- 2 Degrees of freedom: df = n - 2 = 30 - 2 = 28
- 3 Critical value: t^*_{0.025, 28} \approx 2.048 (two-tailed at \alpha=0.05)
- 4 Since |t| = 3.125 > 2.048, reject H_0; the slope is significantly different from zero
Answer
Example 2
hardPractice Problems
Try these problems on your own first, then open the solution to compare your method.
Example 1
easyExample 2
hardRelated Concepts
Background Knowledge
These ideas may be useful before you work through the harder examples.