Skip to content

ENH: add predict and get_prediction for which="cdf"  #7873

Open

Description

@josef-pkt

#4745 prediction interval for any distribution, #2015
#7870 PR get_prediction
#7833 get_prediction across models

also: #7793 multilink models dfamilies

I guess the best generic implementation would be to use get_distribution, which in turn needs to transform params to predicted distribution (scipy compatible) dargs.
Alternatively, we could have cdf in the family/dfamily e.g. we need to convert params to (d)family dargs and then to scipy.distribution args.
get_distribution can directly convert params to scipy, or detour through the family/dfamily.
(GLM get_distribution goes through family, discrete does not make full use of (d)families yet.)

In order to apply NonlinearDeltaCov, we need it as a function of params.
An indirect two-step method would be to get the (multivariate normal) distribution of dargs first. That would work well for one parameter families like Poisson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions