Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
NumberCountingUtils.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer 28/07/2008
3
4/*************************************************************************
5 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef RooStats_NumberCountingUtils
13#define RooStats_NumberCountingUtils
14
15/*! \namespace NumberCountingUtils
16 \brief RooStats standalone utilities
17
18These are RooStats standalone utilities
19that calculate the p-value or Z value (eg. significance in
201-sided Gaussian standard deviations) for a number counting experiment.
21This is a hypothesis test between background only and signal-plus-background.
22The background estimate has uncertainty derived from an auxiliary or sideband
23measurement.
24
25This is based on code and comments from Bob Cousins
26and on the following papers:
27
28 - Evaluation of three methods for calculating statistical significance when incorporating a
29 systematic uncertainty into a test of the background-only hypothesis for a Poisson process<br>
30 Authors: Robert D. Cousins, James T. Linnemann, Jordan Tucker<br>
31 http://arxiv.org/abs/physics/0702156<br>
32 NIM A 595 (2008) 480--501<br>
33
34
35 - Statistical Challenges for Searches for New Physics at the LHC<br>
36 Authors: Kyle Cranmer<br>
37 http://arxiv.org/abs/physics/0511028
38
39 - Measures of Significance in HEP and Astrophysics<br>
40 Authors: J. T. Linnemann<br>
41 http://arxiv.org/abs/physics/0312059
42
43The problem is treated in a fully frequentist fashion by
44interpreting the relative background uncertainty as
45being due to an auxiliary or sideband observation
46that is also Poisson distributed with only background.
47Finally, one considers the test as a ratio of Poisson means
48where an interval is well known based on the conditioning on the total
49number of events and the binomial distribution.
50
51In short, this is an exact frequentist solution to the problem of
52a main measurement x distributed as a Poisson around s+b and a sideband or
53auxiliary measurement y distributed as a Poisson around tau*b. Eg.
54
55\f[ L(x,y|s,b,\tau) = Pois(x|s+b) Pois(y|\tau b) \f]
56
57```
58Naming conventions:
59Exp = Expected
60Obs = Observed
61P = p-value
62Z = Z-value or significance in sigma (one-sided convention)
63```
64*/
65
66#include "RtypesCore.h"
67
68
69namespace RooStats{
70
72
73
74 /// Expected P-value for s=nullptr in a ratio of Poisson means.
75 /// Here the background and its uncertainty are provided directly and
76 /// assumed to be from the double Poisson counting setup described in the
77 /// BinomialWithTau functions.
78 /// Normally one would know tau directly, but here it is determined from
79 /// the background uncertainty. This is not strictly correct, but a useful
80 /// approximation.
81 double BinomialExpZ(double sExp, double bExp, double fractionalBUncertainty);
82
83 /// See BinomialWithTauExpP
84 double BinomialWithTauExpZ(double sExp, double bExp, double tau);
85
86 /// See BinomialObsP
87 double BinomialObsZ(double nObs, double bExp, double fractionalBUncertainty);
88
89 /// See BinomialWithTauObsP
90 double BinomialWithTauObsZ(double nObs, double bExp, double tau);
91
92 /// See BinomialExpP
93 double BinomialExpP(double sExp, double bExp, double fractionalBUncertainty);
94
95 /// Expected P-value for s=nullptr in a ratio of Poisson means.
96 /// Based on two expectations, a main measurement that might have signal
97 /// and an auxiliary measurement for the background that is signal free.
98 /// The expected background in the auxiliary measurement is a factor
99 /// tau larger than in the main measurement.
100 double BinomialWithTauExpP(double sExp, double bExp, double tau);
101
102 /// P-value for s=nullptr in a ratio of Poisson means.
103 /// Here the background and its uncertainty are provided directly and
104 /// assumed to be from the double Poisson counting setup.
105 /// Normally one would know tau directly, but here it is determined from
106 /// the background uncertainty. This is not strictly correct, but a useful
107 /// approximation.
108 double BinomialObsP(double nObs, double, double fractionalBUncertainty);
109
110 /// P-value for s=nullptr in a ratio of Poisson means.
111 /// Based on two observations, a main measurement that might have signal
112 /// and an auxiliary measurement for the background that is signal free.
113 /// The expected background in the auxiliary measurement is a factor
114 /// tau larger than in the main measurement.
115 double BinomialWithTauObsP(double nObs, double bExp, double tau);
116
117
118 }
119}
120
121#endif
RooStats standalone utilities.
double BinomialWithTauExpZ(double sExp, double bExp, double tau)
See BinomialWithTauExpP.
double BinomialExpZ(double sExp, double bExp, double fractionalBUncertainty)
Expected P-value for s=nullptr in a ratio of Poisson means.
double BinomialExpP(double sExp, double bExp, double fractionalBUncertainty)
See BinomialExpP.
double BinomialWithTauObsZ(double nObs, double bExp, double tau)
See BinomialWithTauObsP.
double BinomialObsP(double nObs, double, double fractionalBUncertainty)
P-value for s=nullptr in a ratio of Poisson means.
double BinomialWithTauExpP(double sExp, double bExp, double tau)
Expected P-value for s=nullptr in a ratio of Poisson means.
double BinomialWithTauObsP(double nObs, double bExp, double tau)
P-value for s=nullptr in a ratio of Poisson means.
double BinomialObsZ(double nObs, double bExp, double fractionalBUncertainty)
See BinomialObsP.
Namespace for the RooStats classes.
Definition Asimov.h:19