Order statistics
The idea behind sampling is the duality between a tuple of IID random variables and a certain multivariate random variable β since a sample of a distribution is just some tuple Xβ=β(X1,β¦Xn), one can consider this to be a random variable taking values in πn where each Xi is a random variable taking values in π.
In particular, one can define measurable functions πnβββπ such as, e.g. sample moments (the sample mean, etc.). Another set of sample statistics one may define (when π is a totally ordered set, such as β but notably not something like βm) are the order statistics, which we will denote as Ξ©i, where Ξ©i(x1,β¦xn) gives the $i$th value in the sorted (in ascending order) list β in particular, Ξ©1 is the minβ function and Ξ©n is the maxβ function.
Well, so Ξ©i(X) is a random variable β we can ask about how it's distributed.
For example, to calculate the cumulative of Ξ©nβ=βmaxβ, note that maxβ(X)ββ€βwββββi,βXiββ€βw. Since the $Xi$s are IID, the CDF is just:
FΞ©n(X)(w)β=βFX(w)n
Further Insight: It's clear that as nββββ, this function approaches (non-uniformly) either the Heaviside step function or zero (or really the "Heaviside step function at β +β β"). This makes sense β if your distribution has a finite upper bound, then you'll eventually get that bound and the maximum of an infinite sample (i.e. of the distribution) will be that bound, but if it doesn't, then you're eventually bound to get every value, the maximum of an infinite sample is infinity.
Illustration of F(x)n for different distributions as $nββ$
Similarly, minβ(X)ββ€βwβββΒ¬βi,βΒ¬(Xiβ€w). So the CDF is:
FΞ©1(X)(w)β=β1β ββ (1βFX(w))n
OK, teaser over. Now consider FΞ©i(X)(w), which is the probability that at least i of the data points are ββ€βw. The probability that some some specific r-selection is exactly these data points is FX(w)r(1βFX(w))nβ ββ r. So:
$$F_{\Omega_i(\mathbf{X})}(w)=\sum_{r=i}^{n}{\binom{n}{i}}F_X(w)^i(1-F_X(w))^{n-i}$$
Interestingly, the joint PDF of the order statistics (which are not at all uncorrelated) actually has a much simpler form β the probability that (Ξ©1(X),β¦Ξ©n(X)) takes the value (x1,β¦xn) is zero if the latter is not in ascending order. And if it is, the value can result from (X1,β¦Xn) taking a value that is some permutation of (x1,β¦xn) β and there are n! such permutations. So the joint PDF is:
fΞ©(X)(w)β=βn!βifX(wi)
So the formulae above are just some fancy special cases of integration by parts on the above.