Replies: 3 comments 1 reply
-
Here are the template and test datasets.
|
Beta Was this translation helpful? Give feedback.
-
If you look into our paper on template fitting, you will see that these fits can be biased if you are not in the asymptotic limit. Try to make sure that the number of counts per bin is above 10 everywhere to avoid bias. |
Beta Was this translation helpful? Give feedback.
-
To clarify, the template fit in iminuit without weights can handle bins with few entries ok, but not when you use weights. Our method is stil one of the best performing, but the low statistic case with weights fundamentally cannot be bias-free. You can workaround the problem by using adaptive binning: make bins wider where the density is low and keep them narrow where the density is sufficient. In higher dimensions, you can try to generate such a binning automatically using a KD-tree, which is implemented in scipy, but it is not trivial to turn such a tree into a histogram and I am not aware of a library which provides histograms based on KDTrees. I suggest to estimate the bias using Monte-Carlo simulation and then correct the final results obtained from data based on that. |
Beta Was this translation helpful? Give feedback.
-
Aloha Dr. Dembinski,
In my new practice of template fitting. I constructed a template T and a test dataset D from the same MC sample. I used all the available data to construct T and randomly sampled 50% of the data in each component for D. One might assume that the fitting results would be consistent with the true values of D. However, my results are off from the true values by about 1$\sigma$ . To further investigate this behavior, I performed the fitting 20000 times, with each iteration drawing the test set from a Poisson distribution defined by D (as I learned from the tutorials. Is this the so-called Toy MC?).
The true value of D is$D\tau\nu$ = 17474$D^\ast\tau\nu$ = 8124$D^{\ast\ast}\tau\nu$ = 14310$D\ell\nu$ = 12236$D^\ast\ell\nu$ = 8181$D^{\ast\ast}\ell\nu$ = 9371
0
1
2
3
4
5
We can see the means of fitted$D\tau\nu$ , $D^\ast\ell\nu$ and $D^{\ast\ast}\ell\nu$ are off by 1 $\sigma$ and the standard deviation of $D^\ast\tau\nu$ is quite large. Is this result a cause for concern?
Beta Was this translation helpful? Give feedback.
All reactions