[問題] 關於一個R的問題
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
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):