Skip to content

BUG: missing term in family Poisson deviance - #3426

Merged
josef-pkt merged 2 commits into
statsmodels:masterfrom
josef-pkt:bug_poisson_deviance_3355
Feb 5, 2017
Merged

josef-pkt merged 2 commits into
statsmodels:masterfrom
josef-pkt:bug_poisson_deviance_3355

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

closes #3355

@josef-pkt

Copy link
Copy Markdown
Member Author

strange fails in every python version, in test for bse in statsmodels.discrete.tests.test_constrained.TestGLMPoissonConstrained1a and 1b

I thought deviance is not used for anything as intermediate result.

@josef-pkt

Copy link
Copy Markdown
Member Author

reducing test precision 1e-6 -> 5e-6 and 1e-12 -> 1e-11 should make the tests pass

but I still don't see why deviance should affect any of those results.

@josef-pkt

Copy link
Copy Markdown
Member Author

ok, it's the convergence criterion in GLM irls which defaults to deviance.
So now they converge to slightly different results, note the required test precision is very high for numerical optimization because the start_params are set so that they should be the optimized solution, but now the params move a bit.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.003%) to 88.125% when pulling 684ddd5 on josef-pkt:bug_poisson_deviance_3355 into 4d67a17 on statsmodels:master.

@josef-pkt josef-pkt added this to the 0.8 milestone Feb 5, 2017
@josef-pkt

Copy link
Copy Markdown
Member Author

all green, so merging

backport 0.8 candidate

@josef-pkt
josef-pkt merged commit 1265b92 into statsmodels:master Feb 5, 2017
@josef-pkt josef-pkt mentioned this pull request Feb 5, 2017
4 of 28 tasks
@lorentzenchr lorentzenchr mentioned this pull request Feb 5, 2017
22 of 27 tasks
josef-pkt added a commit to josef-pkt/statsmodels that referenced this pull request Feb 6, 2017
…ce_3355

BUG: missing term in family Poisson deviance
@josef-pkt
josef-pkt deleted the bug_poisson_deviance_3355 branch June 2, 2017 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG/ENH: poisson deviance

2 participants