The Pie sharing problem: Unbiased sampling of N+1 summative weights.
Description
The Pie sharing problem: Unbiased sampling of N+1 summative weights.
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.
Abstract
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.
Usage
Please refer to the Wiki for details on the usage in Python and R.
Citation
Journal publication
J. Mai, J. R. Craig, and B. A. Tolson (2021). The Pie sharing problem: Unbiased sampling of N+1 summative weights. Environmental Modelling and Software. Under review.
Code publication
J. Mai, J. R. Craig, and B. A. Tolson (2020). The PieShareDistribution: Unbiased sampling of N+1 summative weights. Zenodo. https://doi.org/10.5281/zenodo.4300332
Release information
This is the first release of the PieShareDistribution which is sampling N random numbers that add up to 1.0 while all the N random variables are independently and identically distributed (i.i.d.). This might become in handy when you for example want to sample soil textures (soil, sand, clay percentage) making sure that the soil triangle is sampled uniformly.
Files
julemai/PieShareDistribution-v1.0.zip
Additional details
Related works
- Is supplement to
- https://github.com/julemai/PieShareDistribution/tree/v1.0 (URL)