Skip to content

Error estimation in model.expect_data() #1509

Discussion options

You must be logged in to vote

Hi, there are two ways of doing this: bootstrapping and error propagation. pyhf itself does not include a method for this at the moment.

For bootstrapping, see #1187 (comment) and #1359 (comment) for an example. You can sample from a multivariate Gaussian and evaluate the model prediction for all samples. In principle you could sample from the full likelihood directly to avoid the Gaussian approximation as well.

Error propagation can for example be done via iminuit.util.propagate as described in this tutorial. Another implementation is provided via the cabinetry library in cabinetry.model_utils.calculate_stdev. See this example notebook showing the use of cabinetry, and in particular the c…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by BlaiseDelaney
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