dimanche 29 avril 2018

Python - Random Sample Generator

so my first question on Stackoverflow. Please be kind:) I'm very new to Python - but each day I'm trying to get better.

I'm trying to address this questions: "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"

My guess is I have to use the randn function - but I can't quite guess on how to form the syntax based on the question above. I've done the research and cant' quite find an answer that fits. Would appreciate any help.




Aucun commentaire:

Enregistrer un commentaire