How to simulate Chi-squared distribution

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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.