Please write code in R
Observations 1 2 3 4 5 6 7 8 X1 9 7 8 8 6 9 8 9 X2 y 7 7 10 4 5 3 4 1 5 2 3 1 6 3 1 0 Consider a Poisson regression model with Ni = Bo + B1Xil + B2X12, and suppose we want to minimize the following function (which is actually the negative log-likelihood of something, take Dr. Gauri Datta's STAT8350 to know more!) 8 8 f(B) exp{Bo+Bıxi1 +B2xia} - 2 yi(Bo+Bıxı1 + B2x12). (1) i=1 i=1 Assume that Bol < 25, and Bi1 < 5 for i = 1, 2. Find ß = (Bo,B1, B2) that minimizes equa- tion (1) numerically by using the following four different optimization techniques: (a) Use “L-BFGS-B Algorithm” (Broyden-Fletcher-Goldfarb-Shanno) for optim, (b) Particle Swarm Optimization, (c) Differential Evolution algorithm, and (d) Genetic algorithms. 3 Compare the results for these different algorithms and comment on their performances. Note that DE is a generalization of GA.
Please write code in R
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Please write code in R
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!