-
Dear pyhf developers/users, I am trying to understand how to differentiate between bkg only vs signal+ bkg fits, given I have one input json ? I am guessing the above fit result is for signal + bkg fit. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Typically, there's two different kinds of fits one wants to do. One is an MLE fit (unconstrained) and the other is a POI-constrained fit. Usually when someone wants to do an MLE fit for two different models, the way it works is to do something like # ...
model = ws.model()
# bkg-only fit
pars_bonly = pyhf.infer.mle.fixed_poi_fit(0.0, ws.data(model), model)
# sig+bkg fit
pars_sigpbkg = pyhf.infer.mle.fixed_poi_fit(1.0, ws.data(model), model) and you compare the fitted parameters, e.g. to compute something like model.logpdf(pars_bonly)
# vs
model.logpdf(pars_sigpbkg) Does this clarify? |
Beta Was this translation helpful? Give feedback.
Typically, there's two different kinds of fits one wants to do. One is an MLE fit (unconstrained) and the other is a POI-constrained fit. Usually when someone wants to do an MLE fit for two different models, the way it works is to do something like