A simple python package for simulating event attendance from a guest list.
pip install pyguest
import math
from pyguest import simulate
x = [0.5, 0.8, 1, 0.6, 0.2, 0.8, 1] # guest attendance probabilities
y = simulate(x, simulations=1000) # run simulations
math.ceil(y.mean()) # round up to get average number of guests across simulations
5
This package was created with a Cookiecutter from UBC-MDS/cookiecutter-ubc-mds and was inspired by @vcoia.