Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert functions to binned format as additional output #32

Closed
hftsoi opened this issue Dec 13, 2024 · 3 comments
Closed

convert functions to binned format as additional output #32

hftsoi opened this issue Dec 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@hftsoi
Copy link
Owner

hftsoi commented Dec 13, 2024

for each candidate function, add an extra column to candidate_functions df that presents the smooth function back in binned histogram, like the input y. this can be useful for use cases where a smoothed histogram is desired over an explicit function. also add plotting for this.

@hftsoi hftsoi added the enhancement New feature or request label Dec 13, 2024
@hftsoi
Copy link
Owner Author

hftsoi commented Dec 13, 2024

oh for hep analyses, it can be useful for converting a bkg histogram with limited statistics to a smoothed version-- like qcd in stat limited signal region, which has relied on deriving an additional template with looser cuts and then scale it back to normal selection-- this can be done by symbolfit without needing a separate template..

@hftsoi
Copy link
Owner Author

hftsoi commented Dec 13, 2024

the above can be done for all cases as default. but can add an additional option that, instead of fitting to the given binned data, first converts the input binned data into a density, fit it to get a smooth density, then integrate to get back the binned data but as a smoothed version. this fitting-to-density should be enabled explicitly through the option and the default fit should be disabled simultaneously, otherwise two different datasets will be fitted upon a single fit() call.

@hftsoi
Copy link
Owner Author

hftsoi commented Jan 4, 2025

this is mostly for bkg estimation scenario in binned analysis, but this method would uncorrelate uncertainties in the smoothed histogram from the analysis...

@hftsoi hftsoi closed this as completed Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant