aboutsummaryrefslogtreecommitdiff
path: root/utils/chi2
AgeCommit message (Collapse)Author
2020-08-31add a command line argument to print the nll valuestlatorre
2020-08-31don't call plt.show() when running with --savetlatorre
2020-08-31add GENIE weights to chi2 analysistlatorre
2020-08-31add estimate_errors to chi2 analysistlatorre
This commit updates the estimate_errors() function so that it works without a list of constraints and uses arrays of low and high bounds passed in instead of hardcoded constraints. I can now call this function from the chi2 analysis to get the stepsizes before running the MCMC.
2020-08-30increase energy resolution uncertainty when running with --coveragetlatorre
2020-08-30treat muons like Monte Carlotlatorre
2020-08-30update energy resolution -> max(EPSILON,resolution)tlatorre
This commit updates the chi2 script to make sure that the energy resolution is nonzero otherwise we get nans.
2020-08-30update bins when adding energy resolutiontlatorre
This commit updates the first bins that we use before applying the energy resolution in the chi2 script. The reason we do this is because when adding the energy resolution, events outside of the original bins may migrate into the first and last bin.
2020-08-30small updates to chi2 scripttlatorre
2020-08-25fix a stupid bug in the last committlatorre
2020-08-25speed up get_multinomial_prob()tlatorre
2020-08-25fix stupid bug in last committlatorre
2020-08-25speed up nll function in chi2tlatorre
2020-08-25update chi2 script to plot p-value coveragetlatorre
2020-08-20add external muons to the chi2 fittlatorre
2020-08-19update chi2 analysis to include bias and resolution termstlatorre
2020-08-17simplify likelihood calculation in chi2tlatorre
2020-07-27update how we calculte the p-value in chi2tlatorre
2020-07-06update plot-muonstlatorre
- add get_multinomial_prob() function to stats.py - add plot_hist2_data_mc() function to do the normal particle id plot but also print p values - other small bug fixes
2020-07-06add sddm/stats.pytlatorre
This commit adds the new file sddm/stats.py to and adds a function to correctly sample a Monte Carlo histogram when computing p-values. In particular, I now take into account the uncertainty on the total number of expected events by drawing from a gamma distribution, which is the posterior of the Poisson likelihood function with a prior of 1/lambda.
2020-06-29add energy scale to chi2 fittlatorre
2020-06-23first draft of a script to do the chi2 analysistlatorre
This commit adds a first draft of a script called chi2. This script calculates a chi2 for the null hypothesis test if the events in the energy range 20 MeV - 10 GeV match what we expect from atmospheric neutrino events.