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

Add write up for negative binomial family GLM dispersion estimation using Maximum Likelihood method #6816

Closed
exalate-issue-sync bot opened this issue Apr 28, 2023 · 3 comments
Assignees

Comments

@exalate-issue-sync
Copy link

h2. Summary

We implemented the negative binomial regression with dispersion parameter estimation using Maximum Likelihood method.  Regularization is not supported when using dispersion parameter estimation using maximum likelihood. To use it, set the {{dispersion_parameter_method="ml"}} in the GLM constructor.

h2. Implementation details

The coefficients (betas) are estimated using IRLSM and the dispersion parameter theta is estimated after each IRLSM iteration. After first beta update, initial theta estimate is made using method of moments as a starting point, then in each iteration theta is updated using maximum likelihood.

While not converged

Estimate coefficients (betas)

Estimate dispersion (theta)

If first iteration

Theta <- Moment Method estimate

Else

Theta <- Maximum Likelihood estimate using Newton’s method with learning rate estimated using Golden section search 

If anything is not clear, please feel free to contact me ([~accountid:5e43370f5a495e0c91a74ebe] ). Also, I’m not sure if we should mention it but R’s negative binomial GLM (from MASS package) uses also parameter named {{theta}} for dispersion but their theta is inverse of h2o’s theta {{(theta_r = 1/theta_h2o)}}

@wendycwong
Copy link
Contributor

Completed

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 10, 2023

JIRA Issue Details

Jira Issue: PUBDEV-8981
Assignee: hannah.tillman
Reporter: Tomas Fryda
State: Resolved
Fix Version: 3.40.0.1
Attachments: N/A
Development PRs: Available

@h2o-ops
Copy link
Collaborator

h2o-ops commented May 10, 2023

Linked PRs from JIRA

#6483

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

3 participants