Hands on introduction to BAT
Statistics Tools School 7 Apr 2011 Julia Grebenyuk for the BAT team*
*Allen Caldwell, Daniel Kollar, Kevin Kroeninger, Shabnaz Pashapour Special thanks to Frederik Beaujean and Fabian Kohn
Hands on introduction to BAT Statistics Tools School 7 Apr 2011 - - PowerPoint PPT Presentation
Hands on introduction to BAT Statistics Tools School 7 Apr 2011 Julia Grebenyuk for the BAT team* *Allen Caldwell, Daniel Kollar, Kevin Kroeninger, Shabnaz Pashapour Special thanks to Frederik Beaujean and Fabian Kohn Tutorial on radioactive
*Allen Caldwell, Daniel Kollar, Kevin Kroeninger, Shabnaz Pashapour Special thanks to Frederik Beaujean and Fabian Kohn
–
–
BAT homepage:
→ Create a data point, add it to a data set and register the data set with the model → Define the parameter RB and add it to the model → Define the log likelihood for the Poisson process with parameter RB. The natural logarithm of the factorial is provided by BCMath::LogFact(int n). One can also use the approximation provided by BCMath::ApproxLogFact(int n) which is much faster for large numbers. → Use a flat prior for RB → Start to sample from the posterior using the Markov chain → Find the mode of the posterior → Save the results of the fit in text form and create a plot of the (marginal) posterior distribution
→ Add a second data point, N2, to the data set → Include the second parameter RS with flat prior in the model → Update the likelihood to incorporate N2 and RS → Plot the marginal distributions and compare the values of mean, median and
→ Extract the 95% limit on RS and save the plot
→ Redo step 2 and 3. Save P(RB|N1) and P(RB|N1,N2) as a ROOT TH1D histogram.
→ Normalize and plot the two histograms. → Measure the time it takes to run the program. → Modify LogAPrioriProbability to do nothing else than returning zero. This amounts
→ Multiplying the likelihood by a constant just affects the normalization, but not the
→ Redo step 2, but now use the Reference prior (=Jeffrey's prior here) for RB which