Skip to content

REF: NegativeBinomial start_params might fail #2406

Closed

Description

@josef-pkt

NegativeBinomial is using a Poisson model to get the start_params

However, that might fail, it uses default optimizer

I added skip_hessian=True, full_output=False to the poisson fit for start_params in NegtiveBinomial
c3791cb in PR #2374

There might be other code that needs similar review and changes.

Activity

  1. added this to the 0.8 milestone on May 15, 2015
  2. changed the title [-]REF: NegativeBinomial start_params[/-] [+]REF: NegativeBinomial start_params might fail[/+] on May 15, 2015
  3. modified the milestones: 0.8, 0.15 on Dec 22, 2022
  4. josef-pkt commented on Dec 22, 2022

    @josef-pkt
    MemberAuthor

    two ideas to make start_params more robust

    • in models with exponential mean function avoid large exog, use internal rescaling, i.e. use a params_adjust or params_scaling without changing model.exog (for Poisson we might be able to use transform_params
    • add warning in Negbin if start_params Poisson results shows under dispersion (or not enough positive dispersion. This will likely result in convergence failure.
  5. bashtage commented on Jul 30, 2026

    @bashtage
    Member

    Fixed: the preliminary Poisson fit used to derive NegativeBinomial start_params already uses skip_hessian=True, disp=0, warn_convergence=False, and an optim_kwds_prelim parameter (commit 774db92) lets callers override the preliminary optimizer entirely if it still fails. Closing as fixed.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions