Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with r coding with regards to Negative binomial distribution. For this question please help with c d and e. (1] Suppose X

i need help with r coding with regards to Negative binomial distribution. For this question please help with c d and e.

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 with AI-Powered 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

Auditing A Practical Approach

Authors: Robyn Moroney

1st Canadian Edition

978-1118472972, 1118472977, 978-1742165943

Students also viewed these Mathematics questions

Question

=+ What are the undesirable consequences?

Answered: 1 week ago