Chapter 3 · Section 4 practice

Coefficient Uncertainty and Statistical Inference

Work from question 1 to 10. Edit your Python box, click Run Code, review the result, then click Submit attempt. Reference answers unlock after all ten attempts are submitted. This records completion, not correctness. Each box runs independently. Progress is saved in this browser.

Submitted: 0 / 10

1. Read a standard error

Warm-up. Print the Ads coefficient standard error.

Write your answer, then run it.

2. Read degrees of freedom

Warm-up. Print residual degrees of freedom.

Write your answer, then run it.

3. Reconstruct the default t statistic

Warm-up. Calculate slope/SE for a zero null.

Write your answer, then run it.

4. Read a two-sided p-value

Build your skills. Print the stored two-sided p-value for Ads.

Write your answer, then run it.

5. Read a 95% interval

Build your skills. Print the coefficient interval for Ads.

Write your answer, then run it.

6. Calculate a critical value

Build your skills. Calculate the two-sided 5% critical t value using df_resid.

Write your answer, then run it.

7. Use a nonzero null

Build your skills. Test Ads slope=2; print the t statistic and two-sided p-value.

Write your answer, then run it.

8. Test a different null

Challenge. For H0: Ads slope=3 against a two-sided alternative, print the p-value.

Write your answer, then run it.

9. Compare confidence levels

Challenge. Print widths of 95% and 99% Ads intervals.

Write your answer, then run it.

10. Check agreement of test and interval

Challenge. Print whether the 95% Ads interval excludes zero, and whether the classical two-sided p-value is below 0.05.

Write your answer, then run it.

Reference answers are locked until all 10 attempts are submitted.