Skip to content

Generic sum and product distributions #142

@johnmyleswhite

Description

@johnmyleswhite

At a recent tutorial, someone brought up the following possibility for providing a nice syntax for location-scale distributions:

X = Normal(0, 1)
Y = 5X + 1

They also asked about adding two distributions together:

Z = Normal(1, 1) + Normal(2, 3)

I think we should provide a generic univariate SumDistribution and ProductDistribution, which we can special case for things like Gaussians. I am already working on the location-scale case and will open a PR today/tomorrow for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: new generic functionFeature request for a new generic function (i.e. with methods for all distributions)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions