Hessian of POI around its maximum #1862
-
Hey guys, in SModelS we have a use case where we fit the signal strength multiplier mu that maximizes the likelhood via Wolfgang (SModelS) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You should be able to get it through >>> import pyhf
>>> model = pyhf.simplemodels.uncorrelated_background([5.0], [10.0], [2.5])
>>> data = [12.5] + model.config.auxdata
>>> pyhf.set_backend(pyhf.tensorlib, 'minuit')
>>> pyhf.infer.mle.fit(data, model, return_correlations=True)
(array([0.5015113 , 0.99947511]), array([[ 1. , -0.57697422],
[-0.57697422, 1. ]])) Keyword arguments for most/all fit functions are listed in the Optimizer API (https://scikit-hep.org/pyhf/_generated/pyhf.optimize.mixins.OptimizerMixin.html#pyhf.optimize.mixins.OptimizerMixin.minimize) |
Beta Was this translation helpful? Give feedback.
-
Gocha, thanks @kratsg . That settles my question. Wolfgang |
Beta Was this translation helpful? Give feedback.
You should be able to get it through
minuit
.Keyword arguments for most/all fit functions are listed in the Optimizer API (https://scikit-hep.org/pyhf/_generated/pyhf.optimize.mixins.OptimizerMixin.html#pyhf.optimize.mixins.OptimizerMixin.minimize)