mo_weibull | R Documentation |
This function computes the moments of order statistics from the weibull distribution.
mo_weibull(r, n, k = 1, shape, scale = 1)
r |
rank(s) of the desired order statistic(s) (e.g., |
n |
sample size from which the order statistic is derived. |
k |
order of the moment to compute (default is |
shape |
shape parameter of the weibull distribution. |
scale |
scale parameter of the weibull distribution (default is |
The function calculates the k
th moment using the formula:
\text{E}[X_{r:n}^k] = \frac{n!}{(r-1)!(n-r)!} \Gamma\left(1 + \frac{k}{\text{shape}}\right)
\sum_{j=0}^{r-1} (-1)^j \binom{r-1}{j} \frac{1}{(n-r+1+j)^{1 + \frac{k}{\text{shape}}}}
For non-standard weibull distributions (scale
not equal to 1), the relationship
\text{E}[Z_{r:n}^k] = \text{scale}^k \text{E}[X_{r:n}^k]
is used.
The k
th moment of the r
th order statistic from a weibull distribution.
Harter, H. L., & Balakrishnan, N. (1996). CRC handbook of tables for the use of order statistics in estimation. CRC press.
# Example 1: Standard weibull distribution (shape = 2, scale = 1)
mo_weibull(r = 2, n = 5, k = 1, shape = 2)
# Example 2: Non-standard weibull distribution (shape = 2, scale = 3)
mo_weibull(r = 3, n = 6, k = 2, shape = 2, scale = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.