'Hypothesis Test Inversion' RooStats tutorial macro #801
This tutorial shows an example of using the HypoTestInverterOriginal class
Processing /builddir/build/BUILD/root-6.10.00/tutorials/roostats/rs801_HypoTestInverterOriginal.C...
[1mRooFit v3.60 -- Developed by Wouter Verkerke and David Kirkby[0m
Copyright (C) 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please
read http:
Target matches upper limit: de-activate interpolation in HypoTestInverterResult
Running for r = 3
HybridCalculatorOriginal:
run 1000 toy-MC experiments
....... toy number 0 / 1000
....... toy number 500 / 1000
computed: 0.34252
Running for r = 5
HybridCalculatorOriginal:
run 1000 toy-MC experiments
....... toy number 0 / 1000
....... toy number 500 / 1000
computed: 0.0669145
The confidence level at both boundaries are both too large ( 0.34252 and 0.0669145
Run again with other boundaries or larger toy-MC
statistics
The computed upper limit is: 5
an estimated error on this upper limit is: 0
using namespace RooFit;
using namespace RooStats;
void rs801_HypoTestInverterOriginal()
{
myhc.SetTestStatistic(2);
myhc.SetNumberOfToys(1000);
myhc.UseNuisance(false);
myInverter.SetTestSize(0.10);
myInverter.UseCLs(true);
myInverter.RunAutoScan(3.,5,myInverter.Size()/2,0.005);
std::cout << "The computed upper limit is: " << upperLimit << std::endl;
std::cout << "an estimated error on this upper limit is: " << ulError << std::endl;
}
rs801_HypoTestInverterOriginal();
}
- Author
- Gregory Schott
Definition in file rs801_HypoTestInverterOriginal.C.