varOS | R Documentation |
This function computes the variance of order statistics for a given distribution.
varOS(r, n, dist = c("unif", "exp", "weibull", "tri", "topple"), ...)
r |
rank(s) of the desired order statistic(s) (e.g., |
n |
sample size from which the order statistic is derived. |
dist |
a character string specifying the name of a distribution. Supported values are:
|
... |
further arguments to be passed to |
This function computes the variance of the r
th order statistic (X_{r:n}
)
for a given sample size (n
) and distribution (dist
). The variance is calculated using:
\text{Var}(X_{r:n}) = \text{E}(X^2_{r:n}) - (\text{E}(X_{r:n}))^2
The variance of the r
th order statistic.
# Variance of the 3rd order statistic in a sample of size 10 from a uniform distribution
varOS(r = 3, n = 10, dist = "unif")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.