1. 학습
  2. /
  3. 강의
  4. /
  5. Pythonで学ぶサンプリング

Connected

연습 문제

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

計算しやすいように、前の演習で計算したものと同様の分布を、今回はサンプルサイズ 5000 を用いて用意しました。

spotify_population、spotify_sample、sampling_distribution、bootstrap_distribution が利用可能で、pandas と numpy は通常のエイリアスで読み込まれています。

지침 1/2

undefined XP
    1
    2

popularity の平均を次の4通りで計算します。

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