I’m running a code in several root files from folders and gets the chi square test of independence between a reference and the histograms in some loop for this folders. To do this, i use the function:
in the output, i receive this:
The TH1F histogram has a bin with a less 1 event
and the p-value of the test is: p-value=0 (no sense)
how can i avoid bin with less 1 event in the calculation of the chi test square independence?
there are a lot histograms with the same issue…what about the histogram is empty? how can avoid a empty histogram?
the code is with pyroot but any language is ok.
thanks in advance
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided