サンプリングとブートストラップの標準偏差を比較する
サンプリング分布とブートストラップ分布を使って母平均を推定したのと同じ要領で、次は母集団のばらつき、より具体的には標準偏差をどのように推定できるかを見ていきます。
spotify_population、spotify_sample、sampling_distribution、bootstrap_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)