maximum of random variables #1408
Closed
CognitiveGrowth
started this conversation in
Bugs
Replies: 2 comments 1 reply
-
It's a bug, but there's a workaround. The problem is that I filed an issue for this: #1409 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think @berekuk's answer is good here. I'm really not sure if we should support a "max" on most symbolic/pointset dists, as it's often technically infinity. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I expected max(normal(0,1),normal(0,1)) to generate a random variable that is the maximum of two standard normal random variables. Instead, it causes the following error:
Error: Wrong inputs / Logically impossible
Stack trace:
at line 6, column 1
Is this a bug, or am I do something wrong? How else would you generate the maximum of two random variables in Squiggle?
Beta Was this translation helpful? Give feedback.
All reactions