Laws of order statistics #
The generic finite-tuple order-statistic API is in TauCeti.Data.Fin.Tuple.OrderStatistic.
This file uses its counting characterization and measurability to reduce order-statistic laws to
binomial tails. If the entries are independent with common law μ, the number of entries at most
t is binomial with success probability F(t) = cdf μ t, so the k-th order statistic has
cumulative distribution function
∑ j ∈ Finset.Icc (k + 1) n, n.choose j * F(t) ^ j * (1 - F(t)) ^ (n - j),
for every law μ, atoms included. By the binomial tail identity this sum is the regularized
incomplete beta value I_{F(t)}(k + 1, n - k). For unit uniform entries F(t) = t on [0, 1],
so the k-th order statistic of n independent unit uniforms has the beta law with parameters
k + 1 and n - k.
The laws are stated for the product measure Measure.pi fun _ => μ, the law of a tuple of
independent μ-distributed entries, with random-variable forms for an independent family
X : Fin n → Ω → ℝ.
Main results #
TauCeti.Probability.cdf_map_orderStatistic_pi— the cumulative distribution function of an order statistic of independent entries with a common law, as a binomial tail sum, andTauCeti.Probability.cdf_map_orderStatistic_pi_eq_regularizedIncompleteBetathe same as an incomplete beta value, with the random-variable formTauCeti.Probability.measureReal_setOf_orderStatistic_le_iid;TauCeti.Probability.map_orderStatistic_pi_uniformMeasure— thek-th order statistic ofnindependent unit uniforms has the lawbetaMeasure (k + 1) (n - k), with the random-variable formTauCeti.Probability.hasLaw_orderStatistic_iid_uniformMeasure;TauCeti.Probability.map_orderStatistic_pi_eq_map_betaMeasure_quantile— thek-th order statistic of an iid sample from any real probability lawμis obtained by applyingμ.quantileto a beta variable, with random-variable formTauCeti.Probability.hasLaw_orderStatistic_iid_map_betaMeasure_quantile.
References #
- H. A. David and H. N. Nagaraja, Order Statistics, 3rd ed., Wiley, 2003, §2.1, for the distribution of a single order statistic and its incomplete beta form.
The law of an order statistic as an incomplete beta value. If the n coordinates are
independent with common law μ, the k-th order statistic has cumulative distribution function
I_{F(t)}(k + 1, n - k), where F = cdf μ.
The law of an order statistic. If the n coordinates are independent with common law
μ, the k-th order statistic (counted from 0) is at most t with probability
∑ j ∈ Finset.Icc (k + 1) n, n.choose j * F(t) ^ j * (1 - F(t)) ^ (n - j), where
F = cdf μ: the probability that more than k coordinates are at most t. Atoms are
allowed.
The random-variable form of TauCeti.Probability.cdf_map_orderStatistic_pi: the k-th order
statistic of an independent family of n real random variables with common law μ is at most
t with probability ∑ j ∈ Finset.Icc (k + 1) n, n.choose j * F(t) ^ j * (1 - F(t)) ^ (n - j),
where F = cdf μ.
Order statistics of uniform samples are beta distributed. The k-th order statistic
(counted from 0) of n independent uniform variables on the unit interval has the beta law
with parameters k + 1 and n - k.
The random-variable form of TauCeti.Probability.map_orderStatistic_pi_uniformMeasure: the
k-th order statistic of an independent family of n uniform variables on the unit interval has
the beta law with parameters k + 1 and n - k.
Quantile construction #
Quantile construction of an order statistic. The k-th order statistic of an iid sample
from a real probability law μ has the law obtained by applying μ.quantile to a beta variable
with parameters k + 1 and n - k. This allows atoms and discontinuous quantiles.
The random-variable form of
TauCeti.Probability.map_orderStatistic_pi_eq_map_betaMeasure_quantile: the k-th order
statistic of an iid sample from μ has the beta-quantile pushforward law.