How to simulate Chi-squared distribution

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
nenyan
Messages
67
Reaction score
0
Is there any algorithm to simulate Chi-squared distribution?
Here, the degrees of freedom is very large. It may be 10^8.
 
Physics news on Phys.org
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.
 
marcusl said:
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.

Yes. Thank you very much.