logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Satish VermaFinance
(5/5)

678 Answers

Hire Me
expert
Piper SharpMathematics
(5/5)

684 Answers

Hire Me
expert
Miguel OrtizzSocial sciences
(5/5)

898 Answers

Hire Me
expert
Connor EvansData mining
(5/5)

872 Answers

Hire Me
R Programming
(5/5)

Assume a population X/Exp(λ) and the iid sample X1, ..., X25 of it. You are interested in the specific value of the population parameter λ so you estimated

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Exercise - Bootstrapped Hypothesis Testing

Assume a population X/Exp(λ) and the iid sample X1, ..., X25 of it. You are interested in the specific value of the population parameter λ so you estimated it by the following plug-in estimator λˆ =   1    which you want to test now.

1)  Write a function that tests the following hypothesis pair H0 : λ = λ0 vs. H1 : λ = λ0 by using the limiting distribution  of  λˆ.  The  inputs  of  your  function  should  be  the  sample,  λ0 and  α.  As  result  it should return either a 0 for “H0 not rejected” or a 1 for “H0 rejected”. Hint: You will need the parametric delta method!

2)   Now write a function that uses the bootstrapped bias-corrected mean and variance instead of the sample moments for testing the same hypothesis pair! The function should have the number of bootstrap repetitions b as an additional imput.

3)  λˆ−λ0Next write a third function that tests the hypothesis pair by bootstapping the test statistic  √Var(λˆ) directly and using its empirical quantiles. Hint: The function should center the sample to λ0 before the resampling!

4)   Conduct a Monte Carlo simulation with 103 repetitions, α = 0.05, λ0 = 1, and b = 1000 to calculate empirical rejection rates for different values of λ as in the table below:

5)    At last, plot the empirical power functions for the Monte Carlo simulation like given below:

Remarks: You may work in groups of max 5 people. Download an R notebook file from OLAT and adjust its name with your last name(s). Write comments for everything you do. Codes that are not written using the notebook file and/or that return error messages will not be evaluated.

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme