Function File: [m, v] = chi2stat (n)

Compute mean and variance of the chi-square distribution.

Arguments

  • n is the parameter of the chi-square distribution. The elements of n must be positive

Return values

  • m is the mean of the chi-square distribution
  • v is the variance of the chi-square distribution

Example

n = 1:6;
[m, v] = chi2stat (n)

References

  1. Wendy L. Martinez and Angel R. Martinez. Computational Statistics Handbook with MATLAB. Appendix E, pages 547-557, Chapman & Hall/CRC, 2001.
  2. Athanasios Papoulis. Probability, Random Variables, and Stochastic Processes. McGraw-Hill, New York, second edition, 1984.

Package: statistics