Menu Close

Methods of estimation: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 35 questions UPSC has asked on methods of estimation 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 · 4a 2025 · 3b(i) 2025 · 4b 2024 · 3c 2024 · 4b 2022 · 3b 2022 · 4a 2021 · 2b 2020 · 1d(iii) 2020 · 2c 2019 · 2a 2018 · 1b 2018 · 3a 2017 · 1d 2017 · 4a 2016 · 1d 2016 · 3a 2015 · 3b 2014 · 3a 2011 · 3a 2010 · 1e 2009 · 1d 2007 · 1e 2005 · 1d 2003 · 1d 2003 · 3c 2002 · 4b 2001 · 2iii 2000 · 1d 2000 · 3c 1999 · 6b 1999 · 7a 1998 · 5c(i) 1997 · 6c 1995 · 5b

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

Let X1,X2,⋯,Xn be i.i.d. random variables following N(μ,σ2). Find the maximum likelihood estimator for σ2 and examine whether the same is unbiased. If biased, suggest an unbiased estimator for σ2 and examine whether it is consistent. Also compare the mean squared errors of the estimators.

2026 · Paper I · Q4a · 20 marks

Solution

(This question is also listed under 2.1 Properties of estimators. The worked solution is repeated here so that this page is complete.)

MLE. With μ\mu also unknown, logL=−n2log(2πσ2)−∑(xi−μ)22σ2\log L=-\tfrac n2\log(2\pi\sigma^2)-\dfrac{\sum(x_i-\mu)^2}{2\sigma^2}. Setting the derivatives to zero gives μ̂=x‾\hat\mu=\bar x and σ̂2=1n∑i=1n(Xi−X‾)2.\hat\sigma^2=\frac1n\sum_{i=1}^n(X_i-\bar X)^2.

Bias. Since ∑(Xi−X‾)2/σ2∼χn−12\sum(X_i-\bar X)^2/\sigma^2\sim\chi^2_{n-1}, E(σ̂2)=n−1nσ2≠σ2.E(\hat\sigma^2)=\frac{n-1}{n}\sigma^2\neq\sigma^2 . So the MLE is biased (bias −σ2/n-\sigma^2/n).

Unbiased estimator. S2=1n−1∑(Xi−X‾)2S^2=\dfrac1{n-1}\sum(X_i-\bar X)^2 has E(S2)=σ2E(S^2)=\sigma^2.

Consistency of S2S^2. V(χn−12)=2(n−1)V(\chi^2_{n-1})=2(n-1), so V(S2)=σ4(n−1)2⋅2(n−1)=2σ4n−1→0.V(S^2)=\frac{\sigma^4}{(n-1)^2}\cdot2(n-1)=\frac{2\sigma^4}{n-1}\to0 . An unbiased estimator whose variance tends to 0 is consistent (by Chebyshev’s inequality). So S2S^2 is consistent.

Mean squared errors. For S2S^2 the MSE is its variance, 2σ4n−1\dfrac{2\sigma^4}{n-1}. For σ̂2=n−1nS2\hat\sigma^2=\frac{n-1}nS^2, MSE(σ̂2)=V+bias2=2(n−1)σ4n2+σ4n2=(2n−1)σ4n2.\text{MSE}(\hat\sigma^2)=V+\text{bias}^2=\frac{2(n-1)\sigma^4}{n^2}+\frac{\sigma^4}{n^2}=\frac{(2n-1)\sigma^4}{n^2}.

Comparison. 2n−1n2<2n−1⇔(2n−1)(n−1)<2n2⇔1<3n,\frac{2n-1}{n^2}<\frac2{n-1}\iff(2n-1)(n-1)<2n^2\iff1<3n, which is always true. So the biased MLE has the smaller mean squared error for every nn. Unbiasedness alone does not make an estimator better on MSE.

✓ Checked by computer We checked the bias and both mean squared errors by simulation in Python (n = 10, σ² = 4, 400,000 samples): MSE of the MLE 3.034 against (2n−1)σ⁴/n² = 3.04, and MSE of S² 3.549 against 2σ⁴/(n−1) = 3.556.

↑ Back to the question list

Let {6,−8,3,2,7,5,4,9} be a random sample from a population with probability density function f(x,θ)=12exp(−|x−θ|),−∞<x,θ<∞. Obtain maximum likelihood estimate of θ.

2025 · Paper I · Q3b(i) · 5 marks

Solution

Likelihood. For the Laplace density, L(θ)=2−nexp{−∑i=1n|xi−θ|},L(\theta)=2^{-n}\exp\Big\{-\sum_{i=1}^n|x_i-\theta|\Big\}, so maximising LL means minimising ∑|xi−θ|\sum|x_i-\theta|. This sum is minimised at a median of the data.

The data. Ordered: −8,2,3,4,5,6,7,9-8,\ 2,\ 3,\ 4,\ 5,\ 6,\ 7,\ 9 (n=8n=8). With an even sample size, ∑|xi−θ|\sum|x_i-\theta| is constant between the two middle values, x(4)=4x_{(4)}=4 and x(5)=5x_{(5)}=5: ∑|xi−θ|=26for 4≤θ≤5,\sum|x_i-\theta|=26\quad\text{for }4\le\theta\le5, and it is larger outside this interval.

MLE. Every θ∈[4,5]\theta\in[4,5] maximises the likelihood, so the MLE is not unique. The conventional choice is the midpoint, the sample median: θ̂=4+52=4.5.\hat\theta=\frac{4+5}2=4.5 .

✓ Checked by computer We checked in Python that Σ|xᵢ − θ| is constant, at its minimum value 26, for every θ between 4 and 5, and larger outside.

↑ Back to the question list

A random sample of size n is taken from the exponential distribution with mean θ>0. Given that n1 observations out of n observations are less than ‘a’. Show that minimum Chi-square estimate and maximum likelihood estimate of θ are same.

2025 · Paper I · Q4b · 15 marks

Solution

What is observed. Only how many observations fall below aa: n1n_1 fall in (0,a)(0,a) and n2=n−n1n_2=n-n_1 fall in [a,∞)[a,\infty). The cell probabilities are p1(θ)=P(X<a)=1−e−a/θ,p2(θ)=e−a/θ.p_1(\theta)=P(X<a)=1-e^{-a/\theta},\qquad p_2(\theta)=e^{-a/\theta}.

Maximum likelihood. L(θ)∝p1n1p2n−n1,∂logL∂θ=(n1p1−n−n1p2)p1′(θ)=0.L(\theta)\propto p_1^{\,n_1}p_2^{\,n-n_1},\qquad\frac{\partial\log L}{\partial\theta}=\Big(\frac{n_1}{p_1}-\frac{n-n_1}{p_2}\Big)p_1'(\theta)=0 . Since p1′≠0p_1'\ne0, this gives p1=n1/np_1=n_1/n. So e−a/θ̂=n−n1n⇒θ̂=alog{n/(n−n1)}.e^{-a/\hat\theta}=\frac{n-n_1}n\quad\Longrightarrow\quad\hat\theta=\frac{a}{\log\{n/(n-n_1)\}}.

Minimum chi-square. With n2−np2=−(n1−np1)n_2-np_2=-(n_1-np_1), χ2=(n1−np1)2np1+(n2−np2)2np2=(n1−np1)2n(1p1+1p2)=(n1−np1)2np1p2.\chi^2=\frac{(n_1-np_1)^2}{np_1}+\frac{(n_2-np_2)^2}{np_2}=\frac{(n_1-np_1)^2}{n}\Big(\frac1{p_1}+\frac1{p_2}\Big)=\frac{(n_1-np_1)^2}{np_1p_2}. This is ≥0\ge0, and it equals 0 exactly when p1=n1/np_1=n_1/n. So the minimum chi-square estimate is the solution of the same equation, 1−e−a/θ=n1/n1-e^{-a/\theta}=n_1/n.

Conclusion. Both methods give θ̂=a/lognn−n1\hat\theta=a\big/\log\frac{n}{n-n_1} (for 0<n1<n0<n_1<n). ◼\blacksquare

With two cells and one parameter, both methods simply fit the observed proportion exactly.

✓ Checked by computer We checked numerically (n = 40, n₁ = 13, a = 2) that the maximum likelihood and minimum chi-square estimates are both 5.089, equal to a/log(n/(n − n₁)).

↑ Back to the question list

Obtain the maximum likelihood estimates of α and β for a random sample from the exponential population f(x;α,β)=Ce−β(x−α),α≤x<∞,β>0

2024 · Paper I · Q3c · 15 marks

Solution

The constant. ∫α∞Ce−β(x−α)dx=C/β=1\int_\alpha^\infty Ce^{-\beta(x-\alpha)}dx=C/\beta=1, so C=βC=\beta.

Likelihood. L(α,β)=βnexp{−β∑i=1n(xi−α)}I(α≤x(1)).L(\alpha,\beta)=\beta^n\exp\Big\{-\beta\sum_{i=1}^n(x_i-\alpha)\Big\}\,I\big(\alpha\le x_{(1)}\big).

MLE of α\alpha. For fixed β\beta, L=βne−β∑xienβαL=\beta^ne^{-\beta\sum x_i}e^{n\beta\alpha} increases with α\alpha, but must have α≤x(1)\alpha\le x_{(1)}. So α̂=X(1)=miniXi.\hat\alpha=X_{(1)}=\min_iX_i . (The likelihood equation ∂L/∂α=0\partial L/\partial\alpha=0 has no solution. The maximum is at the boundary.)

MLE of β\beta. Put α=x(1)\alpha=x_{(1)}: logL=nlogβ−β∑(xi−x(1)),nβ−∑(xi−x(1))=0.\log L=n\log\beta-\beta\sum(x_i-x_{(1)}),\qquad\frac n\beta-\sum(x_i-x_{(1)})=0 . β̂=n∑i=1n(Xi−X(1))=1X‾−X(1).\hat\beta=\frac{n}{\sum_{i=1}^n(X_i-X_{(1)})}=\frac1{\bar X-X_{(1)}}.

✓ Checked by computer We checked by numerical maximisation of the likelihood on simulated data (α = 3, β = 0.5, n = 30) that α̂ = X₍₁₎ and β̂ = 1/(X̄ − X₍₁₎).

↑ Back to the question list

A lot consists of some defective items. A random sample of 25 items has 6 defective items with probability p1=θ and 19 non-defective items with probability p2=1−θ. Then estimate θ using the following: (i) MLE method (ii) Minimum χ2-method (iii) Modified minimum χ2-method.

2024 · Paper I · Q4b · 15 marks

Solution

Data. n=25n=25, with 6 defectives (cell probability θ\theta) and 19 non-defectives (1−θ1-\theta).

(i) MLE. L∝θ6(1−θ)19,6θ−191−θ=0⇒θ̂=625=0.24.L\propto\theta^6(1-\theta)^{19},\qquad\frac6\theta-\frac{19}{1-\theta}=0\ \Rightarrow\ \hat\theta=\frac6{25}=0.24 .

(ii) Minimum χ2\chi^2. Expected frequencies are 25θ25\theta and 25(1−θ)25(1-\theta), and both deviations equal ±(6−25θ)\pm(6-25\theta): χ2=(6−25θ)225θ+(6−25θ)225(1−θ)=(6−25θ)225θ(1−θ).\chi^2=\frac{(6-25\theta)^2}{25\theta}+\frac{(6-25\theta)^2}{25(1-\theta)}=\frac{(6-25\theta)^2}{25\theta(1-\theta)}. This is ≥0\ge0, and it is 0 at θ=0.24\theta=0.24. So θ̃=0.24\tilde\theta=0.24.

(iii) Modified minimum χ2\chi^2. The observed frequencies go in the denominator: χmod2=(6−25θ)26+(19−25+25θ)219=(6−25θ)2(16+119),\chi^2_{\text{mod}}=\frac{(6-25\theta)^2}6+\frac{(19-25+25\theta)^2}{19}=(6-25\theta)^2\Big(\frac16+\frac1{19}\Big), which is also minimised (at 0) by θ=0.24\theta=0.24.

All three estimates are θ̂=0.24\hat\theta=0.24. With two cells and one parameter, every method fits the observed proportion exactly. The methods differ only when there are more cells than parameters.

✓ Checked by computer We minimised all three criteria numerically in Python. Each gives θ = 0.24, and both chi-square criteria are 0 there.

↑ Back to the question list

Theoretical probabilities in the four cells of a multinomial distribution are 2+θ4,1−θ4,1−θ4 and θ4, whereas the observed frequencies are 108, 27, 30 and 8 respectively, then estimate θ by maximum likelihood method. Also, obtain the standard error of the estimate.

2022 · Paper I · Q3b · 20 marks

Solution

Likelihood. n=108+27+30+8=173n=108+27+30+8=173. logL=108log(2+θ)+(27+30)log(1−θ)+8logθ+const.\log L=108\log(2+\theta)+(27+30)\log(1-\theta)+8\log\theta+\text{const}.

Likelihood equation. 1082+θ−571−θ+8θ=0.\frac{108}{2+\theta}-\frac{57}{1-\theta}+\frac8\theta=0 . Multiply by θ(2+θ)(1−θ)\theta(2+\theta)(1-\theta): 108θ(1−θ)−57θ(2+θ)+8(2+θ)(1−θ)=0⇔173θ2+14θ−16=0.108\theta(1-\theta)-57\theta(2+\theta)+8(2+\theta)(1-\theta)=0\iff173\theta^2+14\theta-16=0 . The positive root is θ̂=−14+142+4⋅173⋅162⋅173=−14+11268346=−14+106.150346=0.2663.\hat\theta=\frac{-14+\sqrt{14^2+4\cdot173\cdot16}}{2\cdot173}=\frac{-14+\sqrt{11268}}{346}=\frac{-14+106.150}{346}=0.2663 .

