How this calculation works
An order statistic is an observation’s position after sorting a random sample. This calculator concerns its sampling distribution before a sample is observed. If the continuous parent CDF is F, the transformed kth smallest has a beta distribution with parameters k and n−k+1. You enter F at two endpoints, and the calculator returns the probability that the ordered observation lies between those endpoints, along with both transformed CDF values.
P(X_(k)≤x)=I_(F(x))(k,n−k+1); P(l<X_(k)≤u)=H(u)−H(l).A worked example
For ten IID draws and the third-smallest observation, suppose the parent CDF is 0.2 at the lower endpoint and 0.5 at the upper endpoint. The order-statistic CDF values are approximately 0.3222004736 and 0.9453125. Their difference is 0.6231120264. Thus the third-smallest draw lies in that parent-defined interval with probability about 62.31%; no particular observed dataset was used to obtain that sampling statement.
Good to know
Assumes IID observations from a continuous parent distribution. Supports n from one through 10,000 and k from one through n. Inputs are parent-CDF probabilities, not raw coordinates, sample percentiles or fitted parameters. The lower endpoint CDF cannot exceed the upper endpoint CDF. Numerical incomplete-beta tails can lose precision for extremely tiny interval masses; no distribution fitting or parameter-uncertainty adjustment is included.
Reference: SciPy — beta distribution CDF and survival functions (opens in a new tab) ↗
A binomial count connects the parent CDF with the ordered observation
The kth smallest is at or below x exactly when at least k observations are at or below x. Under IID sampling, each observation has probability F(x) of satisfying that condition, so their count is binomial. Its upper tail equals the stated beta CDF. This connection lets one calculator handle many continuous parent families once their endpoint CDF values are known.
For the minimum, k=1 and the CDF is 1−[1−F(x)]^n. For the maximum, k=n and the CDF is F(x)^n. These special cases are useful checks on the order convention. The first smallest means the minimum, not an index starting at zero. If n=1 and k=1, the output reduces to the parent distribution’s own interval probability.
The Sample percentile calculator summarizes an observed dataset. This page instead calculates the sampling distribution of a selected ordered observation.
A theoretical order distribution is different from an observed sample percentile
A percentile calculator takes a realized dataset and locates or interpolates within its ordered values. Here the dataset is still random, and the question is where its kth observation will fall. The raw endpoint coordinates are intentionally absent because only their parent cumulative probabilities enter the distributional identity. Supply a trustworthy parent model and its CDF rather than copying an observed empirical rank into the fields without explanation.
The calculator subtracts survival probabilities when both endpoints lie high in the transformed distribution. That reduces cancellation from subtracting two numbers nearly equal to one. It does not provide arbitrary numerical precision, especially for extremely narrow intervals. The continuous-parent assumption also avoids endpoint atoms and ties; applying these formulas to a discrete parent requires attention to strict versus inclusive endpoints and is outside this workflow.
A few questions, answered
Where do I get F(l) and F(u)?
Evaluate the chosen parent distribution’s CDF at the two raw endpoints, using its fixed parameters. Enter those probabilities here, not the endpoints themselves.
Must n be odd when calculating a median-related order?
No. Any valid integer k is supported. For an even sample, a conventional sample median averages two order statistics and is not represented by one k alone.