pyhf yield table script #1187
Replies: 4 comments 6 replies
-
Hi @Daniel-Noel, maybe instead of text files you could make a Gist and just link it here instead? |
Beta Was this translation helpful? Give feedback.
-
Sure, the file can be found here https://gist.github.com/Daniel-Noel/c4307b7a4355c99240d4dbc6a02913b1 |
Beta Was this translation helpful? Give feedback.
-
Hi, great to see this work! I gave the gist a try and it ran fine for me. I did not quite understand the implementation of the yield uncertainty calculation, and I think it is not quite correct. Here is an example for calculating the total model uncertainty per bin (pre- and post-fit), for the post-fit calculation the parameter correlations are needed. A similar calculation can be done to get the per-sample uncertainties as well. |
Beta Was this translation helpful? Give feedback.
-
Hi, I put together an example that also performs uncertainty calculation via bootstrapping in a different context: #1359 (comment). Maybe this can be useful. See also @HDembinski's nice tutorial for more information. The error propagation method via |
Beta Was this translation helpful? Give feedback.
-
Hi,
I attach a script I use for writing out pyhf yield tables to a pdf pyhf_utils.txt.
This uses the fitted parameters and errors from pyhf.infer.mle.fit(
data, model, return_uncertainties=True
) as recommended by @kratsg.
I realise this most likely needs some tidying up, but hopefully this is a start and will be useful to share.
Cheers,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions