Macaulay2 » Documentation
Packages » Probability » ProbabilityDistribution » DistributionFunction » probability
next | previous | forward | backward | up | index | toc

probability -- cumulative distribution function

Description

The cumulative distribution function of the probability distribution, i.e., the lower tail probability \(F_X(x) = P(X \leq x)\).

i1 : Z = normalDistribution()

o1 = N(0,1)

o1 : ContinuousProbabilityDistribution
i2 : probability_Z 1.96

o2 = .9750021048517796

o2 : RR (of precision 53)

If the LowerTail option is false, then it instead computes the value of the survival function, i.e., the upper tail probability \(S_X(x) = P(X > x)\).

i3 : probability_Z(1.96, LowerTail => false)

o3 = .02499789514822037

o3 : RR (of precision 53)

Menu

Ways to use probability:

  • probability(DiscreteProbabilityDistribution,Number)
  • probability(ProbabilityDistribution,Number)

For the programmer

The object probability is a method function with options.


The source of this document is in Probability.m2:688:0.