mercredi 23 septembre 2020

Draw random number using Poisson distribution in Python

I am trying to mimic a chance encounter and I'm not sure how to do this. I would like to use a poisson distribution, but am open to other suggestions.

The idea is this: there is a central place where you can meet people. If there are 10 (the minimum) people at this place, the chance is 100% you will meet a specific person (e.g. chance = 1). If there are 6000 (the maximum) people at this place, the chance you will meet everyone is 3.5% you will meet a specific person (e.g. chance = 0.035). How can I implement this using Python?




Aucun commentaire:

Enregistrer un commentaire