Skip to content

A simple python package for simulating event attendance from a guest list.

License

Notifications You must be signed in to change notification settings

TomasBeuzen/pyguest

Repository files navigation

pyguest

PyPI version build codecov Code style: black

A simple python package for simulating event attendance from a guest list.

Installation

pip install pyguest

Usage

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

Credits

This package was created with a Cookiecutter from UBC-MDS/cookiecutter-ubc-mds and was inspired by @vcoia.

About

A simple python package for simulating event attendance from a guest list.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages