1. Learn
  2. /
  3. 课程
  4. /
  5. Python 抽样

Connected

道练习

比较抽样均值与自助法均值

为便于计算,已包含与上一个练习类似的分布,这次使用的样本量为 5000。

已提供 spotify_population、spotify_sample、sampling_distribution 和 bootstrap_distribution;pandas 与 numpy 已按常用别名加载。

说明 1 / 共 2 个

undefined XP
    1
    2

以 4 种方式计算 popularity 的均值:

  • 总体:从 spotify_population 中取 popularity 的均值。
  • 样本:从 spotify_sample 中取 popularity 的均值。
  • 抽样分布:对 sampling_distribution 取其均值。
  • 自助法分布:对 bootstrap_distribution 取其均值。