[Paper Review] Comparison of weighted and unweighted histograms
This paper proposes two new chi-squared tests for comparing weighted and unweighted histograms, and two weighted histograms, improving upon existing methods by lowering the minimum expected frequency requirement to 10 for weighted histograms. The tests use maximum likelihood estimation for shared probabilities and normalized residuals for outlier detection, with numerical validation confirming their robustness under realistic statistical conditions.
Two modifications of the chi square test for comparing usual(unweighted) and weighted histograms and two weighted histograms are proposed. Numerical examples illustrate an application of the tests for the histograms with different statistics of events. Proposed tests can be used for the comparison of experimental data histograms against simulated data histograms and two simulated data histograms.
Motivation & Objective
- To develop a more robust chi-squared test for comparing unweighted and weighted histograms with reduced minimum expected frequency requirements.
- To introduce a new chi-squared test for comparing two weighted histograms, which had not been adequately addressed in prior work.
- To provide normalized residuals for identifying bins that significantly contribute to the test statistic, aiding in diagnostic analysis.
- To validate the proposed tests through numerical experiments under varying statistical conditions, including low expected frequencies.
- To establish practical minimum expected frequency thresholds (10–25) for reliable application of the tests in real-world data analysis.
Proposed method
- Proposes a modified chi-squared test statistic combining Poisson-distributed event counts (unweighted) and normally distributed weights (weighted), using shared probability estimates via maximum likelihood.
- Derives the estimator for shared probabilities $ \hat{p}_i $ as a solution to a quadratic equation involving total counts $ N $, total weights $ W $, bin counts $ n_i $, and weighted variances $ s_i^2 $.
- Applies the test statistic $ X^2 = \sum \frac{(n_i - N\hat{p}_i)^2}{N\hat{p}_i} + \sum \frac{(w_i - W\hat{p}_i)^2}{s_i^2} $, which is shown to approximate a $ \chi^2_{r-1} $ distribution under the null hypothesis.
- Introduces a second test for comparing two weighted histograms using a similar chi-squared framework, with a test statistic approximating $ \chi^2_{r-1} $.
- Derives adjusted residuals $ r_i $ and $ r_i' $ to identify bins with high influence or outliers, assuming standard normal distribution under the null.
- Validates the tests using Q-Q plots of test statistics against theoretical $ \chi^2 $ distributions across multiple simulation scenarios with varying minimum expected frequencies.
Experimental results
Research questions
- RQ1Can the chi-squared test for comparing unweighted and weighted histograms be improved to work reliably with lower minimum expected frequencies than previously recommended?
- RQ2Is it possible to construct a valid chi-squared test for comparing two weighted histograms, and what are the appropriate statistical assumptions and thresholds?
- RQ3How do the proposed tests perform under different levels of expected frequencies, particularly when the minimum expected frequency is reduced below 25?
- RQ4Do the normalized residuals derived from the proposed tests effectively identify bins that contribute most to a significant test result?
- RQ5Are the theoretical chi-squared distributions a good approximation for the actual sampling distributions of the test statistics under the null hypothesis?
Key findings
- The proposed test for unweighted and weighted histograms performs reliably with a minimum expected frequency of 10 for the weighted histogram, outperforming previous methods that required 25.
- Numerical experiments show that the test statistic distribution closely matches the theoretical $ \chi^2_{19} $ distribution when the minimum expected frequency is 25 or higher, confirming its validity.
- For the comparison of two weighted histograms, the test statistic distribution closely follows $ \chi^2_{19} $ when both histograms have similar minimum expected frequencies (e.g., 25 or 50), but exhibits heavier tails when the expected frequencies differ significantly (e.g., 10 and 50).
- The normalized residuals derived from the tests are approximately standard normal under the null hypothesis, enabling effective identification of influential or outlier bins.
- The method for comparing unweighted and weighted histograms with weights close to constant performs well even at a minimum expected frequency of 10, with no heavy-tailed deviations in the test statistic distribution.
- The proposed tests maintain conservative Type I error rates, as evidenced by p-values calculated from the theoretical $ \chi^2 $ distribution being lower than the empirical p-values in simulations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.