You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Signal strength: 0.200 +/- 0.291
abc[0]: 1.000 +/- 0.047
as result. A change to the shapesys data for the signal sample has no impact on the result at all, while changing it for the background does change the result.
I believe there is just a single Poisson rate to be set, as there is just a single parameter controlling both modifiers that is being constrained. The parameter does seem to correctly scale both samples, but there is just a single constraint term. I do not know whether it would be more sensible to create one constraint term per sample and keep the parameter effect correlated, or to catch this scenario and raise a warning.
Actual Results
no warnings raised about model being potentially invalid
pyhf Version
pyhf-0.7.0rc2.dev30
Code of Conduct
I agree to follow the Code of Conduct
The text was updated successfully, but these errors were encountered:
After thinking some more about this following a talk at the pyhf workshop https://indico.cern.ch/event/1294577/contributions/5677127/, I think there is a meaningful way to correlate these modifiers across samples. Conceptually, this would be similar to staterror, but with some important difference in behavior.
A staterror term in a bin only needs a single float to keep track of auxdata (constraint term width for the Gaussian essentially). This is because all the per-sample uncertainties are summed together, and then all samples vary with that total MC statistical uncertainty.
For shapesys, the way I am thinking about this would be to not combine uncertainties per sample in the same way, but only correlate the nuisance parameter. That would be similar to e.g. histosys in a single bin, but histosys is always a unit Gaussian, so the relevant auxdata is always the same no matter which different histosys modifiers across samples are correlated. The data that is per-sample is the data in the histosys modifier itself. For a shapesys, the (Poisson) constraint term width would differ per sample, so we would need a sample-specific auxdata to track that. Currently this does not exist conceptually within pyhf as far as I know.
Summary
Is there a meaningful way to correlate shapesys modifiers across samples? If not, models where this is done should be flagged as invalid.
This is somewhat related to #1899.
OS / Environment
n/a
Steps to Reproduce
File Upload (optional)
No response
Expected Results
The script above prints
as result. A change to the
shapesys
data for the signal sample has no impact on the result at all, while changing it for the background does change the result.I believe there is just a single Poisson rate to be set, as there is just a single parameter controlling both modifiers that is being constrained. The parameter does seem to correctly scale both samples, but there is just a single constraint term. I do not know whether it would be more sensible to create one constraint term per sample and keep the parameter effect correlated, or to catch this scenario and raise a warning.
Actual Results
no warnings raised about model being potentially invalid
pyhf Version
pyhf-0.7.0rc2.dev30
Code of Conduct
The text was updated successfully, but these errors were encountered: