Session Ready
Exercise

Compare sampling and bootstrap means

To make calculation easier, the distributions from the previous exercise have been included in tibbles. mean_popularity_2000_samp is in the sample_mean column of sampling_distribution, and mean_popularity_2000_boot is in the resample_mean column of bootstrap_distribution.

spotify_population, spotify_sample, sampling_distribution, and bootstrap_distribution are available; dplyr is loaded.

Instructions 1/2
undefined XP
  • 1
  • 2

Calculate the mean popularity 4 ways.

  • Population: from spotify_population, take the mean of popularity.
  • Sample: from spotify_sample, take the mean of popularity.
  • Sampling distribution: from sampling_distribution, take the mean of sample_mean.
  • Bootstrap distribution: from bootstrap_distribution, take the mean of resample_mean.