View the step-by-step solution to:

Use R to answer the following parts. Set the seed (order) of your randomizations by using the number 5065.

This question was answered on Jul 22, 2016. View the Answer

Use R to answer the following parts. Set the seed (order) of your randomizations by using the number 5065.

a) Create a matrix with 50 rows and 5 columns such that each row is a sample of size 5 from the exponential distribution with β=1. Print your matrix.

b) Compute the 90% t confidence intervals for the mean for each sample. Use a diagram or table to illustrate your intervals.

c) What percent of your intervals successfully captured the true mean?

d) Calculate the P-value for testing H0: β=1 vs. H1: β≠1 for each sample. Describe your P-values. Note that β is the mean of the exponential distribution. In how many tests did you reject H0? Use α=0.05.

e) The exponential distribution is a fairly extreme departure from normality. What can you conclude about the sensitivity of t intervals and tests to non-normality? This is, were the observed confidence level (for confidence interval) and significant level (for test) close to what you would expect?

Sign up to view the entire interaction

Top Answer

Answers are in... View the full answer

R-code_Sampling From Exponential.R

# a) Create and print a matrix with 50 rows and 5 columns from the exp (�=1).
simexp = rexp(n = 250, rate = 1)
simmatrix = matrix(simexp, nrow = 50, ncol = 5)
# b)...

This question was asked on Jul 20, 2016 and answered on Jul 22, 2016.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -


    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards