← All activities
Recitation 6 · Activity

Activity: Practice It — Bootstrapping (Recitation)

An in-class activity from the course slides — reproduced here so you can find it again after class.

📋 What to do

  1. Load the workshops/onsen.csv dataset and select a variable of interest.
  2. Select a statistic of interest and compute it once (eg. xbbar, sbar, rbar, sigma_s).
  3. Bootstrap your dataset to get 1000 slightly different copies, grouping by a unique id for each copy, and calculate the statistic again for each.
  4. Estimate the mean and standard error of the bootstrapped statistics. (The standard deviation of a sampling distribution is the standard error.)
  5. Explain the result in 1–2 sentences, and copy your commented code, your mean and standard error, and your description into the Canvas text submission box.

📮 Submit

Remember to submit on CANVAS (1 pt) — graded on completion. (Individual)

Note: work from this page — it is where the activity and its links (slide decks, shared materials) are maintained, and details may still be refined before class. Submission happens on Canvas, and so do the due date and your grade.