SAS must be used. Please include the code and the answer.
1. Generate 625 samples of size 961 random numbers from an Exponential distribution with lambda = 2.
For each of these 625 samples calculate the mean:
a) Find the simulated probability that the mean is between 2 and 2.1.
b) Find the simulated mean of the means.
c) Find the simulated standard deviation of the means.
d) Display the histogram of the means.
proc means data=Sim noprint; by SampleID; var x; output out=OutStats3 mean=SampleMean std=SampleStd; run; /* P( Sample mean in [3,4] ) = 0 (less than 1/&NumSamples) */ data PValue34; set OutStats3; mean34 = (3<= SampltMean <= 4); run; proc freq data=PValue34; tables mean34; run; ods select Moments Histogram; proc univariate data=OutStats3; label SampleMean = "Sample Mean of U(1,9) Data"; var SampleMean SampleStd; histogram SampleMean SampleStd / normal ; /* overlay normal fit */ run;
ANSWERED PLEASE RATE ME POSITIVE THANKS
Get Answers For Free
Most questions answered within 1 hours.