mean() over only some distributions, letting others remain as distributions #1280
rossry
started this conversation in
Squiggle Improvement Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to handle a situation where I'm modeling both population heterogeneity and distribution over uncertainty, something like:
In some cases, the function will be sufficiently separable that you can take a simple
mean()
over the part you want to mean over, and leave the other distribution on the outside...but in this case (and I assume, a substantial fraction of cases) that doesn't work, even with a nifty math hack.I don't care what the syntax is like, nor do I have a great suggestion. If I had to come up with something, I'd probably say something like
mean_over([susceptibility], individual_risk ^ susceptibility)
, where the first argument is a list of the distributions to collapse bymean
ing.Beta Was this translation helpful? Give feedback.
All reactions