mo_tri | R Documentation |
This function computes the moments of order statistics from the symmetric triangular distribution.
mo_tri(r, n, k = 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 |
The function implements the following relationship from Nagaraja (2013) for the symmetric triangular distribution:
\text{E}[X_{r:n}^k] = \frac{n!}{(r-1)!(n-r)!} \left\{
(\frac{1}{2})^{k/2} B\left(\frac{1}{2}; \frac{k}{2} + r, n - r + 1\right) +
\sum_{j=0}^k (-1)^j \binom{k}{j} (\frac{1}{2})^{j/2}
B\left(\frac{1}{2}; \frac{j}{2} + n - r + 1, r\right)
\right\}.
Here, B(x; a, b)
is the incomplete Beta function.
The k
th moment of the r
th order statistic from a symmetric triangular distribution.
Nagaraja, H. N. (2013). Moments of order statistics and L-moments for the symmetric triangular distribution. Statistics & Probability Letters, 83(10), 2357-2363.
# Compute the 2nd moment of the 3rd order statistic for n=5
mo_tri(3, 5, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.