Monty Hall Stratgies
Monty Hall Problem
Simulate the Monty Hall problem for different contestant strategies
The Monty Hall problem is explained in detail here https://en.wikipedia.org/wiki/Monty_Hall_problem
This MATLAB function will evaluate the odds of winning based on the chosen strategy. The standard strategies are to either always switch doors, or always stay with your first choice. This function offers a third option that is sometimes discussed, flipping a coin to decide if you should switch or stay.
While it may not be intuitive, the probability of winning is 1/3 if you alway stay, 2/3 if you always switch, and 1/2 if you flip a coin to decide each time.
引用
Michael Heinz (2024). Monty Hall Stratgies (https://github.com/OdysseusMiX/MontyHall/releases/tag/v1.0.0), GitHub. 取得済み .
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxタグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0 |