CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Inference for Numerical Data in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Calculate 15000 bootstrap medians of diff
textdiff_med_ci <- ___ %>%
  ___ %>%
  ___ %>%
  ___
Modifier et exécuter le code