0
爲了得到總體平均值的正態概率分佈,是否使用rnorm函數並給它標準誤而不是標準偏差?在標準誤差下的總體平均概率分佈
# probability distribution of a
# population mean of 100 with SD of 10, n = 50.
# convert to standard error
se <- 10/(50^.5)
# The rnorm function accepts sd, so I just use the
# se in its place to get the desired distribution
meanDist <- rnorm(1000,mean=100,sd=se)
hist(meanDist)
如果你已經知道總體平均值和sd,那麼只需要:'rnorm(1000,100,10)'。 – Arun 2013-03-09 22:11:13
我可能會說這是錯誤的,如果我有一個樣本均值和SD,基於50個樣本。我想要分配人口的意思。 – John 2013-03-10 02:57:59