Question

SAS must be used. Please include the code and the answer. 1. Generate 625 samples of...

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.

Homework Answers

Answer #1
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

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Please use SAS programming. Do not use an array. Please provide the code, answer, and explanation....
Please use SAS programming. Do not use an array. Please provide the code, answer, and explanation. Find answers to the following questions by simulation using SAS (use rand('uniform') to generate random numbers). You must provide a final answer once you have observed the output from SAS and give reasons for your answers. That is if there is convergence, why and what is the final answer. However, if there is divergence, why. 2. A one unit stick is broken randomly into...
Using MATLAB, not R codes, I repeat, please, not in R, just MATLAB codes, write the...
Using MATLAB, not R codes, I repeat, please, not in R, just MATLAB codes, write the complete code for: 1. Assume Y is an exponential random variable with rate parameter λ=2. (1) Generate 1000 samples from this exponential distribution using inverse transform method (2) Compare the histogram of your samples with the true density of Y.
USING MATLAB (A) Use the rand command to generate “X” of size [10000 1] and the...
USING MATLAB (A) Use the rand command to generate “X” of size [10000 1] and the command histogram to plot the probability distribution of “X” along with axis labels and a title that includes the mean and variance for “X”. (B) Use a while loop and the rand command to generate “X1”, also of size [10000 1] but with each element of “X1” being the mean of 2 “samples” generated using rand, i.e. a “sample size” of 2 separate numbers...
andom samples of size n = 2 are drawn from a finite population that consists of...
andom samples of size n = 2 are drawn from a finite population that consists of the numbers 2,4,6, and 8. a) calculate the mean and the standard deviation of this population. b) list the six possible random samples of size n = 2 that can be drawn from this population and calculate their means. c) Use the results of part (b) to construct the sampling distribution of the mean for random samples of size n =2 from the given...
Use the programming language R to code the following project.. * Make sure you turn in...
Use the programming language R to code the following project.. * Make sure you turn in your code and answers from each question. (not the raw data). 1. Generate 1000 random samples of size 40 from the normal distribution with mean µ = 3 and standard deviation σ = 2. Compute 95% the confidence interval of 1000 samples and find the rate of confidence interval contains the true mean. What did you learn from this simulation study? 2. For each...
Part 1 1. generate 500 data random in Excel with an of the distributions views in...
Part 1 1. generate 500 data random in Excel with an of the distributions views in class that not is it normal. 2 make a histogram of the 500 data generated. 3 take 100 samples of 10 500 generated data data and obtain the means of each sample in Excel. 4. make a histogram of averages show them data. Do the histogram elaborated in point 4 corroborates what is expressed in the Central limit theorem? Why? part 2 1. theory:...
INCLUDE/SHOW SAS CODE PLEASE A drug company was concerned about the length of time a particular...
INCLUDE/SHOW SAS CODE PLEASE A drug company was concerned about the length of time a particular drug retained its potency. A random sample (Sample 1) of 10 bottles of the product was drawn from current production and analyzed for potency. A second sample (Sample 2) was obtained, stored for 1 year, and then analyzed. The measurements obtained are as follows: Sample 1 10.6 10.2 10.5 10.3 10.8 9.8 10.6 10.7 10.2 10.0 Sample 2 9.9 9.8 9.6 10.1 10.2 10.1...
Continuous distributions: Generate and store in column c1 10,000 values from the uniform distribution on the...
Continuous distributions: Generate and store in column c1 10,000 values from the uniform distribution on the interval [4,8] as follows: random 10000 c1; uniform 4 8. (Do not forget the ”dot”) [3] a. Use mean command to find the sample mean ¯x of these data, ¯x=————- Note: The mean µ of a uniform distribution over an interval [a, b] is simply the middle of this interval, i.e. µ = (a + b)/2. [3] b. What is the mean µ of...
Please show all the steps 4 Repeated random samples of size N = 100 is taken...
Please show all the steps 4 Repeated random samples of size N = 100 is taken from a population of COVID-19 patients. This population has mean temperature of u=102 degrees F and a standard deviation of sigma=2 degrees F. (note these numbers are fictional). What proportion of the samples of size 100 will have a mean below 101.5 degrees F? QUESTION 5 Repeated random samples of size N = 100 is taken from a population of COVID-19 patients. This population...
Suppose that a lecturer gives a 10-point quiz to a class of five students. The results...
Suppose that a lecturer gives a 10-point quiz to a class of five students. The results of the quiz are 3, 1, 5, 9, and 7. For simplicity, assume that the five students are the population. Assume that all samples of size 2 are taken with replacement and the mean of each sample is found. Questions: Calculate the population mean and standard deviation Suppose that you obtain at least 20 random samples of size 2. From data obtained by you,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT