q_0 distributions using toys #1447
Unanswered
SimonBerlendis
asked this question in
Q&A
Replies: 1 comment 2 replies
-
What version of Without having fully looked at this at all yet, I'll note first that model = pyhf.simplemodels.hepdata_like(signal_data=[30.0], bkg_data=[100], bkg_uncerts=[10]) Check out the "Running Monte Carlo simulations (toys)" example notebook "Counting Experiment" section for an example of this being done. Could you also make your notebook and environment file available as a GitHub Gist? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear pyhf experts,
I am trying to do a short-and-simple statistic test using pyhf (first time for me!). But I end up with a weird result. Can someone help me to understand what I did wrong ?
I want to do a q_0 statistic test using a simple model with one single signal region and no systematic uncertainties and I would like to calculate the signal significance using toys.
I created a jupyter notebook which you can find a version here: https://sberlend.web.cern.ch/Test.html
To summarize:
I generated a simple model like this:
I created the test statistics by doing the following :
And then I generated the q_0 distributions using the following method:
I end up with the following distributions:
Which seems wrong, since I would expect a distribution peaked at zero and rapidly falling for high q_0 values. Did I did something wrong ?
Cheers, Simon.
Beta Was this translation helpful? Give feedback.
All reactions