Skip to content

Typo - Chp 20, Exercise 20.5, bootstrap SE is 4.70 in the exercise's own code #565

Open

Description

@prawalpokharel
  • Chapter number: 20

  • Section number: Exercise 20.5 (Diamonds, bootstrap interval), and its solution in Appendix A

  • Other location identifier, if any: exercises/_20-ex-inference-two-means.qmd, line 118 and exercises/_20-sa-inference-two-means.qmd, line 7

  • Original text: "Note that the standard error of the bootstrap distribution is 4.64." The solution gives "$2 to $23" for part (a) and "$2.91 to $21.10" for part (b).

  • Suggestion for corrected text: "Note that the standard error of the bootstrap distribution is 4.70." For the solution: "$4 to $22" in part (a) and "$3.48 to $21.90" in part (b).

  • Justification for suggestion: the exercise's own code (set.seed(47), the same slice_sample(), 1,000 bootstrap resamples) gives a bootstrap SE of 4.70 under R 4.5.2 and R 4.6.2. The part (b) interval is 12.0 ± 1.96 × 4.64, but the same sample gives means of $44.51 and $57.20 in Exercise 20.9, a difference of $12.69 (Exercise 20.3 marks it at -12.7). So part (b) becomes 12.69 ± 1.96 × 4.70 = $3.48 to $21.90, and the 2.5th and 97.5th percentiles of the bootstrap differences are $3.64 and $21.87, which makes part (a) $4 to $22.

Both files are included in other chapters, so the change will show once inference-two-means.qmd and exercise-solutions.qmd are re-rendered.

#569 makes these changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions