# Bapat–Beg theorem

In probability theory, the Bapat–Beg theorem gives the joint probability distribution of order statistics of independent but not necessarily identically distributed random variables in terms of the cumulative distribution functions of the random variables. Bapat and Beg published the theorem in 1989,[1] though they did not offer a proof. A simple proof was offered by Hande in 1994.[2]

Often, all elements of the sample are obtained from the same population and thus have the same probability distribution. The Bapat–Beg theorem describes the order statistics when each element of the sample is obtained from a different statistical population and therefore has its own probability distribution.[1]

## Statement of theorem

Let ${\displaystyle X_{1},X_{2},\ldots ,X_{n}}$ be independent real valued random variables with cumulative distribution functions respectively ${\displaystyle F_{1}(x),F_{2}(x),\ldots ,F_{n}(x)}$. Write ${\displaystyle X_{(1)},X_{(2)},\ldots ,X_{(n)}}$ for the order statistics. Then the joint probability distribution of the ${\displaystyle n_{1},n_{2},\ldots ,n_{k}}$ order statistics (with ${\displaystyle n_{1} and ${\displaystyle x_{1}) is

{\displaystyle {\begin{aligned}F_{X_{(n_{1})},\ldots ,X_{(n_{k})}}(x_{1},\ldots ,x_{k})&=\Pr(X_{(n_{1})}\leq x_{1}\land X_{(n_{2})}\leq x_{2}\land \cdots \land X_{(n_{k})}\leq x_{k})\\&=\sum _{i_{k}=n_{k}}^{n}\cdots \sum _{i_{2}=n_{2}}^{i_{3}}\,\sum _{i_{1}=n_{1}}^{i_{2}}{\frac {P_{i_{1},\ldots ,i_{k}}(x_{1},\ldots ,x_{k})}{i_{1}!(i_{2}-i_{1})!\cdots (n-i_{k})!}},\end{aligned}}}

where

${\displaystyle P_{i_{1},\ldots ,i_{k}}(x_{1},\ldots ,x_{k})=}$
${\displaystyle \operatorname {per} {\begin{bmatrix}F_{1}(x_{1})\cdots F_{1}(x_{1})&F_{1}(x_{2})-F_{1}(x_{1})\cdots F_{1}(x_{2})-F_{1}(x_{1})&\cdots &1-F_{1}(x_{k})\cdots 1-F_{1}(x_{k})\\F_{2}(x_{1})\cdots F_{2}(x_{1})&F_{2}(x_{2})-F_{2}(x_{1})\cdots F_{2}(x_{2})-F_{2}(x_{1})&\cdots &1-F_{2}(x_{k})\cdots 1-F_{1}(x_{k})\\\vdots &\vdots &&\vdots \\\underbrace {F_{n}(x_{1})\cdots F_{n}(x_{1})} _{i_{1}}&\underbrace {F_{n}(x_{2})-F_{n}(x_{1})\cdots F_{n}(x_{2})-F_{n}(x_{1})} _{i_{2}-i_{1}}&\cdots &\underbrace {1-F_{n}(x_{k})\cdots 1-F_{n}(x_{k})} _{n-i_{k}}\end{bmatrix}}}$

is the permanent of the given block matrix. (The figures under the braces show the number of columns.)[1]

### Independent identically distributed case

In the case when the variables ${\displaystyle X_{1},X_{2},\ldots ,X_{n}}$ are independent and identically distributed with cumulative probability distribution function ${\displaystyle F_{i}=F}$ for all i the theorem reduces to

{\displaystyle {\begin{aligned}&F_{X_{(n_{1})},\ldots ,X_{(n_{k})}}(x_{1},\ldots ,x_{k})\\[8pt]&=\sum _{i_{k}=n_{k}}^{n}\cdots \sum _{i_{2}=n_{2}}^{i_{3}}\,\sum _{i_{1}=n_{1}}^{i_{2}}m!{\frac {F(x_{1})^{i_{1}}}{i_{1}!}}{\frac {(1-F(x_{k}))^{m-i_{k}}}{(m-i_{k})!}}\prod \limits _{j=2}^{k}{\frac {\left[F(x_{j})-F(x_{j-1})\right]^{i_{j}-i_{j-1}}}{(i_{j}-i_{j-1})!}}.\end{aligned}}}

## Remarks

• No assumption of continuity of the cumulative distribution functions is needed.[2]
• If the inequalities x1 < x2 < ... < xk are not imposed, some of the inequalities "may be redundant and the probability can be evaluated after making the necessary reduction."[1]

## Complexity

Glueck et al. note that the Bapat–Beg "formula is computationally intractable, because it involves an exponential number of permanents of the size of the number of random variables"[3] However, when the random variables have only two possible distributions, the complexity can be reduced to O(m2k).[3] Thus, in the case of two populations, the complexity is polynomial in m for any fixed number of statistics k.

## References

1. ^ a b c d Bapat, R. B.; Beg, M. I. (1989). "Order Statistics for Nonidentically Distributed Variables and Permanents". Sankhyā: The Indian Journal of Statistics, Series A (1961–2002). 51 (1): 79–93. JSTOR 25050725. MR 1065561.
2. ^ a b Hande, Sayaji (1994). "A Note on Order Statistics for Nondentically Distributed Variables". Sankhyā: The Indian Journal of Statistics, Series A (1961–2002). 56 (2): 365–368. JSTOR 25050995. MR 1664921.
3. ^ a b Glueck; Anis Karimpour-Fard; Jan Mandel; Larry Hunter; Muller (2008). "Fast computation by block permanents of cumulative distribution functions of order statistics from several populations". Communications in Statistics – Theory and Methods. 37 (18): 2815–2824. arXiv:0705.3851. doi:10.1080/03610920802001896. PMC 2768298. PMID 19865590.