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

chiSquaredDistribution -- chi-squared distribution

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 = .1383691658068649

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

o3 = .3000141641213723

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

o4 = 3.655499623141582

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

o5 = 9.044860202457855

o5 : RR (of precision 53)

Ways to use chiSquaredDistribution:

  • chiSquaredDistribution(Number)

For the programmer

The object chiSquaredDistribution is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Probability.m2:1198:0.