edit: the more I think about it, the more I suspect that the actual optimization was not randomizing both the door choice and the location of the car, which then allowed simplifying the win logic. If door 0 is always considered the door with the car, then the whole loop body can be collapsed down to:
if (rand() / (RAND_MAX / 3) == 0) noswitch_wins++;
No threat of a paradox as I was thinking before, but a fairly clear statement that the odds of winning by not switching are 1 in 3.I'm wondering if gambling would be a good way to go about it. Start with $10 each, and alternate who plays the "host" of Monty Hall. One person is only allowed to switch, and another is only allowed to stay. For each correct answer, take $1 from the other person.
Hmm, maybe to sweeten the deal, the person who switches gets $2 for a win, but the person who stays gets $3. That way, it would show that even with 50% better payout, it doesn't overcome the 2x difference in odds.
Another problem which is best explained by simulation is the random distribution of wealth [1]. (I played a bit with this one, introducing further parameters like liminal damage, debt, asymmetric amounts depending on investors trust, etc, to see how basic economic assumptions would reshape the model. Answer: only to the worse.)
[1] http://www.decisionsciencenews.com/2017/06/19/counterintuiti...
Do you think that agent-based computational simulations (say of micro-economics bubbling into creating emergent macro-economics) are ever used in debates?
That made me realize: code is a better way to describe problems than human text.