[Template Fitting] What if sample sizes for data and templates are very different #826
-
Aloha community and experts, I am studying Template-fit-with-nuisance-parameters section and come up with a question in calculating the cost function. Below is the definition of the BB cost function from the tutorial.
In my practice using iminuit template fitting, a few test samples (to which I am fitting) are generated and their sample sizes are small compared to the templates. So when I first looked at the line The last two terms are only modeling the shape difference between the templates and fitted components. However, I shortly realized that my understanding is incorrect because that way the uncertainties in the template are not well estimated. Can Mahalo, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Boyang, I assume your test samples correspond to the "data" you would later see in your real application, and your templates are derived from MC. As in the real application, can you now just reweight your templates to the sample size expected in your test (data) sample? Cheers |
Beta Was this translation helpful? Give feedback.
-
Yes, the Template cost function handles the case you describe correctly. To see how the math works, I recommend our paper https://inspirehep.net/literature/2512593 |
Beta Was this translation helpful? Give feedback.
Yes, the Template cost function handles the case you describe correctly. To see how the math works, I recommend our paper https://inspirehep.net/literature/2512593