Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive and Implement Analytic Hessian for Mixed Logit #5

Open
timothyb0912 opened this issue Dec 5, 2016 · 2 comments
Open

Derive and Implement Analytic Hessian for Mixed Logit #5

timothyb0912 opened this issue Dec 5, 2016 · 2 comments

Comments

@timothyb0912
Copy link
Owner

timothyb0912 commented Dec 5, 2016

This is on the agenda for the coming months, but pull requests or contributions are always welcome.

At the moment, the sum of the outer products of the gradient are used as an approximation to the actual hessian.

@Eh2406
Copy link

Eh2406 commented Dec 5, 2016

Do we know that the Hessian has a closed form? If so do we know what it is? ("Derive" suggests we may not.) All answers are okay. Just trying to assess how much work this will be.

@timothyb0912
Copy link
Owner Author

timothyb0912 commented Dec 5, 2016

Hey, the same deal applies here as for the nested logit.

I think the hessian exists in closed-form. This is based on the fact that the gradient exists in closed form and that nothing indicates that the derivative of the gradient would be undefined or lose its closed-form nature. I haven't checked the math completely, but equation (3) of the the following link may be the hessian for a mixed logit model (or at least closely related to it): MM ALGORITHM FOR GENERAL MIXED MULTINOMIAL LOGIT MODELS

I say derive simply because one might have to derive the formulas oneself, and I typically do so anyway just to make sure I really understand the formulas when trying to code everything up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants