瀏覽單個文章
ElvisTu
*停權中*
 
ElvisTu的大頭照
 

加入日期: Aug 2003
文章: 226
引用:
作者bora902012
給你看一個版大提供的網頁的內容,
然後你再跑跑看你寫的程式,
就可以看出是誰沒有上過機率的課了

Let Ci denote the event that the car is at door i, and Hj the event that the host opens door j . Then

P(You win the car if you switch)
= P(H3 C2) + P(H2 C3) = P(C2)P(H3|C2) + P(C3)P(H2|C3) = (1/3)·1+ (1/3)·1 = 2/3

and in similar manner we find that
P(You win the car if you don't switch) = (1/3)·p + (1/3)·(1 - p) = 1/3
看出來了嗎?
這兩項P( You win the car if XXXXXXX )的總合已經等於1,

難道另外兩個P( You don't win the car if XXXXXXX )=0嗎?

所以寫這篇文章的人不知道機率總合為1?

這個題目[2/3,1/3]或[1/2]都沒有錯,因為這兩組機率是分別代表不同的意義,
[2/3,1/3]是指在[換,不換]的條件下的條件機率,而[1/2]是指遊戲的中獎機率

………
機率最重視關係…
先把關係搞清楚吧
P(you win the can if you don't switch)=1/3 =A
那麼
P(you win the can if you switch)=2/3 =B
相對的
P(you don't win the can if you don't switch)=2/3 =C

P(you don't win the can if you switch)=1/3 =D

誰跟誰可加在一起 請搞清楚吧
就會知道有關係的加在一起總機率會等於1
A 與B 與C 有關
D 與 C 與 B 有關

所以A+B = A+C = B+D = C+D =1
如果網兄不知有機率有種求法叫補數求法的話,相信你機率課一定上得很難過…
     
      
舊 2005-05-02, 07:59 AM #271
回應時引用此文章
ElvisTu離線中