/*****************************************************************/ /* */ /* random-means.jsl is a script that simulates the following */ /* process: */ /* */ /* Draw a sample of size n using SRS from a population */ /* data set with N rows called Y (stored in the current */ /* data table, and compute the mean of these n draws; */ /* repeat this process M times and store these M means */ /* in a column called Mean in a data table called */ /* Results. */ /* */ /* In the language of the populations-and-samples diagrams */ /* from class, Y is the population and Mean is the imaginary */ /* data set. */ /* */ /* When the population size N is a lot larger than the sample */ /* size n, SRS is approximately the same as IID sampling, so */ /* we can use the formulas in class for the expected value and */ /* standard error of a mean under IID sampling to get an idea */ /* of what the mean and SD of the column called Mean should be, */ /* and if n is large the distribution of values in Mean should */ /* be close to normal by the Central Limit Theorem. */ /* */ /*****************************************************************/ // Reference data table; dt=current data table(); dt<