Environmental Modelling & Software, Volume 148
 Anthology ID:
 G22108
 Month:
 Year:
 2022
 Address:
 Venue:
 GWF
 SIG:
 Publisher:
 Elsevier BV
 URL:
 https://gwfuwaterloo.github.io/gwfpublications/G22108
 DOI:
The pie sharing problem: Unbiased sampling of N+1 summative weights
Juliane Mai

James R. Craig

Bryan A. Tolson
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. Three example applications are provided to demonstrate the efficiency and superiority of the proposed method compared to alternative sampling methods. • Present unbiased method to sample weights that sum up to 1. • Examples demonstrating the benefit of unbiased sampling. • Code made available in multiple languages.