arXiv · 2501.16936
Generating Random Vectors satisfying Linear and Nonlinear Constraints
Abstract
We consider the problem of generating n-dimensional vectors with a fixed sum, with the goal of generating a uniform distribution of vectors over a valid region. This means that each possible vector has an equal probability of being generated. The Dirichlet-Rescale (DRS) algorithm, introduced by Griffin et al. (2020), aims to generate a uniform distribution of vectors with fixed sum that satisfies lower and upper bounds on the individual entries. However, we demonstrate that the uniform distribution property of the DRS algorithm does not hold in general. Using an analytical procedure and a statistical test, we show that the vectors generated by the DRS algorithm do not appear to be drawn from a uniform distribution. To resolve this issue, we propose the Dirichlet-Rescale-Constraints (DRSC) algorithm, which handles more general constraints, including both linear and nonlinear constraints, while ensuring that the vectors are drawn from a uniform distribution. In our computational experiments we demonstrate the effectiveness of the DRSC algorithm.
Explore related subjects
Keep this discovery
Rick S. H. Willemsen, Wilco van den Heuvel, Michel van de Velden. 2025-01-28. Generating Random Vectors satisfying Linear and Nonlinear Constraints. https://arxiv.org/abs/2501.16936
Cite the original work for its findings. Save a collection to share your selection of sources.