ProfileLikelihoodTestStat is an implementation of the TestStatistic interface that calculates the profile likelihood ratio at a particular parameter point given a dataset.
It does not constitute a statistical test, for that one may either use:
Definition at line 30 of file ProfileLikelihoodTestStat.h.
Public Member Functions | |
ProfileLikelihoodTestStat (RooAbsPdf &pdf) | |
~ProfileLikelihoodTestStat () override | |
virtual void | EnableDetailedOutput (bool e=true, bool withErrorsAndPulls=false) |
double | Evaluate (RooAbsData &data, RooArgSet ¶msOfInterest) override |
Main interface to evaluate the test statistic on a dataset. | |
virtual double | EvaluateProfileLikelihood (int type, RooAbsData &data, RooArgSet ¶msOfInterest) |
evaluate the profile likelihood ratio (type = 0) or the minimum of likelihood (type=1) or the conditional LL (type = 2) | |
const RooArgSet * | GetDetailedOutput (void) const override |
Returns detailed output. | |
virtual RooAbsPdf * | GetPdf () const |
const TString | GetVarName () const override |
TClass * | IsA () const override |
bool | IsOneSidedDiscovery () const |
bool | IsTwoSided () const |
void | SetConditionalObservables (const RooArgSet &set) override |
set the conditional observables which will be used when creating the NLL so the pdf's will not be normalized on the conditional observables when computing the NLL | |
void | SetGlobalObservables (const RooArgSet &set) override |
set the global observables which will be used when creating the NLL so the constraint pdf's will be normalized correctly on the global observables when computing the NLL | |
void | SetLOffset (bool flag=true) |
void | SetLOffset (std::string const &mode) |
void | SetMinimizer (const char *minimizer) |
void | SetOneSided (bool flag=true) |
void | SetOneSidedDiscovery (bool flag=true) |
void | SetPrintLevel (Int_t printlevel) |
void | SetReuseNLL (bool flag) |
void | SetSigned (bool flag=true) |
void | SetStrategy (Int_t strategy) |
void | SetTolerance (double tol) |
virtual void | SetVarName (const char *name) |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
![]() | |
virtual | ~TestStatistic () |
virtual bool | PValueIsRightTail (void) const |
Defines the sign convention of the test statistic. Overwrite function if necessary. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static void | SetAlwaysReuseNLL (bool flag) |
![]() | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Types | |
enum | LimitType { twoSided , oneSided , oneSidedDiscovery } |
Private Member Functions | |
std::unique_ptr< RooFitResult > | GetMinNLL () |
find minimum of NLL using RooMinimizer | |
Private Attributes | |
const RooArgSet * | fCachedBestFitParams = nullptr |
RooArgSet | fConditionalObs |
conditional observables | |
std::unique_ptr< RooArgSet > | fDetailedOutput |
! | |
bool | fDetailedOutputEnabled = false |
this will store a snapshot of the unconditional nuisance parameter fit. | |
bool | fDetailedOutputWithErrorsAndPulls = false |
RooArgSet | fGlobalObs |
global observables | |
RooAbsData * | fLastData = nullptr |
LimitType | fLimitType = twoSided |
std::string | fLOffset |
TString | fMinimizer |
std::unique_ptr< RooAbsReal > | fNll |
RooAbsPdf * | fPdf = nullptr |
Int_t | fPrintLevel |
bool | fReuseNll = false |
bool | fSigned = false |
Int_t | fStrategy |
double | fTolerance |
TString | fVarName = "Profile Likelihood Ratio" |
Static Private Attributes | |
static bool | fgAlwaysReuseNll = true |
#include <RooStats/ProfileLikelihoodTestStat.h>
Enumerator | |
---|---|
twoSided | |
oneSided | |
oneSidedDiscovery |
Definition at line 32 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 35 of file ProfileLikelihoodTestStat.h.
|
inlineoverride |
Definition at line 45 of file ProfileLikelihoodTestStat.h.
|
inlinestaticconstexpr |
Definition at line 132 of file ProfileLikelihoodTestStat.h.
Definition at line 132 of file ProfileLikelihoodTestStat.h.
|
inlinevirtual |
Definition at line 75 of file ProfileLikelihoodTestStat.h.
|
inlineoverridevirtual |
Main interface to evaluate the test statistic on a dataset.
Implements RooStats::TestStatistic.
Definition at line 68 of file ProfileLikelihoodTestStat.h.
|
virtual |
evaluate the profile likelihood ratio (type = 0) or the minimum of likelihood (type=1) or the conditional LL (type = 2)
internal function to evaluate test statistics can do depending on type:
Definition at line 53 of file ProfileLikelihoodTestStat.cxx.
|
inlineoverridevirtual |
Returns detailed output.
The value returned by this function is updated after each call to Evaluate(). The returned RooArgSet contains the following:
Reimplemented from RooStats::TestStatistic.
Definition at line 86 of file ProfileLikelihoodTestStat.h.
|
private |
find minimum of NLL using RooMinimizer
Definition at line 290 of file ProfileLikelihoodTestStat.cxx.
Definition at line 101 of file ProfileLikelihoodTestStat.h.
Implements RooStats::TestStatistic.
Definition at line 99 of file ProfileLikelihoodTestStat.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::TestStatistic.
Definition at line 132 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 54 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 53 of file ProfileLikelihoodTestStat.h.
|
static |
Definition at line 44 of file ProfileLikelihoodTestStat.cxx.
|
inlineoverridevirtual |
set the conditional observables which will be used when creating the NLL so the pdf's will not be normalized on the conditional observables when computing the NLL
Reimplemented from RooStats::TestStatistic.
Definition at line 92 of file ProfileLikelihoodTestStat.h.
|
inlineoverridevirtual |
set the global observables which will be used when creating the NLL so the constraint pdf's will be normalized correctly on the global observables when computing the NLL
Reimplemented from RooStats::TestStatistic.
Definition at line 96 of file ProfileLikelihoodTestStat.h.
Definition at line 59 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 60 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 62 of file ProfileLikelihoodTestStat.h.
Definition at line 49 of file ProfileLikelihoodTestStat.h.
Definition at line 50 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 65 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 58 of file ProfileLikelihoodTestStat.h.
Definition at line 51 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 63 of file ProfileLikelihoodTestStat.h.
|
inline |
Definition at line 64 of file ProfileLikelihoodTestStat.h.
Definition at line 98 of file ProfileLikelihoodTestStat.h.
|
overridevirtual |
Reimplemented from RooStats::TestStatistic.
|
inline |
Definition at line 132 of file ProfileLikelihoodTestStat.h.
Definition at line 109 of file ProfileLikelihoodTestStat.h.
|
private |
conditional observables
Definition at line 119 of file ProfileLikelihoodTestStat.h.
|
private |
!
Definition at line 118 of file ProfileLikelihoodTestStat.h.
this will store a snapshot of the unconditional nuisance parameter fit.
Definition at line 116 of file ProfileLikelihoodTestStat.h.
Definition at line 117 of file ProfileLikelihoodTestStat.h.
Definition at line 124 of file ProfileLikelihoodTestStat.h.
|
private |
global observables
Definition at line 120 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 110 of file ProfileLikelihoodTestStat.h.
Definition at line 111 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 130 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 126 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 108 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 107 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 129 of file ProfileLikelihoodTestStat.h.
Definition at line 125 of file ProfileLikelihoodTestStat.h.
Definition at line 112 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 127 of file ProfileLikelihoodTestStat.h.
|
private |
Definition at line 128 of file ProfileLikelihoodTestStat.h.
Definition at line 122 of file ProfileLikelihoodTestStat.h.