Abstract A Fortran-77 program for calculating test statistics to compare weighted histogram with an unweighted histogram and two histograms with weighted entries is presented. The code calculates test statistics for cases of histograms with normalized weights of events and unnormalized weights of events. Program summary Program title: CHICOM Catalogue identifier: AEKE_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEKE_v1_0.html Program obtainable from: CPC Program Library, Queenʼs University, Belfast, N. Ireland Licensing provisions: Standard CPC license, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 758 No. of bytes in distributed program, including test data, etc.: 4496 Distribution format: tar.gz Programming language: Fortran-77 Computer: Any Unix/Linux workstation or PC with a Fortran-77 compiler Operating system: Unix/Linux Classification: 4.13, 11.9, 16.4, 19.4 External routines: FPLSOR (M103) [1] and BRENT [2] (FPLSOR is included in the distribution file, BRENT must be obtained by the user) Nature of problem: The program calculates test statistics for comparing two weighted histograms and an unweighted histogram with a weighted one Solution method: Calculation of test statistics is done according to formulas presented in Ref. [3]. Running time: 0.001 s for 5 bins histogram References: [1] CERN Program Library, http://cernlib.web.cern.ch/cernlib/ . [2] W.H. Press, S.A. Teukolsky, W.T. Vetterling, B.P. Flannery, Numerical Recipes in Fortran 77 the Art of Scientific Computing, second edition, Cambridge University Press, 1997. [3] N.D. Gagunashvili, Nucl. Instr. Meth. A 614 (2010) 287–296.
[1]
Ilya M. Sobol,et al.
A Primer for the Monte Carlo Method
,
1994
.
[2]
Eugene P. Wigner,et al.
Capture of Slow Neutrons
,
1936
.
[3]
N. Gagunashvili.
Chi-square tests for comparing weighted histograms
,
2009,
0905.4221.
[4]
H. Cramér.
Mathematical methods of statistics
,
1947
.
[5]
I. Sobol,et al.
Comptonization and the shaping of X-ray source spectra - Monte Carlo calculations
,
1983
.
[6]
H. J. Arnold.
Introduction to the Practice of Statistics
,
1990
.
[7]
E. al.,et al.
Dependence of the tt production cross section on the transverse momentum of the top quark
,
2010,
1001.1900.
[8]
Alan M. Ferrenberg,et al.
New Monte Carlo technique for studying phase transitions.
,
1988,
Physical review letters.