Comment on Soup of Theseus

<- View Parent
NeatNit@discuss.tchncs.de ⁨1⁩ ⁨day⁩ ago

Interesting. I don’t know why I didn’t think of just keeping a count of soup molecules. Must have been late!

Another interesting point, your simulation is subtly wrong in a different way from my calculation. When there is only one soup molecule left, there is a chance (however tiny) that rbinom will return 2 or more, taking out more soup molecules than there really are.

If you run it enough times with a bowl of 3 molecules and a spoon of 2 molecules, I’m sure you’ll hit -1 soup molecules some of the time.

For a simulation I think we can do better. There must be a random function that does it properly. The function we want is like pulling balls of 2 colors out of a sack without replacement. Pretty common combinatorics question, I would expect a random function to match.

source
Sort:hotnewtop