→ andrew43: v 的內容是什麼? 04/25 21:42
→ andrew43: 只是一個整數嗎? 04/25 21:43
→ celestialgod: cum = data.frame(V = sapply(1:v, function(x){ 04/25 21:54
→ celestialgod: sum(cumsum(runif(10)) < 1 ) + 1})) 04/25 21:55
→ celestialgod: 因為你用print,不是把值回傳 04/25 21:55
→ celestialgod: 這是一個模擬,算inf_k (unif(0,1) k個和>1) 04/25 21:58
→ celestialgod: 根據蒙提卡羅法應該可以得到是exp(1) 04/25 21:58
→ celestialgod: 以前碩班機率論有證過大於1的case 04/25 22:01
→ celestialgod: 應該是在隨機過程的部分,N(t)~sum of uniform dist 04/25 22:03
→ celestialgod: 那個證明是滿難的 for general case 04/25 22:05
→ celestialgod: 如果是> 1的話 我記得積分沒幾行 04/25 22:05
→ lofu: 感恩,問題搞定了 ! 04/26 11:50