squiggle icon indicating copy to clipboard operation
squiggle copied to clipboard

Support for multivariate distributions

Open rafaelkaufmann opened this issue 1 year ago • 3 comments

  • _ Is refactor
  • \X Is new feature
  • _ Concerns documentation

Description of suggestion or shortcoming:

From perusing the documentation and trying out various things, Squiggle seems to be missing support for multivariate distributions, which makes a lot of things awkward or impossible :)

rafaelkaufmann avatar Jun 20 '24 09:06 rafaelkaufmann

Yep, we've been thinking about this. It definitely gets tricky, as JS doesn't seem to have good libraries with multivariate support, but we could probably add some simpler options.

Can you be more specific about the functionality you'd want?

I know that often multivariate normals or other simple multivariates are used, maybe we could get far with just a few multivariate structures. I'm not an expert here.

OAGr avatar Jun 21 '24 03:06 OAGr

Given that this is just for forward estimation/prediction (new FR forthcoming!), multivariate normals would indeed be sufficient. One can get a multivariate normal from a vector of independent normal scalar RVs by matrix multiplication, but this is also missing ;)

rafaelkaufmann avatar Jun 21 '24 14:06 rafaelkaufmann

Yea, matrix operations are something I'd like to provide basic support for, but it's definitely more work.

We are a small nonprofit doing most of this with a currently-small market size. There's definitely a lot of improvements we'd like to make!

OAGr avatar Jun 21 '24 21:06 OAGr