[ENH] distributions: add missing explicit energy computations #267
Labels
enhancement
feature request
New feature or request
good first issue
Good for newcomers
module:probability&simulation
probability distributions and simulators
A number of existing distibutions have no energy formula implemented. In many cases, it is possible to obtain an analytic or numerically explicit formula, while the default delegates to a much less efficient Monte Carlo approximation.
Recipe:
energy
or_energy_ etc
implementationsHow to obtain the energy formula, there are multiple options:
scoringRules
" has a few explicit formulae for the CRPS (see below on how to obtain energy from CRPS)ngboost
has CRPS classes implemented for most distributions it implements: https://github.com/stanfordmlgroup/ngboost/tree/master/ngboost/distns (see below on how to obtain energy from CRPS)Some partial derivations and discussions can also be found here:
#219
#220
Also, some of the above sources do not give energy, but CRPS - the two are related, by definition as
From this definition, and basic properties of random variables, one can derive
i.e., one can obtain the self-term via taking a limit, if the expressions for CRPS and the expectation are already known.
The cross-term can then be obtained by adding the self-term to the CRPS formula,
using that CRPS and self-term are known, allowing to obtain the cross-term.
The text was updated successfully, but these errors were encountered: