binned_extended_chisquare¶
-
minkit.
binned_extended_chisquare
(pdf, data)[source]¶ Definition of the binned chi-square FCN for extended PDFs. The returned value is directly the \(\chi^2\) of the PDF in the data sample, and it is computed as
\[\text{FCN} = \sum_{b = 0}^M \frac{\left(n_b - f_b(\vec{p})\right)^2}{f_b(\vec{p})},\]where \(n_b\) is the number of entries in bin b, \(f(b;\vec{\theta})\) is the integral of the function to minimize in the bin b (without normalization), \(\vec{\theta}\) are the function parameters
- Parameters
pdf (PDF) – function to evaluate.
data (BinnedDataSet) – data to evaluate.
range (str) – normalization range of the PDF.
- Returns
value of the FCN.
- Return type