Hello Dr. Rick,

I want to run a Monte Carlo simulation VERY similar to this one, for the chi-square goodness of fit test. There are six categories with null probabilities 30,20,20,10,10,10 respectively. I want to compute the p-value of the simulation and compare it to the p-value of the observed statistic. How can I run this? Thanks!!