Darwin Help

Back to Index

ChiSquare_Rand

Function ChiSquare_Rand - Generate random Chi-square distributed reals

Calling Sequence  Rand(ChiSquare(nu))
Parameters
NameTypeDescription

nu nonnegative 
Return Type  nonnegative
Synopsis This function returns a random chi-square distributed number with average nu and variance 2*nu. When nu is an integer, the sum of the squares of nu Normal(0,1) variables is distributed as ChiSquare(nu). ChiSquare_Rand uses Rand() which can be seeded by either the function SetRand or SetRandSeed.
References Handbook of Mathematical functions, Abramowitz and Stegun, 26.4
Examples
> Rand(ChiSquare(3));
1.4350
> Rand(ChiSquare(100));
123.9082
See also Beta_Rand,   Binomial_Rand,   CreateRandSeq,   Cumulative,   Exponential_Rand,   FDist_Rand,   GammaDist_Rand,   Geometric_Rand,   Graph_Rand,   Multinomial_Rand,   Normal_Rand,   Poisson_Rand,   SetRand,   SetRandSeed,   Shuffle,   StatTest,   Std_Score,   Student_Rand,   Zscore