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.
Nesta página do site você pode assistir ao vídeo on-line Python Sample Size to Generalize Population (Simulation using Random Module) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jeffrey James 31 Janeiro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,541 vezes e gostou 18 espectadores. Boa visualização!