Skip to content

x_min and x_max can be far too conservative #61

@zmbc

Description

@zmbc

My understanding is that x_min and x_max, for the non-mirrored distributions, act only as "guardrails" against trying to compute something that we don't have precision to compute. They are approximated using a lognormal distribution, but this approximation can be quite bad. Then the "guardrails" become far too restrictive and prevent the user from computing something that they can totally compute with their precision.

MCVE:

>>> import risk_distributions
>>> g = risk_distributions.risk_distributions.Gamma(risk_distributions.risk_distributions.Gamma.get_parameters(mean=100_017, sd=100_000.7))
>>> g.cdf(g.parameters.x_min)
0    0.052517
dtype: float64
>>> g = risk_distributions.risk_distributions.Gamma(risk_distributions.risk_distributions.Gamma.get_parameters(mean=100_017, sd=500_000.7))
>>> g.cdf(g.parameters.x_min)
0    0.673451
dtype: float64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions