看板 Statistics 關於我們 聯絡資訊
------------------------------------------------------------------------ R [軟體程式類別]: R [程式問題]: 模擬 [軟體熟悉度]: 新手(不到1個月) [問題敘述]: 想用下列幾種抽樣分配來測試中央極限定理 1) X~Binomial(n,p) for p=0.9 2) X~Expential(1) with rate parameter 1 3) X=|S|^S, where S~N(0,1) 4) X ~ Chisquared with parameter k=5 5) Y ~ C(0, 1), where C is the Cauchy distrituion wih location parameter 0 and scale parameter 1. [程式範例]: ----------------------------------------------------------------------------- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 76.212.195.218
Wush978:不知道函數的時候可以先試著用 help.search('關鍵字') 01/19 03:51
Wush978:ex: help.search('the binomial distribution') 01/19 04:00
Wush978:搜出來的結果你會看到 01/19 04:00
Wush978:BSagri::ExNBCov Simulated example data, drawn f 01/19 04:00
Wush978:BSagri 表示這個function 在 package BSagri 01/19 04:00
Wush978:名字叫做 ExNBCov 01/19 04:00
Wush978:後面是解說 01/19 04:01
Wush978:根據你的狀況, 應該是找 stat:: 這種的就夠了 試試看吧 01/19 04:01
Wush978: stats 更正, sorry 01/19 04:01