比较抽样与自助法的标准差
就像之前用抽样分布和自助分布来估计总体均值一样,现在您将用它们来估计变异程度,更具体地说,是估计总体的标准差。
请记住样本量为 5000。
已提供 spotify_population、spotify_sample、sampling_distribution 和 bootstrap_distribution;pandas 与 numpy 已按常用别名加载。
本练习是课程的一部分
Python 抽样
交互式实操练习
通过完成这段示例代码来试试这个练习。
# 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])