Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 27

Order Statistics: Fairness Benchmarks in Design Contests

Recommended resources

Welcome back, Detective. Our work on the "Booking Pattern Conspiracy" at Aphrodite's Veil has drawn to a close, at least for now. Our analysis, which culminated in estimating the client attrition rate using Maximum Likelihood Estimation, suggests that the simple theory of a constant risk of breakup is insufficient. The evidence still points to a more complex, and potentially troubling, dynamic where relationships become more fragile over time.

But a detective's work is never done. As one case file cools, another lands on the desk, steaming with intrigue.

Cold Opening: The Unfair Advantage

You receive an anonymous, encrypted email. The sender, claiming to be a former employee at Aphrodite's Veil, is brief and bitter.

They rigged it. The whole "Siren's Silhouette" lingerie design contest. Look at the winner. An unknown. Score of 99.8. Impossible. They didn't even look at all the finalists properly. It was a setup from the start.

The contest was a major PR event for the studio. Twenty finalist designs were chosen, and a panel of judges scored them on a scale of 0 to 100. A score of 99.8 is indeed spectacular. But is it impossibly so? Before we can investigate claims of a fixed process, we must first determine if the outcome itself is a statistical red flag. If scores were assigned fairly and randomly, what would we expect the winning score to be?

This brings us to a new line of inquiry. In this module, "The Unfair Advantage," our first objective is to use order statistics to determine the expected value and variance of the highest and lowest scores in the design contest, establishing a benchmark for fairness.


From a Sample to a Ranked Set

When we have a collection of random observations, like the 20 scores from the judges, we usually assume they are independent and identically distributed (i.i.d.). But what happens when we sort them? The resulting values—the minimum, the second smallest, the median, the maximum—are called order statistics.

Your background in statistics has made you intimately familiar with some of these, like the sample minimum, maximum, and median. These are fundamental to descriptive statistics and non-parametric methods. However, thinking of them as random variables in their own right, each with its own distribution, opens up a powerful new analytical framework.

The video below gives a clear and concise introduction to this idea.

What are order statistics?

This short video from Equitable Equations, "What are order statistics?", provides the formal definition and notation.

Watch the clip introducing the core concept. Notice the notation: Y_1 for the minimum, Y_n for the maximum, and Y_k for the k-th smallest value in a sample of size n.

A crucial insight, as Professor Joe Blitzstein from Harvard University points out, is that while the original observations might be independent, the sorted order statistics are inherently dependent. If you know the minimum score () was 80, you immediately know the maximum score () must be at least 80.

Lecture 25: Order Statistics and Conditional Expectation | Statistics 110

This excerpt from a Harvard Stat 110 lecture introduces order statistics and their key properties.

Watch the segment from "order statistics". Pay close attention to the discussion of why order statistics are dependent, even when the original sample is i.i.d. This is a subtle but critical point.


The Anatomy of a Rank

To determine if a score of 99.8 is plausible, we need the probability distribution of the maximum value. Let's build the intuition for the probability density function (PDF) of the k-th order statistic, .

Imagine our number line of scores from 0 to 100. For one specific value, , to be the k-th highest score, three things must happen simultaneously for our sample of designs:

  1. One design must have a score that falls in an infinitesimally small interval around .
  2. Exactly other designs must have scores less than .
  3. The remaining designs must have scores greater than .
This diagram illustrates the components of the probability density for the k-th order statistic. The total probability is a combination of observations falling to the left of y, at y, and to the right of y.

This setup feels remarkably similar to a binomial trial, a concept you're well-versed in. We have items to place into three bins: "less than y," "at y," and "greater than y." Using a combinatorial argument, we can derive the general formula for the PDF of . The following video walks through this elegant derivation.

Lecture 25: Order Statistics and Conditional Expectation | Statistics 110

In this part of the same Harvard lecture, Professor Blitzstein derives the PDF of the j-th (or k-th) order statistic using the intuitive "infinitesimal interval" method.

Watch the derivation from "PDF a different way". The argument combines three components: The number of ways to choose which observations fall into which region (n choose 1, then n-1 choose k-1). The probability of an observation being less than y, which is the CDF, F(y). The probability of an observation being greater than y, which is 1 - F(y). The probability of an observation being in the tiny interval at y, which is related to the PDF, f(y)dx.

