Hoşgeldin Misafir

Monty Hall Simülasyonu kodundaki hata nerededir?

gtech

26 Ara 2017
604 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Merhaba arkadaşlar. Boş dururken aklıma Monty Hall problemi geldi ve bunun simülasyonunu yapayım dedim. Ancak, nedense oyuncu kapıyı değiştirdiğinde yaklaşık %40, değiştirmediğinde yaklaşık %100 winrate'e sahip oluyor. Problem kodun neresinde? Çok teşekkürler.

Python:panoya kopyala

Kod:
# Suppose you're on a game show, and you're given the choice of three doors:
# Behind one door is a car; behind the others, goats.
# You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door,
#...

Read more