作者plutos (唉!怎麼都讀不懂。)
看板Statistics
標題[請益] 關於一個R的問題
時間Thu Oct 20 00:26:11 2005
The empirical rule states that approximately 95% of data from
a normal distribution with a mean of 0 and a standard deviation
of 1 will have an absolute value less than 2. Use the sum, rnorm
, ifelse and apply functions to find (1) the proportion of 1000
random normal variables whose absolute value is less than 2.
Repeat 10 times and see how widely the results vary.
(2) Write it into a function called empirical(n,nrepeat,mean,sd,..)
對於第二題一點頭緒也沒有請問有人可以指點一下嗎?
PS:手中沒有相關多餘的書,也想過了!想不出來上來求助大家的幫忙。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 222.157.56.74