homework9 - Homework 9 36-325/725 due Friday Nov 9 (1) Get...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Homework 9 36-325/725 due Friday Nov 9 (1) Get the data on eruption times and waiting times between eruptions of the old faithful geyser. data(faithful) names(faithful) help(faithful) x <- faithful$waiting y <- faithful$eruptions plot(table(x),xlab="waiting times") plot(table(y),xlab="duration") Make sure you understand what these commands do. What does the table command do? Why am I using it? Estimate the mean waiting time and give a standard error for the estimate. Also, give a 90 per cent confidence interval for the mean waiting time. (Note: 90 per cent, not 95 per cent!) Now estimate the median waiting time. Give a standard error and 90 per cent confidence interval. Use the bootstrap to get the standard error. For the confidence interval, try two approaches: the Normal interval and the percentile interval. (2) 100 people are given a standard antibiotic to treat an infection and another 100 are given a new antibiotic. In the first group, 90 people recover; in the second group, 85 people recover. Let be the probability of recovery under the standard treatment and let be the probability of recovery under the new treatment. We . Provide an estimate, standard error, an are interested in estimating 80 per cent confidence interval and a 95 per cent confidence interval for . (Hint: look at the mouse data example.) (3) In 1975, an experiment was conducted to see if cloud seeding produced rainfall. 26 clouds were seeded with silver nitrate and 26 were not. The decision to seed or not was made at random. You can get the data from 1 http://lib.stat.cmu.edu/DASL/Stories/CloudSeeding.html Let be the difference in the median precipitation from the two groups. Estimate . Estimate the standard error of the estimate and produce a 95 per cent confidence interval using the bootstrap. be distinct observations (no ties). Let (4) Let note a bootstrap sample and let . Find: , and . (5) In this question, we will investigate how accurate the bootstrap estimate of the standard error is when the sample size is small. Let . The plug-in estimate of is . Find an exact expression for the standard error of . Call this se. Now take , , and conduct a simulation. Each time you simulate a data set, estimate the standard error using the bootstrap. To keep this manageable, use in the bootstrap and use simulations. You will thus get 100 bootstrap standard errors . To assess the accuracy of the bootstrap, compute the mean of . What is your conclusion about the accuracy of the bootstrap standard error? Repeat for . 2 67 ! 42 3 5 ! ! # "" 6 IHGE CC P 3 F D Q Q d ec sr5 decRugihfdec 5 Ctec sr5 eRqpec 5 g Q d d cQ d gg d d ihfec "Cfec U AU P XVW$ UV 1) & $ 0 ( TSR"Q 6 ! 3 B @ ! 1) & $ A9 ) 0 '% ! ( ) U U a AAb`Y 6 ! 42 7 ! 3 3 6 5 @ 9 A8 "Q U X AbE$ de, ...
View Full Document

Ask a homework question - tutors are online