dw.meanvar | R Documentation |
Mean and variance of a discrete Weibull distribution with parameters q and beta.
dw.meanvar(q,beta,M)
q , beta |
Parameters of the distribution |
M |
Maximum value of the summation. Default value is 1000. |
The mean and variance are computed using the following approximations:
E(X)=\sum_{k=1}^{M} q^{k^{\beta}}
E(X^2)=\sum_{k=1}^{M} (2k-1)q^{k^{\beta}} = 2\sum_{k=1}^{M} kq^{k^{\beta}}-E(X)
The function returns the mean and variance of a DW distribution with parameters q and beta.
Veronica Vinciotti
Khan M, Khalique A, Abouammoth A. On estimating parameters in a discrete Weibull distribution. IEEE transactions on Reliability 1989; 38(3):348-350.
dw.meanvar(q=0.9,beta=1.5)
#compare with sample mean/variance from a random sample
x<-rdw(1000,q=0.9,beta=1.5)
mean(x)
var(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.