A Haskell code to run Monte Carlo method regarding the probability of time spent in front of the counter staff.
The v2 branch is to fix the simulation problem. The logic in the master branch is wrong and produced the wrong results.
v2 branch
is aimed to fix it via proper mindset, which is more likely to "simulation" instead of calculation.
- Set the time duration (eg. 60 seconds)
- Count the number of customer via probility in the time duration
- For each customer, count the time taken to execute task via the probability beta distribution.
Via stack
, just run command stack run
.