/*****************************************************************/ /* */ /* random-sums.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 sum of these n draws; */ /* repeat this process M times and store these M sums */ /* in a column called Sum in a data table called Results. */ /* */ /* In the language of the populations-and-samples diagrams */ /* from class, Y is the population and Sum 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 sum under IID sampling to get an idea */ /* of what the mean and SD of the column called Sum should be, */ /* and if n is large the distribution of values in Sum should */ /* be close to normal by the Central Limit Theorem. */ /* */ /*****************************************************************/ // Reference data table; dt=current data table(); dt<