We’ve used order statistics already when we covered auction theory but some of you might not have known what order statistics are. I hope I can enlighten those today.

## Order Statistics

### What are Order Statistics?

Order statistics are what the name says. They are the probability that a given value of i.i.d random variables is the nth smallest value in all our “draws”. Therefore the maximum, the minimum and the median of i.i.d random variables are all order statistics. Or more general:

Suppose are idependent, identically-distributed (i.i.d) random variables with PDF f(x) and CDF F(x). The order statistics then says:

where sub (n) means it is the order statistic.

An important note here is that the random variables are independent of each another but their order statistics aren’t, as the 1st order statistic will always be less or equal to the 2nd order statistic. The value of the 2nd order statistic gives us therefore some limitation in what range the 1st order statitic can be.

### CDF

We start with finding the CDF of order statistics as it is easier than finding the pdf.

We want to find the probability that at least j of ‘s are x. In mathematical terms it would look like this:

If we reformulate it to exact j of are x, it is binomial distributed as there are just two outcomes. Either it is smaller or it is bigger than x.

We than get the following equation:

**Example: **In the auction theory post we used the nth order statistic cdf for our posted price model. We had a Uniform[0,1] distribution.

The nth order statistic is by the way the maximum.

We could for sure just differentiate the CDF but the sum makes it quite difficult so we go an easier way.

The trick here is to remember that the probability is given by f(x)dx where dx is a tiny interval around x. If we have n i.i.d random variables, we have n possibilities for the jth order statistic each with probability f(x)dx, because every value could be the jth order statistic. We therefore have:

The ramaining n-1 can then be either bigger or smaller than x. We therefore have again a binomial distribution. We know that j-1 have to be smaller because otherwise the jth order statistic wouldn’t be the jth order statistic (it just is how it is). n-j can therefore be bigger than x. Plugging all of this in the equation:

and therefore:

**Example: **In the auction theory post we used the n-1st order statistic for the expected profit of auctions. The random variables were i.i.d Uniform[0,1] distributed.

As f(x)=1 and F(x)=x for Uniform[0,1] we get:

What is exactly the same as in the auction theory post.