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

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

जिस तरह आपने देखा था कि सैंपलिंग डिस्ट्रीब्यूशन और बूटस्ट्रैप डिस्ट्रीब्यूशन का उपयोग पॉप्युलेशन mean के अनुमान के लिए किया जा सकता है, अब आप देखेंगे कि इन्हें पॉप्युलेशन में variation — खास तौर पर standard deviation — के अनुमान के लिए कैसे उपयोग किया जा सकता है.

ध्यान रखें कि sample size 5000 है.

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

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

Python में Sampling

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

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

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

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