MulaiMulai sekarang secara gratis

Compare sampling and bootstrap means

To make calculation easier, distributions similar to those calculated from the previous exercise have been included, this time using a sample size of 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 mean popularity
pop_mean = ____

# Calculate the original sample mean popularity
samp_mean = ____

# Calculate the sampling dist'n estimate of mean popularity
samp_distn_mean = ____

# Calculate the bootstrap dist'n estimate of mean popularity
boot_distn_mean = ____

# Print the means
print([pop_mean, samp_mean, samp_distn_mean, boot_distn_mean])
Edit dan Jalankan Kode