vendredi 7 décembre 2018

STATA: simulating normal distribution 1000 times and showing it on histogram

I am enrolled in a STATA course and we were given a homework. So far I haven't figured out the solution (but i genuinely tried at least). Now I am turning to you. The task goes like this:

"Simulate 1000-1000 samples with n observations (where n = 1, 100, 10000 and 100000) on the [0,1] interval as normal distribution. Provide histograms to prove the consistency and asymptotic normal distribution"

I understand the underlying statistical theory we are supposed to prove, it is just I haven't got a clue how to script it. Thanks in advance!




Aucun commentaire:

Enregistrer un commentaire