Python Sample Size to Generalize Population (Simulation using Random Module)

Publié le: 31 janvier 2018
sur la chaîne: Jeffrey James
2,541
18

https://gist.github.com/jrjames83/02e...

We simulate the process of determining how many random samples we need to take, in order to understand distributional (category) properties of a population far too large to analyze manually.

We make good use of the random and collections modules, specifically random.sample and random.choices, along with the Counter class. It seems that around 400 samples from a population of 100k items provides a reasonably good approximation of how many items belong to each category in our overall population.


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Sample Size to Generalize Population (Simulation using Random Module) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Jeffrey James 31 janvier 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,541 fois et il a aimé 18 téléspectateurs. Bon visionnage!