Suppose a population has an exponential distribution with A = 0.5. We can simulate drawing a sample of size 10 from this population with rexp(10,0.5) and compute a 95% confidence interval with t. test(rexp(10,0.5),mu=2)$conf.int . a. What is the population mean u? b. Write code to simulate 10000 confidence intervals and determine what percent of the time u is in the 95% confidence interval. c. Why is your answer different from 95%?

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.3: Measures Of Spread
Problem 1GP
icon
Related questions
Question
100%

This is a Statistics problem. Please code in R.

 

Suppose a population has an exponential distribution with A = 0.5. We can simulate drawing a sample
of size 10 from this population with rexp(10,0.5) and compute a 95% confidence interval with
t. test(rexp(10,0.5),mu=2)$conf.int .
a. What is the population mean u?
b. Write code to simulate 10000 confidence intervals and determine what percent of the time u is in
the 95% confidence interval.
c. Why is your answer different from 95%?
Transcribed Image Text:Suppose a population has an exponential distribution with A = 0.5. We can simulate drawing a sample of size 10 from this population with rexp(10,0.5) and compute a 95% confidence interval with t. test(rexp(10,0.5),mu=2)$conf.int . a. What is the population mean u? b. Write code to simulate 10000 confidence intervals and determine what percent of the time u is in the 95% confidence interval. c. Why is your answer different from 95%?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Calculus For The Life Sciences
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,