Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Add relations to simplify convolutions of normally-distributed RandomVariables #238

@rlouf

Description

@rlouf

We should add rewrites that we can use to simplify the following expressions for Z_rv, B_rv and C_rv when conditioning:

import aesara.tensor as at

srng = at.random.RandomStream(0)
x_rv = srng.normal(0, 1)
y_rv = srng.normal(0, 2)
Z_rv = x_rv + y_rv # Normal RV


a_rv = srng.normal(0, 1, size=(10,))

B_rv = at.sum(a_rv) # Normal RV
C_rv = at.cumsum(a_rv) # Vector of normal RVs

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgraph rewritingInvolves the implementation of rewrites to Aesara graphshelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions