Macaulay2 » Documentation
Packages » Probability :: exponentialDistribution
next | previous | forward | backward | up | index | toc

exponentialDistribution -- exponential distribution

Synopsis

Description

The exponential distribution, the waiting time between events in a Poisson process, where lambda is the expected number of events in one unit of time.

i1 : X = exponentialDistribution 0.25

o1 = Exp(.25)

o1 : ContinuousProbabilityDistribution
i2 : density_X 2

o2 = .151632664928158

o2 : RR (of precision 53)
i3 : probability_X 3

o3 = .527633447258985

o3 : RR (of precision 53)
i4 : quantile_X 0.4

o4 = 2.04330249506396

o4 : RR (of precision 53)
i5 : random X

o5 = 8.92894798990416

o5 : RR (of precision 53)

Ways to use exponentialDistribution :

For the programmer

The object exponentialDistribution is a method function.