Closed erwald closed 1 year ago
I mainly implement this via:
import squigglepy as sq
import numpy as np
np.mean((sq.norm(mean=0, sd=2) >= 0.5) @ 10000)
What do you think of that?
BTW np.mean(sq.norm(mean=0, sd=2) @ 10000 >= 0.5)
also works and saves you a few keystrokes
Oh cool that's nice enough, thanks! Closing this.
See Squiggle docs (not much info there though).
Right now I'm doing something like this:
Which would be equivalent to this in Squiggle:
Is there already such a function in squigglepy? If not, it'd be convenient to have one built in. (I'd be happy to implement it if you want to add it, but up to you of course.)