BAT.jl icon indicating copy to clipboard operation
BAT.jl copied to clipboard

Use histogram as both prior and input data?

Open Moelf opened this issue 3 years ago • 1 comments

as of:

  • #70

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?

Moelf avatar Apr 12 '22 21:04 Moelf

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?

oschulz avatar Apr 13 '22 07:04 oschulz