Couple exercises from Sampling Distributions (Part Two)

Chi-squared Distribution, Student's t-distribution, Fisher's F-distribution, Order Statistics.

Some author10 min read

Chi-squared distribution.

Suppose we have independent standard normal random variables Z1,...ZnZ_1, ... Z_n, then the sum of their squares form a χ\chi-squared distribution with nn degree of freedom.

Let's consider the degree of freedom equals 11.

The standard normal distribution has the following pdf:

f(x)=12πexp⁡(−x22)f(x) = \frac{1}{\sqrt{2\pi}} \exp(-\frac{x^2}{2})

Then the χ\chi-squared distribution will have the following pdf:

f(x)=12πx−1/2exp⁡(−x2)f(x) = \frac{1}{\sqrt{2\pi}}x^{-1/2} \exp(-\frac{x}{2})

Now, let's consider the moment generating function:

MX(t)=E[exp⁡(Xt)]=∫0∞12πx−1/2exp⁡((t−1/2)x) dxM_X(t) = \mathbb{E}[\exp(Xt)] = \int_0^{\infty} \frac{1}{\sqrt{2\pi}}x^{-1/2} \exp((t-1/2)x) \, dx ∫0∞12πx−1/2exp⁡((t−1/2)x) dx\int_0^{\infty} \frac{1}{\sqrt{2\pi}}x^{-1/2} \exp((t-1/2)x) \, dx

Let u=(t−1/2)xu=(t-1/2)x, dx=(t−1/2)−1dudx = (t-1/2)^{-1} du, which we will have

(t−1/2)1/2(t−1/2)−1∫0∞12πu−1/2exp⁡(u) du(t-1/2)^{1/2}(t-1/2)^{-1} \int_0^{\infty} \frac{1}{\sqrt{2\pi}}u^{-1/2} \exp(u)\, du =(t−1/2)−1/2= (t-1/2)^{-1/2}

And so X=Z12+Z22+...+Zn2X =Z_1^2 +Z_2^2+...+Z_n^2 will have MGF (t−1/2)−n/2(t-1/2)^{-n/2}.

In a different post, we will be showing how we can get PDF from MGF using inverse Laplace transform.

We can easily get the variance and mean

E[X]=∑iE[Zi2]=n\mathbb{E}[X] = \sum_i\mathbb{E}[Z_i^2]=n Var⁡[X]=nVar⁡[Z1]=n\operatorname{Var}[X] = n \operatorname{Var}[Z_1] = n

Theorem. Let X1,…,Xn∼N(μ,σ2)X_1, \ldots, X_n \sim N\left(\mu, \sigma^2\right) be a random sample, then Xˉ\bar{X} and S2S^2 are independent, and

(n−1)S2σ2∼χn−12\frac{(n-1) S^2}{\sigma^2} \sim \chi_{n-1}^2

Here, Xˉ=1n∑iXi\bar{X} = \frac{1}{n}\sum_i X_i is the sample mean and S2=1n−1∑i(Xi−Xˉ)2S^2 = \frac{1}{n-1}\sum_i (X_i-\bar{X})^2 is the sample variance.

Lemma. If X1,…,Xn∼N(μ,σ2)X_1, \ldots, X_n \sim N\left(\mu, \sigma^2\right) is a random sample, then Xˉ\bar{X} is independent of Xi−XˉX_i-\bar{X} for all i=1,…,ni=1, \ldots, n.

Let's consider the joint pdf:

1(2π)n/2σnexp⁡(−12σ2∑i(xi−μ)2)\frac{1}{(2\pi)^{n/2}\sigma^n} \exp\left(-\frac{1}{2\sigma^2}\sum_{i}(x_i-\mu)^2\right)

Consider the following transformation:

Xˉ=Y1,X2−Xˉ=Y2,X3−Xˉ=Y3,...,Xn−Xˉ=Yn.\bar{X} = Y_1, X_2 -\bar{X} = Y_2, X_3 -\bar{X} = Y_3, ..., X_n - \bar{X} = Y_n.

So X1=nXˉ−X2−X3−...−Xn=Y1−Y2−Y3...−Yn,X2=Y1+Y2,X3=Y1+Y3,...,Xn=Y1+Yn.X_1 = n\bar{X}-X_2 -X_3-...-X_n = Y_1 - Y_2 - Y_3...-Y_n, X_2 = Y_1+Y_2 , X_3 = Y_1+Y_3, ..., X_n = Y_1 + Y_n.

and so the determinant is 1 and our joint pdf will be

1(2π)n/2σnexp⁡(−12σ2(Y1−∑i=2nYi−μ)2)exp⁡(−12σ2∑i=2n(Y1+Yi−μ)2)\frac{1}{(2\pi)^{n/2}\sigma^n} \exp\left(-\frac{1}{2\sigma^2}(Y_1 - \sum_{i=2}^n Y_i - \mu)^2\right) \exp\left(-\frac{1}{2\sigma^2}\sum_{i=2}^{n}(Y_1 +Y_i - \mu)^2\right) (Y1−∑i=2nYi−μ)2+∑i=2n(Y1+Yi−μ)2(Y_1 - \sum_{i=2}^n Y_i - \mu)^2 +\sum_{i=2}^{n}(Y_1 +Y_i - \mu)^2 =(Y1−μ)2−2(Y1−μ)∑i=2nYi+(∑i=2nYi)2= (Y_1 - \mu)^2 -2 (Y_1-\mu)\sum_{i=2}^n Y_i +\left(\sum_{i=2}^n Y_i\right)^2 +∑i=2n(Y1−μ)2+2(Y1−μ)Yi+Yi2+\sum_{i=2}^n(Y_1-\mu)^2 +2(Y_1-\mu)Y_i+Y_i^2 =n(Y1−μ)2+∑i=2nYi2+(∑i=2nYi)2=n(Y_1 - \mu)^2+ \sum_{i=2}^n Y_i^2+\left(\sum_{i=2}^n Y_i\right)^2

So the joint pdf can be split into

1(2π)n/2σnexp⁡(−n(Y1−μ)22σ2)exp⁡(−∑i=2nYi2+(∑i=2nYi)22σ2)\frac{1}{(2\pi)^{n/2}\sigma^n} \exp\left(-\frac{n(Y_1-\mu)^2}{2\sigma^2} \right)\exp\left(-\frac{\sum_{i=2}^n Y_i^2+\left(\sum_{i=2}^n Y_i\right)^2}{2\sigma^2} \right)

Therefore, Y1Y_1 is independent of YiY_i and so we have Xˉ\bar{X} is independent of Xi−XˉX_i-\bar{X} for any ii.

Now, let us reiterate the theorem and prove:

Theorem. Let X1,…,Xn∼N(μ,σ2)X_1, \ldots, X_n \sim N\left(\mu, \sigma^2\right) be a random sample, then Xˉ\bar{X} and S2S^2 are independent, and

(n−1)S2σ2∼χn−12\frac{(n-1) S^2}{\sigma^2} \sim \chi_{n-1}^2

Since S2=1n−1∑i(Xi−Xˉ)2S^2 = \frac{1}{n-1}\sum_{i}(X_i -\bar{X})^2 and we know Xi−XˉX_i -\bar{X} and Xˉ\bar{X} are independent, so we will have Xˉ\bar{X} and S2S^2 are independent.

Now let's consider

∑i(Xi−μ)2=∑i(Xi−Xˉ+Xˉ−μ)2=∑i(Xi−Xˉ)2+(Xˉ−μ)2+2(Xi−Xˉ)(Xˉ−μ)=∑i(Xi−Xˉ)2+n(Xˉ−μ)2\sum_i(X_i - \mu)^2 = \sum_i (X_i - \bar{X} +\bar{X} - \mu)^2 = \sum_i (X_i - \bar{X})^2 +(\bar{X} - \mu)^2 + 2(X_i -\bar{X})(\bar{X}-\mu) = \sum_i (X_i - \bar{X})^2 + n(\bar{X} - \mu)^2

and

∑i(Xi−Xˉ)2=(n−1)S2\sum_i (X_i - \bar{X})^2 = (n-1)S^2

so we will have

∑i(Xi−μ)2=(n−1)S2+n(Xˉ−μ)2\sum_i(X_i - \mu)^2 = (n-1)S^2+ n(\bar{X} - \mu)^2

If we divide both sides by σ2\sigma^2, we will have

∑i(Xi−μσ)2=(n−1)S2σ2+(Xˉ−μσ/n)2\sum_i\left(\frac{X_i - \mu}{\sigma}\right)^2 = \frac{(n-1)S^2}{\sigma^2} + \left(\frac{\bar{X}-\mu}{\sigma/\sqrt{n}}\right)^2

We know that ∑i(Xi−μσ)2\sum_i\left(\frac{X_i - \mu}{\sigma}\right)^2 forming a χ\chi-squared distribution with nn degree of freedom and (Xˉ−μσ/n)2\left(\frac{\bar{X}-\mu}{\sigma/\sqrt{n}}\right)^2 forming a χ\chi-squared distribution with 11 degree of freedom so (n−1)S2σ2\frac{(n-1)S^2}{\sigma^2} forming a χ\chi-squared distribution with n−1n-1 degree of freedom.

The upper α\alpha-quantile of the chi-squared distribution with ν\nu degrees of freedom is defined as the following:

Pr⁡[X≥χα,ν2]=α\Pr[X\ge \chi_{\alpha, \nu}^2] = \alpha

Example. Suppose a semiconductor company wants to test the thickness of their semiconductors. They tested a sample of size 20 (assuming the thicknesses are from a normal distribution N(μ,σ2)N\left(\mu, \sigma^2\right) ). The production process is considered "out of control" if σ>0.60\sigma>0.60 with probability 0.01 . Suppose the test shows s=0.84s=0.84, is the process out of control?

19×0.8420.62=37.24\frac{19 \times 0.84^2}{ 0.6^2} = 37.24

and Our critical χ2\chi^2-value χ0.01,192=36.1909\chi_{0.01, 19}^2 = 36.1909. So the process is out of control.

The student tt distribution

Suppose we have a random sample from a normal population N(μ,σ2)N\left(\mu, \sigma^2\right). Can we test the mean μ\mu without knowing σ2\sigma^2 ?

Let Y∼χν2Y \sim \chi^2_{\nu} and Z∼N(0,1)Z \sim N(0, 1) be independent, then

T=ZY/νT = \frac{ Z}{\sqrt{Y/\nu}} has the probability density function given by

fr(t)=Γ((ν+1)/2)πνΓ(ν/2)(1+t2/ν)−(ν+1)/2,for t∈R.f_r(t) = \frac{\Gamma((\nu + 1)/2)}{\sqrt{\pi \nu} \Gamma(\nu/2)} (1 + t^2/\nu)^{-(\nu + 1)/2}, \quad \text{for } t \in \mathbb{R}.

Here TT is said to have the Student distribution with ν\nu degrees of freedom, i.e., T∼tνT \sim t_\nu.

The joint pdf is the following:

12πexp⁡(−z22)12ν/2Γ(ν/2)yν/2−1exp⁡(−y/2)\frac{1}{\sqrt{2\pi}} \exp( -\frac{z^2}{2}) \frac{1}{2^{\nu/2}\Gamma(\nu/2)}y^{\nu/2-1}\exp(-y/2)

Now let's consider the following transformation:

(u,v)=(y,zy/ν)(u, v) =(y, \frac{z}{\sqrt{y/\nu}})

so (y,z)=(u,vu/ν)(y, z) = (u, v\sqrt{u/\nu})

(1012vν−1/2u−1/2u/ν)\begin{pmatrix}1 & 0 \\ \frac{1}{2}v\nu^{-1/2}u^{-1/2} & \sqrt{u/\nu}\end{pmatrix}

