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

chiSquaredDistribution -- chi-squared distribution

Synopsis

Description

The chi-squared distribution, the distribution of the sum of n squares of independent normally distributed random variables.

i1 : X = chiSquaredDistribution 5

o1 = chi2(5)

o1 : ContinuousProbabilityDistribution
i2 : density_X 2

o2 = .138369165806865

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

o3 = .300014164121372

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

o4 = 3.65549962314159

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

o5 = 9.04486020245785

o5 : RR (of precision 53)

Ways to use chiSquaredDistribution :

For the programmer

The object chiSquaredDistribution is a method function.