Menu Close

Likelihood ratio tests and confidence bounds: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 32 questions UPSC has asked on likelihood ratio tests and confidence bounds in the Statistics Optional (Paper I, Statistical Inference) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Statistical Inference topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
  • ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
  • ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
  • ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 1e 2023 · 4b 2023 · 4c 2019 · 4a 2015 · 1d 2015 · 3a 2014 · 1c 2014 · 1e 2012 · 3b 2012 · 4c 2011 · 3b 2010 · 4b 2009 · 1f 2009 · 2b 2009 · 3c 2007 · 1f 2007 · 4c 2005 · 3b 2004 · 4c 2003 · 1e 2003 · 4c 2000 · 1e 2000 · 4b(ii) 1999 · 6c 1999 · 7b 1998 · 5c(ii) 1998 · 7a 1998 · 7b 1997 · 5c 1997 · 8a 1996 · 7a 1995 · 7a

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Obtain the likelihood ratio test (LRT) for testing H0:θ≤θ0 against H1:θ>θ0, using a random sample of size n taken from P(θ).

2026 · Paper I · Q1e · 10 marks

Solution

Likelihood. For a Poisson sample with T=∑xiT=\sum x_i, L(θ)=e−nθθT∏xi!,L(\theta)=\frac{e^{-n\theta}\theta^T}{\prod x_i!}, maximised over all θ>0\theta>0 at θ̂=x‾\hat\theta=\bar x.

Restricted maximum over Θ0={θ≤θ0}\Theta_0=\{\theta\le\theta_0\}. logL\log L is concave with its peak at x‾\bar x:

  • if x‾≤θ0\bar x\le\theta_0, the maximum over Θ0\Theta_0 is at x‾\bar x;
  • if x‾>θ0\bar x>\theta_0, it is at θ0\theta_0.

Likelihood ratio. λ(x)=supθ≤θ0L(θ)supθ>0L(θ)={1,x‾≤θ0(θ0x‾)nx‾en(x‾−θ0),x‾>θ0.\lambda(x)=\frac{\sup_{\theta\le\theta_0}L(\theta)}{\sup_{\theta>0}L(\theta)}=\begin{cases}1,&\bar x\le\theta_0\\[1mm]\Big(\dfrac{\theta_0}{\bar x}\Big)^{n\bar x}e^{n(\bar x-\theta_0)},&\bar x>\theta_0 .\end{cases}

λ\lambda is decreasing in x‾\bar x for x‾>θ0\bar x>\theta_0. ddx‾logλ=nlogθ0x‾−n+n=nlogθ0x‾<0.\frac{d}{d\bar x}\log\lambda=n\log\frac{\theta_0}{\bar x}-n+n=n\log\frac{\theta_0}{\bar x}<0 .

LRT. Reject H0H_0 when λ≤c\lambda\le c (c<1c<1), which is equivalent to x‾>k\bar x>k, that is, reject H0 if T=∑i=1nXi>k(randomising at T=k).\text{reject }H_0\ \text{ if }\ T=\sum_{i=1}^nX_i>k\quad(\text{randomising at }T=k). Under θ0\theta_0, T∼P(nθ0)T\sim P(n\theta_0), so kk and γ\gamma satisfy Pθ0(T>k)+γPθ0(T=k)=α.P_{\theta_0}(T>k)+\gamma P_{\theta_0}(T=k)=\alpha . The power of this test increases with θ\theta, so its size over all of H0H_0 is attained at θ0\theta_0. (This LRT coincides with the UMP test, since the Poisson family has MLR in TT.)

✓ Derivation checked step by step Every step was checked: the restricted and unrestricted maxima, and the monotonicity of λ in x̄ when x̄ > θ₀.

↑ Back to the question list

A survey of 400 families with four children each have the following distribution:

Number of boys 0 1 2 3 4
Number of families 16 89 145 118 32

Is this result consistent with the hypothesis that male and female births are equally probable at 5% level of significance? It is given that χ(.05)2 for 4 degrees of freedom =9.488 and χ(.05)2 for 5 degrees of freedom =11.070.

2023 · Paper I · Q4b · 15 marks

Solution

Hypothesis. H0H_0: boys and girls are equally likely, so the number of boys in a family of four is B(4,12)B(4,\frac12).

Expected frequencies. 400×(4x)/16400\times\binom4x/16:

Boys 0 1 2 3 4 Total
Observed OO 16 89 145 118 32 400
Expected EE 25 100 150 100 25 400
(O−E)2/E(O-E)^2/E 3.240 1.210 0.167 3.240 1.960 9.817

Degrees of freedom. 5 classes, and p=12p=\frac12 is given (not estimated), so df =5−1=4=5-1=4.

Decision. χ2=9.817>χ4,0.052=9.488\chi^2=9.817>\chi^2_{4,0.05}=9.488. We reject H0H_0 at the 5% level.

Conclusion. The data are not consistent with equally probable male and female births. (The rejection is narrow: there are more three- and four-boy families than expected.)

✓ Checked by computer We computed the expected frequencies and χ² = 9.817 in Python.

↑ Back to the question list

Define Likelihood Ratio Test. In N(θ,σ2), where σ2 is unknown, find out LR test for testing H0:θ=θ0 against H1:θ∈(Ω−θ0), where Ω is the parametric space for θ. α is the size of the test.

2023 · Paper I · Q4c · 15 marks

Solution

Likelihood ratio test. For H0:θ∈Θ0H_0:\theta\in\Theta_0 against H1:θ∈Θ−Θ0H_1:\theta\in\Theta-\Theta_0, the LR statistic is λ(x)=supθ∈Θ0L(θ;x)supθ∈ΘL(θ;x),0≤λ≤1.\lambda(x)=\frac{\sup_{\theta\in\Theta_0}L(\theta;x)}{\sup_{\theta\in\Theta}L(\theta;x)},\qquad0\le\lambda\le1 . The LRT rejects H0H_0 when λ(x)≤c\lambda(x)\le c, with cc chosen so that supΘ0Pθ(λ≤c)=α\sup_{\Theta_0}P_\theta(\lambda\le c)=\alpha.

Normal mean, variance unknown. Parameters (θ,σ2)(\theta,\sigma^2).

  • Unrestricted: θ̂=x‾\hat\theta=\bar x, σ̂2=1n∑(xi−x‾)2\hat\sigma^2=\frac1n\sum(x_i-\bar x)^2, so supL=(2πσ̂2)−n/2e−n/2\sup L=(2\pi\hat\sigma^2)^{-n/2}e^{-n/2}.
  • Under H0H_0: θ=θ0\theta=\theta_0, σ̂02=1n∑(xi−θ0)2\hat\sigma_0^2=\frac1n\sum(x_i-\theta_0)^2, so supL=(2πσ̂02)−n/2e−n/2\sup L=(2\pi\hat\sigma_0^2)^{-n/2}e^{-n/2}.

λ=(σ̂2σ̂02)n/2=(∑(xi−x‾)2∑(xi−x‾)2+n(x‾−θ0)2)n/2=(1+t2n−1)−n/2,\lambda=\Big(\frac{\hat\sigma^2}{\hat\sigma_0^2}\Big)^{n/2}=\Big(\frac{\sum(x_i-\bar x)^2}{\sum(x_i-\bar x)^2+n(\bar x-\theta_0)^2}\Big)^{n/2}=\Big(1+\frac{t^2}{n-1}\Big)^{-n/2}, where t=n(x‾−θ0)s,s2=1n−1∑(xi−x‾)2.t=\frac{\sqrt n(\bar x-\theta_0)}s,\qquad s^2=\frac1{n-1}\sum(x_i-\bar x)^2 .

Test. λ\lambda is a decreasing function of t2t^2, so λ≤c⇔|t|≥k\lambda\le c\iff|t|\ge k. Under H0H_0, t∼tn−1t\sim t_{n-1}. So the size-α\alpha LRT is reject H0 if |n(x‾−θ0)s|>tn−1,α/2.\text{reject }H_0\ \text{ if }\ \Big|\frac{\sqrt n(\bar x-\theta_0)}s\Big|>t_{n-1,\alpha/2}. This is the familiar two-sided one-sample tt-test.

✓ Derivation checked step by step Every step was checked: the two maximised likelihoods and the reduction of λ to a decreasing function of t².

↑ Back to the question list

Suppose X1,…,Xn are i.i.d beta (μ,1) and Y1,…,Ym are i.i.d beta (θ,1). X’s are independent of Y’s. (i) Find a Likelihood Ratio Test (LRT) of H0:θ=μ vs. H1:θ≠μ. (ii) Show that the test in part (i) can be based on the statistic T=∑i=1nlogXi∑i=1nlogXi+∑j=1mlogYj. (iii) Find the distribution of T, when H0 is true and then show how to get a test of size α.

2019 · Paper I · Q4a · 20 marks

Solution

Set-up. The beta(μ,1)(\mu,1) density is μxμ−1\mu x^{\mu-1}, 0<x<10<x<1. Let A=−∑i=1nlogXi,B=−∑j=1mlogYj(both positive).A=-\sum_{i=1}^n\log X_i,\qquad B=-\sum_{j=1}^m\log Y_j\qquad(\text{both positive}). Then L(μ,θ)=μne−(μ−1)Aθme−(θ−1)BL(\mu,\theta)=\mu^ne^{-(\mu-1)A}\,\theta^me^{-(\theta-1)B}.

(i) LRT.

  • Unrestricted MLEs: μ̂=n/A\hat\mu=n/A, θ̂=m/B\hat\theta=m/B.
  • Under H0H_0 (θ=μ\theta=\mu): μ̂0=(n+m)/(A+B)\hat\mu_0=(n+m)/(A+B).

At both maxima the exponential factor equals e−(n+m)eA+Be^{-(n+m)}e^{A+B}, so λ=μ̂0n+mμ̂nθ̂m=(n+m)n+mnnmm(AA+B)n(BA+B)m.\lambda=\frac{\hat\mu_0^{\,n+m}}{\hat\mu^n\hat\theta^m}=\frac{(n+m)^{n+m}}{n^nm^m}\Big(\frac A{A+B}\Big)^n\Big(\frac B{A+B}\Big)^m . Reject H0H_0 when λ≤c\lambda\le c.

(ii) Based on TT. Note AA+B=∑logXi∑logXi+∑logYj=T\dfrac A{A+B}=\dfrac{\sum\log X_i}{\sum\log X_i+\sum\log Y_j}=T. So λ=const×Tn(1−T)m.\lambda=\text{const}\times T^n(1-T)^m . The function tn(1−t)mt^n(1-t)^m rises to a maximum at t=nn+mt=\frac n{n+m} and then falls. So λ≤c\lambda\le c is equivalent to T<c1orT>c2,where c1n(1−c1)m=c2n(1−c2)m.T<c_1\quad\text{or}\quad T>c_2,\qquad\text{where }c_1^n(1-c_1)^m=c_2^n(1-c_2)^m .

(iii) Distribution of TT under H0H_0. −logXi-\log X_i is exponential with rate μ\mu, so A∼Gamma(n,μ)A\sim\text{Gamma}(n,\mu) and B∼Gamma(m,μ)B\sim\text{Gamma}(m,\mu), independent. When θ=μ\theta=\mu, T=AA+B∼Beta(n,m),T=\frac A{A+B}\sim\text{Beta}(n,m), which does not depend on μ\mu.

Size-α\alpha test. Choose c1<c2c_1<c_2 with P(T<c1)+P(T>c2)=αandc1n(1−c1)m=c2n(1−c2)m,P(T<c_1)+P(T>c_2)=\alpha\quad\text{and}\quad c_1^n(1-c_1)^m=c_2^n(1-c_2)^m, using the Beta(n,m)(n,m) distribution. A simple near-equivalent is the equal-tails test with the α2\frac\alpha2 and 1−α21-\frac\alpha2 points of Beta(n,m)(n,m). Equivalently, since A/nB/m∼F2n,2m\dfrac{A/n}{B/m}\sim F_{2n,2m}, we can use an FF-test.

Example: n=6n=6, m=9m=9, α=0.05\alpha=0.05: the LRT cut-offs are c1=0.180c_1=0.180 and c2=0.653c_2=0.653 (the equal-tails points are 0.177 and 0.649).

✓ Checked by computer We checked by simulation (n = 6, m = 9) that T follows Beta(6, 9) under H₀, and solved for the equal-likelihood cut-offs (0.180, 0.653) at α = 0.05.

↑ Back to the question list

Let X1,X2,…,Xm and Y1,Y2,…,Yn be independent random samples from N(3,σ12) and N(2,σ22) respectively. Find a confidence Interval for σ12σ22 at confidence level 1−α.

2015 · Paper I · Q1d · 10 marks

Solution

Pivot. The means are known (3 and 2), so we use S12=1m∑i=1m(Xi−3)2,S22=1n∑j=1n(Yj−2)2.S_1^2=\frac1m\sum_{i=1}^m(X_i-3)^2,\qquad S_2^2=\frac1n\sum_{j=1}^n(Y_j-2)^2 . Then mS12/σ12∼χm2mS_1^2/\sigma_1^2\sim\chi^2_m and nS22/σ22∼χn2nS_2^2/\sigma_2^2\sim\chi^2_n, independently, so F=S12/σ12S22/σ22∼Fm,n.F=\frac{S_1^2/\sigma_1^2}{S_2^2/\sigma_2^2}\ \sim\ F_{m,n}. No degrees of freedom are lost, because the means are not estimated.

Interval. Let Fm,n(α2)F_{m,n}(\frac\alpha2) and Fm,n(1−α2)F_{m,n}(1-\frac\alpha2) be the upper and lower α2\frac\alpha2 points. Then P(Fm,n(1−α2)≤S12S22⋅σ22σ12≤Fm,n(α2))=1−α.P\Big(F_{m,n}(1-\tfrac\alpha2)\le\frac{S_1^2}{S_2^2}\cdot\frac{\sigma_2^2}{\sigma_1^2}\le F_{m,n}(\tfrac\alpha2)\Big)=1-\alpha . Solving for the ratio, the 100(1−α)%100(1-\alpha)\% confidence interval for σ12/σ22\sigma_1^2/\sigma_2^2 is [S12S22⋅1Fm,n(α/2),S12S22⋅Fn,m(α/2)],\Big[\ \frac{S_1^2}{S_2^2}\cdot\frac1{F_{m,n}(\alpha/2)}\ ,\ \ \frac{S_1^2}{S_2^2}\cdot F_{n,m}(\alpha/2)\ \Big], using 1/Fm,n(1−α2)=Fn,m(α2)1/F_{m,n}(1-\frac\alpha2)=F_{n,m}(\frac\alpha2).

✓ Derivation checked step by step Every step was checked: with known means, each sum of squares over σ² is χ² with full degrees of freedom, and their ratio is F.

↑ Back to the question list

A trial can result in one of three possible outcomes with probabilities p1, p2 and p3 (p1+p2+p3=1) respectively. Construct the Likelihood Ratio test of H0:p1=p2=13 against the alternative that these probabilities are different from 13. The test needs to be constructed on the basis of n-trials.

2015 · Paper I · Q3a · 20 marks

Solution

Note. H0:p1=p2=13H_0:p_1=p_2=\frac13 forces p3=13p_3=\frac13, so H0H_0 is simple.

Likelihood. With counts n1,n2,n3n_1,n_2,n_3 (∑ni=n\sum n_i=n), L(p)=n!n1!n2!n3!p1n1p2n2p3n3.L(p)=\frac{n!}{n_1!n_2!n_3!}p_1^{n_1}p_2^{n_2}p_3^{n_3}.

  • Unrestricted MLEs: p̂i=ni/n\hat p_i=n_i/n.
  • Under H0H_0: pi=13p_i=\frac13.

LR statistic. λ=∏(1/3)ni∏(ni/n)ni=∏i=13(n3ni)ni,−2logλ=2∑i=13nilognin/3.\lambda=\frac{\prod(1/3)^{n_i}}{\prod(n_i/n)^{n_i}}=\prod_{i=1}^3\Big(\frac n{3n_i}\Big)^{n_i},\qquad-2\log\lambda=2\sum_{i=1}^3n_i\log\frac{n_i}{n/3}.

Test. Reject H0H_0 when λ\lambda is small, that is, when −2logλ-2\log\lambda is large. The full model has 2 free parameters and H0H_0 has none, so for large nn (Wilks’ theorem), −2logλ∼̇χ22 under H0.-2\log\lambda\ \dot\sim\ \chi^2_2\ \text{ under }H_0 . Reject H0 if 2∑i=13nilog3nin>χ2,α2.\text{Reject }H_0\ \text{ if }\ 2\sum_{i=1}^3n_i\log\frac{3n_i}n>\chi^2_{2,\alpha}. For example, at α=0.05\alpha=0.05 the cut-off is 5.9915.991. (A term with ni=0n_i=0 contributes 0.) For large nn, −2logλ-2\log\lambda is close to Pearson’s ∑(ni−n/3)2n/3\sum\frac{(n_i-n/3)^2}{n/3}.

✓ Derivation checked step by step Every step was checked: the multinomial MLEs, the form of λ, and the Wilks degrees of freedom (2 − 0 = 2).

↑ Back to the question list

Construct a 95% confidence interval for μ in N(μ,4) from the following observed sample: −5,0,2,15.

2014 · Paper I · Q1c · 10 marks

Solution

Interval. σ2=4\sigma^2=4 is known, n=4n=4, and x‾=−5+0+2+154=3,σn=24=1.\bar x=\frac{-5+0+2+15}4=3,\qquad\frac\sigma{\sqrt n}=\frac2{\sqrt4}=1 . The 95% confidence interval for μ\mu is x‾±1.96σn=3±1.96=(1.04,4.96).\bar x\pm1.96\frac\sigma{\sqrt n}=3\pm1.96=(1.04,\ 4.96).

(Note: the four values are very spread out. Their sample variance is 72.7, far above the assumed σ2=4\sigma^2=4. If the variance were not known, the tt-interval would be much wider. We follow the question and use σ2=4\sigma^2=4.)

✓ Checked by computer We checked: x̄ = 3, and 3 ± 1.96 × 2/√4 = (1.04, 4.96). The sample variance is 72.7.

↑ Back to the question list

A tourist resort is visited by tourists from many countries. The resort operator has the following data in the month of January, 2014:

Country USA UK Canada Italy Germany France Japan
No. of tourists 22 12 18 10 20 18 30

The resort operator has a hypothesis that the proportion of tourists visiting in the month of January of any year is 2 : 1 : 2 : 1 : 2 : 2 : 3. Test this hypothesis at 5% level of significance (Given χ6;0.052=12.59).

2014 · Paper I · Q1e · 10 marks

Solution

Expected numbers. Total =22+12+18+10+20+18+30=130=22+12+18+10+20+18+30=130. The ratio 2:1:2:1:2:2:32:1:2:1:2:2:3 has total 13, so one share is 130/13=10130/13=10.

Country USA UK Canada Italy Germany France Japan
OO 22 12 18 10 20 18 30
EE 20 10 20 10 20 20 30
(O−E)2/E(O-E)^2/E 0.2 0.4 0.2 0 0 0.2 0

χ2=∑(O−E)2E=1.00,df=7−1=6.\chi^2=\sum\frac{(O-E)^2}E=1.00,\qquad\text{df}=7-1=6 .

Decision. 1.00<χ6;0.052=12.591.00<\chi^2_{6;0.05}=12.59, so we do not reject H0H_0. The data agree well with the operator’s hypothesis 2:1:2:1:2:2:32:1:2:1:2:2:3.

✓ Checked by computer We computed the expected frequencies and χ² = 1.00 in Python.

↑ Back to the question list

When will the Neyman-Pearson test and likelihood ratio test be the same? Obtain the likelihood ratio test for testing H0:p=p0 against H1:p≠p0 based on a random sample from the binomial, b(1,p).

2012 · Paper I · Q3b · 20 marks

Solution

When the NP test and the LRT coincide. When both hypotheses are simple: H0:θ=θ0H_0:\theta=\theta_0, H1:θ=θ1H_1:\theta=\theta_1, with Ω={θ0,θ1}\Omega=\{\theta_0,\theta_1\}. Then λ=L0max(L0,L1)=min(1,L0L1).\lambda=\frac{L_0}{\max(L_0,L_1)}=\min\Big(1,\frac{L_0}{L_1}\Big). For any c<1c<1, λ≤c⇔L1/L0≥1/c\lambda\le c\iff L_1/L_0\ge1/c, which is the Neyman–Pearson region with k=1/ck=1/c. So the LRT is the MP test. (Also, in one-parameter MLR families, the one-sided LRT reduces to the UMP test.)

LRT for H0:p=p0H_0:p=p_0 against H1:p≠p0H_1:p\ne p_0 (Bernoulli sample). Let T=∑xiT=\sum x_i and p̂=T/n\hat p=T/n. λ=p0T(1−p0)n−Tp̂T(1−p̂)n−T=(p0p̂)T(1−p01−p̂)n−T.\lambda=\frac{p_0^T(1-p_0)^{n-T}}{\hat p^T(1-\hat p)^{n-T}}=\Big(\frac{p_0}{\hat p}\Big)^T\Big(\frac{1-p_0}{1-\hat p}\Big)^{n-T}. logλ\log\lambda, as a function of TT, is concave with its maximum (λ=1\lambda=1) at T=np0T=np_0. So λ≤c⇔T≤c1 or T≥c2,\lambda\le c\iff T\le c_1\ \text{ or }\ T\ge c_2, with c1<np0<c2c_1<np_0<c_2 chosen (with randomisation if needed) so that Pp0(T≤c1)+Pp0(T≥c2)=αP_{p_0}(T\le c_1)+P_{p_0}(T\ge c_2)=\alpha, and λ(c1)=λ(c2)\lambda(c_1)=\lambda(c_2).

Large nn. By Wilks’ theorem, −2logλ=2[Tlogp̂p0+(n−T)log1−p̂1−p0]∼̇χ12,-2\log\lambda=2\Big[T\log\frac{\hat p}{p_0}+(n-T)\log\frac{1-\hat p}{1-p_0}\Big]\ \dot\sim\ \chi^2_1, so reject H0H_0 if −2logλ>χ1,α2-2\log\lambda>\chi^2_{1,\alpha}. This is approximately the same as |T−np0|np0(1−p0)>zα/2\dfrac{|T-np_0|}{\sqrt{np_0(1-p_0)}}>z_{\alpha/2}.

✓ Derivation checked step by step Every step was checked: with Ω = {θ₀, θ₁} the LRT region is a Neyman–Pearson region, and the Bernoulli λ is computed from the MLE p̂ = x̄.

↑ Back to the question list

Describe the relationship between confidence interval estimation and testing of hypothesis. Let X1,X2,…,Xn be a random sample from N(μ,σ2), μ known. Obtain a confidence interval for σ2.

2012 · Paper I · Q4c · 20 marks

Solution

Confidence intervals and tests. There is a one-to-one correspondence between them.

  • From tests to intervals. For each θ0\theta_0, let A(θ0)A(\theta_0) be the acceptance region of a size-α\alpha test of H0:θ=θ0H_0:\theta=\theta_0. Then S(x)={θ0:x∈A(θ0)}S(x)=\{\theta_0:\ x\in A(\theta_0)\} is a confidence set with confidence coefficient 1−α1-\alpha, because Pθ(θ∈S(X))=Pθ(X∈A(θ))=1−αP_\theta(\theta\in S(X))=P_\theta(X\in A(\theta))=1-\alpha.
  • From intervals to tests. Given a 1−α1-\alpha confidence set S(x)S(x), the test “accept H0:θ=θ0H_0:\theta=\theta_0 iff θ0∈S(x)\theta_0\in S(x)” has size α\alpha.
  • Optimal tests give optimal sets: UMP tests give uniformly most accurate (UMA) sets, and UMPU tests give UMA unbiased sets.

In practice: we reject H0:θ=θ0H_0:\theta=\theta_0 at level α\alpha exactly when θ0\theta_0 lies outside the 100(1−α)%100(1-\alpha)\% confidence interval.

Confidence interval for σ2\sigma^2, μ\mu known. Let S=∑i=1n(Xi−μ)2S=\sum_{i=1}^n(X_i-\mu)^2. Then S/σ2∼χn2S/\sigma^2\sim\chi^2_n. So P(χn,1−α/22≤Sσ2≤χn,α/22)=1−α,P\Big(\chi^2_{n,1-\alpha/2}\le\frac S{\sigma^2}\le\chi^2_{n,\alpha/2}\Big)=1-\alpha, where χn,p2\chi^2_{n,p} is the upper pp point. Inverting: [∑(Xi−μ)2χn,α/22,∑(Xi−μ)2χn,1−α/22].\Big[\ \frac{\sum(X_i-\mu)^2}{\chi^2_{n,\alpha/2}}\ ,\ \ \frac{\sum(X_i-\mu)^2}{\chi^2_{n,1-\alpha/2}}\ \Big]. This uses all nn degrees of freedom because μ\mu is known.

✓ Derivation checked step by step Every step was checked: the inversion of the acceptance region, and the χ²ₙ pivot with known mean.

↑ Back to the question list

It is desired to test if average percentage of family income spent on food is the same in k selected blocks of a district. Assuming the underlying populations to be normal and homoscedastic, indicate how you would use likelihood ratio test for the purpose. Show that the resultant test boils down to the usual F-test.

2011 · Paper I · Q3b · 20 marks

Solution

Set-up. Let xijx_{ij} be the percentage of income spent on food by family jj in block ii (i=1,…,ki=1,\dots,k; j=1,…,nij=1,\dots,n_i; N=∑niN=\sum n_i). Assume xij∼N(μi,σ2),all independent.x_{ij}\sim N(\mu_i,\sigma^2),\quad\text{all independent}. We test H0:μ1=…=μk(=μ)H_0:\mu_1=\dots=\mu_k\ (=\mu) against H1H_1: not all equal.

Maximum under Ω\Omega (all μi\mu_i free). μ̂i=x‾i⋅\hat\mu_i=\bar x_{i\cdot}, and σ̂Ω2=1N∑i∑j(xij−x‾i⋅)2=SWN,supΩL=(2πσ̂Ω2)−N/2e−N/2.\hat\sigma^2_\Omega=\frac1N\sum_i\sum_j(x_{ij}-\bar x_{i\cdot})^2=\frac{S_W}N,\qquad\sup_\Omega L=(2\pi\hat\sigma^2_\Omega)^{-N/2}e^{-N/2}.

Maximum under H0H_0. μ̂=x‾⋅⋅\hat\mu=\bar x_{\cdot\cdot} (the grand mean), and σ̂ω2=1N∑i∑j(xij−x‾⋅⋅)2=STN,supωL=(2πσ̂ω2)−N/2e−N/2.\hat\sigma^2_\omega=\frac1N\sum_i\sum_j(x_{ij}-\bar x_{\cdot\cdot})^2=\frac{S_T}N,\qquad\sup_\omega L=(2\pi\hat\sigma^2_\omega)^{-N/2}e^{-N/2}.

Likelihood ratio. Using ST=SW+SBS_T=S_W+S_B, with SB=∑ini(x‾i⋅−x‾⋅⋅)2S_B=\sum_in_i(\bar x_{i\cdot}-\bar x_{\cdot\cdot})^2: λ=(SWST)N/2=(1+SBSW)−N/2=(1+k−1N−kF)−N/2,\lambda=\Big(\frac{S_W}{S_T}\Big)^{N/2}=\Big(1+\frac{S_B}{S_W}\Big)^{-N/2}=\Big(1+\frac{k-1}{N-k}F\Big)^{-N/2}, where F=SB/(k−1)SW/(N−k).F=\frac{S_B/(k-1)}{S_W/(N-k)}.

The test is the FF-test. λ\lambda is a decreasing function of FF, so λ≤c⇔F≥c′\lambda\le c\iff F\ge c'. Under H0H_0, SB/σ2∼χk−12S_B/\sigma^2\sim\chi^2_{k-1} and SW/σ2∼χN−k2S_W/\sigma^2\sim\chi^2_{N-k}, independently. So F∼Fk−1,N−k,reject H0 if F>Fk−1,N−k;α.F\sim F_{k-1,\,N-k},\qquad\text{reject }H_0\ \text{ if }\ F>F_{k-1,N-k;\alpha}.

In practice. Compute block means and the grand mean, form the between-block and within-block sums of squares, and set out the one-way ANOVA table. A large FF means the blocks differ in average food share.

✓ Derivation checked step by step Every step was checked: the MLEs under Ω and ω, the decomposition of the total sum of squares, and the reduction of λ to a decreasing function of F.

↑ Back to the question list

A random observation X belongs to a population having probability density function f(x). Describe likelihood ratio test for testing H0:f(x)=f1(x) against H1:f(x)=f2(x) based on a single observation, when f1(x)=12πe−12x2,−∞<x<∞ and f2(x)=12e−|x|,−∞<x<∞

2010 · Paper I · Q4b · 20 marks

Solution

LR statistic. Both hypotheses are simple, so with Ω={f1,f2}\Omega=\{f_1,f_2\}: λ(x)=f1(x)max{f1(x),f2(x)}.\lambda(x)=\frac{f_1(x)}{\max\{f_1(x),f_2(x)\}}. For c<1c<1, λ≤c⇔f2(x)f1(x)≥1c\lambda\le c\iff\dfrac{f_2(x)}{f_1(x)}\ge\dfrac1c. So the LRT is the Neyman–Pearson test.

The ratio. f2(x)f1(x)=π2exp{x22−|x|}=π2e−1/2exp{(|x|−1)22},\frac{f_2(x)}{f_1(x)}=\sqrt{\frac\pi2}\exp\Big\{\frac{x^2}2-|x|\Big\}=\sqrt{\frac\pi2}\,e^{-1/2}\exp\Big\{\frac{(|x|-1)^2}2\Big\}, which increases with (|x|−1)2(|x|-1)^2.

LRT. Reject H0:f=f1H_0:f=f_1 when |x||x| is far from 1: ||x|−1|>a,i.e. |x|<1−a or |x|>1+a,\big||x|-1\big|>a,\qquad\text{i.e. }\ |x|<1-a\ \text{ or }\ |x|>1+a, with aa chosen so that Pf1(||X|−1|>a)=αP_{f_1}(||X|-1|>a)=\alpha.

  • If α≤0.0455\alpha\le0.0455, then a≥1a\ge1, and the test is simply |x|>zα/2|x|>z_{\alpha/2}.
  • At α=0.05\alpha=0.05, a=0.9950a=0.9950: reject if |x|<0.005|x|<0.005 or |x|>1.995|x|>1.995. The power under f2f_2 is 0.1410.141.

The test rejects in the regions where the Laplace density is higher than the normal: at the centre and in the tails.

✓ Checked by computer We checked: with Ω = {f₁, f₂} the LRT region is the Neyman–Pearson region ||x| − 1| > a, and at α = 0.05 a = 0.9950 (size confirmed by simulation, 0.050).

↑ Back to the question list

A group of 20 short distance runners were subjected to a month-long training. Discuss how you would examine if the training was at all effective based on their timings to clear 100 meters before and after the training, clearly mentioning the underlying assumptions, if any, the null and the alternative hypotheses, as also the size-α critical region.

2009 · Paper I · Q1f · 12 marks

Solution

Design. For each runner i=1,…,20i=1,\dots,20, let xix_i be the 100 m time before training and yiy_i the time after. The same runner is measured twice, so the samples are paired. We work with the differences di=xi−yi(time saved).d_i=x_i-y_i\quad(\text{time saved}).

Assumptions.

  1. The differences d1,…,d20d_1,\dots,d_{20} are independent (runners do not affect each other).
  2. di∼N(μd,σd2)d_i\sim N(\mu_d,\sigma_d^2), with σd2\sigma_d^2 unknown.
  3. No other systematic change (conditions, timing equipment) between the two trials.

Hypotheses. Training is effective if times go down: H0:μd=0(no effect)againstH1:μd>0(times reduced).H_0:\mu_d=0\ \ (\text{no effect})\qquad\text{against}\qquad H_1:\mu_d>0\ \ (\text{times reduced}).

Test statistic. t=d‾sd/20,sd2=119∑i=120(di−d‾)2,t∼t19 under H0.t=\frac{\bar d}{s_d/\sqrt{20}},\qquad s_d^2=\frac1{19}\sum_{i=1}^{20}(d_i-\bar d)^2,\qquad t\sim t_{19}\ \text{ under }H_0 .

Size-α\alpha critical region. W={t>t19,α},e.g. t19,0.05=1.729.W=\{t>t_{19,\alpha}\},\qquad\text{e.g. }t_{19,0.05}=1.729 . If tt falls in WW, we conclude that the training reduced the timings.

(If normality is doubtful, use the Wilcoxon signed-rank test, or the sign test, on the did_i.)

✓ Answer checked step by step Every step was checked: the paired design, the assumptions, and the one-sided t critical region with 19 df.

↑ Back to the question list

In sampling from N(μ,σ2), μ unknown, derive 100(1−α)% shortest confidence interval for σ2.

2009 · Paper I · Q2b · 20 marks

Solution

Pivot. With S=∑i=1n(Xi−X‾)2S=\sum_{i=1}^n(X_i-\bar X)^2, S/σ2∼χn−12\ S/\sigma^2\sim\chi^2_{n-1}. For any a<ba<b with ∫abg(u)du=1−α(g=density of χn−12),\int_a^bg(u)\,du=1-\alpha\qquad(g=\text{density of }\chi^2_{n-1}), the interval [S/b,S/a]\big[S/b,\ S/a\big] has confidence 1−α1-\alpha. Its length is ℓ=S(1a−1b).\ell=S\Big(\frac1a-\frac1b\Big).

Minimise the length. Treat bb as a function of aa through the constraint. Differentiating G(b)−G(a)=1−αG(b)-G(a)=1-\alpha: g(b)dbda−g(a)=0⇒dbda=g(a)g(b).g(b)\frac{db}{da}-g(a)=0\ \Rightarrow\ \frac{db}{da}=\frac{g(a)}{g(b)}. Then dℓda=S(−1a2+1b2dbda)=S(−1a2+g(a)b2g(b))=0.\frac{d\ell}{da}=S\Big(-\frac1{a^2}+\frac1{b^2}\frac{db}{da}\Big)=S\Big(-\frac1{a^2}+\frac{g(a)}{b^2g(b)}\Big)=0 .

Conditions for the shortest interval. a2g(a)=b2g(b)and∫abg(u)du=1−α.a^2g(a)=b^2g(b)\qquad\text{and}\qquad\int_a^bg(u)\,du=1-\alpha . These are solved numerically. The shortest 100(1−α)%100(1-\alpha)\% interval is [S/b,S/a]\big[S/b,\ S/a\big].

(Since u2gn−1(u)∝gn+3(u)u^2g_{n-1}(u)\propto g_{n+3}(u), the first condition says that the χn+32\chi^2_{n+3} density takes equal values at aa and bb.)

Example: n=10n=10 (9 df), α=0.05\alpha=0.05:

aa bb 1a−1b\frac1a-\frac1b
Shortest 3.284 26.08 0.266
Equal tails 2.700 19.02 0.318

The shortest interval is about 16% shorter.

✓ Checked by computer We solved a²g(a) = b²g(b) numerically for 9 df and 95%: a = 3.284, b = 26.08. The length factor is 0.266, against 0.318 for equal tails.

↑ Back to the question list

Show that the likelihood ratio test, for the hypothesis that the means of K independent normal populations with common variance are identical, boils down to F-test.

2009 · Paper I · Q3c · 20 marks

Solution

(This is essentially the 2011 question above. The worked solution is repeated here, with the blocks read as KK populations.)

Set-up. Let xijx_{ij} be observation jj from population ii (i=1,…,ki=1,\dots,k; j=1,…,nij=1,\dots,n_i; N=∑niN=\sum n_i). Assume xij∼N(μi,σ2),all independent.x_{ij}\sim N(\mu_i,\sigma^2),\quad\text{all independent}. We test H0:μ1=…=μk(=μ)H_0:\mu_1=\dots=\mu_k\ (=\mu) against H1H_1: not all equal.

Maximum under Ω\Omega (all μi\mu_i free). μ̂i=x‾i⋅\hat\mu_i=\bar x_{i\cdot}, and σ̂Ω2=1N∑i∑j(xij−x‾i⋅)2=SWN,supΩL=(2πσ̂Ω2)−N/2e−N/2.\hat\sigma^2_\Omega=\frac1N\sum_i\sum_j(x_{ij}-\bar x_{i\cdot})^2=\frac{S_W}N,\qquad\sup_\Omega L=(2\pi\hat\sigma^2_\Omega)^{-N/2}e^{-N/2}.

Maximum under H0H_0. μ̂=x‾⋅⋅\hat\mu=\bar x_{\cdot\cdot} (the grand mean), and σ̂ω2=1N∑i∑j(xij−x‾⋅⋅)2=STN,supωL=(2πσ̂ω2)−N/2e−N/2.\hat\sigma^2_\omega=\frac1N\sum_i\sum_j(x_{ij}-\bar x_{\cdot\cdot})^2=\frac{S_T}N,\qquad\sup_\omega L=(2\pi\hat\sigma^2_\omega)^{-N/2}e^{-N/2}.

Likelihood ratio. Using ST=SW+SBS_T=S_W+S_B, with SB=∑ini(x‾i⋅−x‾⋅⋅)2S_B=\sum_in_i(\bar x_{i\cdot}-\bar x_{\cdot\cdot})^2: λ=(SWST)N/2=(1+SBSW)−N/2=(1+k−1N−kF)−N/2,\lambda=\Big(\frac{S_W}{S_T}\Big)^{N/2}=\Big(1+\frac{S_B}{S_W}\Big)^{-N/2}=\Big(1+\frac{k-1}{N-k}F\Big)^{-N/2}, where F=SB/(k−1)SW/(N−k).F=\frac{S_B/(k-1)}{S_W/(N-k)}.

The test is the FF-test. λ\lambda is a decreasing function of FF, so λ≤c⇔F≥c′\lambda\le c\iff F\ge c'. Under H0H_0, SB/σ2∼χk−12S_B/\sigma^2\sim\chi^2_{k-1} and SW/σ2∼χN−k2S_W/\sigma^2\sim\chi^2_{N-k}, independently. So F∼Fk−1,N−k,reject H0 if F>Fk−1,N−k;α.F\sim F_{k-1,\,N-k},\qquad\text{reject }H_0\ \text{ if }\ F>F_{k-1,N-k;\alpha}.

In practice. This is the one-way analysis of variance. A large FF means the population means differ.

✓ Derivation checked step by step Same derivation as the 2011 question: the MLEs under Ω and ω, the decomposition of the total sum of squares, and the reduction of λ to a decreasing function of F.

↑ Back to the question list

Briefly describe the likelihood ratio test for equality of variances of k univariate normal populations.

2007 · Paper I · Q1f · 12 marks

Solution

Set-up. Samples of sizes n1,…,nkn_1,\dots,n_k from N(μi,σi2)N(\mu_i,\sigma_i^2), N=∑niN=\sum n_i. Test H0:σ12=…=σk2againstH1:not all equal.H_0:\sigma_1^2=\dots=\sigma_k^2\qquad\text{against}\qquad H_1:\text{not all equal}.

Maxima. Let Si=∑j(xij−x‾i)2S_i=\sum_j(x_{ij}-\bar x_i)^2.

  • Under Ω\Omega: μ̂i=x‾i\hat\mu_i=\bar x_i, σ̂i2=Si/ni\hat\sigma_i^2=S_i/n_i.
  • Under H0H_0: μ̂i=x‾i\hat\mu_i=\bar x_i, σ̂2=∑Si/N\hat\sigma^2=\sum S_i/N.

LR statistic. λ=∏i(σ̂i2)ni/2(σ̂2)N/2,−2logλ=Nlogσ̂2−∑i=1knilogσ̂i2.\lambda=\frac{\prod_i(\hat\sigma_i^2)^{n_i/2}}{(\hat\sigma^2)^{N/2}},\qquad-2\log\lambda=N\log\hat\sigma^2-\sum_{i=1}^kn_i\log\hat\sigma_i^2 . By the AM–GM inequality, λ≤1\lambda\le1, with equality when all σ̂i2\hat\sigma_i^2 are equal.

Test. H0H_0 removes k−1k-1 parameters, so for large samples −2logλ∼̇χk−12-2\log\lambda\ \dot\sim\ \chi^2_{k-1}. Reject H0H_0 if −2logλ>χk−1,α2-2\log\lambda>\chi^2_{k-1,\alpha}.

Bartlett’s modification (the version used in practice). Replace nin_i by the degrees of freedom νi=ni−1\nu_i=n_i-1 and use the unbiased si2=Si/νis_i^2=S_i/\nu_i, pooled sp2=∑νisi2/νs_p^2=\sum\nu_is_i^2/\nu, ν=N−k\nu=N-k: M=νlogsp2−∑i=1kνilogsi2,C=1+13(k−1)(∑1νi−1ν).M=\nu\log s_p^2-\sum_{i=1}^k\nu_i\log s_i^2,\qquad C=1+\frac1{3(k-1)}\Big(\sum\frac1{\nu_i}-\frac1\nu\Big). Then M/C∼̇χk−12M/C\ \dot\sim\ \chi^2_{k-1} even for moderate samples, and the modified test is unbiased.

Remark. The test is sensitive to non-normality: a large M/CM/C may signal heavy tails rather than unequal variances. Levene’s test is more robust.

✓ Answer checked step by step Every step was checked: the MLEs under Ω and ω give λ, and Wilks’ theorem gives k − 1 degrees of freedom. Bartlett’s correction was checked against the standard form.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Define a family of UMA confidence sets of an unknown parameter θ at confidence level 1−α. State a result giving a one-one correspondence between the family of UMA confidence sets and the family of acceptance regions of relevant UMP tests at level α.

2007 · Paper I · Q4c · 20 marks

Solution

Confidence sets. A family {S(x)}\{S(x)\} of subsets of Θ\Theta is a family of confidence sets at level 1−α1-\alpha if Pθ(θ∈S(X))≥1−αfor all θ∈Θ.P_\theta\big(\theta\in S(X)\big)\ge1-\alpha\qquad\text{for all }\theta\in\Theta .

UMA confidence sets. For each θ\theta, let K(θ)K(\theta) be the set of “false” values θ′\theta' that we wish to exclude. (For a lower bound, K(θ)={θ′<θ}K(\theta)=\{\theta'<\theta\}; for the two-sided case, K(θ)={θ′≠θ}K(\theta)=\{\theta'\ne\theta\}.) A level-(1−α)(1-\alpha) family S*(x)S^*(x) is uniformly most accurate (UMA) if, for every other level-(1−α)(1-\alpha) family S(x)S(x), Pθ(θ′∈S*(X))≤Pθ(θ′∈S(X))for all θ and all θ′∈K(θ).P_\theta\big(\theta'\in S^*(X)\big)\le P_\theta\big(\theta'\in S(X)\big)\quad\text{for all }\theta\text{ and all }\theta'\in K(\theta). That is, among all sets that cover the true value with probability at least 1−α1-\alpha, S*S^* covers each false value least often.

Correspondence theorem.

  1. For each θ0\theta_0, let A(θ0)A(\theta_0) be the acceptance region of a level-α\alpha test of H(θ0):θ=θ0H(\theta_0):\theta=\theta_0. Then S(x)={θ:x∈A(θ)}S(x)=\{\theta:\ x\in A(\theta)\} is a family of confidence sets at level 1−α1-\alpha. Conversely, given such a family S(x)S(x), the regions A(θ0)={x:θ0∈S(x)}A(\theta_0)=\{x:\theta_0\in S(x)\} are acceptance regions of level-α\alpha tests.

  2. If, for each θ0\theta_0, A(θ0)A(\theta_0) is the acceptance region of a UMP level-α\alpha test of H(θ0)H(\theta_0) against the alternatives K′(θ0)={θ:θ0∈K(θ)}K'(\theta_0)=\{\theta:\theta_0\in K(\theta)\}, then S(x)S(x) is a UMA family at level 1−α1-\alpha.

Why: the key identity is Pθ(θ′∈S(X))=Pθ(X∈A(θ′))=1−power at θ of the test of H(θ′).P_\theta\big(\theta'\in S(X)\big)=P_\theta\big(X\in A(\theta')\big)=1-\text{power at }\theta\text{ of the test of }H(\theta'). So minimising the probability of covering a false value θ′\theta' is the same as maximising the power of the test of θ′\theta'. UMP tests correspond exactly to UMA sets.

✓ Proof checked step by step Every step was checked: the definition, and the correspondence between acceptance regions and confidence sets in both directions.

↑ Back to the question list

Given a random sample from N(μ,σ2), where both μ and σ2 are unknown, find the uniformly most accurate unbiased confidence interval σ2.

2005 · Paper I · Q3b · 20 marks

Solution

Note on the question. Read as “the UMA unbiased (UMAU) confidence interval for σ2\sigma^2”.

Pivot. With S=∑(Xi−X‾)2S=\sum(X_i-\bar X)^2, S/σ2∼χn−12\ S/\sigma^2\sim\chi^2_{n-1}, and SS (together with X‾\bar X) is sufficient.

UMPU test. For H0:σ2=σ02H_0:\sigma^2=\sigma_0^2 against H1:σ2≠σ02H_1:\sigma^2\ne\sigma_0^2, the UMPU test accepts when c1≤Sσ02≤c2,c_1\le\frac S{\sigma_0^2}\le c_2, where (from Eϕ=αE\phi=\alpha and the unbiasedness condition E[ϕT]=αE[T]E[\phi\,T]=\alpha\,E[T], with T=S/σ02T=S/\sigma_0^2): ∫c1c2gn−1(u)du=1−αand∫c1c2gn+1(u)du=1−α,\int_{c_1}^{c_2}g_{n-1}(u)\,du=1-\alpha\qquad\text{and}\qquad\int_{c_1}^{c_2}g_{n+1}(u)\,du=1-\alpha, using ugn−1(u)=(n−1)gn+1(u)u\,g_{n-1}(u)=(n-1)g_{n+1}(u). Together, these are equivalent to c1(n−1)/2e−c1/2=c2(n−1)/2e−c2/2(equal χn+12 densities).c_1^{(n-1)/2}e^{-c_1/2}=c_2^{(n-1)/2}e^{-c_2/2}\qquad(\text{equal }\chi^2_{n+1}\text{ densities}).

UMAU interval. Inverting the acceptance regions of the UMPU tests: [∑(Xi−X‾)2c2,∑(Xi−X‾)2c1].\Big[\ \frac{\sum(X_i-\bar X)^2}{c_2}\ ,\ \ \frac{\sum(X_i-\bar X)^2}{c_1}\ \Big]. By the correspondence between unbiased tests and unbiased confidence sets, this is the uniformly most accurate among unbiased intervals at level 1−α1-\alpha.

Example: n=10n=10, α=0.05\alpha=0.05:

Interval c1c_1 c2c_2
UMAU 2.953 20.30
Equal tails 2.700 19.02
Shortest length 3.284 26.08

The usual equal-tails interval is slightly biased.

✓ Checked by computer We solved the UMAU conditions numerically for 9 df and 95% (c₁ = 2.953, c₂ = 20.30), and checked that they give equal χ²₁₁ densities. These differ from the equal-tails and shortest-length cut-offs.

↑ Back to the question list

For each θ0∈Θ, let A(θ0) be the acceptance region of the level-α UMP test for H0:θ=θ0 against all alternatives. Show that S0(x) defined by S0(x)={θ∣x∈A0(θ)} is, for varying x∈𝒳 [?] a family of UMA confidence sets at the level 1−α.

2004 · Paper I · Q4c · 20 marks

Solution

Note on the question. The “[?]” is a garbled mark in the source. We read the statement as: S(x)={θ:x∈A(θ)}S(x)=\{\theta:\ x\in A(\theta)\}, for x∈𝒳x\in\mathcal X, is a family of UMA confidence sets at level 1−α1-\alpha.

Step 1: confidence level. For every θ\theta, Pθ(θ∈S(X))=Pθ(X∈A(θ))≥1−α,P_\theta\big(\theta\in S(X)\big)=P_\theta\big(X\in A(\theta)\big)\ge1-\alpha, because A(θ)A(\theta) is the acceptance region of a level-α\alpha test of H0:θH_0:\theta. So {S(x)}\{S(x)\} is a family of confidence sets at level 1−α1-\alpha.

Step 2: most accurate. Let {S′(x)}\{S'(x)\} be any other family at level 1−α1-\alpha, and define A′(θ0)={x:θ0∈S′(x)}.A'(\theta_0)=\{x:\ \theta_0\in S'(x)\}. Then Pθ0(X∈A′(θ0))=Pθ0(θ0∈S′(X))≥1−αP_{\theta_0}(X\in A'(\theta_0))=P_{\theta_0}(\theta_0\in S'(X))\ge1-\alpha, so A′(θ0)A'(\theta_0) is the acceptance region of a level-α\alpha test of H0:θ=θ0H_0:\theta=\theta_0.

Take any true value θ\theta and any false value θ′≠θ\theta'\ne\theta. Since A(θ′)A(\theta') belongs to the UMP test of θ′\theta' against all alternatives (including θ\theta), its power at θ\theta is at least that of the test with acceptance region A′(θ′)A'(\theta'): Pθ(X∉A(θ′))≥Pθ(X∉A′(θ′)).P_\theta\big(X\notin A(\theta')\big)\ \ge\ P_\theta\big(X\notin A'(\theta')\big). Therefore Pθ(θ′∈S(X))=Pθ(X∈A(θ′))≤Pθ(X∈A′(θ′))=Pθ(θ′∈S′(X)).P_\theta\big(\theta'\in S(X)\big)=P_\theta\big(X\in A(\theta')\big)\ \le\ P_\theta\big(X\in A'(\theta')\big)=P_\theta\big(\theta'\in S'(X)\big).

So S(x)S(x) covers every false value with the smallest possible probability. It is a family of UMA confidence sets at level 1−α1-\alpha. ◼\blacksquare

✓ Proof checked step by step Every step was checked: the coverage probability equals the acceptance probability, and the probability of covering a false value equals one minus the power of the corresponding UMP test.

↑ Back to the question list

Explaining the notations describe Chi-square good-ness of fit test.

2003 · Paper I · Q1e · 12 marks

Solution

Purpose. To test whether observed data agree with a hypothesised distribution.

Notation.

  • The data are grouped into kk classes (cells).
  • OiO_i = observed frequency in class ii, with ∑Oi=N\sum O_i=N.
  • pip_i = probability of class ii under the hypothesised distribution H0H_0.
  • Ei=NpiE_i=Np_i = expected frequency under H0H_0.
  • ss = number of parameters estimated from the data (to compute the pip_i).

Test statistic (Karl Pearson): χ2=∑i=1k(Oi−Ei)2Ei=∑i=1kOi2Ei−N.\chi^2=\sum_{i=1}^k\frac{(O_i-E_i)^2}{E_i}=\sum_{i=1}^k\frac{O_i^2}{E_i}-N .

Distribution. For large NN, under H0H_0, χ2∼̇χk−1−s2.\chi^2\ \dot\sim\ \chi^2_{k-1-s}. One degree of freedom is lost because ∑Oi=∑Ei=N\sum O_i=\sum E_i=N, and one more for each parameter estimated (by ML or minimum χ2\chi^2 from grouped data).

Decision. Reject H0H_0 at level α\alpha if χ2>χk−1−s,α2\chi^2>\chi^2_{k-1-s,\alpha}. A large value shows poor agreement between the data and the hypothesised distribution.

Conditions.

  1. The observations are independent, and NN is reasonably large (say at least 50).
  2. Each expected frequency Ei≥5E_i\ge5. Pool adjacent classes if necessary, and count the classes after pooling.
  3. The constraints on the cell frequencies must be linear, such as ∑Oi=N\sum O_i=N.

Example uses: testing whether data follow a binomial, Poisson or normal distribution, or whether frequencies follow a stated ratio such as 9:3:3:19:3:3:1.

✓ Answer checked step by step Every point was checked against the standard form of Pearson’s test: the statistic, the degrees of freedom and the conditions for its use.

↑ Back to the question list

Define likelihood ratio test and discuss its consistency.

2003 · Paper I · Q4c · 20 marks

Solution

Likelihood ratio test. To test H0:θ∈Θ0H_0:\theta\in\Theta_0 against H1:θ∈Θ1=Θ−Θ0H_1:\theta\in\Theta_1=\Theta-\Theta_0, compute λ(x)=supθ∈Θ0L(θ;x)supθ∈ΘL(θ;x),0≤λ≤1,\lambda(x)=\frac{\sup_{\theta\in\Theta_0}L(\theta;x)}{\sup_{\theta\in\Theta}L(\theta;x)},\qquad0\le\lambda\le1, and reject H0H_0 when λ(x)≤c\lambda(x)\le c, with cc chosen so that supθ∈Θ0Pθ(λ(X)≤c)=α\sup_{\theta\in\Theta_0}P_\theta(\lambda(X)\le c)=\alpha. Small λ\lambda means the data are much better explained by some θ\theta outside H0H_0.

Consistency. A sequence of tests is consistent if, for every fixed θ∈Θ1\theta\in\Theta_1, the power tends to 1 as n→∞n\to\infty.

The LRT is consistent under regularity conditions (identifiable model, consistent MLE, smooth log-likelihood). For a simple H0:θ=θ0H_0:\theta=\theta_0 (the general case is similar, using supΘ0\sup_{\Theta_0}):

Step 1: the critical value stays bounded. Under H0H_0, −2logλn→dχr2-2\log\lambda_n\xrightarrow{d}\chi^2_r (Wilks). So the size-α\alpha cut-off knk_n for −2logλn-2\log\lambda_n tends to χr,α2\chi^2_{r,\alpha} and stays bounded.

Step 2: under a fixed alternative θ1\theta_1, −2logλn→∞-2\log\lambda_n\to\infty. Since θ̂\hat\theta maximises LL, −2nlogλn≥2n∑i=1nlogf(Xi;θ1)f(Xi;θ0)→P2Eθ1logf(X;θ1)f(X;θ0)=2K(θ1,θ0)>0,-\frac2n\log\lambda_n\ \ge\ \frac2n\sum_{i=1}^n\log\frac{f(X_i;\theta_1)}{f(X_i;\theta_0)}\ \xrightarrow{P}\ 2\,E_{\theta_1}\log\frac{f(X;\theta_1)}{f(X;\theta_0)}=2K(\theta_1,\theta_0)>0, where KK is the Kullback–Leibler divergence, positive because the model is identifiable. So −2logλn≥n{2K(θ1,θ0)+oP(1)}→∞-2\log\lambda_n\ge n\{2K(\theta_1,\theta_0)+o_P(1)\}\to\infty in probability.

