作者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