MulaiMulai sekarang secara gratis

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.

Recall that the sample size is 5000.

spotify_population, spotify_sample, sampling_distribution, and bootstrap_distribution are available; pandas and numpy are loaded with their usual aliases.

Latihan ini adalah bagian dari kursus

Sampling in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Calculate the population std dev popularity
pop_sd = ____

# Calculate the original 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 = ____

# Print the standard deviations
print([pop_sd, samp_sd, samp_distn_sd, boot_distn_sd])
Edit dan Jalankan Kode