[問題] 想請問統計計算的題目

看板Statistics作者 (哈啾)時間17年前 (2009/03/14 23:47), 編輯推噓0(005)
留言5則, 3人參與, 最新討論串1/1
想請問一題統計計算的題目 Give a method for simulating X, having the probability mass function P_j, j=5,6,…,14 where P_j= 0.11 when j is odd and 5<=j<=13 0.09 when j is even and 6<=j<=14 Use the text's random number sequence to generate X. 因為要跑程式(fortran) 看題目搞不太清楚他到底想要問什麼 想拜託版友幫我解釋一下它的題目 謝謝大家QQ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.170.215.123

03/15 00:00, , 1F
我倒是看不懂你要問的是什麼.
03/15 00:00, 1F
※ 編輯: fishrupm 來自: 118.170.215.123 (03/15 00:03)

03/15 00:07, , 2F
要你generate X, X的pmf為Pr(X=j)=P_j.
03/15 00:07, 2F

03/15 00:10, , 3F
先謝謝你 我跟版大想的一樣 主要是不知道X是什麼?
03/15 00:10, 3F

03/15 00:48, , 4F
請用 inverse cdf. generate U(0,1)
03/15 00:48, 4F

03/15 00:49, , 5F
U<=0.11 set X_j=5, 0.11<U<=0.2 set X_j=6, and so on.
03/15 00:49, 5F
文章代碼(AID): #19kz6T1X (Statistics)