- Generate a cab of one color or the other with the appropriate probabilities.
- Get the color ID response from the witness with the appropriate probability.
- Record the actual cab color and the color ID response.
Kahneman's Taxi problem
조회 수: 4 (최근 30일)
이전 댓글 표시
Can someone sugest how to create a simulation of Kahneman's taxi problem?
댓글 수: 0
채택된 답변
Jeff Miller
2020년 11월 24일
Iterate steps 1-3 10,000 times.
From the 10,000 iterations, select all the ones where the color ID response was blue. Say there are N of these.
Find out what proportion of those N times the actual cab color was blue.
댓글 수: 3
Jeff Miller
2020년 11월 25일
Hi George, Yes, what you are describing sounds like a version of what I am suggesting. To make it more like what I think of as a "simulation", I would convert the initial 1-85 versus 86-100 into blue versus green, and then 1-80 // 81-100 into correct/incorrect, but that is just semantics.
Yes, it is straightforward to do all this in matlab. For starters, randi(100,10000,2) will give you 10,000 rows and two columns of numbers 1-100.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!