ROOT  6.06/09
Reference Guide
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
RooStats::RatioOfProfiledLikelihoodsTestStat Class Reference

TestStatistic that returns the ratio of profiled likelihoods.

By default the calculation is:

\[ \log{ \frac{ \lambda( \mu_{alt} , {conditional \: MLE \: for \: alt \: nuisance}) } { \lambda(\mu_{null} , {conditional \: MLE \: for \: null \: nuisance}) } } \]

where \( \lambda \) is the profile likeihood ratio, so the MLE for the null and alternate are subtracted off.

If SetSubtractMLE(false) then it calculates:

Definition at line 73 of file RatioOfProfiledLikelihoodsTestStat.h.

Public Member Functions

 RatioOfProfiledLikelihoodsTestStat ()
 
 RatioOfProfiledLikelihoodsTestStat (RooAbsPdf &nullPdf, RooAbsPdf &altPdf, const RooArgSet *altPOI=0)
 
 ~RatioOfProfiledLikelihoodsTestStat (void)
 
Double_t ProfiledLikelihood (RooAbsData &data, RooArgSet &poi, RooAbsPdf &pdf)
 returns -logL(poi, conditonal MLE of nuisance params) subtract off the global MLE or not depending on the option It is the numerator or the denominator of the ratio (depending on the pdf) L.M. More...
 
virtual Double_t Evaluate (RooAbsData &data, RooArgSet &nullParamsOfInterest)
 evaluate the ratio of profile likelihood More...
 
virtual void EnableDetailedOutput (bool e=true)
 
void SetReuseNLL (Bool_t flag)
 
void SetMinimizer (const char *minimizer)
 
void SetStrategy (Int_t strategy)
 
void SetTolerance (Double_t tol)
 
void SetPrintLevel (Int_t printLevel)
 
virtual void SetConditionalObservables (const RooArgSet &set)
 
virtual const RooArgSetGetDetailedOutput (void) const
 return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate. More...
 
virtual const TString GetVarName () const
 
void SetSubtractMLE (bool subtract)
 
- Public Member Functions inherited from RooStats::TestStatistic
virtual ~TestStatistic ()
 
virtual bool PValueIsRightTail (void) const
 Defines the sign convention of the test statistic. Overwrite function if necessary. More...
 

Static Public Member Functions

static void SetAlwaysReuseNLL (Bool_t flag)
 

Private Attributes

ProfileLikelihoodTestStat fNullProfile
 
ProfileLikelihoodTestStat fAltProfile
 
RooArgSetfAltPOI
 
Bool_t fSubtractMLE
 
bool fDetailedOutputEnabled
 
RooArgSetfDetailedOutput
 

Static Private Attributes

static Bool_t fgAlwaysReuseNll = kTRUE
 

#include <RooStats/RatioOfProfiledLikelihoodsTestStat.h>

+ Inheritance diagram for RooStats::RatioOfProfiledLikelihoodsTestStat:
+ Collaboration diagram for RooStats::RatioOfProfiledLikelihoodsTestStat:

Constructor & Destructor Documentation

RooStats::RatioOfProfiledLikelihoodsTestStat::RatioOfProfiledLikelihoodsTestStat ( )
inline

Definition at line 77 of file RatioOfProfiledLikelihoodsTestStat.h.

RooStats::RatioOfProfiledLikelihoodsTestStat::RatioOfProfiledLikelihoodsTestStat ( RooAbsPdf nullPdf,
RooAbsPdf altPdf,
const RooArgSet altPOI = 0 
)
inline

Definition at line 88 of file RatioOfProfiledLikelihoodsTestStat.h.

RooStats::RatioOfProfiledLikelihoodsTestStat::~RatioOfProfiledLikelihoodsTestStat ( void  )
inline

Definition at line 106 of file RatioOfProfiledLikelihoodsTestStat.h.

Member Function Documentation

virtual void RooStats::RatioOfProfiledLikelihoodsTestStat::EnableDetailedOutput ( bool  e = true)
inlinevirtual

