Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(513138} Suppose we have data in pairs (59,-, gig} for i = 1} 2, . . . ,30. Conditional on xi, Y; is Bernoulli with

image text in transcribed
(513138} Suppose we have data in pairs (59,-, gig} for i = 1} 2, . . . ,30. Conditional on xi, Y; is Bernoulli with success probability exp(g '1' 531551;} i=Pi2=1 =. 3\" ( |$)1+BXP(30+51$=') For this question, you'll be asked to compute the maximum likelihood estimate of El : (g, 31]? Note that the log-likelihood is 30 new) = 2 [ya- Inga) + (1 ya) logo pa]- i:1 The data are given below: 1: = c(0.02, -0.48, -1.68, -1.12, 0.87, 0.86, -0.34, 0.19, 0.2, -0.79, -0.T8, -0.08, 0.07, -0.78, -1.45, 1.4, 1.34, 1.1, -0.27, -0.18, 0.48, 0.03, -0.3, 1.81, -2.26, '0.18, 1.15, -0.56, 0.88, '0.49) y CEO, 0, 0, 0, 1, 1, '3', 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, '3', '3', 0, 1, 0, 1, 0, 0, 0, 0, 1, 0) (a) Use the function opt mm to compute ,0, using the initial value (0, 0). Compare your result with the output from the R built-in logistic regression function {glm(. . . , family = ' binomial ' I). (b) Again, using the initial value (0, 0), compute ,3 by running the Newton-Raphson algorithm for 100 iterations. (Note: You'll need to nd the gradient and Hessian of the log-likelihood with respect to ,6.)

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_2

Step: 3

blur-text-image_3

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

Probability, Random Variables, And Random Processes

Authors: Hwei P Hsu

3rd Edition

0071824774, 9780071824774

More Books

Students also viewed these Mathematics questions