# OrderDistribution

OrderDistribution[{dist,n},k]

represents the k-order statistics distribution for n observations from the distribution dist.

OrderDistribution[{dist,n},{k_{1},k_{2},…}]

represents the joint -order statistics distribution from n observations from the distribution dist.

OrderDistribution[{dist_{1},…,dist_{n}},…]

represents the order statistics distribution for independent distributions dist_{i}.

OrderDistribution[mdist,…]

represents the order statistics distribution for multivariate distribution mdist.

# Details

- OrderDistribution[{dist,n},k] represents the distribution of the k element in the sorted list of n samples drawn from the parent distribution dist.
- The argument distribution specification is the same as in ProductDistribution. It represents a multivariate distribution and needs to be either continuous or discrete in all variables.
- OrderDistribution[dists,1] represents the distribution of Min[x
_{1},…,x_{n}], where {x_{1},…,x_{n}} has distribution ProductDistribution[dists]. - OrderDistribution[dists,k] represents the distribution of RankedMin[{x
_{1},…,x_{n}},k], where {x_{1},…,x_{n}} has distribution ProductDistribution[dists]. - OrderDistribution can be used with such functions as Mean, CDF, and RandomVariate.

# Examples

open allclose all## Basic Examples (3)

## Scope (35)

### Basic Uses (6)

Compare the distribution of minimum and maximum from a normal sample:

Find the distribution of the k-order statistics in a normal sample of 10 elements:

Find probability density function:

Plot the PDF of the smallest, the seventh smallest, and the largest variable:

Find the distribution of the maximum of independent discrete variables:

Compare for different values of distribution parameter:

Find the median order statistic distribution:

Find the joint distribution of the smallest and the largest elements:

### Parametric Distributions (5)

Define the distribution of k-order statistics of ExponentialDistribution:

Cumulative distribution function:

Find the distribution of the maximum of a sample of a continuous distribution:

Find the probability density function:

Plot the PDF for different sample sizes:

Find the distribution of the minimum in a sample from a discrete distribution:

Find the k-order statistics of BinomialDistribution:

Find the probability density function:

Plot the PDF for the minimum, maximum, and the 4-order statistics:

Mean and variance for the 4-order statistics:

Skewness and kurtosis for the 4-order statistics:

Find the distribution of a maximum in a sample from SkellamDistribution:

### Nonparametric Distributions (3)

Find the distribution of the maximum in a sample from a HistogramDistribution:

Find the distribution of the k-order statistics from a SmoothKernelDistribution:

Compare the density functions for the minimum, the median, and the maximum:

Find the distribution of the minimum in a sample from an EmpiricalDistribution:

### Derived Distributions (7)

Find the second largest order statistic from a TruncatedDistribution:

Cumulative distribution function:

Compare the PDFs of the order distribution and the truncated normal distribution:

Find the distribution of the maximum of the sample from a ParameterMixtureDistribution:

Compute probability density function:

Plot the PDF for different values of the parameter of the weight distribution:

Find the distribution of the middle element from a sample of 9 from a MixtureDistribution:

Compare probability density functions of mixture distribution and order distribution:

Find the distribution of a minimum from a TransformedDistribution:

Find the joined distribution of minimum and maximum from CensoredDistribution:

Find the distribution of a maximum from a MarginalDistribution:

Order distribution from QuantityDistribution evaluates to QuantityDistribution:

### Automatic Simplifications (14)

#### Continuous Distributions (13)

BetaDistribution is the order distribution for UniformDistribution:

DagumDistribution is closed under Max:

ExponentialDistribution is closed under Min:

ExtremeValueDistribution is closed under Max:

FrechetDistribution is closed under Max:

GompertzMakehamDistribution is closed under Min:

GumbelDistribution is closed under Min:

MaxStableDistribution is closed under Max:

MinStableDistribution is closed under Min:

ParetoDistribution is closed under Min:

PowerDistribution is closed under Max:

SinghMaddalaDistribution is closed under Min:

WeibullDistribution is closed under Min:

#### Discrete Distributions (1)

GeometricDistribution is closed under Min:

## Generalizations & Extensions (2)

## Applications (8)

Four six-sided dice are rolled. Find the expectation of the minimum value:

Find the expectation of the maximum value:

Find the expectation of the sum of the three largest values. Using the identity and linearity of Expectation, you get:

Find the probability that the most successful hedge‐fund manager among 25 non‐skilled managers outperforms the market nine out of 10 years, assuming their performances are independent from each other, and from year to year:

Compare to the probability that one a priori chosen manager performs this well:

A random sample of size 10 from a continuous distribution is sorted in ascending order. A new random variate is generated. Find the probability that the eleventh sample falls between the fourth and fifth smallest values in the sorted list:

The probability equals and is independent of k:

It is also independent of the distribution:

Compute a sample median expectation for ExponentialDistribution:

Compare with the population median:

Find the distribution of range in the size sample from an ExponentialDistribution:

Find the probability density function:

Compare it to the histogram, assuming a sample size of 6:

A new realization of random variate from ErlangDistribution is generated every minute. A record is said to occur if the value generated is larger than any prior realizations. Find the distribution of the value of the second record:

The first record necessarily occurs in the first minute. Given that the second record occurs on the minute, its probability density is given by:

The probability for the second record to occur on the minute is equal to the number of permutations with the first and last elements fixed and divided by the total number of permutations:

The density of interest is obtained by summing over :

Compare the PDF of the second record with the PDF of the Erlang random variate:

Find the mean and standard deviation of the second record value:

Find the distribution of the largest element in a standard normal sample of size , where itself is a random number from a shifted GeometricDistribution with :

Find the probability density function:

Generate random numbers following this distribution:

Plot the density and compare it with the histogram:

Approximate the mean of the distribution:

Compare it with the sample mean:

A system is composed of three identical elements defined by the lifetime distribution. The system is said to have failed when two out of three components are down. Find the lifetime distribution of this system:

Compare the density function of the system with the density function of a component:

## Properties & Relations (3)

OrderDistribution is the distribution of the RankedMin of a random sample:

Compare the histogram of the data with the PDF of the corresponding order distribution:

OrderDistribution is a special case of TransformedDistribution:

In particular, the extreme cases correspond to Min and Max:

ExponentialDistribution is the limiting distribution of the where has a UniformDistribution:

#### Text

Wolfram Research (2010), OrderDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/OrderDistribution.html (updated 2016).

#### CMS

Wolfram Language. 2010. "OrderDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/OrderDistribution.html.

#### APA

Wolfram Language. (2010). OrderDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OrderDistribution.html