Welcome back. In our previous lesson, we established the precise probability distributions for the extreme values in a sample: the minimum and maximum order statistics. This allowed us to calculate the likelihood of observing the very best or worst outcomes. Now, we will generalize that foundation to analyze any rank-ordered value within a dataset.
Today's lesson addresses how to find the probability that the k-th order statistic, , falls within a specific range. You will learn to derive the general formula for the probability density function (PDF) of and then apply it through integration to solve practical problems. This skill is invaluable for understanding the behavior of specific quantiles, such as the median, or any other ranked data point that is not an extreme.
The General Distribution of the k-th Order Statistic
Recall from our last session that we have a random sample drawn from a distribution with CDF and PDF . The sorted sample gives us the order statistics .
To find the PDF of the k-th order statistic, , we can use a wonderfully intuitive argument that combines probability and combinatorics. Let's consider the probability that falls within an infinitesimally small interval . For this to occur, three things must happen simultaneously with respect to our sample of observations:
- Exactly one observation must fall inside the interval . The probability of this for a single observation is approximately .
- Exactly observations must be less than . The probability of this for a single observation is .
- Exactly observations must be greater than (and for an infinitesimal interval, greater than ). The probability of this for a single observation is .
A visual representation of the conditions required for the k-th order statistic, , to be located at position . Out of total data points, exactly must be smaller than , one must be at , and the remaining must be larger than .
Now, we must count how many ways we can arrange our observations to satisfy these three conditions. This is a classic combinatorial problem solved by the multinomial coefficient: we need to choose 1 observation for the interval, for the group below, and for the group above. The number of ways is:
Multiplying the number of arrangements by the probabilities of each configuration gives us the probability that is in our interval:
From this, we can extract the PDF, , which is the term multiplying :
You may recognize the structure of this PDF. For an i.i.d. sample from a Uniform(0,1) distribution, follows a Beta distribution with parameters and . This is a useful connection to keep in mind.
Calculating a Probability for a Range
The learning outcome for this lesson is to calculate the probability that falls within a given range, say . Using the PDF we just derived, this probability is found by integration:
Let's make this concrete with an example.
Application 1: Assessing the Median Bra Comfort Score
Scenario: Your bra-fitting business is evaluating a new production line. You take a sample of bras and measure their "comfort score," modeled as a random variable . You are particularly interested in the median comfort score of this sample. Since , the median is the 3rd order statistic, .
Question: What is the probability that the median comfort score falls within the "acceptable" range of [0.4, 0.6]?
Calculation:
-
Identify the components:
- Sample size , order statistic of interest .
- Parent distribution is U(0,1), so and for .
- Range of interest is .
-
Determine the PDF of the median, :
-
Integrate the PDF over the range [0.4, 0.6]:
First, expand the integrand: .
Now, find the antiderivative:Finally, evaluate the definite integral:
- At : .
- At : .
The final probability is the difference: .
Interpretation: There is a 36.5% chance that the median comfort score from this sample of five bras will lie in the acceptable 0.4 to 0.6 range. This calculation gives you a precise sense of the consistency of the product line's typical performance, not just its extremes.
Application 2: Monitoring Relationship Health
Scenario: A person is in a polyamorous relationship with partners. They periodically assess their "emotional connection" with each partner, yielding scores that we model as i.i.d. from a U(0,1) distribution. They are concerned not just with the weakest link (), but also with the second-weakest connection, .
Question: A connection score below 0.25 is considered "at risk." What is the probability that the second-weakest connection is already in this risk zone? In other words, what is ?
Calculation:
-
Identify the components:
- Sample size , order statistic of interest .
- Parent distribution is U(0,1), so and .
- Range of interest is .
-
Determine the PDF of :
-
Integrate the PDF over the range [0, 0.25]:
Expand the integrand: .
Find the antiderivative:Evaluate the definite integral (using ):
The probability is .
Alternative Calculation (using the CDF):
As a statistician, you'll appreciate that there's another way to solve this that directly uses the binomial distribution. The event is equivalent to saying that at least k of the observations are less than or equal to .
Let "success" be the event , with probability . Then the number of successes in trials follows a Binomial() distribution.
For our problem, , and . The success probability is . We need .
Summing these probabilities gives , which matches our integral result exactly.
Interpretation: There is a 26.2% chance that the second-weakest emotional connection is already in the "at risk" category. This quantifies a specific vulnerability in the relationship system beyond just the single weakest link, providing a more nuanced metric for relational health.
Conclusion
In this lesson, you have generalized your knowledge from extreme order statistics to the k-th order statistic. You can now analyze the probable value of any ranked observation in a sample, a widely applicable skill.
Key Takeaways:
- The PDF of the k-th order statistic, , is derived using a combinatorial argument, resulting in the formula:
- To find the probability that lies in a range , you must integrate this PDF from to .
- For probabilities of the form , you can either integrate the PDF from the lower bound to or use the cumulative binomial probability formula, which provides an excellent cross-check.
This concludes our module on advanced probability tools. You are now equipped to set bounds on probabilities with inequalities and to calculate exact probabilities for sorted data points. In our next module, we will transition to the practical world of statistical estimation, starting with a numerical look at the fundamental concepts of bias, variance, and the trade-offs between them.