Skip to content

Add rng_fn to CAR/ICAR #7713

Open
Open
@jessegrabowski

Description

@jessegrabowski

Description

I was talking to @theorashid who linked me to this case study of CAR priors. It seems like they're just MvNormals, but with degenerate covariance matrices. We can now sample from such distributions use the new method="eig" or method="svd" argument. So a potential rng_fn would just make an appropriate MvNormal with the method argument set, then return it's rng_fn.

Looking at the logp method for these distributions, it seems like it's just using the eig method; so we might be able to simplify these to wrappers around MvNormalRV that just constructs the mean/covariance and sets the appropriate method, but that's a step beyond what this PR is asking for.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions