Git Product home page Git Product logo

xmaxanal's Introduction

xmaxAnal

Tests of statistical compatibility between competing analysis efforts of UHECR Xmax distributions

cvm_2samp.py: class to perform a CvM 2 sample test. Computes p-values based on limiting statistics as sample sizes approach infinity. ECDFs can be grabbed from the class as plotted as well.

xmaxCompat.py: class to read in 2 sets of Xmax data and plot distributions, sample those distributions in case they are weighted, and perform a CvM 2 sample test on them. Data shifting is there as well. We have to sample the Xmax distributions if one person has a weighted sample. That weighted sample would distort the ECDF. So fit the weighted sample, draw a sample of Xmax from the fits, and perform statistical compatibility test on those draws.

xmaxFit.py: fits a distribution of xmax data by histogramming into user defined bins, applying weights if provided, then fitting to an analytical function which is a convolution of a normal and exponential to fit the tails.

xmaxCompatSession.ipynb: jupyter notebook session of one run through the data

How to run:

The most useful way is to start ipython. Before starting be sure to have the two data files required: dump_hanlon_xmaxAcceptance_reconOnly.txt.bz2 and dump_ikeda_xmaxAcceptance.txt.bz2.

import the main class

import xmaxCompat

instantiate

x = xmaxCompat.xmaxCompat()

now using the main method, different energy bins can be examined

x.main(18.2, 18.4)

x.main(18.4, 18.6)

x.main(18.6, 18.8)

etc. the purpose of the program is to compare two independently generated Monte Carlo data sets which are supposed to be draw from the same input distribution, then after detector effects and event reconstruction, examine if the data appear to be compatible using a Cramer-von Mises test I can measure the compatibility of the distributions.

xmaxanal's People

Contributors

quantumforge avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.