观察从标准正态分布随机抽取的 100 个样本的 25 个分布。

Python 代码

import numpy as np
import matplotlib.pyplot as plt

fig, axes = plt.subplots(5, 5)

# 生成数据,绘制分布图形
for i, ax in enumerate(axes.ravel()) :
    rng = np.random.RandomState(i)
    x = rng.randn(100)
    ax.hist(x)

plt.show()

观察样本的变异程度

按语:

对于小样本量,样本分布的变异程度越大。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-07-28
  • 2021-10-15
  • 2021-12-24
  • 2021-12-19
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2021-10-26
  • 2021-07-01
相关资源
相似解决方案