Skip to main content
 首页 » 编程设计

python之如何在 Python 中从总体中生成随机样本

2024年09月07日7findumars

<分区>

我正在尝试解决这个问题:

Generate 1,000 random samples of size 50 from population. Calculate the mean of each of these samples (so you should have 1,000 means) and put them in a list norm_samples_50.

我的猜测是我必须使用 randn 函数,但我不能完全猜测如何根据上述问题形成语法。我已完成研究,但找不到合适的答案。