Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(1] Suppose X N NBinI[2,p). (a) Show the MLE for p, based on a single observation X, is 33 t: X/(2 + X). [b] Write

image text in transcribed
(1] Suppose X N NBinI[2,p). (a) Show the MLE for p, based on a single observation X, is 33 t: X/(2 + X). [b] Write an R function to compute the log likelihood ratio where a: E {0&11 . . .}, and pg E ([1, 1). Take special care to correctlyr return the value of this function when m = [1. Plot this function for 33.3. = [L9, remembering that I can ooh,r take integer values. (o) Write an R function to compute the size of a Ill-test for ill-[g : p = 199 versus S'fg : 33 3E pg with the critical region C={IE{D,1,...}:h(s}:>K} for a given If. Plot this size against K E [0, 4]. (d) Use the function from part (c) to determine the critical region C correspond- ing to a size threshold of o: = 0.05 for the above test. (e) Write an R function to compute the power for the above test and present a plot of power versus 33. Comment on how the minimum of this function relates to the size of the test

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Theory And Applications Of Partial Functional Differential Equations

Authors: Abrar A Khan

1st Edition

9353141915, 9789353141912

More Books

Students also viewed these Mathematics questions

Question

What steps will Sara need to take to conduct a benefit audit?

Answered: 1 week ago