Skip to content

Instantly share code, notes, and snippets.

@startling
Created March 20, 2012 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save startling/2142230 to your computer and use it in GitHub Desktop.
Save startling/2142230 to your computer and use it in GitHub Desktop.
monty hall truth table

If you always switch prizes, you have a 2/3 chance to get the car:

|---------------------------|
| picked | revealed | prize |
|---------------------------|
| goat a | goat b   | car   |
| goat b | goat a   | car   |
| car    | goat     | goat  |
|---------------------------|

If you never switch prizes, you have a 1/3 chance to get the car:

|---------------------------|
| picked | revealed | prize |
|---------------------------|
| goat a | goat b   | goat  |
| goat b | goat a   | goat  |
| car    | goat     | car   |
|---------------------------|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment