1. 学ぶ
  2. /
  3. コース
  4. /
  5. Rで学ぶサンプリング

Connected

演習

標本平均とブートストラップ平均を比較する

計算をしやすくするために、前の演習で作成した分布を tibble にまとめてあります。mean_popularity_2000_samp は sampling_distribution の sample_mean 列に、mean_popularity_2000_boot は bootstrap_distribution の resample_mean 列にあります。

spotify_population、spotify_sample、sampling_distribution、bootstrap_distribution が利用可能で、dplyr は読み込まれています。

指示1 / 2

undefined XP
    1
    2

summarize() を使って、popularity の平均を4通りに計算します。

  • 母集団: spotify_population から popularity の平均を求めます。
  • 標本: spotify_sample から popularity の平均を求めます。
  • 標本分布: sampling_distribution から sample_mean の平均を求めます。
  • ブートストラップ分布: bootstrap_distribution から resample_mean の平均を求めます。