CMS 3D CMS Logo

confidence.h

Go to the documentation of this file.
00001 #ifndef confidence_h
00002 #define confidence_h
00003 
00004 #include <utility>
00005 
00006 /* 
00007 Confidence level estimators for a Binomial distribution.
00008 
00009 For a detailed discussion see:
00010     "Interval Estimation for a Binomial Proportion", 
00011     L. D. Brown, T. T. Cai and A. DasGupta, 
00012     2001, Statistical Sciences 16 (2) 101-133, 
00013     https://www-stat.wharton.upenn.edu/~tcai/paper/Binomial-StatSci.pdf
00014 
00015 The D0 implementation is detailed in the source code and documentation for the class TGraphAsymmErrors.
00016 
00017 Implementation by Andrea Bocci <andrea.bocci@cern.ch>
00018 Last modified on Wed Jun 25 19:23:52 CEST 2008
00019 
00020 This is free software, licenced under the GNU LGPL version 2.1, or (at your option) any later version.
00021 */
00022 
00023 namespace confidence {
00024 
00025 typedef std::pair<double,double> interval;
00026 
00027 // default implementation
00028 interval confidence_binomial(unsigned int n, unsigned int k, double level);
00029 
00030 // Clopper-Pearson "exact" interval
00031 interval confidence_binomial_clopper_pearson(unsigned int n, unsigned int k, double level);
00032 
00033 // normal approximation
00034 interval confidence_binomial_normal(unsigned int n, unsigned int k, double level);
00035 
00036 // Jeffreys prior interval
00037 interval confidence_binomial_jeffreys(unsigned int n, unsigned int k, double level);
00038 
00039 // modified Jeffreys prior interval
00040 interval confidence_binomial_jeffreys_modified(unsigned int n, unsigned int k, double level);
00041 
00042 // alternative bayesian approach, as implemented by the D0 collaboration
00043 interval confidence_binomial_d0(unsigned int n, unsigned int k, double level);
00044 
00045 } // namespace confidence
00046 
00047 #endif // confidence_h

Generated on Tue Jun 9 17:38:00 2009 for CMSSW by  doxygen 1.5.4