Question: This question is to be solved using RStudio. Use set . seed(100) to answer this question. (a) Generate a random sample of size 25 from
This question is to be solved using RStudio.

Use set . seed(100) to answer this question. (a) Generate a random sample of size 25 from a normal distribution with mean a = 3 and standard deviation cr = 1.5. Assume 0' is known and we want to estimate p. Using the sample g-erated, nd a 95% condence interval (CI) for ,u. (b) Repeat the process in (a) 20 times. Using your 20 samples, calculate 20 013 for .11. How many of these 20 intervals contain the true mean in = 3? Output this number from your code, but no need to print the 20 CIs themselves
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
