Hello,
I am trying to setup RooStats such that I can reproduce 95% CLs derived upper limits on Nsig in counting eperiments with given Nobs, Nbkg and dNbkg. For that, I used the example “Counting Experiment” program given on twiki.cern.ch/twiki/bin/view/Ro … August2012
Everything works fine and I am able to reproduce most numbers given in ATLAS papers. All of these have numbers of NObs which are smaller than 6000.
However, there is one ‘exceptional’ analysis with a very large number of events, and it gives strange results. It has the following parameters:
Observed: 350932
Expected: 344400 ± 12822
First, during the evaluation RooStats gives lots of messages of
or
or sometimes
[quote] *******************************************************************************
FUNCTION VALUE DOES NOT SEEM TO DEPEND ON ANY OF THE 2 VARIABLE PARAMETERS.
VERIFY THAT STEP SIZES ARE BIG ENOUGH AND CHECK FCN LOGIC.
[/quote]
Then, the result looks odd [see attachment]: For small s, the CL-distributions look right (the larger s, the smaller CLs+b and CLs). But at some point, CLb behaves strangely (rising to 1 , dropping to 0 or taking strange intermediate values) and also CLs+b and CLs then take strange values. The TestStatistics plot [see attachment] also look odd from that point on, but I don’t understand the reason, to be honest. For comparison, I attached the results I get from a well-working datset (Nobs = 210, NBkg = 214 ± 23.4)
I’ve tried a lot of things now (changing the parameter ranges, increasing the number of toys, changing from FrequentistCalculator to HybridCalculator or AsymptoticCalculator) but I always get the same problem: For large s, the CLb, CLs and CLb+s curves show peculiar behaviour such that I cannot read of the ‘actual’ 0.05-CLs value for the upper limit.
As I don’t see that this is an expected behaviour: Can you tell me, what causes this and how to fix it / construct a workaround? I do not really understand what the above error messages try to tell me. Is there some numerical problem because of the largeness of the numbers, or is there something fundamentally wrong in my setup which by luck did not produce any errors for my other tests?
example.cpp (3.7 KB)
TestStatistics2.eps (270 KB)
CLdistribution2.eps (14.3 KB)
TestStatistics.eps (193 KB)
CLdistribution.eps (18.9 KB)