Barlow-Beeston #1867
-
Dear developers, could you please confirm whether pyhf supports the Barlow-Beeston implementation of statistical uncertainties? Apologies if I missed it in the documentation! Thanks a lot in advance, Kirill |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@kskovpen (currently in
and then the rest of the section outlines things we mostly summarize in the docs.
Nothing to apologize about. While the MC Statistical Uncertainty (staterror) section of the modifiers docs does describe the implementation, as the section doesn't explicitly mention the phrase "Barlow-Beeston" it is easy to miss. You might also want to look at Issue #760 for some general discussion. |
Beta Was this translation helpful? Give feedback.
-
Probably, it's something along similar lines of #96 |
Beta Was this translation helpful? Give feedback.
-
Hi @kskovpen, it is possible to use full Barlow-Beeston in We can use Here is a simple BB-lite example: {
"channels": [
{
"name": "SR",
"samples": [
{
"data": [25.0],
"modifiers": [
{
"data": [1.0],
"name": "staterror_SR",
"type": "staterror"
},
{"data": null, "name": "mu", "type": "normfactor"}
],
"name": "Signal"
},
{
"data": [50.0],
"modifiers": [
{
"data": [3.0],
"name": "staterror_SR",
"type": "staterror"
}
],
"name": "Background"
}
]
}
],
"measurements": [
{
"config": {"parameters": [], "poi": "mu"},
"name": "minimal_example"
}
],
"observations": [{"data": [75.0], "name": "SR"}],
"version": "1.0.0"
} Turning the - "type": "staterror"
+ "type": "shapesys" The two modifiers will still be correlated however, given that their names are the same. "samples": [
{
"data": [25.0],
"modifiers": [
{
"data": [1.0],
"name": "staterror_SR_Signal",
"type": "shapesys"
},
{"data": null, "name": "mu", "type": "normfactor"}
],
"name": "Signal"
},
{
"data": [50.0],
"modifiers": [
{
"data": [3.0],
"name": "staterror_SR_Background",
"type": "staterror"
}
],
"name": "Background"
}
] Footnotes
|
Beta Was this translation helpful? Give feedback.
@kskovpen (currently in
v0.6.3
) no. The HistFactory approach, as described in the original spec paper [CERN-OPEN-2012-016] (Section 2.2.1 Incorporating Monte Carlo statistical uncertainty on the histogram templates), is