So im done the assignment, but something doesn't feel right about the chi-squared section... Once "n" reaches a certain number (eg. 400), all p-values are astronomically small, which would render "ProbTest" from part two of the assignment (which uses an n of 10000) useless. I may have misunderstood something.
Could someone clarify if we are entering a single vector of 'realistic' frequencies generated by "sample.n (TRUE)" into the chi-squared? Because now that I'm re-reading the section, it seems to imply we are using a vector of 'realistic' frequencies, as well as a vector of 'non-realistic' frequencies (eg. sample.n (FALSE)), and comparing them with the chi-squared. Is this correct?