Generate 1000 random samples for six distributions: a) a uniform distribution between 10 and 20; b) a normal distribution N(100,10); c) an exponential distribution with the parameter to be 10; d) a binomial with n=100 and p=0.2 ; e) a Poisson distribution with a parameter to be 10; and f) a Gamma distribution ?(10,5). Use Proc Univariate to get the statistics for all the five samples you generated (for each distribution). Then plot a histogram chart using Proc Gplot or Proc Gchart (make use of the code on my slides and read the handout on charting). To simplify your coding, you need to use a macro for the simulation and call the macro for the six different distributions.
Hint1: An exponential variate X with parameter LAMBDA can be generated as x=ranexp(seed)/lambda;
Hint 2: A gamma variate X with shape parameter ALPHA and scale BETA can be generated as x=beta*rangam(seed,alpha);