शुरू करेंमुफ़्त में शुरू करें

सैंपलिंग और बूटस्ट्रैप means की तुलना करें

गणना को आसान बनाने के लिए, पिछले अभ्यास जैसी ही डिस्ट्रीब्यूशंस शामिल की गई हैं, इस बार 5000 के सैंपल साइज़ के साथ।

spotify_population, spotify_sample, sampling_distribution, और bootstrap_distribution उपलब्ध हैं; pandas और numpy अपनी सामान्य एलियस के साथ लोड हैं।

यह अभ्यास पाठ्यक्रम का हिस्सा है

Python में Sampling

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# 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])
कोड संपादित करें और चलाएँ