Step 3. Hence Pθ1(−2logλn>kn)→1P_{\theta_1}(-2\log\lambda_n>k_n)\to1. The LRT is consistent. ◼\blacksquare

(The LRT is also invariant under reparametrisation, coincides with the MP or UMP test in simple cases, and is asymptotically optimal in a broad sense. It need not be unbiased in small samples.)

✓ Proof checked step by step Every step was checked: the definition of the LRT, and the consistency argument via the law of large numbers for the log-likelihood ratio.

↑ Back to the question list

Bring out the relation between uniformly most accurate (UMA) confidence sets of confidence coefficient 1−α and uniformly most powerful non-randomized tests of level α.

2000 · Paper I · Q1e · 12 marks

Solution

The relation. UMA confidence sets of confidence coefficient 1−α1-\alpha and UMP non-randomised tests of level α\alpha correspond one to one, through S(x)={θ:x∈A(θ)}⇔A(θ)={x:θ∈S(x)},S(x)=\{\theta:\ x\in A(\theta)\}\qquad\Longleftrightarrow\qquad A(\theta)=\{x:\ \theta\in S(x)\}, where A(θ)A(\theta) is the acceptance region of the test of H0:θH_0:\theta.

Why non-randomised. A confidence set must be a definite set for each xx. So the tests must have acceptance regions, not test functions taking values between 0 and 1.

The key identity. For any true θ\theta and false θ′\theta', Pθ(θ′∈S(X))=Pθ(X∈A(θ′))=1−[power at θ of the test of H0:θ′].P_\theta\big(\theta'\in S(X)\big)=P_\theta\big(X\in A(\theta')\big)=1-\big[\text{power at }\theta\text{ of the test of }H_0:\theta'\big].

  • The confidence level of SS equals one minus the size of the tests: Pθ(θ∈S(X))=Pθ(X∈A(θ))≥1−αP_\theta(\theta\in S(X))=P_\theta(X\in A(\theta))\ge1-\alpha.
  • The accuracy of SS (a low chance of covering false values) equals the power of the tests.

Theorem. If, for each θ0\theta_0, A(θ0)A(\theta_0) is the acceptance region of a UMP level-α\alpha test of H0:θ=θ0H_0:\theta=\theta_0 against the relevant alternatives, then S(x)S(x) is UMA at level 1−α1-\alpha. Conversely, a UMA family yields UMP tests.

Examples.

  • N(μ,1)N(\mu,1): the UMP test of μ0\mu_0 against μ>μ0\mu>\mu_0 accepts when x‾≤μ0+zα/n\bar x\le\mu_0+z_\alpha/\sqrt n. Inverting gives the UMA lower bound μ≥x‾−zα/n\mu\ge\bar x-z_\alpha/\sqrt n.
  • No UMP test exists for μ≠μ0\mu\ne\mu_0, so no two-sided UMA interval exists. The UMPU test gives the UMA unbiased interval x‾±zα/2/n\bar x\pm z_{\alpha/2}/\sqrt n.

✓ Proof checked step by step Every step was checked: the identity linking coverage of a false value with the power of the test at that value.

↑ Back to the question list

Suppose x1,x2,…,xn are i.i.d. N(μ,σ2) observations where μ is known. Obtain the uniformly most accurate (UMA) sets for σ2

2000 · Paper I · Q4b(ii) · 10 marks

Solution

Sufficient statistic. S=∑(xi−μ)2S=\sum(x_i-\mu)^2, with S/σ2∼χn2S/\sigma^2\sim\chi^2_n. The family has MLR in SS.

UMA lower confidence bound. The UMP test of H0:σ2=σ02H_0:\sigma^2=\sigma_0^2 against σ2>σ02\sigma^2>\sigma_0^2 accepts when S≤σ02χn,α2(χn,α2=upper α point).S\le\sigma_0^2\,\chi^2_{n,\alpha}\qquad(\chi^2_{n,\alpha}=\text{upper }\alpha\text{ point}). Inverting, the set of σ02\sigma_0^2 accepted is {σ2:σ2≥Sχn,α2}.\Big\{\sigma^2:\ \sigma^2\ge\frac S{\chi^2_{n,\alpha}}\Big\}. So σ_2=∑(xi−μ)2χn,α2\underline\sigma^2=\dfrac{\sum(x_i-\mu)^2}{\chi^2_{n,\alpha}} is the UMA lower confidence bound at level 1−α1-\alpha. It has the smallest chance of falling below any value smaller than the true σ2\sigma^2.

UMA upper confidence bound. The UMP test against σ2<σ02\sigma^2<\sigma_0^2 accepts when S≥σ02χn,1−α2S\ge\sigma_0^2\chi^2_{n,1-\alpha}, giving σ¯2=∑(xi−μ)2χn,1−α2.\overline\sigma^2=\frac{\sum(x_i-\mu)^2}{\chi^2_{n,1-\alpha}}.

Two-sided. There is no UMP test of σ2=σ02\sigma^2=\sigma_0^2 against σ2≠σ02\sigma^2\ne\sigma_0^2, so there is no UMA two-sided interval. The UMPU test (accept when c1≤S/σ02≤c2c_1\le S/\sigma_0^2\le c_2, with ∫c1c2gn=1−α\int_{c_1}^{c_2}g_n=1-\alpha and c1n/2e−c1/2=c2n/2e−c2/2c_1^{n/2}e^{-c_1/2}=c_2^{n/2}e^{-c_2/2}) gives the UMA unbiased interval [S/c2,S/c1]\big[S/c_2,\ S/c_1\big].

✓ Derivation checked step by step Every step was checked: Σ(xᵢ − μ)² has MLR, the one-sided UMP tests are inverted into the UMA bounds, and no two-sided UMA set exists.

↑ Back to the question list

Derive the likelihood ratio test for testing the hypothesis μ=μ0 against μ≠μ0 on the basis of a random sample of size m from a normal distribution with mean μ and variance unity.

1999 · Paper I · Q6c · 15 marks

Solution

Likelihood. For X∼N(μ,1)X\sim N(\mu,1), L(μ)=(2π)−m/2exp{−12∑i=1m(xi−μ)2},L(\mu)=(2\pi)^{-m/2}\exp\Big\{-\frac12\sum_{i=1}^m(x_i-\mu)^2\Big\}, maximised at μ̂=x‾\hat\mu=\bar x.

LR statistic. Using ∑(xi−μ0)2=∑(xi−x‾)2+m(x‾−μ0)2\sum(x_i-\mu_0)^2=\sum(x_i-\bar x)^2+m(\bar x-\mu_0)^2: λ=L(μ0)L(x‾)=exp{−m2(x‾−μ0)2},−2logλ=m(x‾−μ0)2.\lambda=\frac{L(\mu_0)}{L(\bar x)}=\exp\Big\{-\frac m2(\bar x-\mu_0)^2\Big\},\qquad-2\log\lambda=m(\bar x-\mu_0)^2 .

Test. λ≤c⇔|x‾−μ0|≥k\lambda\le c\iff|\bar x-\mu_0|\ge k. Under H0H_0, m(X‾−μ0)∼N(0,1)\sqrt m(\bar X-\mu_0)\sim N(0,1), so −2logλ∼χ12-2\log\lambda\sim\chi^2_1 exactly. The size-α\alpha LRT is reject H0 if m|x‾−μ0|>zα/2(equivalently m(x‾−μ0)2>χ1,α2).\text{reject }H_0\ \text{ if }\ \sqrt m\,|\bar x-\mu_0|>z_{\alpha/2}\quad\big(\text{equivalently }m(\bar x-\mu_0)^2>\chi^2_{1,\alpha}\big). At α=0.05\alpha=0.05: reject if |x‾−μ0|>1.96/m|\bar x-\mu_0|>1.96/\sqrt m.

✓ Checked by computer We checked: −2 log λ = m(x̄ − μ₀)² exactly, and by simulation (m = 8) the test has size 0.050.

↑ Back to the question list

Given a random sample of size n from the p.d.f. f(x;μ)=e−(x−μ),x>μ,−∞<μ<∞ derive the UMA confidence interval for μ.

1999 · Paper I · Q7b · 25 marks

Solution

Sufficient statistic. Y=X(1)Y=X_{(1)}. Y−μY-\mu is exponential with rate nn: Pμ(Y−μ>t)=e−nt,t>0.P_\mu(Y-\mu>t)=e^{-nt},\qquad t>0 .

UMP test of H0:μ=μ0H_0:\mu=\mu_0 against H1:μ≠μ0H_1:\mu\ne\mu_0. The region is W={y<μ0}∪{y>μ0+1nlog1α}.W=\{y<\mu_0\}\ \cup\ \Big\{y>\mu_0+\frac1n\log\frac1\alpha\Big\}.

  • Size: Pμ0(Y<μ0)=0P_{\mu_0}(Y<\mu_0)=0 and Pμ0(Y>μ0+1nlog1α)=αP_{\mu_0}\big(Y>\mu_0+\frac1n\log\frac1\alpha\big)=\alpha.
  • Against μ1>μ0\mu_1>\mu_0: on {y≥μ1}\{y\ge\mu_1\}, fμ1/fμ0=en(μ1−μ0)f_{\mu_1}/f_{\mu_0}=e^{n(\mu_1-\mu_0)} is constant, and fμ1=0f_{\mu_1}=0 below μ1\mu_1. The power of any level-α\alpha test is at most min{1,αen(μ1−μ0)}\min\{1,\alpha e^{n(\mu_1-\mu_0)}\}, and WW attains this.
  • Against μ1<μ0\mu_1<\mu_0: WW includes all of {y<μ0}\{y<\mu_0\}, which has probability 0 under H0H_0. On {y≥μ0}\{y\ge\mu_0\}, fμ1=e−n(μ0−μ1)fμ0f_{\mu_1}=e^{-n(\mu_0-\mu_1)}f_{\mu_0}. So any level-α\alpha test has power at most 1−e−n(μ0−μ1)(1−α)1-e^{-n(\mu_0-\mu_1)}(1-\alpha), and WW attains this.

So WW is UMP against every μ≠μ0\mu\ne\mu_0 (as in the uniform case).

Invert the acceptance region. We accept μ0\mu_0 when μ0≤Y≤μ0+1nlog1α⇔Y−1nlog1α≤μ0≤Y.\mu_0\le Y\le\mu_0+\frac1n\log\frac1\alpha\iff Y-\frac1n\log\frac1\alpha\le\mu_0\le Y .

UMA confidence interval. By the correspondence between UMP tests and UMA sets, [X(1)−1nlog1α,X(1)]\Big[\ X_{(1)}-\frac1n\log\frac1\alpha\ ,\ \ X_{(1)}\ \Big] is the UMA confidence interval for μ\mu at level 1−α1-\alpha. Check: P(0≤Y−μ≤1nlog1α)=1−e−log(1/α)=1−αP\big(0\le Y-\mu\le\frac1n\log\frac1\alpha\big)=1-e^{-\log(1/\alpha)}=1-\alpha.

✓ Proof checked step by step Every step was checked: the UMP test of μ = μ₀ against μ ≠ μ₀ based on X₍₁₎, and its inversion. A simulation (n = 5, α = 0.1) gave coverage 0.900.

↑ Back to the question list

f(x,θ)=e−(x−θ),θ≤x<∞,−∞<θ<∞, then P[X(1)−1nlogα≤θ≤X(1)]=1−α

1998 · Paper I · Q5c(ii) · 10 marks

Solution

Note on the question. As printed, the lower limit X(1)−1nlogαX_{(1)}-\frac1n\log\alpha is larger than X(1)X_{(1)} (because logα<0\log\alpha<0), so the interval would be empty. The intended statement is P[X(1)+1nlogα≤θ≤X(1)]=1−α,P\Big[X_{(1)}+\frac1n\log\alpha\le\theta\le X_{(1)}\Big]=1-\alpha, that is, the lower limit is X(1)−1nlog1αX_{(1)}-\frac1n\log\frac1\alpha. We prove this.

Distribution of X(1)X_{(1)}. For t≥0t\ge0, P(X(1)−θ>t)=∏i=1nP(Xi>θ+t)=(e−t)n=e−nt.P\big(X_{(1)}-\theta>t\big)=\prod_{i=1}^nP(X_i>\theta+t)=\big(e^{-t}\big)^n=e^{-nt}.

Proof. P[X(1)+1nlogα≤θ≤X(1)]=P[0≤X(1)−θ≤−1nlogα]=1−e−n⋅(−1nlogα)=1−elogα=1−α.◼P\Big[X_{(1)}+\frac1n\log\alpha\le\theta\le X_{(1)}\Big]=P\Big[0\le X_{(1)}-\theta\le-\frac1n\log\alpha\Big]=1-e^{-n\cdot(-\frac1n\log\alpha)}=1-e^{\log\alpha}=1-\alpha .\qquad\blacksquare

So [X(1)−1nlog1α,X(1)]\big[X_{(1)}-\frac1n\log\frac1\alpha,\ X_{(1)}\big] is a 100(1−α)%100(1-\alpha)\% confidence interval for θ\theta. (It is the UMA interval: see the 1999 question on this page.)

✓ Checked by computer We checked the coverage by simulation (n = 5, α = 0.1): 0.900 for the interval [X₍₁₎ + (1/n) log α, X₍₁₎].

↑ Back to the question list

State the properties of L-R test and suggest the conditions where −2logeλ has the asymptotic chi-square distribution.

1998 · Paper I · Q7a · 25 marks

Solution

Properties of the LR test.

  1. Simple vs simple: the LRT is the Neyman–Pearson MP test.
  2. MLR families, one-sided: the LRT coincides with the UMP test.
  3. Invariance: λ\lambda does not change under one-to-one reparametrisation, or under transformations of the data that leave the problem unchanged.
  4. Sufficiency: λ\lambda depends on the data only through a sufficient statistic.
  5. Consistency: under regularity conditions, the power against any fixed alternative tends to 1 as n→∞n\to\infty.
  6. Large-sample distribution: −2logeλ-2\log_e\lambda is approximately χ2\chi^2 under H0H_0 (below), so approximate critical values are easy to find.
  7. Asymptotic optimality: the LRT is asymptotically equivalent to the Wald and score tests, and is locally most powerful in large samples.
  8. It is not always unbiased or UMP in small samples.

When is −2logeλ-2\log_e\lambda asymptotically χ2\chi^2? (Wilks’ theorem.) Under H0H_0, −2logeλ→dχr2,r=dimΘ−dimΘ0,-2\log_e\lambda\ \xrightarrow{d}\ \chi^2_r,\qquad r=\dim\Theta-\dim\Theta_0, provided:

  1. the observations are i.i.d. (or satisfy similar conditions), and n→∞n\to\infty;
  2. the regularity (Cramér) conditions hold: the support does not depend on θ\theta; logf\log f is three times differentiable with bounded third derivatives; the Fisher information is finite and positive definite;
  3. the true parameter is an interior point of Θ0\Theta_0 and Θ\Theta (not on the boundary);
  4. Θ0\Theta_0 is a smooth (k−r)(k-r)-dimensional subset of the kk-dimensional Θ\Theta, for example defined by rr independent restrictions θ1=θ10,…,θr=θr0\theta_1=\theta_{10},\dots,\theta_r=\theta_{r0};
  5. the MLEs under Θ\Theta and Θ0\Theta_0 are consistent.

Where it fails: U(0,θ)U(0,\theta) (the support depends on θ\theta), mixture models (the true value is on the boundary), or testing a variance component equal to 0 (the limit is then a mixture of χ02\chi^2_0 and χ12\chi^2_1).

✓ Answer checked step by step Every property and condition was checked against the standard theory of likelihood ratio tests (Wilks’ theorem).

↑ Back to the question list

Let (x1,x2,…,xn) be a random sample from N(2,σ2) [?]. Determine the L-R test of H0:σ2=σ02 against H1:σ2≠σ02 Examine, whether the test is unbiased.

1998 · Paper I · Q7b · 15 marks

Solution

Note on the question. The “[?]” is a stray mark in the source. We read the mean as known, μ=2\mu=2.

LR statistic. Let S=∑(xi−2)2S=\sum(x_i-2)^2 and T=S/σ02T=S/\sigma_0^2. The unrestricted MLE is σ̂2=S/n\hat\sigma^2=S/n, so λ=L(σ02)L(σ̂2)=(Tn)n/2exp{−T2+n2}.\lambda=\frac{L(\sigma_0^2)}{L(\hat\sigma^2)}=\Big(\frac T n\Big)^{n/2}\exp\Big\{-\frac T2+\frac n2\Big\}. As a function of TT, Tn/2e−T/2T^{n/2}e^{-T/2} rises to its maximum at T=nT=n and then falls. So λ≤c⇔T≤c1\lambda\le c\iff T\le c_1 or T≥c2T\ge c_2, with c1n/2e−c1/2=c2n/2e−c2/2,P(c1≤χn2≤c2)=1−α.c_1^{n/2}e^{-c_1/2}=c_2^{n/2}e^{-c_2/2},\qquad P(c_1\le\chi^2_n\le c_2)=1-\alpha .

LRT: reject H0H_0 if ∑(xi−2)2<c1σ02\sum(x_i-2)^2<c_1\sigma_0^2 or >c2σ02>c_2\sigma_0^2.

Is it unbiased? Yes, here. The UMPU test for σ2\sigma^2 (from the exponential family with natural statistic T∼χn2T\sim\chi^2_n) has the same form, with conditions ∫c1c2gn=1−α,Eσ0[ϕT]=αE[T]⇔∫c1c2gn+2=1−α.\int_{c_1}^{c_2}g_n=1-\alpha,\qquad E_{\sigma_0}[\phi T]=\alpha E[T]\iff\int_{c_1}^{c_2}g_{n+2}=1-\alpha . Using Gn+2(c)=Gn(c)−2gn+2(c)G_{n+2}(c)=G_n(c)-2g_{n+2}(c), these two conditions together are equivalent to gn+2(c1)=gn+2(c2)g_{n+2}(c_1)=g_{n+2}(c_2), that is, c1n/2e−c1/2=c2n/2e−c2/2,c_1^{n/2}e^{-c_1/2}=c_2^{n/2}e^{-c_2/2}, which is exactly the LRT condition. So the LRT is the UMPU test, and in particular it is unbiased.

Example (n=10n=10, α=0.05\alpha=0.05): c1=3.516c_1=3.516 and c2=21.73c_2=21.73, compared with the equal-tails values 3.247 and 20.48.

σ2/σ02\sigma^2/\sigma_0^2 0.7 0.9 1.0 1.1 1.5
Power of LRT 0.111 0.056 0.050 0.055 0.159
Power of equal-tails test 0.087 0.048 0.050 0.063 0.194

The equal-tails test is biased (power below 0.05 at σ2=0.9σ02\sigma^2=0.9\sigma_0^2); the LRT is not. (When μ\mu is unknown, the LRT exponent is n/2n/2 but the statistic has n−1n-1 degrees of freedom, and the LRT is then slightly biased.)

✓ Checked by computer We solved the LRT conditions numerically for n = 10 and α = 0.05 (c₁ = 3.516, c₂ = 21.73). The power was at least 0.05 at every σ² tried, while the equal-tails test had power 0.048 at σ²/σ₀² = 0.9.

↑ Back to the question list

Obtain 95% confidence interval for σ2 based on a random sample X1,X2,…,Xn, from N(0,σ2).

1997 · Paper I · Q5c · 20 marks

Solution

Pivot. The mean is known to be 0, so ∑i=1nXi2σ2∼χn2.\frac{\sum_{i=1}^nX_i^2}{\sigma^2}\sim\chi^2_n .

95% interval. With χn,0.0252\chi^2_{n,0.025} and χn,0.9752\chi^2_{n,0.975} the upper 2.5% and 97.5% points: P(χn,0.9752≤∑Xi2σ2≤χn,0.0252)=0.95.P\Big(\chi^2_{n,0.975}\le\frac{\sum X_i^2}{\sigma^2}\le\chi^2_{n,0.025}\Big)=0.95 . Inverting: [∑i=1nXi2χn,0.0252,∑i=1nXi2χn,0.9752].\Big[\ \frac{\sum_{i=1}^nX_i^2}{\chi^2_{n,0.025}}\ ,\ \ \frac{\sum_{i=1}^nX_i^2}{\chi^2_{n,0.975}}\ \Big].

Example: for n=10n=10, the points are 20.48 and 3.247, so the interval is [∑Xi2/20.48,∑Xi2/3.247]\big[\sum X_i^2/20.48,\ \sum X_i^2/3.247\big].

(For large nn, ∑Xi2/n\sum X_i^2/n is approximately N(σ2,2σ4/n)N(\sigma^2,2\sigma^4/n), giving the approximate interval ∑Xi2/n1±1.962/n\dfrac{\sum X_i^2/n}{1\pm1.96\sqrt{2/n}}.)

✓ Checked by computer We computed the χ² percentage points with SciPy (for example, 3.247 and 20.48 for n = 10).

↑ Back to the question list

Let X1,X2,…,Xn be i.i.d. b(1,θ) random variables. Obtain a level α Likelihood Ratio test of H0:θ≤θ0 against H1:θ>θ0.

1997 · Paper I · Q8a · 20 marks

Solution

Likelihood. With T=∑xiT=\sum x_i and θ̂=x‾=T/n\hat\theta=\bar x=T/n, L(θ)=θT(1−θ)n−T.L(\theta)=\theta^T(1-\theta)^{n-T}. logL\log L is concave with its peak at x‾\bar x.

LR statistic. λ=supθ≤θ0L(θ)supθL(θ)={1,x‾≤θ0(θ0x‾)T(1−θ01−x‾)n−T,x‾>θ0.\lambda=\frac{\sup_{\theta\le\theta_0}L(\theta)}{\sup_\theta L(\theta)}=\begin{cases}1,&\bar x\le\theta_0\\[1mm]\Big(\dfrac{\theta_0}{\bar x}\Big)^T\Big(\dfrac{1-\theta_0}{1-\bar x}\Big)^{n-T},&\bar x>\theta_0 .\end{cases}

λ\lambda is decreasing in TT for x‾>θ0\bar x>\theta_0. Writing logλ=n[x‾logθ0x‾+(1−x‾)log1−θ01−x‾]\log\lambda=n\big[\bar x\log\frac{\theta_0}{\bar x}+(1-\bar x)\log\frac{1-\theta_0}{1-\bar x}\big], dlogλdx‾=n[logθ0x‾−log1−θ01−x‾]=nlogθ0(1−x‾)x‾(1−θ0)<0when x‾>θ0.\frac{d\log\lambda}{d\bar x}=n\Big[\log\frac{\theta_0}{\bar x}-\log\frac{1-\theta_0}{1-\bar x}\Big]=n\log\frac{\theta_0(1-\bar x)}{\bar x(1-\theta_0)}<0\quad\text{when }\bar x>\theta_0 .

LRT of level α\alpha. λ≤c\lambda\le c (c<1c<1) ⇔T>k\iff T>k. Since T∼B(n,θ)T\sim B(n,\theta) has power increasing in θ\theta, the size is attained at θ0\theta_0: ϕ={1,T>kγ,T=k0,T<k,Pθ0(T>k)+γPθ0(T=k)=α.\phi=\begin{cases}1,&T>k\\\gamma,&T=k\\0,&T<k,\end{cases}\qquad P_{\theta_0}(T>k)+\gamma P_{\theta_0}(T=k)=\alpha . (Without randomisation, choose the smallest kk with Pθ0(T>k)≤αP_{\theta_0}(T>k)\le\alpha, giving a conservative test of level α\alpha.) This LRT is the same as the UMP test for this problem.

✓ Derivation checked step by step Every step was checked: the restricted maximum is at θ₀ when x̄ > θ₀, and λ is then decreasing in T.

↑ Back to the question list

Let X be a N(μ,σ2) variable, where both the parameters are unknown. Determine the LR test of H0:μ=μ0 against H1:μ≠μ0 based on a sample of size n. Determine the power function of the test.

1996 · Paper I · Q7a · 30 marks

Solution

LRT. As shown for the one-sample problem with σ2\sigma^2 unknown, λ=(∑(xi−x‾)2∑(xi−μ0)2)n/2=(1+t2n−1)−n/2,t=n(x‾−μ0)s.\lambda=\Big(\frac{\sum(x_i-\bar x)^2}{\sum(x_i-\mu_0)^2}\Big)^{n/2}=\Big(1+\frac{t^2}{n-1}\Big)^{-n/2},\qquad t=\frac{\sqrt n(\bar x-\mu_0)}s . λ\lambda decreases in |t||t|, so the size-α\alpha LRT is the two-sided tt-test: reject H0 if |t|>tn−1,α/2.\text{reject }H_0\ \text{ if }\ |t|>t_{n-1,\alpha/2}.

Power function. Under a general (μ,σ)(\mu,\sigma), t=n(X‾−μ0)/σs/σ=Z+δχn−12/(n−1),δ=n(μ−μ0)σ,t=\frac{\sqrt n(\bar X-\mu_0)/\sigma}{s/\sigma}=\frac{Z+\delta}{\sqrt{\chi^2_{n-1}/(n-1)}},\qquad\delta=\frac{\sqrt n(\mu-\mu_0)}\sigma, which has the noncentral tt distribution with n−1n-1 degrees of freedom and noncentrality δ\delta. So β(μ,σ)=P(|tn−1(δ)|>tn−1,α/2)=1−∫−tα/2tα/2fn−1,δ(u)du.\beta(\mu,\sigma)=P\big(|t_{n-1}(\delta)|>t_{n-1,\alpha/2}\big)=1-\int_{-t_{\alpha/2}}^{t_{\alpha/2}}f_{n-1,\delta}(u)\,du . The power depends on (μ,σ)(\mu,\sigma) only through |δ||\delta|. It equals α\alpha at δ=0\delta=0 and increases to 1 as |δ|→∞|\delta|\to\infty.

Example (n=10n=10, α=0.05\alpha=0.05):

δ\delta 0 1 2 3
Power 0.050 0.146 0.431 0.761

✓ Checked by computer We computed the power function from the noncentral t distribution with SciPy (n = 10: 0.146, 0.431, 0.761 at δ = 1, 2, 3).

↑ Back to the question list

Derive the asymptotic distribution of the LR test criterion for testing a simple null hypothesis in the one-parameter family of densities.

1995 · Paper I · Q7a · 30 marks

Solution

Set-up. X1,…,XnX_1,\dots,X_n i.i.d. f(x;θ)f(x;\theta), θ\theta real, satisfying the Cramér regularity conditions. H0:θ=θ0H_0:\theta=\theta_0 (simple). With ℓn(θ)=∑logf(Xi;θ)\ell_n(\theta)=\sum\log f(X_i;\theta) and θ̂n\hat\theta_n the consistent MLE, −2logλn=2[ℓn(θ̂n)−ℓn(θ0)].-2\log\lambda_n=2\big[\ell_n(\hat\theta_n)-\ell_n(\theta_0)\big].

Theorem. Under H0H_0, −2logλn→dχ12-2\log\lambda_n\xrightarrow{d}\chi^2_1.

Proof.

Step 1: Taylor expansion about θ̂n\hat\theta_n. Since ℓn′(θ̂n)=0\ell_n'(\hat\theta_n)=0, ℓn(θ0)=ℓn(θ̂n)+12(θ0−θ̂n)2ℓn″(θn*),\ell_n(\theta_0)=\ell_n(\hat\theta_n)+\tfrac12(\theta_0-\hat\theta_n)^2\ell_n''(\theta_n^*), with θn*\theta_n^* between θ0\theta_0 and θ̂n\hat\theta_n. So −2logλn=−(θ̂n−θ0)2ℓn″(θn*)=[n(θ̂n−θ0)]2⋅[−1nℓn″(θn*)].-2\log\lambda_n=-(\hat\theta_n-\theta_0)^2\ell_n''(\theta_n^*)=\Big[\sqrt n(\hat\theta_n-\theta_0)\Big]^2\cdot\Big[-\frac1n\ell_n''(\theta_n^*)\Big].

Step 2: the second factor. θn*→Pθ0\theta_n^*\xrightarrow{P}\theta_0 (because θ̂n\hat\theta_n is consistent). By the law of large numbers, and with the third derivative bounded by an integrable function, −1nℓn″(θn*)→PI(θ0).-\frac1n\ell_n''(\theta_n^*)\xrightarrow{P}I(\theta_0).

Step 3: the first factor. By the asymptotic normality of the MLE, n(θ̂n−θ0)→dN(0,1I(θ0)),sonI(θ0)(θ̂n−θ0)→dZ∼N(0,1).\sqrt n(\hat\theta_n-\theta_0)\xrightarrow{d}N\Big(0,\frac1{I(\theta_0)}\Big),\qquad\text{so}\qquad\sqrt{nI(\theta_0)}\,(\hat\theta_n-\theta_0)\xrightarrow{d}Z\sim N(0,1).

Step 4: combine. By Slutsky’s theorem, −2logλn=[nI(θ0)(θ̂n−θ0)]2⋅−1nℓn″(θn*)I(θ0)→dZ2⋅1=χ12.◼-2\log\lambda_n=\Big[\sqrt{nI(\theta_0)}(\hat\theta_n-\theta_0)\Big]^2\cdot\frac{-\frac1n\ell_n''(\theta_n^*)}{I(\theta_0)}\ \xrightarrow{d}\ Z^2\cdot1=\chi^2_1 .\qquad\blacksquare

Use. For large nn, reject H0:θ=θ0H_0:\theta=\theta_0 if −2logλn>χ1,α2-2\log\lambda_n>\chi^2_{1,\alpha} (3.841 at 5%). With kk parameters and a simple H0H_0, the same argument gives χk2\chi^2_k.

✓ Proof checked step by step Every step was checked: the Taylor expansion of the log-likelihood about the MLE, the order of the remainder, and the limit via the CLT and Slutsky’s theorem. A Poisson simulation (n = 50) gave size 0.052 for the χ²₁ cut-off.

↑ Back to the question list

More on Statistical Inference

Questions: UPSC Civil Services (Main) Examination, Statistics Paper I, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted