ChiSquareRandomVariable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[Statistics]

  

ChiSquareRandomVariable

  

Chi-square random variable

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

ChiSquareRandomVariable(nu)

Parameters

nu

-

first parameter

Description

• 

The chi-square random variable is a continuous probability random variable with probability density function given by:

f⁡t=0t<0tν2−1⁢&ExponentialE;−t22ν2⁢Γ⁡ν2otherwise

  

subject to the following conditions:

0<ν

• 

The ChiSquare variate with nu degrees of freedom is equivalent to the Gamma variate with scale 2 and shape nu/2:  ChiSquare(nu) ~ Gamma(2,nu/2).

• 

The ChiSquare variate is related to the FRatio variate by the formula FRatio(nu,omega) ~ (ChiSquare(nu)*omega)/(ChiSquare(omega)*nu)

• 

The ChiSquare variate is related to the Normal variate and the StudentT variate by the formula StudentT(nu) ~ Normal(0,1)/sqrt(ChiSquare(nu)/nu)

Examples

> 

with⁡StudentStatistics&colon;

> 

X≔ChiSquareRandomVariable⁡ν&colon;

> 

PDF⁡X&comma;u

0u<0uν2−1⁢&ExponentialE;−u22ν2⁢Γ⁡ν2otherwise

(1)
> 

PDF⁡X&comma;0.5

0.7788007831⁢0.50.5000000000⁢ν−1.2.0.5000000000⁢ν⁢Γ⁡0.5000000000⁢ν

(2)
> 

Mean⁡X

ν

(3)
> 

Variance⁡X

2⁢ν

(4)
> 

Y≔ChiSquareRandomVariable⁡3&colon;

> 

PDF⁡Y&comma;x&comma;output=plot

> 

CDF⁡Y&comma;x

0x<01−2⁢2⁢x⁢&ExponentialE;−x22+π⁢erfc⁡2⁢x22πotherwise

(5)
> 

CDF⁡Y&comma;6&comma;output=plot

References

  

Evans, Merran; Hastings, Nicholas; and Peacock, Brian. Statistical Distributions. 3rd ed. Hoboken: Wiley, 2000.

  

Johnson, Norman L.; Kotz, Samuel; and Balakrishnan, N. Continuous Univariate Distributions. 2nd ed. 2 vols. Hoboken: Wiley, 1995.

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol 1: Distribution Theory.

Compatibility

• 

The Student[Statistics][ChiSquareRandomVariable] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

Student

Student[Statistics]

Student[Statistics][ChiSquareRandomVariable]

Student[Statistics][RandomVariable]