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%?
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
Related questions
Question
100%
This is a Statistics problem. Please code in R.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Calculus For The Life Sciences
Calculus
ISBN:
9780321964038
Author:
GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.
Publisher:
Pearson Addison Wesley,