简体   繁体   中英

Find mean of Weibull 3 distribution in R

Given alpha, lambda and phi (shape, scale and "guarantee"time (time before any failures), how do I find the mean of the distribution?
qweibull3 gives the median.
rweibull3 makes a nice random sample that approximates the mean, but is not the theoretical value.

Looking for definitions from wiki: https://en.wikipedia.org/wiki/Weibull_distribution

weibull3_mean <- function(gtime, shape, scale) {
    gtime + scale*gamma(1.0+1.0/shape)
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM