Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the logistic regression. We observe (X, Y), i = 1,. ..., n, where X Rd and Y {-1,1}. We draw X; from a

Consider the logistic regression. We observe (X, Y), i = 1,. ..., n, where X Rd and Y {-1,1}. We draw X; from a normal distribution N(0, Idxd) and (1/d,...,1/d). Given X, and , we draw Y, from the following assume 3* = Bernoulli distribution P(Y = 1) = 1 P(Y = -1) = = 1 1+ exp(-XB*)" Consider using gradient descent to find the maximum likelihood estimator of this model. (a) Implement gradient descent method with the initial point 3(0) (0,...,0) and the backtracking line search. Please use R. or Python to implement it from the scratch and you need to submit your R or Python script. = (b) Draw plots of convergence rate when n = 2000, d = 5 and n = 5000, d = 5. In each plot, the x-axis is the number of step k and y-axis is log || 3(k) - 3*||.

Step by Step Solution

3.40 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

The gradient descent method is an optimization algorithm used to fin... 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

Business Analytics Data Analysis And Decision Making

Authors: S. Christian Albright, Wayne L. Winston

7th Edition

0357109953, 978-0357109953

More Books

Students also viewed these Accounting questions

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago