PPolySim OS

Monty Hall Problem

Three doors, one car. You pick, the host reveals a goat, and offers a switch. Switching doubles your odds — and the simulation proves it beyond argument.

Monty Hall ProblemLive

Controls

Pick one of three doors; the host, who knows where the car is, opens a losing door and offers a switch. Should you? Yes — switching wins two times out of three. Your first pick is right only 1/3 of the time, so the other 2/3 of the probability collapses onto the remaining door. The simulation converges to exactly that, however stubborn intuition is.

▶ Run in Python

Data Inspector

Games0
Switch win rate0.0%
Stay win rate0.0%

Governing equation

Reading this result: Early on the two rates jitter around 50% because the sample is tiny — let it run and the switch rate climbs toward its true 66.7%.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

Your first pick is right just 1/3 of the time, so 2/3 of the probability sits on the other two doors. When the host — who knows the locations — opens a losing door, that entire 2/3 collapses onto the single remaining door. Switching therefore wins two times in three. The result famously stumped mathematicians until simulations like this one made it undeniable.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Probability simulations

Frequently asked questions

Is this Monty Hall problem tool really free?
Yes. Monty Hall Problem runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.