Presidential Probability Puzzle Simulator
Click here
to simulate the Presidential Probability Puzzle.
Is the probability 1/2 (50%) or 2/3 (66.7%)?
- Given:
- Six president names are hidden in three identical boxes
- Three Democrat and three Republican names are randomized every round
- One box will always contain two Democratic names
- One box will always contain two Republican names
- One box will always contain names from both parties
- Given:
- You have already picked one box at random
- You have already drawn out one name, and it is a Democrat
- What are the odds that the second name will also be a Democrat?
- Calculate: P (D | D )
- Given that you know the first name is a Democrat ...
- What is the probability that the second name is also a Democrat?
- Try to estimate the probability for yourself:
- 1/2 or 50%
- 2/3 or 67%
- What do you think?
- Click here
to simulate the Presidential Probability Puzzle.
* Send improvement suggestions to John at domain mazes,com
I need some free PHP advice.
Do you know PHP? I need help coding a simple Input/Output on Server to keep track of grand total of everyone's trials.
- Delay if file tags say another client is updating file
- But continue anyway if delay is too long
- Tag file so other clients know file is being updated
- Open file, read four numbers as regular Comma delimited text
- Increment some of those values
- Write updated numbers back to beginning of file
- Close file
- Untag file so next client knows file is available
* * If you have free advice, I'd love to add global totals to this program.