This package provides a number of basic probability functions. In particular, for both discrete and continuous probability distributions, there are the following four functions:
A variety of common probability distributions are supported.
You may also define your own probability distributions using discreteProbabilityDistribution and continuousProbabilityDistribution.
As is always the case when working with real numbers in Macaulay2, unexpected results may occur due to the limitations of floating point arithmetic.
Version 0.3 of this package was accepted for publication in volume 14 of Journal of Software for Algebra and Geometry on 2024-01-23, in the article The Probability package for Macaulay2 (DOI: 10.2140/jsag.2024.14.51). That version can be obtained from the journal or from the Macaulay2 source code repository.
This documentation describes version 0.4 of Probability.
The source code from which this documentation is derived is in the file Probability.m2.
The object Probability is a package.