NeymanConstruction is a concrete implementation of the NeymanConstruction interface that, as the name suggests, performs a NeymanConstruction. It produces a RooStats::PointSetInterval, which is a concrete implementation of the ConfInterval interface.
The Neyman Construction is not a uniquely defined statistical technique, it requires that one specify an ordering rule or ordering principle, which is usually incoded by choosing a specific test statistic and limits of integration (corresponding to upper/lower/central limits). As a result, this class must be configured with the corresponding information before it can produce an interval. Common configurations, such as the Feldman-Cousins approach, can be enforced by other light weight classes.
The Neyman Construction considers every point in the parameter space independently, no assumptions are made that the interval is connected or of a particular shape. As a result, the PointSetInterval class is used to represent the result. The user indicate which points in the parameter space to perform the constrution by providing a PointSetInterval instance with the desired points.
This class is fairly light weight, because the choice of parameter points to be considered is factorized and so is the creation of the sampling distribution of the test statistic (which is done by a concrete class implementing the DistributionCreator interface). As a result, this class basically just drives the construction by:
bool | fAdaptiveSampling | controls use of adaptive sampling algorithm |
Double_t | fAdditionalNToysFactor | give user ability to ask for more toys |
RooStats::ConfidenceBelt* | fConfBelt | |
bool | fCreateBelt | controls use if ConfidenceBelt should be saved to a TFile |
RooAbsData& | fData | data set |
Double_t | fLeftSideFraction | |
RooStats::ModelConfig& | fModel | |
RooAbsData* | fPointsToTest | |
bool | fSaveBeltToFile | controls use if ConfidenceBelt should be saved to a TFile |
Double_t | fSize | size of the test (eg. specified rate of Type I error) |
RooStats::TestStatSampler* | fTestStatSampler |
default constructor fWS = new RooWorkspace(); fOwnsWorkspace = true; fDataName = ""; fPdfName = "";
Main interface to get a RooStats::ConfInterval. It constructs a RooStats::SetInterval.
in addition to interface we also need: Set the TestStatSampler (eg. ToyMC or FFT, includes choice of TestStatistic)
{fTestStatSampler = &sampler;}
fLeftSideTailFraction*fSize defines lower edge of acceptance region. Unified limits use 0, central limits use 0.5, for upper/lower limits it is 0/1 depends on sign of test statistic w.r.t. parameter
{fLeftSideFraction = leftSideFraction;}
This class can make regularly spaced scans based on range stored in RooRealVars. Choose number of steps for a rastor scan (common for each dimension) void SetNumSteps(Int_t); This class can make regularly spaced scans based on range stored in RooRealVars. Choose number of steps for a rastor scan (specific for each dimension) void SetNumSteps(map<RooAbsArg, Int_t>) Get the size of the test (eg. rate of Type I error)
{return fSize;}
specify the nuisance parameters (eg. the rest of the parameters)
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
{fSize = size;}
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
{fSize = 1.-cl;}
adaptive sampling algorithm to speed up interval caculation
{fAdaptiveSampling=flag;}
give user ability to ask for more toys
{fAdditionalNToysFactor = fact;}
Returns instance of TestStatSampler. Use to change properties of TestStatSampler, e.g. GetTestStatSampler.SetTestSize(Double_t size);
{ return fTestStatSampler; }