This reasoning leads to the general formula for the PDF of the k-th order statistic, , from a continuous distribution with PDF and CDF :

The term is a multinomial coefficient which counts the number of ways to assign the observations to the three bins.


Establishing a Baseline: The Uniform Judge

To start our investigation, let's form a null hypothesis: The judges are completely unbiased and assign scores purely at random. This is equivalent to modeling the scores as independent draws from a Uniform distribution on the interval [0, 100].

While this model is simplistic, it provides a crucial baseline. If the observed winning score is highly improbable even under this random model, it gives us strong grounds for suspicion.

The uniform distribution makes our math much simpler. For a standard uniform U(0,1), the PDF is and the CDF is for . Plugging this into our general formula gives the PDF for the k-th order statistic from a U(0,1) sample:

This is the PDF of a Beta distribution with parameters and . This connection is a cornerstone of order statistics and provides us with ready-made formulas for the expected value and variance.

The following resource formally derives these results.

The order statistics and the uniform distribution

This blog post from "Probability and Stats" provides the key formulas for the order statistics of a uniform distribution.

Focus on the section "The Order Statistics...", which shows the derivation of the PDF. Then, pay close attention to the main results for the mean and variance: E[Y_k] = \frac{k}{n+1} Var[Y_k] = \frac{k(n-k+1)}{(n+1)^2(n+2)}


Case File: Calculating the Benchmark

Now, let's apply these tools to the "Siren's Silhouette" contest.

  • Number of finalists, .
  • Scores are on a scale of [0, 100].

Our formulas are for a U(0,1) distribution. We can scale the results using the properties of expectation and variance. If is a score on [0,1] and is a score on [0, 100], then .
Therefore, and .

1. The Highest Score (The Winner)

We are interested in the maximum score, which is the n-th order statistic, . Here, .

  • Expected Value:

    Scaling to our [0, 100] range:

    So, under a purely random judging model, we'd expect the winning score to be around 95.24.

  • Variance:

    Scaling to our [0, 100] range:

    The standard deviation is .

2. The Lowest Score (The Unluckiest Finalist)

For completeness, let's also calculate the expected lowest score, . Here, .

  • Expected Value:

    Scaling to our [0, 100] range:

  • Variance:

    Notice the variance of the minimum is the same as the variance of the maximum. This is due to the symmetry of the uniform distribution.

    The standard deviation is also .


Initial Verdict

The anonymous tip claimed the winning score of 99.8 was "impossible." Our analysis provides a way to quantify this.
The expected highest score was 95.24, with a standard deviation of 4.54. The observed score of 99.8 is:

The winning score is almost exactly one standard deviation above the mean. In a roughly bell-shaped distribution (which the Beta distribution for the maximum often is), this is not a rare event at all (roughly the 84th percentile).

Based on this first pass, the score itself is not the smoking gun the tipster suggested. It's high, but plausible. Perhaps our assumption of a purely random Uniform distribution is wrong. Maybe talented designers consistently produce high scores, shifting the whole distribution upwards. Or perhaps, as the tipster hinted, the process was flawed.


Conclusion

In this lesson, we opened the case file on "The Unfair Advantage" by establishing a statistical benchmark for fairness. We've seen how to take a seemingly simple concept—ranking—and treat it with the full rigor of probability theory.

Your key takeaways from this investigation:

  • Order Statistics: The sorted values of a random sample, , are themselves random variables with their own distributions.
  • PDF of the k-th Order Statistic: We can derive a general formula for this PDF using a combinatorial argument, which for a U(0,1) sample simplifies to a Beta distribution.
  • Expected Value and Variance: For a sample of size from U(0,1), the k-th order statistic has and .
  • Case Status: A preliminary analysis shows the winning score of 99.8 is only one standard deviation above what would be expected under a purely random judging model. This leads us to question the tipster's claim, or more likely, our initial model.

Preview of the Next Lesson

Our initial analysis assumed all 20 designs were judged simultaneously. But the tipster's email contained another cryptic line: "They didn't even look at all the finalists properly." This suggests a sequential process. What if the judges stopped early? This introduces a new question: if you are looking for the single best candidate in a sequence, when should you stop looking and make your choice?

In our next session, we will investigate this possibility by exploring the famous "secretary problem" and the principles of optimal stopping. We will see if the contest's procedure itself could have been designed to favor an early candidate.