Monty Hall Stratgies

バージョン 1.0.0 (2.41 KB) 作成者: Michael Heinz
Simulate the Monty Hall problem and evaluate one of three decision strategies (switch, stay, or flip a coin to decide)
ダウンロード: 27
更新 2021/11/20

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 リリースの互換性
作成: R2021b
すべてのリリースと互換性あり
プラットフォームの互換性
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

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。