next up previous
Next: About this document ...

Lab 4: The Central Limit Theorem and Binomial RVs

1.
Open up a new data file in Systat. Title 6 columns UNIF1, UNIF2, UNIF3, UNIF4, UNIF5 and UNIFSUM. Use the Fill Worksheet option under the Data menu to fill the worksheet to 200 rows. Then, use the Math option under the Data menu to set UNIF1 to URN (select UNIF1 on the left, URN on the right). Repeat this procedure for UNIF2 through UNIF5. The population mean and variance of a uniform random variable ($\mu$ and $\sigma^2$) are $\frac{1}{2}$ and $\frac{1}{12}$, repectively.

2.
The Central Limit Theorem says that if we add several random variables with the same pmf or pdf together, the shape of the pmf or pdf for the sum begins to tend towards a bell shape (a Normal random variable). Using Data/Math, set UNIFSUM equal to UNIF1+UNIF2+UNIF3+UNIF4+UNIF5.

3.
Add 6 more columns and title them EXP1 throug EXP5 and EXPSUM. Using Data/Math, set EXP1 equal to ERN (``exponential random number'') and repeat for EXP2 through EXP5. The population mean and variance of an exponential random variable ($\mu$ and $\sigma^2$) are both 1.

4.
The Central Limit Theorem does not work as well for skewed random variables as it does for symmetric ones. Hopefully this will show up now. Using Data/Math, set EXPSUM equal to EXP1+EXP2+EXP3+EXP4+EXP5.

5.
Simulated data are commonly used to test out statistical techniques. Since we know the true pmf or pdf, we can predict what results we should get, and if we don't get them we know that something needs to be fixed. If the uniform random number generator is working correctly, we would expect roughly 80% of the values in UNIF1 to be above 0.2. In testing this, we can turn the numbers in UNIF1 to the outcomes from a binomial random variable with n=1 and p=0.8. Go under Data/Recode, and if UNIF1 > 0.2, let UNIF1 =1 (a success). Then, if UNIF1 < 0.2, let UNIF1 =0 (a failure). The mean of this random variable should be p=0.8 and the variance should be p(1-p) = 0.16. How well do the sample values match the theoretical ones?



 
next up previous
Next: About this document ...
Dennis Cox
2/16/1998