Skip to content

Fit succeeds with scipy, but fails with minuit #1695

Discussion options

You must be logged in to vote

I managed to isolate a problem in this workspace, and expect that it's likely the full explanation for what you see. It seems to come down to the use of histosys modifiers that have normalization effects (not just shape), but due to the way the HistFactory extrapolation works, this means that strong pulls can result in negative yield predictions. The exponential extrapolation for normsys modifiers protects against this, and I would recommend using it especially for single-bin cases, like the one causing an issue here.

To get started, it is useful to have parameters where the NaN logpdf value happens. One way to do this is to add a breakpoint to Model.logpdf if np.isnan(result). From there…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@alexander-held
Comment options

@alexander-held
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kratsg
Comment options

Answer selected by kratsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants