Probability package for Macaulay2

Douglas A. Torrance
DOI: https://doi.org/10.2140/jsag.2024.14.51
2024-03-10
Abstract:We introduce the Probability package for Macaulay2, which provides an interface for users to compute probabilities and generate random variates from a wide variety of univariate probability distributions.
Algebraic Geometry,Probability
What problem does this paper attempt to address?
The paper attempts to address the issue of the lack of support for various probability distributions in Macaulay2. Specifically, Macaulay2 previously only supported generating random variables from uniform discrete and continuous probability distributions, without support for other common probability distributions. This limited users' choices when they needed to use specific probability distributions, forcing them to turn to other statistical software (such as R) to complete related tasks. To overcome this limitation, the author developed a package called Probability, which provides an interface for a wide range of commonly used probability distributions in Macaulay2 and allows users to create custom probability distributions. Through this package, users can more easily perform probability calculations and generate random variables in Macaulay2, thereby expanding the software's application scope in the fields of statistics and algebraic geometry.