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

Use histogram as both prior and input data? #344

Open
Moelf opened this issue Apr 12, 2022 · 1 comment
Open

Use histogram as both prior and input data? #344

Moelf opened this issue Apr 12, 2022 · 1 comment

Comments

@Moelf
Copy link

Moelf commented Apr 12, 2022

as of:

we can use histogram as prior, in HEP (as @oschulz knows), the input data is also histogram (with same binning of course), and each uncertainty variation as one additional histogram.

Can we run likelihood for parameter extraction in such case?

@oschulz
Copy link
Member

oschulz commented Apr 13, 2022

Sure, that should work! EmpiricalDistributions.jl turns histograms into (stepwise, no KDE capability and gradient yet, so not compatible with HMC) distributions, which can just be plugged into a VariableShapes.NamedTupleDist(a = ..., b = ...) as components of the prior.

The likelihood can use an arbitrary log-likelihood function, that has to be written, of course.

each uncertainty variation as one additional histogram.

The uncertainty is on the expectation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants