The RooStats::AsimovSignificance, RooStats::PValueToSignificance and RooStats::SignificanceToPValue helper functions are lifesavers as they provide accurate estimates and reduce mistakes (factors of two, etc).
I was looking around and was wondering if there are also helper functions that encapsulate other RPP formulae, e.g. the frequentist confidence intervals, described in the RPP 40.4.2, in particular Eqs. 40.77a, 40.77b, 40.78a, and 40.78b.
These are not hard to do and can be contributed if there are no objections and some naming guidance.
Apologies for my late reply. The functions you proposing for computing the frequentist confidence intervals for the Poisson and the Binomial are available in ROOT.
For the Poisson there are the methods in TH1, TH1::GetBinErrorLow(bin) and TH1::GetBinErrorUp(bin). If you want a free (static) function, you can use ROOT::Math::gamma_quantile and ROOT::Math::gamma_quantile_c as done in the implementation of these TH1 functions. Maybe we could add in this case a more convenient function for the user to compute the Poisson interval
Thank you Andre for reminding us of this! I remember you have already opened a GitHub issue about this:
Since this is a feature request and not a support question, it’s better to follow up on GitHub. Sorry for getting back to you about this so late, it was not really on my radar. I will look into this matter and then reply to the GitHub thread.