Chapter 3 · Section 5 practice

Point Predictions and Two Kinds of Interval

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. Create a prediction row

Warm-up. Print a one-row design table for Ads=4.

Write your answer, then run it.

2. Calculate a point prediction

Warm-up. Print predicted revenue at Ads=4.

Write your answer, then run it.

3. Read the mean interval

Warm-up. Print only the 95% mean CI at Ads=4.

Write your answer, then run it.

4. Read the individual interval

Build your skills. Print only the 95% individual PI at Ads=4.

Write your answer, then run it.

5. Compare widths

Build your skills. Print the widths of both intervals at Ads=4.

Write your answer, then run it.

6. Change the confidence level

Build your skills. Print the 99% individual PI at Ads=4.

Write your answer, then run it.

7. Predict several inputs

Build your skills. Print mean predictions for Ads=2,4,6 together.

Write your answer, then run it.

8. Detect extrapolation

Challenge. Print whether Ads=15 is inside the observed predictor range.

Write your answer, then run it.

9. Compare centre and edge uncertainty

Challenge. Compare the mean standard errors at Ads=4.5 and Ads=8.

Write your answer, then run it.

10. Reconstruct a mean standard error

Challenge. Manually calculate the mean SE at Ads=4 and compare it with summary_frame.

Write your answer, then run it.

Reference answers are locked until all 10 attempts are submitted.