Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hypotest documentation not clear on return types depending on test statistic chosen #2262

Open
1 task done
kratsg opened this issue Jul 27, 2023 · 4 comments
Open
1 task done
Labels
docs Documentation related needs-triage Needs a maintainer to categorize and assign

Comments

@kratsg
Copy link
Contributor

kratsg commented Jul 27, 2023

Summary

If we have return_tail_probs=True, then for test_stat in ['qmu', 'qtilde'], we return [CLs, CLsb, CLb]; while for test_stat=q0 we return [CLsb, CLb] only.

Documentation Page Link

https://scikit-hep.org/pyhf/_generated/pyhf.infer.hypotest.html#pyhf.infer.hypotest

Code of Conduct

  • I agree to follow the Code of Conduct
@kratsg kratsg added docs Documentation related needs-triage Needs a maintainer to categorize and assign labels Jul 27, 2023
@kratsg
Copy link
Contributor Author

kratsg commented Jul 27, 2023

To summarize briefly from offline with @phinate and @alexander-held (some bullet points):

@kratsg
Copy link
Contributor Author

kratsg commented Jul 27, 2023

One more thing, CLx is making the implicit assumption (for x=s, sb, b) that the test stat involve is either qmu or qmu-tilde.

@matthewfeickert
Copy link
Member

matthewfeickert commented Aug 10, 2023

One more thing, CLx is making the implicit assumption (for x=s, sb, b) that the test stat involve is either qmu or qmu-tilde.

We do state this in the pyhf.infer.hypotest docs

for signal strength :math:`\mu` and model hypothesis signal strength
:math:`\mu'`, where the cumulative density functions
:math:`F\left(q(\mu)\,\middle|\mu'\right)` are given by Equations (57)
and (65) of :xref:`arXiv:1007.1727` for upper-limit-like test
statistic :math:`q \in \{q_{\mu}, \tilde{q}_{\mu}\}`.

with a special note as well

.. note::
The definitions of the :math:`\mathrm{CL}_{s+b}` and
:math:`\mathrm{CL}_{b}` used are based on profile likelihood
ratio test statistics.
This procedure is common in the LHC-era, but differs from
procedures used in the LEP and Tevatron eras, as briefly
discussed in :math:`\S` 3.8 of :xref:`arXiv:1007.1727`.

Although the place that I've found it to be the most clear (and I should update this as well in the docs) is in Appendix A.1.2 and Table 11 in the Procedure for the LHC Higgs boson search combination in Summer 2011 — which actually describes what ATLAS and CMS did for the Higgs discovery.

table-11

(This reference document has been quite useful before, as we used it as a reference check in PR #1610).

@matthewfeickert
Copy link
Member

matthewfeickert commented Aug 10, 2023

CL naming is just bad i think everyone agrees on this

@cranmer would agree with you too, I think, given Issue #965. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation related needs-triage Needs a maintainer to categorize and assign
Projects
None yet
Development

No branches or pull requests

2 participants