CommencerCommencer gratuitement

Compare sampling and bootstrap standard deviations

In the same way that you looked at how the sampling distribution and bootstrap distribution could be used to estimate the population mean, you'll now take a look at how they can be used to estimate variation, or more specifically, the standard deviation, in the population.

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

Cet exercice fait partie du cours

Sampling in R

Afficher le cours

Exercice interactif pratique

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

# Calculate the true population std dev popularity
pop_sd <- ___


# Calculate the true sample std dev popularity
samp_sd <- ___


# Calculate the sampling dist'n estimate of std dev popularity
samp_distn_sd <- ___


# Calculate the bootstrap dist'n estimate of std dev popularity
boot_distn_sd <- ___


# See the results
c(pop = pop_sd, samp = samp_sd, sam_distn = samp_distn_sd, boot_distn = boot_distn_sd)
Modifier et exécuter le code