Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How to simulate Chi-squared distribution

  1. Jun 19, 2012 #1
    Is there any algorithm to simulate Chi-squared distribution?
    Here, the degrees of freedom is very large. It may be 10^8.
  2. jcsd
  3. Jun 19, 2012 #2


    User Avatar
    Science Advisor

  4. Jun 19, 2012 #3


    User Avatar
    Science Advisor
    Gold Member

    The Central Limit Theorem says that chi-squared approaches a normal distribution when the number of DOF's k becomes large. A normal distribution is an excellent approximation for k>50 in most cases, so it should be near perfect for k=10^8.
  5. Jun 20, 2012 #4
    Yes. Thank you very much.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook