关于r语言的题,有没有大佬教一下

3. Use set.seed(100) to answer this question. (a) Generate a random sample of size 25 from a normal distribution with mean µ = 3 and standard deviation σ = 1.5. Assume σ is known and we want to estimate µ. Using the sample generated, find a 95% confidence interval (CI) for µ. (b) Repeat the process in (a) 20 times. Using your 20 samples, calculate 20 CIs for µ. How many of these 20 intervals contain the true mean µ = 3? Output this number from your code, but no need to print the 20 CIs themselves.

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^