1. Learn
  2. /
  3. Courses
  4. /
  5. Inference for Numerical Data in R

Connected

Exercise

Estimate the median difference in textbook prices

Suppose instead of the mean, we want to estimate the median difference in prices of the same textbook at the UCLA bookstore and on Amazon. You can't do this using a t-test, as the Central Limit Theorem only talks about means, not medians. You'll use an infer pipeline to estimate the median.

Instructions 1/2

undefined XP
    1
    2

For the price differences, generate 15000 bootstrap replicates and calculate their medians.