Skip to content

nll scan of POI and nuisance parameters #1889

Answered by alexander-held
diptaparna asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @diptaparna, you can get (twice the) NLL returned from a fit via the return_fitted_val keyword argument in pyhf.infer.mle.fit. Performing a scan means setting the parameter over which you are scanning to constant (via the fixed_params argument) and to the specific value you are interested in for the scan (via the init_pars argument). You then repeat that procedure for various parameter values and can then plot the NLL vs the values at which you held the respective parameter fixed.

cabinetry provides you an API for (currently only one-dimensional) likelihood scans: cabinetry.fit.scan, which returns you an object that you can feed to cabinetry.visualize.scan for visualization purposes. A…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kratsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants