Order Statistics

Suppose X1,…,Xn is a random sample of size n from an infinite population with a continuous pdf. If we arrange the values in ascending order and

X(1)≤X(2)≤⋯≤X(n)

X(1) = minimum, X(n) = maximum

For a random sample of size n, there are n! possible arrangements of the random variables

Distribution of minimum and maximum

Suppose X1,…,Xn∼ iid fX(x) (independently identically distributed) are continuous. Let

X(1)=min(X1,X2,…,Xn)X(n)=max(X1,X2,…Xn)

The cdf of X is FX(x)=P(X≤x)=∫fx(t)dt

The pdf of X(1) (min) is

FX(1)=P(X(1)≤x)=1−P(X(1)≥x)=1−P(X1≥x,X2≥x,…Xn≥x)=1−(1−P(X1≤x))…(1−P(Xn≤x))=1−(1−FX(x))(1−FX(x))…(1−FX(x))=1−[1−FX(x)]nfX(1)=ddx(1−[1−FX(x)]n)=n[1−FX(x)]n−1fX(x)

And the pdf of X(n) (max) is

FX(n)=P(Xn≤x)=P(X(1)≤x,X(2)≤x,…X(n))=P(X(1)≤x)P(X(2)≤x)…P(X(n)≤x)=[FX(x)]nfX(n)=n[FX(x)]n−1fX(x)

Distribution of the rth order

P(x≤X(r)≤x+Δx)=fX(r)(x)Δ(x)

The pdf of the rth order statistic X(r) is given by

fX(r)=limΔX→0fX(r)Δ(x)Δ(x)

pg 38

P(x≤X(r)≤x+Δx)=P((r−1) x’s in(−∞,x), one in (x,x+Δ(x)),(n−r) x’s in (x+Δx,∞))=n!(r−1)!1!(n−r)![P(X≤x)]r−1P(x≤X≤x+Δx)[P(X≥x+Δx)]n−r=n!(r−1)!(n−r)![FX(x)]r−1[FX(x+Δx)−FX(x)][1−FX(x+Δx)]n−r

Then from

fX(r)(x)=limΔx→0P(x≤X(r)≤x+Δx)Δx=limΔx→0n!(r−1)!(n−r)![FX(x)]r−1[FX(x+Δx)−FX(x)][1−FX(x+Δx)]n−rΔx=n!(r−1)!(n−r)![FX(x)]r−1limΔx→0FX(x+Δx)−FX(x)Δx[1−FX(x)]n−rfX(r)(x)=n!(r−1)!(n−r)![FX(x)r−1]fX(x)[1−FX(x)]n−r

From which we can derive the formula for the min (r=1) and the max (r=n)

Applying the above result we find that the sample median X~ of a random sample X1,…X2n+1 (odd size) has the pdf

fX~(x)=fX(n+1)(x)=(2n+1)!n!⋅n![FX(x)]nfX(x)[1−FX(x)]nfX~(x)=fX(k)(x)=n!(k−1)!⋅(n−k)![FX(x)]k−1fX(x)[1−FX(x)]n−k

For an even number of observations:

X~=X(n)+X(n+1)2

which needs to find the joint pdf of (X(r),X(j)) using Change of Random Variables:

Y1=X(n)+X(n+1)2,Y2=X(n)