Vergleich von Stichproben- und Bootstrap-Standardabweichungen
So wie du dir angeschaut hast, wie die Stichprobenverteilung und die Bootstrap-Verteilung zur Schätzung des Mittelwerts der Grundgesamtheit verwendet werden können, schaust du dir jetzt an, wie sie zur Schätzung der Variation, genauer gesagt der Standardabweichung, in der Grundgesamtheit verwendet werden können.
Erinnere dich daran, dass der Stichprobenumfang 5000
ist.
spotify_population
, spotify_sample
, sampling_distribution
und bootstrap_distribution
sind verfügbar; pandas
und numpy
werden mit ihren üblichen Aliasnamen geladen.
Diese Übung ist Teil des Kurses
Stichprobenziehung in Python
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# 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])