Definition at line 121 of file RatioOfProfiledLikelihoodsTestStat.h.

Double_t RooStats::RatioOfProfiledLikelihoodsTestStat::Evaluate ( RooAbsData data,
RooArgSet nullParamsOfInterest 
)
virtual

evaluate the ratio of profile likelihood

Implements RooStats::TestStatistic.

Definition at line 49 of file RatioOfProfiledLikelihoodsTestStat.cxx.

virtual const RooArgSet* RooStats::RatioOfProfiledLikelihoodsTestStat::GetDetailedOutput ( void  ) const
inlinevirtual

return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate.

Reimplemented from RooStats::TestStatistic.

Definition at line 158 of file RatioOfProfiledLikelihoodsTestStat.h.

virtual const TString RooStats::RatioOfProfiledLikelihoodsTestStat::GetVarName ( ) const
inlinevirtual

Implements RooStats::TestStatistic.

Definition at line 171 of file RatioOfProfiledLikelihoodsTestStat.h.

Double_t RooStats::RatioOfProfiledLikelihoodsTestStat::ProfiledLikelihood ( RooAbsData data,
RooArgSet poi,
RooAbsPdf pdf 
)

returns -logL(poi, conditonal MLE of nuisance params) subtract off the global MLE or not depending on the option It is the numerator or the denominator of the ratio (depending on the pdf) L.M.

: not sure why this method is needed now

Definition at line 30 of file RatioOfProfiledLikelihoodsTestStat.cxx.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetAlwaysReuseNLL ( Bool_t  flag)
static

Definition at line 22 of file RatioOfProfiledLikelihoodsTestStat.cxx.

virtual void RooStats::RatioOfProfiledLikelihoodsTestStat::SetConditionalObservables ( const RooArgSet set)
inlinevirtual

Definition at line 153 of file RatioOfProfiledLikelihoodsTestStat.h.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetMinimizer ( const char *  minimizer)
inline

Definition at line 134 of file RatioOfProfiledLikelihoodsTestStat.h.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetPrintLevel ( Int_t  printLevel)
inline

Definition at line 146 of file RatioOfProfiledLikelihoodsTestStat.h.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetReuseNLL ( Bool_t  flag)
inline

Definition at line 129 of file RatioOfProfiledLikelihoodsTestStat.h.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetStrategy ( Int_t  strategy)
inline

Definition at line 138 of file RatioOfProfiledLikelihoodsTestStat.h.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetSubtractMLE ( bool  subtract)
inline

Definition at line 175 of file RatioOfProfiledLikelihoodsTestStat.h.

void RooStats::RatioOfProfiledLikelihoodsTestStat::SetTolerance ( Double_t  tol)
inline

Definition at line 142 of file RatioOfProfiledLikelihoodsTestStat.h.

Member Data Documentation

RooArgSet* RooStats::RatioOfProfiledLikelihoodsTestStat::fAltPOI
private
ProfileLikelihoodTestStat RooStats::RatioOfProfiledLikelihoodsTestStat::fAltProfile
private
RooArgSet* RooStats::RatioOfProfiledLikelihoodsTestStat::fDetailedOutput
private
bool RooStats::RatioOfProfiledLikelihoodsTestStat::fDetailedOutputEnabled
private

Definition at line 186 of file RatioOfProfiledLikelihoodsTestStat.h.

Referenced by EnableDetailedOutput().

Bool_t RooStats::RatioOfProfiledLikelihoodsTestStat::fgAlwaysReuseNll = kTRUE
staticprivate

Definition at line 184 of file RatioOfProfiledLikelihoodsTestStat.h.

Referenced by SetAlwaysReuseNLL().

ProfileLikelihoodTestStat RooStats::RatioOfProfiledLikelihoodsTestStat::fNullProfile
private
Bool_t RooStats::RatioOfProfiledLikelihoodsTestStat::fSubtractMLE
private

Definition at line 183 of file RatioOfProfiledLikelihoodsTestStat.h.

Referenced by SetSubtractMLE().


The documentation for this class was generated from the following files: