by J. Mai 1, J. R. Craig 1, and B. A. Tolson 1
1 Dept. Civil and Environmental Engineering, University of Waterloo, Waterloo, ON, Canada.
A simple algorithm is provided for randomly sampling a set of N+1 weights such that their sum is constrained to be equal to one, analogous to randomly subdividing a pie into N+1 slices where the probability distribution of slice volumes are identically distributed. The cumulative density and probability density functions of the random weights are provided. The algorithmic implementation for the random number sampling are made available. This algorithm has potential applications in calibration, uncertainty analysis, and sensitivity analysis of environmental models. The associated journal publication provides three example applications to demonstrate the efficiency and superiority of the proposed method compared to alternative sampling methods. Please refer to the Wiki for more details and documentation.
Please refer to the Wiki for details on the usage in Python and R.
J. Mai, J. R. Craig, and B. A. Tolson (2022).
The Pie sharing problem: Unbiased sampling of N+1 summative weights.
Environmental Modelling and Software, , 148, 105282. Accepted Dec 7, 2021.
https://doi.org/10.1016/j.envsoft.2021.105282
J. Mai, J. R. Craig, and B. A. Tolson (2020).
The PieShareDistribution: Unbiased sampling of N+1 summative weights.
Zenodo