SLIDE 3 1/13/2020 3
Variables and decisions are simulated with random number generation. Some possible random number generators are:
A random number generator for this simulation
Coin: Probabilities 0,2 0,4 0,6 0,8 1 1 2 Dice: Probabilities 0,2 0,4 0,6 0,8 1 1 2 3 4 5 6 Computer: Density 0,2 0,4 0,6 0,8 1 1,2 0,2 0,4 0,6 0,8 1
Uniform distribution
Simulation procedure: Use dice Host must place the reward behind an arbitrarily selected door:
- Roll the dice:
- 1 or 2: Door 1
- 3 or 4: Door 2
- 5 or 6: Door 3
- Value of variable True determined as 1, 2 or 3
Participant must choose a door at random
- Roll the dice:
- 1 or 2: Door 1
- 3 or 4: Door 2
- 5 or 6: Door 3
- Value of variable Choice 1 determined as 1, 2 or 3
Department of Veterinary and Animal Sciences Slide 14
Simulation procedure II
Check whether True = Choice 1
- If yes (two options):
- Roll the dice (or toss a coin)
- 1, 2 or 3: Open the lowest door
number where i ≠ True
- 4, 5 or 6: Open the highest door
number where i ≠ True
- If no (only 1 option):
- Open door i ≠ True and i ≠ Choice 1
- Value of Opened determined
Department of Veterinary and Animal Sciences Slide 15
Simulation procedure III Value of Choice 2 determined in accordance with the decision strategy Define new variable Final guess ∈ {1, 2, 3}
- If Choice 2 = Keep:
- Final guess = Choice 1
- If Choice 2 = Change:
- Final guess = i,
where i ≠ Choice 1 and i ≠ Opened
Department of Veterinary and Animal Sciences Slide 16
Simulation procedure IV Check whether Final guess = True
- If yes:
- Gain = 1000
- If no:
- Gain = 0
Simulation completed!
Department of Veterinary and Animal Sciences Slide 17
Evaluation of strategies Define the strategy as Choice 2 = Keep
- Repeat the simulation many times (e.g. 1000)
and calculate the average gain under the strategy.
Define the strategy as Choice 2 = Change
- Repeat the simulation many times (e.g. 1000)
and calculate the average gain under the strategy.
Compare the average gain under the two strategies and select the best.
Department of Veterinary and Animal Sciences Slide 18