Skip to content

FR rules for (Gaussian + UniformPolygon).reduce(logaddexp) #596

@fritzo

Description

@fritzo

It would be great to have reduction rules for uniform likelihoods wrt Gaussian latent variables:

  • (MyContinuousDist + Uniform).reduce(logaddexp) implemented via .cdf()
  • (Gaussian + UniformPolygon).reduce(logaddexp) implemented via quadrature (MC or QMC)

This could be used for Pyro and NumPyro probabilistic programs with constraint-like likelihoods, something like

def model(data):
    z = pyro.sample("z", Normal(...))
    # Observe a constraint like lb < z < ub.
    pyro.sample("x", Uniform(...), obs=z)

here we can be lazy and compute marginal likelihood via Normal(...).cdf([lb, ub]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions