Calculate chi-square distribution or inverse chi-square distribution
Message
Chi-Square distribution is used for a normally distributed population.
Let Z1, Z2,....Zn be independent standard random variables.
Let X= [Z1^2+ Z2^2+....+Zn^2].
X distribute as Chi-square random variable with n degrees of freedom.