始める無料で始める

サンプリングとブートストラップの標準偏差を比較する

サンプリング分布とブートストラップ分布を使って母平均を推定したのと同じ要領で、次は母集団のばらつき、より具体的には標準偏差をどのように推定できるかを見ていきます。

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)
コードを編集して実行