So the determinant is u/ν\sqrt{u/\nu}

and then the original one will become

12πνexp⁡(−uv22ν)12ν/2Γ(ν/2)u(ν−1)/2exp⁡(−u/2)=12πν2ν2Γ(ν/2)uν−12exp⁡(−u2(1+v2ν))\frac{1}{\sqrt{2\pi\nu}} \exp\left( -\frac{uv^2 }{2\nu}\right) \frac{1}{2^{\nu/2}\Gamma(\nu/2)}u^{(\nu-1)/2}\exp(-u/2)= \frac{1}{\sqrt{2\pi\nu}2^{\frac{\nu}{2}}\Gamma(\nu/2)}u^{\frac{\nu-1}{2}}\exp\left(-\frac{u}{2}(1+\frac{v^2}{\nu})\right)

Now let's compute the following marginal pdf:

∫0∞12πν2ν2Γ(ν/2)uν−12exp⁡(−u2(1+v2ν)) du=12πν2ν2Γ(ν/2)∫0∞uν−12exp⁡(−u2(1+v2ν)) du\int_0^{\infty}\frac{1}{\sqrt{2\pi\nu}2^{\frac{\nu}{2}}\Gamma(\nu/2)}u^{\frac{\nu-1}{2}}\exp\left(-\frac{u}{2}(1+\frac{v^2}{\nu})\right) \, du \\= \frac{1}{\sqrt{2\pi\nu}2^{\frac{\nu}{2}}\Gamma(\nu/2)}\int_0^{\infty}u^{\frac{\nu-1}{2}}\exp\left(-\frac{u}{2}(1+\frac{v^2}{\nu})\right) \, du

Let t=u2(1+v2ν)t = \frac{u}{2}(1+\frac{v^2}{\nu}),

u=2t1+v2ν,du=2dt1+v2νu = \frac{2t}{1+\frac{v^2}{\nu}}, du = \frac{2dt}{1+\frac{v^2}{\nu}}

The marginal pdf will become

2122πνΓ(ν/2)(11+v2ν)ν+12∫0∞tν−12exp⁡(−t) dt=Γ(ν+12)πνΓ(ν/2)(11+v2ν)ν+12\frac{2^{\frac{1}{2}}}{\sqrt{2\pi\nu}\Gamma(\nu/2)} \left(\frac{1}{1+\frac{v^2}{\nu}}\right)^{\frac{\nu+1}{2}}\int_0^{\infty} t^{\frac{\nu-1}{2}}\exp(-t)\, dt = \frac{\Gamma(\frac{\nu+1}{2})}{\sqrt{\pi\nu}\Gamma(\nu/2)} \left(\frac{1}{1+\frac{v^2}{\nu}}\right)^{\frac{\nu+1}{2}}

, which proves our theorem.

Theorem. Suppose Xˉ\bar{X} and S2S^2 are respectively the sample mean and sample variance of a random sample from N(μ,σ2)N\left(\mu, \sigma^2\right), then

v=Xˉ−μS/n∼tn−1v=\frac{\bar{X}-\mu}{S / \sqrt{n}} \sim t_{n-1}

Proof.

We know that u=(n−1)S2σ2∼χn−12u=\frac{(n-1)S^2}{\sigma^2} \sim \chi^2_{n-1} and Xˉ−μσ/n∼N(0,1)\frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \sim N(0,1) and so

S2=σ2un−1,S=σun−1S^2 = \frac{\sigma^2 u}{n-1}, S = \sigma\sqrt{\frac{u}{n-1}} Xˉ−μS/n=Xˉ−μσun−1/n=vun−1\frac{\bar{X}-\mu}{S / \sqrt{n}}= \frac{\bar{X}-\mu}{\sigma\sqrt{\frac{u}{n-1}} / \sqrt{n}} = \frac{v}{\sqrt{\frac{u}{n-1}}}

So it's the tt distribution with ν=n−1.\nu = n-1.