Standard error. For a multinomial, the expected information is I(θ)=n∑j{pj′(θ)}2pj(θ)=n4[12+θ+21−θ+1θ].I(\theta)=n\sum_j\frac{\{p_j'(\theta)\}^2}{p_j(\theta)}=\frac n4\Big[\frac1{2+\theta}+\frac2{1-\theta}+\frac1\theta\Big]. At θ̂=0.2663\hat\theta=0.2663: I=1734[0.4412+2.7260+3.7548]=1734×6.9220=299.38.I=\frac{173}4\,[0.4412+2.7260+3.7548]=\frac{173}4\times6.9220=299.38 . SE(θ̂)=1299.38=0.0578.\text{SE}(\hat\theta)=\frac1{\sqrt{299.38}}=0.0578 .

So θ̂=0.266\hat\theta=0.266 with standard error 0.0580.058.

✓ Checked by computer We solved the likelihood equation numerically (θ̂ = 0.26633) and computed the expected information (299.38) and the standard error (0.0578) in Python.

↑ Back to the question list

Consider Poisson distribution Pθ(X=j)=e−θθjj!=pj,j=0,1,2,…. Let fj be the frequency for X=j and E(fj)=mj=npj. Discuss how you obtain minimum chi-square estimate for θ. Does minimum chi-square method necessarily yield a sufficient statistic even if it exists?

2022 · Paper I · Q4a · 20 marks

Solution

Minimum chi-square. Choose θ\theta to minimise χ2(θ)=∑j(fj−mj)2mj,mj=npj(θ)=ne−θθjj!.\chi^2(\theta)=\sum_j\frac{(f_j-m_j)^2}{m_j},\qquad m_j=np_j(\theta)=\frac{ne^{-\theta}\theta^j}{j!}. Since ∑jmj=n\sum_jm_j=n, this simplifies to χ2=∑jfj2/mj−n\chi^2=\sum_jf_j^2/m_j-n.

The estimating equation. ∂mj∂θ=mj(jθ−1)\dfrac{\partial m_j}{\partial\theta}=m_j\Big(\dfrac j\theta-1\Big), so dχ2dθ=−∑jfj2mj(jθ−1)=0⇒θ=∑jjfj2/mj∑jfj2/mj.\frac{d\chi^2}{d\theta}=-\sum_j\frac{f_j^2}{m_j}\Big(\frac j\theta-1\Big)=0\quad\Longrightarrow\quad\theta=\frac{\sum_jj\,f_j^2/m_j}{\sum_jf_j^2/m_j}. The right side depends on θ\theta through the mjm_j, so we solve it iteratively. Start with θ0=x‾\theta_0=\bar x, compute the mjm_j, update θ\theta, and repeat until it settles.

Modified version. Replacing mjm_j by fjf_j in the denominator, or dropping terms that are small in large samples, gives ∑jfj(j/θ−1)=0\sum_jf_j(j/\theta-1)=0, that is, θ̂=∑jfj/n=x‾\hat\theta=\sum jf_j/n=\bar x, the MLE.

Does it give a sufficient statistic? Not necessarily. The sufficient statistic is T=∑Xi=∑jjfjT=\sum X_i=\sum_jjf_j. The exact minimum chi-square estimate depends on the individual frequencies fjf_j through the weights fj2/mjf_j^2/m_j, not just on TT.

Example (n=10n=10):

  • Sample A: ten 1’s (f1=10f_1=10). Then χ2+10=10010e−θθ\chi^2+10=\dfrac{100}{10e^{-\theta}\theta}, minimised at θ=1\theta=1.
  • Sample B: five 0’s and five 2’s. Then χ2+10=2.5eθ(1+2/θ2)\chi^2+10=2.5e^\theta(1+2/\theta^2), minimised where θ3+2θ−4=0\theta^3+2\theta-4=0, at θ=1.18\theta=1.18.

Both samples have T=10T=10, but the estimates differ. So the minimum chi-square estimate is not a function of the sufficient statistic, even though one exists. (The MLE is x‾=1\bar x=1 for both.)

✓ Checked by computer We minimised the exact chi-square numerically for two samples with the same total (n = 10, T = 10). They give different estimates, 1.000 and 1.180, although the sufficient statistic is the same.

↑ Back to the question list

Let X1,X2,…,Xn be a random sample such that logXi∼N(θ,θ) distribution with θ>0 unknown. Show that one of the solutions of the likelihood equation is the unique MLE of θ. Obtain asymptotic distribution of MLE of θ.

2021 · Paper I · Q2b · 15 marks

Solution

Likelihood in terms of Yi=logXi∼N(θ,θ)Y_i=\log X_i\sim N(\theta,\theta). The Jacobian ∏1/xi\prod1/x_i does not involve θ\theta, so ℓ(θ)=−n2logθ−∑(yi−θ)22θ=−n2logθ−∑yi22θ+∑yi−nθ2+const.\ell(\theta)=-\frac n2\log\theta-\frac{\sum(y_i-\theta)^2}{2\theta}=-\frac n2\log\theta-\frac{\sum y_i^2}{2\theta}+\sum y_i-\frac{n\theta}2+\text{const}.

Likelihood equation. Let m=1n∑yi2m=\frac1n\sum y_i^2. Then ℓ′(θ)=−n2θ+nm2θ2−n2=−n2θ2(θ2+θ−m)=0.\ell'(\theta)=-\frac n{2\theta}+\frac{nm}{2\theta^2}-\frac n2=-\frac n{2\theta^2}\big(\theta^2+\theta-m\big)=0 . The roots of θ2+θ−m=0\theta^2+\theta-m=0 are θ=−1±1+4m2\theta=\dfrac{-1\pm\sqrt{1+4m}}2. Exactly one is positive: θ̂=−1+1+4m2,m=1n∑i=1n(logXi)2.\hat\theta=\frac{-1+\sqrt{1+4m}}2,\qquad m=\frac1n\sum_{i=1}^n(\log X_i)^2 .

It is the unique MLE. On θ>0\theta>0, ℓ′(θ)\ell'(\theta) has the sign of −(θ2+θ−m)-(\theta^2+\theta-m). This is positive for 0<θ<θ̂0<\theta<\hat\theta and negative for θ>θ̂\theta>\hat\theta. So ℓ\ell rises and then falls, and θ̂\hat\theta is its unique maximum. The other root is negative, outside the parameter space.

Asymptotic distribution. Per observation, ∂2logf∂θ2=12θ2−y2θ3,E(Y2)=θ+θ2,\frac{\partial^2\log f}{\partial\theta^2}=\frac1{2\theta^2}-\frac{y^2}{\theta^3},\qquad E(Y^2)=\theta+\theta^2, I(θ)=−12θ2+θ+θ2θ3=1+2θ2θ2.I(\theta)=-\frac1{2\theta^2}+\frac{\theta+\theta^2}{\theta^3}=\frac{1+2\theta}{2\theta^2}. The model is regular, so n(θ̂−θ)→dN(0,2θ21+2θ),i.e.θ̂∼̇N(θ,2θ2n(1+2θ)).\sqrt n(\hat\theta-\theta)\xrightarrow{d}N\Big(0,\frac{2\theta^2}{1+2\theta}\Big),\qquad\text{i.e.}\qquad\hat\theta\ \dot\sim\ N\Big(\theta,\frac{2\theta^2}{n(1+2\theta)}\Big).

✓ Checked by computer We checked by simulation (θ = 1.5, n = 200, 20,000 samples) that the positive root is the maximum, and that the variance of the MLE is 0.00564, close to 2θ²/(n(1+2θ)) = 0.005625.

↑ Back to the question list

For a group of policies, losses follow the distribution function F(x)=1−θx,θ<x<∞. A sample of 20 losses resulted in the following:

Interval Number of losses
x≤10 9
10<x≤25 6
x>25 5

(i) Obtain maximum likelihood estimator (MLE) of θ.

(ii) Find Cramer-Rao Lower Bound (CRLB) using MLE of θ.

(iii) Using CRLB and asymptotic distribution of MLE, obtain 95% confidence interval for θ.

2020 · Paper I · Q1d(iii) · 2 marks

Solution

Cell probabilities (with θ<10\theta<10), from F(x)=1−θ/xF(x)=1-\theta/x: P(X≤10)=1−θ10,P(10<X≤25)=θ10−θ25=3θ50,P(X>25)=θ25.P(X\le10)=1-\frac\theta{10},\qquad P(10<X\le25)=\frac\theta{10}-\frac\theta{25}=\frac{3\theta}{50},\qquad P(X>25)=\frac\theta{25}.

(i) MLE. With counts 9, 6, 5: L(θ)∝(1−θ10)9(3θ50)6(θ25)5∝(10−θ)9θ11.L(\theta)\propto\Big(1-\frac\theta{10}\Big)^9\Big(\frac{3\theta}{50}\Big)^6\Big(\frac\theta{25}\Big)^5\propto(10-\theta)^9\theta^{11}. dlogLdθ=−910−θ+11θ=0⇒110=20θ⇒θ̂=5.5.\frac{d\log L}{d\theta}=-\frac9{10-\theta}+\frac{11}\theta=0\ \Rightarrow\ 110=20\theta\ \Rightarrow\ \hat\theta=5.5 .

(ii) CRLB. For grouped (multinomial) data, In(θ)=n∑jpj′2/pjI_n(\theta)=n\sum_jp_j'^2/p_j: ∑jpj′2pj=1/1001−θ/10+9/25003θ/50+1/625θ/25=110(10−θ)+110θ=1θ(10−θ).\sum_j\frac{p_j'^2}{p_j}=\frac{1/100}{1-\theta/10}+\frac{9/2500}{3\theta/50}+\frac{1/625}{\theta/25}=\frac1{10(10-\theta)}+\frac1{10\theta}=\frac1{\theta(10-\theta)}. So I20(θ)=20θ(10−θ)I_{20}(\theta)=\dfrac{20}{\theta(10-\theta)}, and the CRLB is θ(10−θ)20\dfrac{\theta(10-\theta)}{20}. Using the MLE: CRLB̂=5.5×4.520=1.2375,SE=1.2375=1.112.\widehat{\text{CRLB}}=\frac{5.5\times4.5}{20}=1.2375,\qquad\text{SE}=\sqrt{1.2375}=1.112 .

(iii) 95% confidence interval. Asymptotically θ̂∼N(θ,CRLB)\hat\theta\sim N(\theta,\text{CRLB}), so 5.5±1.96×1.112=5.5±2.18,i.e. (3.32,7.68).5.5\pm1.96\times1.112=5.5\pm2.18,\qquad\text{i.e. }(3.32,\ 7.68).

✓ Checked by computer We checked in Python: the likelihood is maximised at θ = 5.5, the Fisher information n/(θ(10−θ)) matches the observed information at θ̂, the CRLB is 1.2375, and the 95% interval is (3.32, 7.68).

↑ Back to the question list

Let θ>0 be the unknown parameter and X1,X2,…,Xn be a random sample from the distribution with the probability distribution function (pdf) f(x,θ)={2xθ2,0≤x≤θ0,otherwise Find maximum likelihood estimator (MLE) of θ and its mean squared error (MSE).

2020 · Paper I · Q2c · 15 marks

Solution

MLE. L(θ)=2n∏xiθ2nI(x(n)≤θ).L(\theta)=\frac{2^n\prod x_i}{\theta^{2n}}\,I\big(x_{(n)}\le\theta\big). For θ≥x(n)\theta\ge x_{(n)}, L∝θ−2nL\propto\theta^{-2n} decreases, so the maximum is at the smallest allowed value: θ̂=X(n)=maxiXi.\hat\theta=X_{(n)}=\max_iX_i .

Distribution of T=X(n)T=X_{(n)}. P(X≤x)=x2/θ2P(X\le x)=x^2/\theta^2, so P(T≤t)=(t/θ)2nP(T\le t)=(t/\theta)^{2n}, and fT(t)=2nt2n−1θ2n,0≤t≤θ.f_T(t)=\frac{2n\,t^{2n-1}}{\theta^{2n}},\qquad0\le t\le\theta .

Moments. E(T)=2n2n+1θ,E(T2)=2n2n+2θ2=nn+1θ2.E(T)=\frac{2n}{2n+1}\theta,\qquad E(T^2)=\frac{2n}{2n+2}\theta^2=\frac{n}{n+1}\theta^2 .

MSE. MSE=E(T2)−2θE(T)+θ2=θ2[nn+1−4n2n+1+1].\text{MSE}=E(T^2)-2\theta E(T)+\theta^2=\theta^2\Big[\frac n{n+1}-\frac{4n}{2n+1}+1\Big]. Over the common denominator (n+1)(2n+1)(n+1)(2n+1), the numerator is n(2n+1)−4n(n+1)+(n+1)(2n+1)=1n(2n+1)-4n(n+1)+(n+1)(2n+1)=1. So MSE(θ̂)=θ2(n+1)(2n+1).\text{MSE}(\hat\theta)=\frac{\theta^2}{(n+1)(2n+1)}.

✓ Checked by computer We checked E(T) = 2nθ/(2n+1) and MSE = θ²/((n+1)(2n+1)) with SymPy, and by simulation (θ = 2, n = 5: MSE 0.0606 against 4/66 = 0.0606).

↑ Back to the question list

X1,…,Xn is a random sample from probability density function f(x∣θ)=θx−2,0<θ≤x<∞. (i) What is a sufficient statistic for θ? (ii) Find the Maximum Likelihood Estimate (MLE) of θ. (iii) Find the Method of Moments (MoM) estimate of θ.

2019 · Paper I · Q2a · 20 marks

Solution

(This question is also listed under 2.1 Properties of estimators. The worked solution is repeated here so that this page is complete.)

Likelihood. L(θ)=θn∏i=1nxi−2⋅I(x(1)≥θ).L(\theta)=\theta^n\prod_{i=1}^nx_i^{-2}\cdot I\big(x_{(1)}\ge\theta\big).

(i) Sufficient statistic. The factor with θ\theta, θnI(x(1)≥θ)\theta^nI(x_{(1)}\ge\theta), depends on the data only through x(1)x_{(1)}. So X(1)=minXiX_{(1)}=\min X_i is sufficient for θ\theta.

(ii) MLE. L(θ)=θn×L(\theta)=\theta^n\times (constant) for θ≤x(1)\theta\le x_{(1)}, and L=0L=0 for θ>x(1)\theta>x_{(1)}. Since θn\theta^n increases with θ\theta, the maximum is at the largest allowed value: θ̂MLE=X(1).\hat\theta_{\text{MLE}}=X_{(1)} .

(iii) Method of moments. E(X)=∫θ∞x⋅θx−2dx=θ∫θ∞dxx=∞.E(X)=\int_\theta^\infty x\cdot\theta x^{-2}dx=\theta\int_\theta^\infty\frac{dx}x=\infty . The mean does not exist, so the usual method of moments (equating X‾\bar X to E(X)E(X)) cannot be used.

We can apply the same idea to a moment that does exist: E(1X)=∫θ∞θx−3dx=12θ.E\Big(\frac1X\Big)=\int_\theta^\infty\theta x^{-3}dx=\frac1{2\theta}. Equating this to the sample mean of 1/Xi1/X_i gives θ̃=n2∑i=1n1/Xi.\tilde\theta=\frac{n}{2\sum_{i=1}^n1/X_i}.

✓ Derivation checked step by step Every step was checked. The density, its divergent mean, and the moment estimator from E(1/X) = 1/(2θ) were also checked numerically.

↑ Back to the question list

Let X1,X2,…,Xn be a sample from a distribution with density function f(x∣θ)=θ(θ+1)xθ−1(1−x),0<x<1,θ>0. Obtain an estimate of θ by method of moments.

2018 · Paper I · Q1b · 10 marks

Solution

Recognise the distribution. f(x∣θ)=θ(θ+1)xθ−1(1−x)f(x\mid\theta)=\theta(\theta+1)x^{\theta-1}(1-x) is the Beta(θ,2)(\theta,2) density, since B(θ,2)=1θ(θ+1)B(\theta,2)=\dfrac{1}{\theta(\theta+1)}.

Population mean. E(X)=θ(θ+1)∫01xθ(1−x)dx=θ(θ+1)[1θ+1−1θ+2]=θθ+2.E(X)=\theta(\theta+1)\int_0^1x^\theta(1-x)dx=\theta(\theta+1)\Big[\frac1{\theta+1}-\frac1{\theta+2}\Big]=\frac\theta{\theta+2}.

Moment estimator. Equate it to the sample mean: X‾=θθ+2⇔X‾θ+2X‾=θ⇔θ̃=2X‾1−X‾.\bar X=\frac{\theta}{\theta+2}\iff\bar X\theta+2\bar X=\theta\iff\tilde\theta=\frac{2\bar X}{1-\bar X}.

✓ Checked by computer We checked E(X) = θ/(θ+2) with SymPy, and that the density integrates to 1. By simulation (θ = 3, n = 500), the moment estimate averaged 3.01.

↑ Back to the question list

Shots aimed at a target reach the plane of the target at a distance R from the centre, where R has the probability density function fR(r;σ2)=1σ2re−r2/2σ2;r≥0. A hit is scored if R≤a. If n shots are fired and there are exactly m hits, these being at distances r1,r2,…,rm from the centre, prove that the maximum likelihood estimator of σ2 is given by σ̂2=12m∑i=1mri2+n−m2ma2.

2018 · Paper I · Q3a · 20 marks

Solution

What we observe. mm hits, at known distances r1,…,rm≤ar_1,\dots,r_m\le a, and n−mn-m misses (R>aR>a), whose distances are not recorded.

Probability of a miss. P(R>a)=∫a∞rσ2e−r2/(2σ2)dr=e−a2/(2σ2).P(R>a)=\int_a^\infty\frac r{\sigma^2}e^{-r^2/(2\sigma^2)}dr=e^{-a^2/(2\sigma^2)}.

Likelihood. Each hit contributes its density, and each miss contributes P(R>a)P(R>a): L(σ2)=∏i=1mriσ2e−ri2/(2σ2)×(e−a2/(2σ2))n−m.L(\sigma^2)=\prod_{i=1}^m\frac{r_i}{\sigma^2}e^{-r_i^2/(2\sigma^2)}\times\big(e^{-a^2/(2\sigma^2)}\big)^{n-m}. logL=const−mlogσ2−∑i=1mri2+(n−m)a22σ2.\log L=\text{const}-m\log\sigma^2-\frac{\sum_{i=1}^mr_i^2+(n-m)a^2}{2\sigma^2}.

Maximise. Let v=σ2v=\sigma^2: dlogLdv=−mv+∑ri2+(n−m)a22v2=0.\frac{d\log L}{dv}=-\frac mv+\frac{\sum r_i^2+(n-m)a^2}{2v^2}=0 . σ̂2=∑i=1mri2+(n−m)a22m=12m∑i=1mri2+n−m2ma2.◼\hat\sigma^2=\frac{\sum_{i=1}^mr_i^2+(n-m)a^2}{2m}=\frac1{2m}\sum_{i=1}^mr_i^2+\frac{n-m}{2m}a^2 .\qquad\blacksquare The second derivative at this point, m/v2−{∑ri2+(n−m)a2}/v3=−m/v2<0m/v^2-\{\sum r_i^2+(n-m)a^2\}/v^3=-m/v^2<0, confirms a maximum.

✓ Checked by computer We checked by simulation (σ² = 4, a = 2.5, n = 400 shots) that the formula averages 4.01, and that it agrees with direct numerical maximisation of the censored likelihood.

↑ Back to the question list

Let x1,x2,⋯,xn be n observations, each independently uniformly distributed between θ−12 and θ+12. Find a general form of maximum likelihood estimator (MLE) of θ. Verify that 2Y1+4Yn−16and4Y1+2Yn+16 are both MLEs, where Y1=MiniXi and Yn=MaxiXi.

2017 · Paper I · Q1d · 10 marks

Solution

Likelihood. L(θ)=∏i=1nI(θ−12≤xi≤θ+12)={1,Yn−12≤θ≤Y1+120,otherwise.L(\theta)=\prod_{i=1}^nI\big(\theta-\tfrac12\le x_i\le\theta+\tfrac12\big)=\begin{cases}1,&Y_n-\frac12\le\theta\le Y_1+\frac12\\0,&\text{otherwise.}\end{cases} The interval is never empty, because Yn−Y1≤1Y_n-Y_1\le1.

General MLE. LL takes its maximum value 1 at every θ\theta in [Yn−12,Y1+12][Y_n-\frac12,\ Y_1+\frac12]. So any statistic of the form θ̂λ=λ(Yn−12)+(1−λ)(Y1+12),0≤λ≤1,\hat\theta_\lambda=\lambda\big(Y_n-\tfrac12\big)+(1-\lambda)\big(Y_1+\tfrac12\big),\qquad0\le\lambda\le1, is an MLE. The MLE is not unique.

The two given statistics.

  • λ=23\lambda=\frac23: 23Yn−13+13Y1+16=2Y1+4Yn−16\frac23Y_n-\frac13+\frac13Y_1+\frac16=\dfrac{2Y_1+4Y_n-1}6.
  • λ=13\lambda=\frac13: 13Yn−16+23Y1+13=4Y1+2Yn+16\frac13Y_n-\frac16+\frac23Y_1+\frac13=\dfrac{4Y_1+2Y_n+1}6.

Both have λ∈[0,1]\lambda\in[0,1], so both lie in the interval where L=1L=1. Both are MLEs. ◼\blacksquare

(The midpoint, λ=12\lambda=\frac12, gives 12(Y1+Yn)\frac12(Y_1+Y_n), the most natural choice.)

✓ Proof checked step by step Every step was checked: the likelihood is constant on an interval, and both estimators were shown algebraically to be weighted averages of its endpoints. We also tested this on simulated samples.

↑ Back to the question list

Let X1,X2,⋯,Xn be a random sample from a distribution with probability density function f(x)=θxθ−1,0<x<1,θ>0 Find the maximum likelihood estimator (MLE) and minimum variance unbiased estimator (MVUE) of θ.

2017 · Paper I · Q4a · 20 marks

Solution

(This question is also listed under 2.2 UMVU estimation. The worked solution is repeated here so that this page is complete.)

MLE. logL=nlogθ+(θ−1)∑logxi,∂logL∂θ=nθ+∑logxi=0.\log L=n\log\theta+(\theta-1)\sum\log x_i,\qquad\frac{\partial\log L}{\partial\theta}=\frac n\theta+\sum\log x_i=0 . θ̂MLE=−n∑i=1nlogXi.\hat\theta_{\text{MLE}}=\frac{-n}{\sum_{i=1}^n\log X_i}.

Distribution of the sufficient statistic. Let Yi=−logXiY_i=-\log X_i. Then P(Yi>y)=P(Xi<e−y)=e−θyP(Y_i>y)=P(X_i<e^{-y})=e^{-\theta y}, so YiY_i is exponential with rate θ\theta. Hence W=∑Yi=−∑logXi∼W=\sum Y_i=-\sum\log X_i\sim Gamma(n,θ)(n,\theta). WW is complete sufficient (exponential family).

MVUE. For W∼W\sim Gamma(n,θ)(n,\theta), E(1W)=∫0∞1w⋅θnwn−1e−θwΓ(n)dw=θΓ(n−1)Γ(n)=θn−1.E\Big(\frac1W\Big)=\int_0^\infty\frac1w\cdot\frac{\theta^nw^{n-1}e^{-\theta w}}{\Gamma(n)}dw=\frac{\theta\,\Gamma(n-1)}{\Gamma(n)}=\frac\theta{n-1}. So E(θ̂MLE)=nn−1θE(\hat\theta_{\text{MLE}})=\frac{n}{n-1}\theta (biased), and θ̂MVUE=n−1W=−(n−1)∑i=1nlogXi\hat\theta_{\text{MVUE}}=\frac{n-1}{W}=\frac{-(n-1)}{\sum_{i=1}^n\log X_i} is unbiased and a function of the complete sufficient statistic. By Lehmann–Scheffé it is the MVUE. Its variance is θ2/(n−2)\theta^2/(n-2).

✓ Checked by computer We checked by simulation (θ = 1.5, n = 10) that the MLE has mean 1.667 (nθ/(n−1)) and the MVUE has mean 1.500 with variance 0.281 (θ²/(n−2)). We also confirmed that −log X is exponential with rate θ.

↑ Back to the question list

Consider the probability distribution p(x;θ), x=2,3,4,5 and θ=14,12,34. A sample of size 1 is drawn from the population and it is found to be 3. Obtain the maximum likelihood estimate of θ.

x 2 3 4 5
p(x;θ=14) 0.25 0.25 0.25 0.25
p(x;θ=12) 0.30 0.40 0.15 0.15
p(x;θ=34) 0.10 0.30 0.45 0.15

Solution

Likelihood at the observation x=3x=3:

θ\theta 14\frac14 12\frac12 34\frac34
L(θ)=p(3;θ)L(\theta)=p(3;\theta) 0.25 0.40 0.30

The likelihood is largest at θ=12\theta=\frac12, so the maximum likelihood estimate is θ̂=12.\hat\theta=\frac12 .

(With a finite parameter space, the MLE is found simply by comparing the likelihoods. No calculus is needed.)

✓ Checked by computer We read the likelihood at x = 3 from the table: 0.25, 0.40, 0.30. The largest is at θ = 1/2.

2016 · Paper I · Q1d · 10 marks

↑ Back to the question list

Given a random sample (X1,X2,…,Xn) from N(μ,σ2) with all parameters unknown. Write down the likelihood function L(μ,σ2). Show that for all (μ,σ2) L(1n∑i=1nXi,1n∑i=1n(Xi−X‾)2)≥L(μ,σ2) and comment. Now find for any ε>0 P{|1n∑i=1nXi−μ|>ε} and hence establish that 1n∑i=1nXi is a consistent estimator of μ.

2016 · Paper I · Q3a · 20 marks

Solution

(This question is also listed under 2.1 Properties of estimators. The worked solution is repeated here so that this page is complete.)

Likelihood. L(μ,σ2)=(2πσ2)−n/2exp{−12σ2∑i=1n(xi−μ)2}.L(\mu,\sigma^2)=(2\pi\sigma^2)^{-n/2}\exp\Big\{-\frac1{2\sigma^2}\sum_{i=1}^n(x_i-\mu)^2\Big\}.

The inequality. Let s=1n∑(xi−x‾)2s=\frac1n\sum(x_i-\bar x)^2. Since ∑(xi−μ)2=∑(xi−x‾)2+n(x‾−μ)2≥ns,\sum(x_i-\mu)^2=\sum(x_i-\bar x)^2+n(\bar x-\mu)^2\ge ns, we have L(μ,σ2)≤(2πσ2)−n/2e−ns/(2σ2)=:ℓ(σ2).L(\mu,\sigma^2)\le(2\pi\sigma^2)^{-n/2}e^{-ns/(2\sigma^2)}=:\ell(\sigma^2). Now maximise ℓ\ell over v=σ2v=\sigma^2: logℓ=−n2log(2πv)−ns2v\log\ell=-\frac n2\log(2\pi v)-\frac{ns}{2v} has derivative −n2v+ns2v2-\frac n{2v}+\frac{ns}{2v^2}. This is positive for v<sv<s and negative for v>sv>s, so the maximum is at v=sv=s. Hence L(μ,σ2)≤ℓ(σ2)≤ℓ(s)=L(x‾,s)for all (μ,σ2).◼L(\mu,\sigma^2)\le\ell(\sigma^2)\le\ell(s)=L(\bar x,s)\quad\text{for all }(\mu,\sigma^2).\qquad\blacksquare

Comment. (X‾,1n∑(Xi−X‾)2)(\bar X,\ \frac1n\sum(X_i-\bar X)^2) is the global maximum of the likelihood, so it is the maximum likelihood estimator of (μ,σ2)(\mu,\sigma^2). The MLE of σ2\sigma^2 divides by nn, not n−1n-1, so it is slightly biased.

Consistency of X‾\bar X. X‾∼N(μ,σ2/n)\bar X\sim N(\mu,\sigma^2/n), so P(|X‾−μ|>ε)=2[1−Φ(εnσ)].P\big(|\bar X-\mu|>\varepsilon\big)=2\Big[1-\Phi\Big(\frac{\varepsilon\sqrt n}{\sigma}\Big)\Big]. As n→∞n\to\infty, εn/σ→∞\varepsilon\sqrt n/\sigma\to\infty and Φ→1\Phi\to1, so this probability tends to 0. Hence X‾\bar X is a consistent estimator of μ\mu.

✓ Proof checked step by step Every step was checked: the sum-of-squares split, the one-variable maximisation, and the normal tail probability.

↑ 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

How does one obtain moment estimators? If X has the pdf fx(x)=xθe−(x−β)θ,0<β<x<∞,θ>0 and a sample of size 50 yields ∑i=150xi=8200and∑i=150xi2=20,00,000 find moment estimators of θ and β.

2015 · Paper I · Q3b · 15 marks

Solution

Moment estimators: the method. If the distribution has kk unknown parameters, equate the first kk sample moments mr′=1n∑xirm_r'=\frac1n\sum x_i^r to the population moments μr′(θ1,…,θk)\mu_r'(\theta_1,\dots,\theta_k), and solve the kk equations. Central moments can be used in the same way.

Note on the question. As printed, f(x)=xθe−(x−β)/θf(x)=\frac x\theta e^{-(x-\beta)/\theta} integrates to θ+β\theta+\beta, not 1, so it is not a density. The intended model is the two-parameter exponential distribution f(x)=1θe−(x−β)/θ,x>β,θ>0,f(x)=\frac1\theta e^{-(x-\beta)/\theta},\qquad x>\beta,\ \theta>0, for which E(X)=β+θE(X)=\beta+\theta and V(X)=θ2V(X)=\theta^2.

Sample moments. n=50n=50: x‾=820050=164,m2′=2,000,00050=40,000,m2=m2′−x‾2=40,000−26,896=13,104.\bar x=\frac{8200}{50}=164,\qquad m_2'=\frac{2{,}000{,}000}{50}=40{,}000,\qquad m_2=m_2'-\bar x^2=40{,}000-26{,}896=13{,}104 .

Equations. β+θ=x‾\beta+\theta=\bar x and θ2=m2\theta^2=m_2: θ̃=13,104=114.47,β̃=164−114.47=49.53.\tilde\theta=\sqrt{13{,}104}=114.47,\qquad\tilde\beta=164-114.47=49.53 .

✓ Checked by computer We checked the arithmetic in Python: x̄ = 164, m₂ = 13104, θ̃ = 114.47, β̃ = 49.53. We also checked that the printed density integrates to θ + β, not 1.

↑ Back to the question list

Suppose n items are put on test simultaneously and the test is continued until r items fail. Assuming an exponential failure distribution with mean life time θ, obtain the maximum likelihood estimator for θ and hence estimate P(X≥t). Also obtain the Fisher information about the parameter θ and show that the estimator is asymptotically normal.

2014 · Paper I · Q3a · 20 marks

Solution

What we observe. The first rr failure times x(1)≤…≤x(r)x_{(1)}\le\dots\le x_{(r)}. The other n−rn-r items are still working at time x(r)x_{(r)} (type II censoring).

Likelihood. Each failure contributes the density, and each survivor contributes P(X>x(r))=e−x(r)/θP(X>x_{(r)})=e^{-x_{(r)}/\theta}: L(θ)=n!(n−r)!∏i=1r1θe−x(i)/θ⋅(e−x(r)/θ)n−r=n!(n−r)!θ−re−Tr/θ,L(\theta)=\frac{n!}{(n-r)!}\prod_{i=1}^r\frac1\theta e^{-x_{(i)}/\theta}\cdot\big(e^{-x_{(r)}/\theta}\big)^{n-r}=\frac{n!}{(n-r)!}\,\theta^{-r}e^{-T_r/\theta}, where Tr=∑i=1rx(i)+(n−r)x(r)T_r=\sum_{i=1}^rx_{(i)}+(n-r)x_{(r)} is the total time on test.

MLE. dlogLdθ=−rθ+Trθ2=0⇒θ̂=Trr.\frac{d\log L}{d\theta}=-\frac r\theta+\frac{T_r}{\theta^2}=0\ \Rightarrow\ \hat\theta=\frac{T_r}r .

Estimate of P(X≥t)P(X\ge t). P(X≥t)=e−t/θP(X\ge t)=e^{-t/\theta}. By the invariance of MLEs, P(X≥t)̂=e−t/θ̂=e−rt/Tr.\widehat{P(X\ge t)}=e^{-t/\hat\theta}=e^{-rt/T_r}.

Fisher information. d2logLdθ2=rθ2−2Trθ3\dfrac{d^2\log L}{d\theta^2}=\dfrac r{\theta^2}-\dfrac{2T_r}{\theta^3}. The spacings of exponential order statistics are independent exponentials, so TrT_r is a sum of rr independent exponentials with mean θ\theta. That gives E(Tr)=rθE(T_r)=r\theta and 2Tr/θ∼χ2r22T_r/\theta\sim\chi^2_{2r}. Hence I(θ)=−rθ2+2rθθ3=rθ2.I(\theta)=-\frac r{\theta^2}+\frac{2r\theta}{\theta^3}=\frac r{\theta^2}.

Asymptotic normality. θ̂=Tr/r\hat\theta=T_r/r is the mean of rr i.i.d. exponential variables with mean θ\theta and variance θ2\theta^2. By the central limit theorem, as r→∞r\to\infty, r(θ̂−θ)→dN(0,θ2),i.e.θ̂∼̇N(θ,θ2r)=N(θ,1I(θ)).\sqrt r\,(\hat\theta-\theta)\xrightarrow{d}N(0,\theta^2),\qquad\text{i.e.}\quad\hat\theta\ \dot\sim\ N\Big(\theta,\frac{\theta^2}r\Big)=N\Big(\theta,\frac1{I(\theta)}\Big). Here the information comes from the number of failures rr, not from nn. (In fact θ̂\hat\theta is unbiased, with exact variance θ2/r\theta^2/r.)

✓ Checked by computer We checked by simulation (θ = 10, n = 30, r = 12) that θ̂ averages 10.01 with variance 8.33, against θ²/r = 8.33, and that 2rθ̂/θ follows χ² with 2r degrees of freedom.

↑ Back to the question list

A random sample (X1,X2,…,Xn) is taken from the population with the probability density function f(x)={kxe−x/θ,x>0,θ>00,otherwise where k is a constant to be suitably chosen. Derive the maximum likelihood estimator of θ. Also show that S2=13n∑i=1nXi2 is an unbiased estimator of the population variance.

2011 · Paper I · Q3a · 20 marks

Solution

The constant. ∫0∞xe−x/θdx=θ2\int_0^\infty xe^{-x/\theta}dx=\theta^2, so k=1/θ2k=1/\theta^2. This is the gamma distribution with shape 2 and scale θ\theta, with E(X)=2θE(X)=2\theta and V(X)=2θ2V(X)=2\theta^2.

MLE. logL=−2nlogθ+∑logxi−∑xiθ,dlogLdθ=−2nθ+∑xiθ2=0.\log L=-2n\log\theta+\sum\log x_i-\frac{\sum x_i}\theta,\qquad\frac{d\log L}{d\theta}=-\frac{2n}\theta+\frac{\sum x_i}{\theta^2}=0 . θ̂=∑Xi2n=X‾2.\hat\theta=\frac{\sum X_i}{2n}=\frac{\bar X}2 .

S2S^2 is unbiased for the population variance. The population variance is V(X)=2θ2V(X)=2\theta^2. And E(X2)=V(X)+{E(X)}2=2θ2+4θ2=6θ2.E(X^2)=V(X)+\{E(X)\}^2=2\theta^2+4\theta^2=6\theta^2 . So E(S2)=13n∑i=1nE(Xi2)=6θ23=2θ2=V(X).◼E(S^2)=\frac1{3n}\sum_{i=1}^nE(X_i^2)=\frac{6\theta^2}3=2\theta^2=V(X).\qquad\blacksquare

✓ Checked by computer We checked with SymPy that k = 1/θ², that E(X) = 2θ and V(X) = 2θ², and that E(X²)/3 = 2θ².

↑ Back to the question list

Let X1,X2,…,Xn be the lifetime of n randomly selected patients of cancer. An estimate is required for the probability that a patient survives beyond time t, i.e., P(X>t)=S(t). Find the maximum likelihood estimator of S(t), if lifetime X of the patients follow the following probability density function: f(x)={2xβexp(−x2/β),if x>00,otherwise

2010 · Paper I · Q1e · 12 marks

Solution

A transformation. Let Y=X2Y=X^2. Then P(Y>y)=P(X>y)=∫y∞2xβe−x2/βdx=e−y/β,P(Y>y)=P(X>\sqrt y)=\int_{\sqrt y}^\infty\frac{2x}\beta e^{-x^2/\beta}dx=e^{-y/\beta}, so YY is exponential with mean β\beta.

MLE of β\beta. logL=nlog2+∑logxi−nlogβ−∑xi2β,−nβ+∑xi2β2=0⇒β̂=1n∑i=1nXi2.\log L=n\log2+\sum\log x_i-n\log\beta-\frac{\sum x_i^2}\beta,\qquad-\frac n\beta+\frac{\sum x_i^2}{\beta^2}=0\ \Rightarrow\ \hat\beta=\frac1n\sum_{i=1}^nX_i^2 .

Survival function. S(t)=P(X>t)=e−t2/β.S(t)=P(X>t)=e^{-t^2/\beta}.

MLE of S(t)S(t). By the invariance property, Ŝ(t)=exp(−t2β̂)=exp(−nt2∑i=1nXi2).\hat S(t)=\exp\Big(-\frac{t^2}{\hat\beta}\Big)=\exp\Big(-\frac{n\,t^2}{\sum_{i=1}^nX_i^2}\Big).

✓ Checked by computer We checked by simulation (β = 4, t = 1.5, n = 50) that X² is exponential with mean β, and that the MLE of S(t) averages 0.565 against the true value 0.570 (a small bias that disappears as n grows).

↑ Back to the question list

State the invariance property of maximum likelihood estimator (m.l.e.). Use this to obtain the m.l.e. of 1/θ in sampling from f(x;θ)={(mx)θx(1−θ)m−x,x=0(1)m0,otherwise.

2009 · Paper I · Q1d · 12 marks

Solution

Invariance property. If θ̂\hat\theta is the MLE of θ\theta, then for any function gg, the MLE of g(θ)g(\theta) is g(θ̂)g(\hat\theta). (For one-to-one gg this is immediate. For general gg it holds with the “induced likelihood”.)

Note on the question. (mx)\left(\frac mx\right) stands for the binomial coefficient (mx)\binom mx.

MLE of θ\theta. For a sample x1,…,xnx_1,\dots,x_n from B(m,θ)B(m,\theta), logL=const+∑xilogθ+(nm−∑xi)log(1−θ),\log L=\text{const}+\sum x_i\log\theta+\Big(nm-\sum x_i\Big)\log(1-\theta), ∑xiθ−nm−∑xi1−θ=0⇒θ̂=∑xinm=x‾m.\frac{\sum x_i}\theta-\frac{nm-\sum x_i}{1-\theta}=0\ \Rightarrow\ \hat\theta=\frac{\sum x_i}{nm}=\frac{\bar x}m .

MLE of 1/θ1/\theta. By invariance, (1θ)̂=1θ̂=mx‾=nm∑xi(when ∑xi>0).\widehat{\Big(\frac1\theta\Big)}=\frac1{\hat\theta}=\frac{m}{\bar x}=\frac{nm}{\sum x_i}\qquad(\text{when }\textstyle\sum x_i>0). For a single observation xx, it is m/xm/x.

✓ Proof checked step by step Every step was checked: the binomial likelihood equation, followed by invariance.

↑ Back to the question list

Given a random sample of observation from the rectangular distribution with p.d.f. f(x)={1θ0≤x≤θθ>00outside find the m.l.e. of θ.

2007 · Paper I · Q1e · 12 marks

Solution

Likelihood. L(θ)=∏i=1n1θI(0≤xi≤θ)=θ−nI(θ≥x(n)).L(\theta)=\prod_{i=1}^n\frac1\theta I(0\le x_i\le\theta)=\theta^{-n}\,I\big(\theta\ge x_{(n)}\big).

Maximise. For θ<x(n)\theta<x_{(n)}, at least one observation lies outside [0,θ][0,\theta], so L=0L=0. For θ≥x(n)\theta\ge x_{(n)}, L=θ−nL=\theta^{-n}, which decreases as θ\theta increases. So LL is largest at the smallest allowed value: θ̂=X(n)=max(X1,…,Xn).\hat\theta=X_{(n)}=\max(X_1,\dots,X_n).

(The likelihood equation −n/θ=0-n/\theta=0 has no solution. This is a non-regular case, where the maximum lies on the boundary set by the data. θ̂\hat\theta is biased, E(θ̂)=nn+1θE(\hat\theta)=\frac n{n+1}\theta, but consistent.)

✓ Proof checked step by step Every step was checked: the likelihood is zero below the sample maximum and decreasing above it.

↑ Back to the question list

Given a random sample of n observation from a Poisson distribution P(x;λ), derive an estimate of λ based on the frequency of x=0 and work out its asymptotic variance.

2005 · Paper I · Q1d · 12 marks

Solution

The estimate. Let n0n_0 be the number of observations equal to 0. Then n0∼B(n,p0)n_0\sim B(n,p_0) with p0=P(X=0)=e−λp_0=P(X=0)=e^{-\lambda}, and p0p_0 is estimated by n0/nn_0/n. Solving e−λ=n0/ne^{-\lambda}=n_0/n: λ̃=−logn0n=lognn0(n0>0).\tilde\lambda=-\log\frac{n_0}n=\log\frac n{n_0}\qquad(n_0>0). (This is the MLE when we know only which observations are zero.)

Asymptotic variance (delta method). V(n0/n)=p0(1−p0)nV(n_0/n)=\dfrac{p_0(1-p_0)}n, and λ=−logp0\lambda=-\log p_0 has dλdp0=−1p0\dfrac{d\lambda}{dp_0}=-\dfrac1{p_0}. So V(λ̃)≈1p02⋅p0(1−p0)n=1−p0np0=eλ−1n.V(\tilde\lambda)\approx\frac1{p_0^2}\cdot\frac{p_0(1-p_0)}n=\frac{1-p_0}{np_0}=\frac{e^\lambda-1}n .

Comparison. The full-data MLE X‾\bar X has variance λ/n\lambda/n. The efficiency of λ̃\tilde\lambda is λeλ−1<1\dfrac{\lambda}{e^\lambda-1}<1. This is near 1 for small λ\lambda (when zeros are common), but falls off quickly: 0.58 at λ=1\lambda=1, and 0.31 at λ=2\lambda=2.

✓ Checked by computer We checked by simulation (λ = 1.2, n = 200) that the zero-frequency estimate has variance 0.0118, close to (e^λ − 1)/n = 0.01160. X̄ has variance λ/n = 0.006.

↑ Back to the question list

Let X be a normal variate with mean μ and variance σ2 Estimate μ and σ2 by using method of moments.

2003 · Paper I · Q1d · 12 marks

Solution

Population moments. For X∼N(μ,σ2)X\sim N(\mu,\sigma^2): μ1′=E(X)=μ,μ2′=E(X2)=σ2+μ2.\mu_1'=E(X)=\mu,\qquad\mu_2'=E(X^2)=\sigma^2+\mu^2 .

Sample moments. m1′=x‾m_1'=\bar x and m2′=1n∑xi2m_2'=\frac1n\sum x_i^2.

Equate and solve. μ̃=X‾,σ̃2=m2′−X‾2=1n∑i=1n(Xi−X‾)2.\tilde\mu=\bar X,\qquad\tilde\sigma^2=m_2'-\bar X^2=\frac1n\sum_{i=1}^n(X_i-\bar X)^2 .

These coincide with the MLEs. μ̃\tilde\mu is unbiased. σ̃2\tilde\sigma^2 is slightly biased, with mean n−1nσ2\frac{n-1}n\sigma^2, but consistent.

✓ Checked by computer We checked by simulation (μ = 3, σ² = 4, n = 25) that the moment estimates average 3.00 and 3.84, the second being (n−1)σ²/n.

↑ Back to the question list

Prove that if θ̂ is the maximum likelihood estimator of θ and ϕ(θ) is a one-to-one function of θ, then ϕ(θ̂) is the maximum likelihood estimator for ϕ(θ).

2003 · Paper I · Q3c · 20 marks

Solution

Setting. θ̂\hat\theta maximises L(θ)L(\theta) over Θ\Theta, and ϕ\phi is one-to-one from Θ\Theta onto Φ=ϕ(Θ)\Phi=\phi(\Theta), with inverse ϕ−1\phi^{-1}.

Likelihood in the new parameter. In terms of η=ϕ(θ)\eta=\phi(\theta), the density of the data is the same density written differently, so the likelihood is L*(η)=L(ϕ−1(η)),η∈Φ.L^*(\eta)=L\big(\phi^{-1}(\eta)\big),\qquad\eta\in\Phi .

Maximise. For every η∈Φ\eta\in\Phi, L*(η)=L(ϕ−1(η))≤L(θ̂)=L(ϕ−1(ϕ(θ̂)))=L*(ϕ(θ̂)).L^*(\eta)=L\big(\phi^{-1}(\eta)\big)\le L(\hat\theta)=L\big(\phi^{-1}(\phi(\hat\theta))\big)=L^*\big(\phi(\hat\theta)\big). So L*L^* reaches its maximum at η̂=ϕ(θ̂)\hat\eta=\phi(\hat\theta). That is, ϕ(θ̂)\phi(\hat\theta) is the MLE of ϕ(θ)\phi(\theta). ◼\blacksquare

Example. For a Poisson sample, λ̂=X‾\hat\lambda=\bar X, so the MLE of e−λe^{-\lambda} is e−X‾e^{-\bar X}. Note that MLEs are invariant, but unbiasedness is not: e−X‾e^{-\bar X} is biased even though X‾\bar X is unbiased.

✓ Proof checked step by step Every step was checked: the reparametrised likelihood is the original likelihood composed with the inverse function.

↑ Back to the question list

Stating the regularity conditions, show that the maximum likelihood equation has a solution which is consistent and asymptotically normal.

2002 · Paper I · Q4b · 20 marks

Solution

Regularity conditions (Cramér). Let θ0\theta_0 be the true value.

  1. Θ\Theta is an open interval containing θ0\theta_0, and the support of f(x,θ)f(x,\theta) does not depend on θ\theta.
  2. logf(x,θ)\log f(x,\theta) has three derivatives in θ\theta, for all xx and all θ\theta near θ0\theta_0.
  3. ∫∂f∂θdx=0\int\frac{\partial f}{\partial\theta}dx=0 and ∫∂2f∂θ2dx=0\int\frac{\partial^2f}{\partial\theta^2}dx=0 (differentiation under the integral sign).
  4. 0<I(θ0)=E[(∂logf∂θ)2]<∞0<I(\theta_0)=E\big[\big(\frac{\partial\log f}{\partial\theta}\big)^2\big]<\infty.
  5. |∂3logf∂θ3|≤M(x)\big|\frac{\partial^3\log f}{\partial\theta^3}\big|\le M(x) near θ0\theta_0, with Eθ0M(X)<∞E_{\theta_0}M(X)<\infty.
  6. Different θ\theta give different distributions (identifiability).

(a) A consistent root exists. Let ℓn(θ)=1n∑logf(Xi,θ)\ell_n(\theta)=\frac1n\sum\log f(X_i,\theta). By the law of large numbers, ℓn(θ)→Eθ0logf(X,θ)\ell_n(\theta)\to E_{\theta_0}\log f(X,\theta). By Jensen’s inequality and condition 6, Eθ0logf(X,θ)f(X,θ0)<logEθ0f(X,θ)f(X,θ0)=0(θ≠θ0).E_{\theta_0}\log\frac{f(X,\theta)}{f(X,\theta_0)}<\log E_{\theta_0}\frac{f(X,\theta)}{f(X,\theta_0)}=0\qquad(\theta\ne\theta_0). So, for any small δ>0\delta>0, with probability tending to 1, ℓn(θ0)>ℓn(θ0±δ)\ell_n(\theta_0)>\ell_n(\theta_0\pm\delta). The differentiable function ℓn\ell_n then has a local maximum, a root of ℓn′(θ)=0\ell_n'(\theta)=0, inside (θ0−δ,θ0+δ)(\theta_0-\delta,\theta_0+\delta). Since δ\delta is arbitrary, there is a root θ̂n→Pθ0\hat\theta_n\xrightarrow{P}\theta_0.

(b) Asymptotic normality. Expand the likelihood equation about θ0\theta_0: 0=ℓn′(θ̂n)=ℓn′(θ0)+(θ̂n−θ0)ℓn″(θ0)+12(θ̂n−θ0)2ℓn‴(θ*),0=\ell_n'(\hat\theta_n)=\ell_n'(\theta_0)+(\hat\theta_n-\theta_0)\ell_n''(\theta_0)+\tfrac12(\hat\theta_n-\theta_0)^2\ell_n'''(\theta^*), with θ*\theta^* between θ̂n\hat\theta_n and θ0\theta_0. Rearranging, n(θ̂n−θ0)=nℓn′(θ0)−ℓn″(θ0)−12(θ̂n−θ0)ℓn‴(θ*).\sqrt n(\hat\theta_n-\theta_0)=\frac{\sqrt n\,\ell_n'(\theta_0)}{-\ell_n''(\theta_0)-\frac12(\hat\theta_n-\theta_0)\ell_n'''(\theta^*)}.

  • Numerator: nℓn′(θ0)=1n∑∂logf(Xi,θ0)∂θ\sqrt n\,\ell_n'(\theta_0)=\frac1{\sqrt n}\sum\frac{\partial\log f(X_i,\theta_0)}{\partial\theta}. The summands are i.i.d. with mean 0 and variance I(θ0)I(\theta_0) (condition 3), so by the CLT the numerator →dN(0,I(θ0))\xrightarrow{d}N(0,I(\theta_0)).
  • Denominator: −ℓn″(θ0)→PI(θ0)-\ell_n''(\theta_0)\xrightarrow{P}I(\theta_0) (law of large numbers, condition 3). The last term →0\to0, because θ̂n−θ0→0\hat\theta_n-\theta_0\to0 and |ℓn‴|≤1n∑M(Xi)|\ell_n'''|\le\frac1n\sum M(X_i) is bounded in probability (condition 5).

By Slutsky’s theorem, n(θ̂n−θ0)→dN(0,1I(θ0)).◼\sqrt n(\hat\theta_n-\theta_0)\xrightarrow{d}N\Big(0,\frac1{I(\theta_0)}\Big).\qquad\blacksquare

So the consistent root is asymptotically normal, and its asymptotic variance 1/{nI(θ0)}1/\{nI(\theta_0)\} equals the Cramér–Rao bound: it is asymptotically efficient.

✓ Proof checked step by step Every step was checked: the consistent root via the law of large numbers and a sign change of the likelihood equation on (θ₀ − δ, θ₀ + δ), and asymptotic normality via a Taylor expansion, the central limit theorem and Slutsky’s theorem.

↑ Back to the question list

Obtain estimates of the parameters μ and σ of a Normal distribution using the method of moments.

2001 · Paper I · Q2iii · 15 marks

Solution

Population moments of N(μ,σ2)N(\mu,\sigma^2): E(X)=μ,E(X2)=μ2+σ2.E(X)=\mu,\qquad E(X^2)=\mu^2+\sigma^2 .

Equate to sample moments. x‾=μ,1n∑xi2=μ2+σ2.\bar x=\mu,\qquad\frac1n\sum x_i^2=\mu^2+\sigma^2 .

Solve. μ̃=X‾,σ̃=1n∑i=1nXi2−X‾2=1n∑i=1n(Xi−X‾)2.\tilde\mu=\bar X,\qquad\tilde\sigma=\sqrt{\frac1n\sum_{i=1}^nX_i^2-\bar X^2}=\sqrt{\frac1n\sum_{i=1}^n(X_i-\bar X)^2}.

For the normal, these are also the maximum likelihood estimates. Both are consistent. σ̃\tilde\sigma is slightly biased downwards in small samples.

✓ Checked by computer We checked by simulation (μ = 10, σ = 2, n = 40) that the moment estimates average 10.00 and 1.96. The small downward bias in σ is as expected.

↑ Back to the question list

State the method of minimum Chi-square for estimating a parameter and show that for large sample, the minimum Chi-square equations and likelihood equations are identical, providing identical estimates.

2000 · Paper I · Q1d · 12 marks

Solution

Method of minimum chi-square. The data are grouped into kk classes, with observed frequencies n1,…,nkn_1,\dots,n_k (∑ni=n\sum n_i=n) and cell probabilities pi(θ)p_i(\theta). The estimate is the value of θ\theta that minimises χ2(θ)=∑i=1k{ni−npi(θ)}2npi(θ).\chi^2(\theta)=\sum_{i=1}^k\frac{\{n_i-np_i(\theta)\}^2}{np_i(\theta)}.

Minimum chi-square equation. Differentiate, writing pi′=dpi/dθp_i'=dp_i/d\theta: dχ2dθ=−∑i(ni−npi)pi′pi[2+ni−npinpi]=0.\frac{d\chi^2}{d\theta}=-\sum_i\frac{(n_i-np_i)p_i'}{p_i}\Big[2+\frac{n_i-np_i}{np_i}\Big]=0 .

Large samples. ni−npinpi=ni/n−pipi→P0\dfrac{n_i-np_i}{np_i}=\dfrac{n_i/n-p_i}{p_i}\xrightarrow{P}0, because ni/n→pin_i/n\to p_i. So the bracket tends to 2, and the equation becomes, to first order, ∑i(ni−npi)pi′pi=∑inipi′pi−n∑ipi′=0.\sum_i\frac{(n_i-np_i)p_i'}{p_i}=\sum_i\frac{n_ip_i'}{p_i}-n\sum_ip_i'=0 . Since ∑ipi=1\sum_ip_i=1, ∑ipi′=0\sum_ip_i'=0. So the equation reduces to ∑i=1knipi(θ)dpi(θ)dθ=0.\sum_{i=1}^k\frac{n_i}{p_i(\theta)}\frac{dp_i(\theta)}{d\theta}=0 .

This is the likelihood equation. For grouped data, logL=const+∑nilogpi(θ)\log L=\text{const}+\sum n_i\log p_i(\theta), so ∂logL∂θ=∑inipipi′=0.\frac{\partial\log L}{\partial\theta}=\sum_i\frac{n_i}{p_i}p_i'=0 . The two equations agree in large samples, so the minimum chi-square and maximum likelihood estimates are asymptotically identical. Both are consistent, asymptotically normal and efficient. ◼\blacksquare

✓ Proof checked step by step Every step was checked: the derivative of the chi-square, and the order of the extra term that vanishes in large samples.

↑ Back to the question list

A discrete random variable X has a distribution dependent on the specification of the values of a parameter θ as indicated in the following table. Find the MLE of θ when x=2 is an observation of X.

x 0 1 2 3 4
P(x), θ=0 0.1 0.2 0.3 0 0.4
P(x), θ=1 0.2 0.3 0.2 0.1 0.2
P(x), θ=2 0.4 0.3 0.2 0.1 0

Solution

Likelihood at the observation x=2x=2:

θ\theta 0 1 2
L(θ)=P(X=2;θ)L(\theta)=P(X=2;\theta) 0.3 0.2 0.2

The largest likelihood is at θ=0\theta=0, so the MLE is θ̂=0.\hat\theta=0 .

✓ Checked by computer We read the likelihood at x = 2 from the table: 0.3, 0.2, 0.2. The largest is at θ = 0.

2000 · Paper I · Q3c · 8 marks

↑ Back to the question list

A random sample of size n is drawn from a gamma distribution with parameters α and p. Obtain estimators of α and p, using the method of moments.

1999 · Paper I · Q6b · 15 marks

Solution

Parametrisation. Take the gamma density with rate α\alpha and shape pp: f(x)=αpΓ(p)xp−1e−αx,x>0.f(x)=\frac{\alpha^p}{\Gamma(p)}x^{p-1}e^{-\alpha x},\qquad x>0 . Then E(X)=pαE(X)=\dfrac p\alpha and V(X)=pα2V(X)=\dfrac p{\alpha^2}.

Equate moments. With x‾\bar x and m2=1n∑(xi−x‾)2m_2=\frac1n\sum(x_i-\bar x)^2: pα=x‾,pα2=m2.\frac p\alpha=\bar x,\qquad\frac p{\alpha^2}=m_2 . Dividing the first equation by the second gives α=x‾/m2\alpha=\bar x/m_2.

Moment estimators. α̃=X‾m2,p̃=X‾2m2.\tilde\alpha=\frac{\bar X}{m_2},\qquad\tilde p=\frac{\bar X^2}{m_2}. (If α\alpha is a scale parameter instead, f∝xp−1e−x/αf\propto x^{p-1}e^{-x/\alpha}, then α̃=m2/X‾\tilde\alpha=m_2/\bar X and p̃=X‾2/m2\tilde p=\bar X^2/m_2.)

✓ Checked by computer We checked by simulation (α = 2, p = 3, n = 400) that the moment estimates average 2.02 and 3.03.

↑ Back to the question list

Explain the method of maximum likelihood for estimation of parameters. State important properties of maximum likelihood estimators and prove any one of them.

1999 · Paper I · Q7a · 35 marks

Solution

The method. Given data xx, the likelihood L(θ)=f(x;θ)L(\theta)=f(x;\theta) is the probability (density) of the observed data, regarded as a function of θ\theta. The maximum likelihood estimate θ̂\hat\theta is the value of θ\theta that makes the observed data most probable: L(θ̂)=maxθ∈ΘL(θ).L(\hat\theta)=\max_{\theta\in\Theta}L(\theta). In regular problems we solve the likelihood equations ∂logL/∂θj=0\partial\log L/\partial\theta_j=0 and check that the solution is a maximum. In non-regular problems (for example, U(0,θ)U(0,\theta)) the maximum may be on a boundary set by the data.

Important properties.

  1. Sufficiency: if a sufficient statistic TT exists, the MLE is a function of TT.
  2. Invariance: the MLE of g(θ)g(\theta) is g(θ̂)g(\hat\theta).
  3. Consistency: under regularity conditions, a root of the likelihood equation is consistent.
  4. Asymptotic normality: n(θ̂−θ)→N(0,1/I(θ))\sqrt n(\hat\theta-\theta)\to N(0,1/I(\theta)).
  5. Asymptotic efficiency: its asymptotic variance attains the Cramér–Rao bound.
  6. MVB link: if an MVB estimator exists, the likelihood equation gives it.
  7. MLEs need not be unbiased (for example, 1n∑(Xi−X‾)2\frac1n\sum(X_i-\bar X)^2 for σ2\sigma^2).

Proof of property 1. By the factorisation theorem, L(θ)=g(T(x),θ)h(x)L(\theta)=g(T(x),\theta)h(x) with h(x)≥0h(x)\ge0 free of θ\theta. So maximising LL over θ\theta is the same as maximising g(T(x),θ)g(T(x),\theta). The maximiser therefore depends on xx only through T(x)T(x). ◼\blacksquare

Proof of property 2 (one-to-one gg). The likelihood for η=g(θ)\eta=g(\theta) is L*(η)=L(g−1(η))≤L(θ̂)=L*(g(θ̂))L^*(\eta)=L(g^{-1}(\eta))\le L(\hat\theta)=L^*(g(\hat\theta)). So η̂=g(θ̂)\hat\eta=g(\hat\theta). ◼\blacksquare

✓ Proof checked step by step Every step was checked: the method, the list of properties, and the proofs of invariance and of the link with sufficiency.

↑ Back to the question list

State the conditions under which maximum likelihood estimators are identical with those given by method of moments.

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

Solution

Condition. The MLE and the moment estimators coincide when the likelihood equations are themselves moment equations. This happens when the density belongs to the exponential family in the form f(x;θ)=exp{∑j=1kcj(θ)xj+d(θ)+S(x)},f(x;\theta)=\exp\Big\{\sum_{j=1}^kc_j(\theta)\,x^j+d(\theta)+S(x)\Big\}, that is, when the sufficient statistics are the power sums ∑xi,∑xi2,…,∑xik\sum x_i,\sum x_i^2,\dots,\sum x_i^k, and the support does not depend on θ\theta.

Why. For such a family, the likelihood equations are 1n∑i=1nxij=Eθ(Xj),j=1,…,k,\frac1n\sum_{i=1}^nx_i^j=E_\theta(X^j),\qquad j=1,\dots,k, because E[∂∂θlogf]=0E\big[\frac{\partial}{\partial\theta}\log f\big]=0 forces −∇d(θ)-\nabla d(\theta) to equal E{∑cj′(θ)Xj}E\{\sum c_j'(\theta)X^j\}. These are exactly the equations of the method of moments, using the first kk moments.

Examples where they agree. Normal (μ,σ2)(\mu,\sigma^2), Poisson, binomial (mm known), exponential, geometric.

Examples where they differ.

  • U(0,θ)U(0,\theta): the support depends on θ\theta. The MLE is X(n)X_{(n)} and the moment estimator is 2X‾2\bar X.
  • Gamma with unknown shape: the sufficient statistic includes ∑logxi\sum\log x_i, which is not a power sum.
  • Beta (θ,1)(\theta,1): the sufficient statistic is ∑logxi\sum\log x_i.

✓ Answer checked step by step Every point was checked: the exponential-family condition, and the standard examples where the two methods agree and disagree.

↑ Back to the question list

Let X1,X2,…,Xn be a random sample from a pdf f(x,θ)={e−(x−θ),x≥θ,−∞<θ<∞0,otherwise Find method of moment estimator of θ.

1997 · Paper I · Q6c · 20 marks

Solution

Population mean. Put y=x−θy=x-\theta, so YY is standard exponential: E(X)=∫θ∞xe−(x−θ)dx=θ+∫0∞ye−ydy=θ+1.E(X)=\int_\theta^\infty xe^{-(x-\theta)}dx=\theta+\int_0^\infty ye^{-y}dy=\theta+1 .

Method of moments. Equate to X‾\bar X: X‾=θ+1⇒θ̃=X‾−1.\bar X=\theta+1\quad\Longrightarrow\quad\tilde\theta=\bar X-1 .

It is unbiased, with variance 1/n1/n. (For comparison, the MLE is X(1)X_{(1)}, whose variance 1/n21/n^2 is much smaller. The bias-corrected MLE X(1)−1nX_{(1)}-\frac1n is better than the moment estimator.)

✓ Checked by computer We checked E(X) = θ + 1 with SymPy, and by simulation (θ = 2.5, n = 20) that X̄ − 1 averages 2.50.

↑ Back to the question list

State the properties of maximum likelihood estimators.

1995 · Paper I · Q5b · 15 marks

Solution

Properties of maximum likelihood estimators.

  1. Consistency. Under regularity conditions, the likelihood equation has a root that converges in probability to the true θ\theta.
  2. Asymptotic normality. n(θ̂−θ)→dN(0,1/I(θ))\sqrt n(\hat\theta-\theta)\xrightarrow{d}N\big(0,1/I(\theta)\big). For several parameters, the covariance matrix is I(θ)−1I(\theta)^{-1}.
  3. Asymptotic efficiency. The asymptotic variance equals the Cramér–Rao bound 1/{nI(θ)}1/\{nI(\theta)\}. No regular consistent estimator does better in large samples.
  4. Function of a sufficient statistic. If a sufficient statistic exists, the MLE depends on the data only through it.
  5. Invariance. If θ̂\hat\theta is the MLE of θ\theta, then g(θ̂)g(\hat\theta) is the MLE of g(θ)g(\theta).
  6. MVB estimator. If an unbiased estimator attaining the Cramér–Rao bound exists, the likelihood equation yields it.
  7. Not necessarily unbiased, for example σ̂2=1n∑(Xi−X‾)2\hat\sigma^2=\frac1n\sum(X_i-\bar X)^2. Not necessarily unique: for U(θ−12,θ+12)U(\theta-\frac12,\theta+\frac12) a whole interval maximises LL.
  8. In non-regular cases (support depending on θ\theta), the MLE can converge faster than 1/n1/\sqrt n and need not be normal. For U(0,θ)U(0,\theta), n(θ−X(n))n(\theta-X_{(n)}) has a limiting exponential distribution.

✓ Answer checked step by step Every property was checked against the standard large-sample theory of maximum likelihood.

↑ 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