varMult(occugene)
varMult()所属R语言包:occugene
Variance of the Occupancy Distribution
入住率分布的方差
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns the variance of the occupancy distribution based on a multinomial distribution.
返回基于多项式分布的占用分布的方差。
用法----------Usage----------
varMult(n, p, iter=NULL, seed=NULL, experimental=NULL)
参数----------Arguments----------
参数:n
number of attempts in the multinomial distribution
在多项分布的尝试
参数:p
probabilities for landing in a specific bin
在一个特定的bin着陆的概率
参数:iter
number of iterations used in the Monte-Carlo approximation
在蒙特卡洛近似使用的迭代数
参数:seed
seed for the random number generator
随机数发生器的种子
参数:experimental
access to other functions of multinomials
访问其他multinomials功能
Details
详情----------Details----------
This functions computes the variance of the occupancy distribution for a multinomial. In other words, the expected number of bins with at least one ball. The experimental argument "oneBall" computes variance of bins with exactly one ball and the experimental argument "nextTo" computes the variance of bins with one ball next to a bin with zero balls. Consider any functionality through the experimental
此函数计算占用了多项分布的差异。换句话说,预计至少有一球箱。 “oneBall”实验参数计算一个球箱方差和实验参数的“nextTo”计算箱方差与零球的垃圾桶旁边一球。通过实验,考虑任何功能
值----------Value----------
Returns a numeric
返回一个数字
作者(S)----------Author(s)----------
Oliver Will <a href="mailtowill4@yahoo.com">owill4@yahoo.com</a>
参考文献----------References----------
this package or Johnson, N. L. and Kotz, S. (1977) Urn Models and Their Application: An Approach to Modern Discrete Probability Theory. John Wiley & Sons, New York, NY.
举例----------Examples----------
n <- 20
p <- c(seq(10,1,-1),47)/100
p <- p/sum(p)
varMult(n,p)
varMult(n,p,iter=1000,seed=4)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|