开始使用免费开始使用

比较抽样与自助法的标准差

正如您之前比较抽样分布和自助法分布用于估计总体均值一样,现在您将看看它们如何用于估计总体的变异性,更具体地说,是总体的标准差。

已提供 spotify_populationspotify_samplesampling_distributionbootstrap_distribution;已加载 dplyr

本练习是课程的一部分

R 中的抽样

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Calculate the true population std dev popularity
pop_sd <- ___


# Calculate the true 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 <- ___


# See the results
c(pop = pop_sd, samp = samp_sd, sam_distn = samp_distn_sd, boot_distn = boot_distn_sd)
编辑并运行代码