ROOT logo
ROOT » ROOFIT » ROOSTATS » RooStats::ProfileLikelihoodTestStat

class RooStats::ProfileLikelihoodTestStat: public RooStats::TestStatistic


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:

  • the ProfileLikelihoodCalculator that relies on asymptotic properties of the Profile Likelihood Ratio
  • the Neyman Construction classes with this class as a test statistic
  • the Hybrid Calculator class with this class as a test statistic



Function Members (Methods)

private:
doubleGetMinNLL(int& status)

Data Members

private:
const RooArgSet*fCachedBestFitParams
RooAbsData*fLastData
TStringfMinimizer
RooNLLVar*fNll!
Bool_tfOneSided
RooAbsPdf*fPdf
Int_tfPrintLevel
RooProfileLL*fProfile!
Bool_tfReuseNll
Int_tfStrategy
Double_tfTolerance
static Bool_tfgAlwaysReuseNll

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

ProfileLikelihoodTestStat()
 Proof constructor. Do not use.
ProfileLikelihoodTestStat(RooAbsPdf& pdf)
virtual ~ProfileLikelihoodTestStat()
       delete fRand;
       delete fTestStatistic;
void SetOneSided(Bool_t flag = true)
{fOneSided = flag;}
void SetAlwaysReuseNLL(Bool_t flag)
{ fgAlwaysReuseNll = flag ; }
void SetReuseNLL(Bool_t flag)
{ fReuseNll = flag ; }
void SetMinimizer(const char* minimizer)
{ fMinimizer=minimizer;}
void SetStrategy(Int_t strategy)
{fStrategy=strategy;}
void SetTolerance(double tol)
{fTolerance=tol;}
void SetPrintLevel(Int_t printlevel)
{fPrintLevel=printlevel;}
Double_t Evaluate(RooAbsData& data, RooArgSet& paramsOfInterest)
 Main interface to evaluate the test statistic on a dataset
return EvaluateProfileLikelihood(int type, RooAbsData& data, RooArgSet& paramsOfInterest)
const TString GetVarName() const
{return "Profile Likelihood Ratio";}
double GetMinNLL(int& status)
      const bool PValueIsRightTail(void) { return false; } // overwrites default