Example. Suppose we obtain a random sample of size 16 from a normal population. Using this sample, we figure that xˉ=16.1\bar{x}=16.1 and s=2.1s=2.1. Can we declare that the true mean μ>12.0\mu>12.0 with confidence 0.99 ?

16.1−12.02.1/16=7.809\frac{16.1-12.0}{2.1/\sqrt{16}} = 7.809

The t critical value is t0.005,15=2.946712t_{0.005, 15} = 2.946712. So we have the confidence.

Fisher F distribution

Theorem. Suppose U∼χν12U \sim \chi_{\nu_1}^2 and V∼χν22V \sim \chi_{\nu_2}^2 are independent, then

F=U/ν1V/ν2F=\frac{U / \nu_1}{V / \nu_2}

has the pdf given by

g(f)={Γ(ν1+ν22)Γ(ν12)Γ(ν22)(ν1ν2)ν12⋅fν12−1(1+ν1ν2f)−12(ν1+ν2), if f>00, elsewhere. g(f)= \begin{cases}\frac{\Gamma\left(\frac{\nu_1+\nu_2}{2}\right)}{\Gamma\left(\frac{\nu_1}{2}\right) \Gamma\left(\frac{\nu_2}{2}\right)}\left(\frac{\nu_1}{\nu_2}\right)^{\frac{\nu_1}{2}} \cdot f^{\frac{\nu_1}{2}-1}\left(1+\frac{\nu_1}{\nu_2} f\right)^{-\frac{1}{2}\left(\nu_1+\nu_2\right)}, & \text { if } f>0 \\ 0, & \text { elsewhere. }\end{cases}

Here FF is said to have the FF-distribution with degrees of freedoms ν1\nu_1 and ν2\nu_2, denoted by F∼Fν1,ν2F \sim F_{\nu_1, \nu_2}.

Let's consider the joint pdf:

12ν1/2Γ(ν1/2)u(ν1−2)/2e−u/212ν2/2Γ(ν2/2)v(ν2−2)/2e−v/2\frac{1}{2^{\nu_1 / 2} \Gamma(\nu_1 / 2)} u^{(\nu_1-2) / 2} e^{-u / 2} \frac{1}{2^{\nu_2 / 2} \Gamma(\nu_2 / 2)} v^{(\nu_2-2) / 2} e^{-v / 2} 12(ν1+ν2)/2Γ(ν1/2)Γ(ν2/2)u(ν1−2)/2v(ν2−2)/2exp⁡(−(u+v)/2)\frac{1}{2^{(\nu_1+\nu_2)/2}\Gamma(\nu_1/2)\Gamma(\nu_2/2)} u^{(\nu_1-2)/2}v^{(\nu_2-2)/2}\exp(-(u+v)/2)

Describe the following transformation (a,b)=(u/ν1,v/ν2)(a,b) = (u/\nu_1, v/\nu_2), then we will have (u,v)=(aν1,bν2)(u,v) = (a\nu_1, b\nu_2) and so

(ν100ν2)\begin{pmatrix}\nu_1 & 0 \\ 0 & \nu_2\end{pmatrix}

and the determinant will be ν1ν2\nu_1 \nu_2.

The joint distribution will become

12(ν1+ν2)/2Γ(ν1/2)Γ(ν2/2)(aν1)(ν1−2)/2(bν2)(ν2−2)/2exp⁡(−(aν1+bν2)/2)ν1ν2\frac{1}{2^{(\nu_1+\nu_2)/2}\Gamma(\nu_1/2)\Gamma(\nu_2/2)} (a\nu_1)^{(\nu_1-2)/2}(b\nu_2)^{(\nu_2-2)/2}\exp(-(a\nu_1+b\nu_2)/2)\nu_1\nu_2 =ν1(ν1−2)/2ν2(ν2−2)/22(ν1+ν2)/2Γ(ν1/2)Γ(ν2/2)a(ν1−2)/2b(ν2−2)/2exp⁡(−(aν1+bν2)/2)ν1ν2= \frac{\nu_1^{(\nu_1-2)/2} \nu_2^{(\nu_2-2)/2}}{2^{(\nu_1+\nu_2)/2}\Gamma(\nu_1/2)\Gamma(\nu_2/2)} a^{(\nu_1-2)/2}b^{(\nu_2-2)/2}\exp(-(a\nu_1+b\nu_2)/2)\nu_1\nu_2

Let (x,y)=(b,a/b)(x,y)=(b, a/b) then we will have (a,b)=(xy,x)(a,b) = (xy, x)

(yx10)\begin{pmatrix} y & x \\ 1 & 0\end{pmatrix}

And so we will have

=ν1(ν1−2)/2ν2(ν2−2)/22(ν1+ν2)/2Γ(ν1/2)Γ(ν2/2)(xy)(ν1−2)/2x(ν2−2)/2exp⁡(−(xyν1+xν2)/2)xν1ν2= \frac{\nu_1^{(\nu_1-2)/2} \nu_2^{(\nu_2-2)/2}}{2^{(\nu_1+\nu_2)/2}\Gamma(\nu_1/2)\Gamma(\nu_2/2)} (xy)^{(\nu_1-2)/2}x^{(\nu_2-2)/2}\exp(-(xy\nu_1+x\nu_2)/2)x\nu_1\nu_2 ν1ν1/2ν2ν2/2y(ν1−2)/22(ν1+ν2)/2Γ(ν1/2)Γ(ν2/2)x(ν1+ν2−2)/2exp⁡(−x2ν2+yν1)\frac{\nu_1^{\nu_1/2} \nu_2^{\nu_2/2}y^{(\nu_1-2)/2}}{2^{(\nu_1+\nu_2)/2}\Gamma(\nu_1/2)\Gamma(\nu_2/2)} x^{(\nu_1+\nu_2-2)/2}\exp\left(-\frac{x}{\frac{2}{\nu_2+y\nu_1}}\right)

Let t=x2ν2+yν1t= \frac{x}{\frac{2}{\nu_2+y\nu_1}}, then x=2tν2+yν1x = \frac{2t}{\nu_2+y\nu_1}, dx=2dtν2+yν1dx = \frac{2dt}{\nu_2+y\nu_1}

The original joint distribution will be

∫0∞ν1ν1/2ν2ν2/2y(ν1−2)/22(ν1+ν2)/2Γ(ν1/2)Γ(ν2/2)t(ν1+ν2−2)/2exp⁡(−t)(2ν2+yν1)(ν1+ν2)/2\int_0^{\infty}\frac{\nu_1^{\nu_1/2} \nu_2^{\nu_2/2}y^{(\nu_1-2)/2}}{2^{(\nu_1+\nu_2)/2}\Gamma(\nu_1/2)\Gamma(\nu_2/2)} t^{(\nu_1+\nu_2-2)/2}\exp\left(-t\right) \left(\frac{2}{\nu_2 +y \nu_1}\right)^{(\nu_1+\nu_2)/2} =Γ(ν1+ν22)Γ(ν1/2)Γ(ν2/2)(ν1ν2)ν1/2yν1/2−1(1+ν1ν2y)−(ν1+ν2)/2= \frac{\Gamma(\frac{\nu_1 + \nu_2}{2})}{\Gamma(\nu_1/2)\Gamma(\nu_2/2)} \left(\frac{\nu_1}{\nu_2}\right)^{\nu_1/2} y^{\nu_1/2-1}\left({1 + \frac{\nu_1}{\nu_2}y }\right)^{-(\nu_1+\nu_2)/2}

We can say that it's Fisher distribution with degree of freedom ν1\nu_1 and ν2\nu_2.

Application of FF statistics: compare the ratio of σ12\sigma_1^2 and σ22\sigma_2^2 from two independent normal populations.

Theorem. Suppose there are two independent normal populations with variances σ12\sigma_1^2 and σ22\sigma_2^2, and S12S_1^2 and S22S_2^2 are the sample variances of two random samples of size n1n_1 and n2n_2 from these two populations. Then

F=S12/σ12S22/σ22=σ22S12σ12S22∼Fn1−1,n2−1F=\frac{S_1^2 / \sigma_1^2}{S_2^2 / \sigma_2^2}=\frac{\sigma_2^2 S_1^2}{\sigma_1^2 S_2^2} \sim F_{n_1-1, n_2-1}

Proof.

ui=(ni−1)Si2σi2∼χni−12u_i=\frac{(n_i-1)S_i^2}{\sigma_i^2} \sim \chi_{n_i-1}^2

and so

F=u1/(n1−1)u2/(n2−1)∼Fn1−1,n2−1.F = \frac{u_1/(n_1-1)}{u_2/(n_2-1)} \sim F_{n_1-1,n_2-1}.

Order statistics.

The order statistics concerns essentially the kk-th ordered item will be with certain probability. A formal definition is the following. Suppose we have X1,X2,...,XnX_1, X_2, ... , X_n are drawn from a distribution, if we order them, then we will have Y1,Y2,...YnY_1, Y_2, ... Y_n where YiY_i represents ii-th smallest element.

Theorem. The pdf grg_r of YrY_r is given by

gr(yr)=n!(r−1)!(n−r)![∫−∞yrf(x)dx]r−1f(yr)[∫yr∞f(x)dx]n−rg_r\left(y_r\right)=\frac{n !}{(r-1) !(n-r) !}\left[\int_{-\infty}^{y_r} f(x) d x\right]^{r-1} f\left(y_r\right)\left[\int_{y_r}^{\infty} f(x) d x\right]^{n-r}

for −∞<yr<∞-\infty<y_r<\infty.

Proof: See "Introduction to Beta Distribution" in this blog.

From the above, we will have:

• Minimal statistic Y1Y_1 has pdf

fY1(y)=nf(y)[∫y∞f(x)dx]n−1f_{Y_1}(y) = n f(y) \left[\int_{y}^{\infty} f(x) d x\right]^{n-1}

and

• Maximal statistic YnY_n has pdf

fYn(y)=nf(y)[∫−∞yf(x)dx]n−1f_{Y_n}(y) = n f(y) \left[\int_{-\infty}^{y} f(x) d x\right]^{n-1}

• If n=2m+1n = 2m + 1 is odd, then the sample median Ym+1Y_{m+1} has pdf

fYm+1(y)=n!m!m!f(y)[∫y∞f(x)dx]m[∫−∞yf(x)dx]mf_{Y_{m+1}}(y) = \frac{n!}{m! m!}f(y) \left[\int_{y}^{\infty} f(x) d x\right]^{m}\left[\int_{-\infty}^{y} f(x) d x\right]^{m}

Example. Suppose X1,…,XnX_1, \ldots, X_n is a random sample from Exp⁡(θ)\operatorname{Exp}(\theta), i.e., the pdf is fY(x)=1θe−x/θf_Y(x)=\frac{1}{\theta} e^{-x / \theta}, then the pdf of Y1Y_1 is

FY(x)=∫0x1θexp⁡(−y/θ) dy=1−exp⁡(−x/θ)F_{Y}(x)=\int_0^{x} \frac{1}{\theta}\exp(-y/\theta)\, dy = 1-\exp(-x/\theta)

So

fY1(y)=nθ[exp⁡(−ny/θ)]f_{Y_1} (y) = \frac{n}{\theta} \left[\exp(-ny/\theta)\right] fYn(y)=nθexp⁡(−y/θ)[1−exp⁡(−y/θ)]n−1f_{Y_n}(y) = \frac{n}{\theta} \exp(-y/\theta) [1-\exp(-y/\theta)]^{n-1} fYm+1(y)=(2m+1)!m!m!nθexp⁡(−y(m+1)/θ)[1−exp⁡(−y/θ)]mf_{Y_{m+1}}(y) = \frac{(2m+1)!}{m!m!}\frac{n}{\theta} \exp(-y(m+1)/\theta)[1-\exp(-y/\theta)]^{m}