Menu Close

Standard distributions: UPSC Statistics Optional PYQ Solutions (1995–2025)

All 25 questions UPSC has asked on standard distributions in the Statistics Optional (Paper I, Probability) from 1995 to 2025, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Probability 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):

2025 · 6a(i) 2024 · 6a(i) 2024 · 6a(ii) 2024 · 6a(iii) 2022 · 4b 2019 · 3b 2019 · 3c 2016 · 1c 2014 · 4c 2011 · 8b 2009 · 1a 2009 · 4b 2009 · 7a 2005 · 2a 2001 · 1e 2001 · 2ii 2001 · 3i 2001 · 4iii 1999 · 2a 1999 · 2b 1998 · 4b 1997 · 2b 1997 · 4b 1996 · 2c 1995 · 4c

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

If (X,Y) follows bivariate normal BN(μ1,μ2,σ12,σ22,ρ), then obtain (A) E(eX) (B) E(eX+Y) (C) Var(eX) and (D) Correlation between eX and eY.

2025 · Paper I · Q6a(i) · 12 marks

Solution

Key fact. If W∼N(m,s2)W\sim N(m,s^2), its m.g.f. gives E(eW)=em+s2/2E(e^{W})=e^{m+s^2/2}.

(A) X∼N(μ1,σ12)X\sim N(\mu_1,\sigma_1^2), so E(eX)=eμ1+σ12/2.E(e^X)=e^{\mu_1+\sigma_1^2/2}.

(B) X+YX+Y is normal, with mean μ1+μ2\mu_1+\mu_2 and variance σ12+σ22+2ρσ1σ2\sigma_1^2+\sigma_2^2+2\rho\sigma_1\sigma_2. So E(eX+Y)=exp(μ1+μ2+12(σ12+σ22+2ρσ1σ2)).E(e^{X+Y})=\exp\!\left(\mu_1+\mu_2+\tfrac12\left(\sigma_1^2+\sigma_2^2+2\rho\sigma_1\sigma_2\right)\right).

(C) E(e2X)=e2μ1+2σ12E(e^{2X})=e^{2\mu_1+2\sigma_1^2}, so Var(eX)=e2μ1+2σ12−e2μ1+σ12=e2μ1+σ12(eσ12−1).\text{Var}(e^X)=e^{2\mu_1+2\sigma_1^2}-e^{2\mu_1+\sigma_1^2}=e^{2\mu_1+\sigma_1^2}\left(e^{\sigma_1^2}-1\right).

(D) From (A) and (B), Cov(eX,eY)=E(eX+Y)−E(eX)E(eY)=eμ1+μ2+(σ12+σ22)/2(eρσ1σ2−1).\text{Cov}(e^X,e^Y)=E(e^{X+Y})-E(e^X)E(e^Y)=e^{\mu_1+\mu_2+(\sigma_1^2+\sigma_2^2)/2}\left(e^{\rho\sigma_1\sigma_2}-1\right). Dividing by the two standard deviations from (C), the exponential factors cancel: Corr(eX,eY)=eρσ1σ2−1(eσ12−1)(eσ22−1).\text{Corr}(e^X,e^Y)=\frac{e^{\rho\sigma_1\sigma_2}-1}{\sqrt{\left(e^{\sigma_1^2}-1\right)\left(e^{\sigma_2^2}-1\right)}}. This does not depend on μ1,μ2\mu_1,\mu_2, and it is 0 exactly when ρ=0\rho=0. (eXe^X and eYe^Y are lognormal.)

✓ Checked by computer We checked all four formulas by simulation in Python (2 million bivariate normal pairs, with μ₁ = 0.3, μ₂ = −0.2, σ₁ = 0.5, σ₂ = 0.7, ρ = 0.4). For example, the correlation came out 0.3542 simulated against 0.3546 from the formula.

↑ Back to the question list

(X,Y) has bivariate normal distribution BN(μ1,μ2,σ12,σ22,ρ). Show that X and Y are independent if and only if ρ=0.

2024 · Paper I · Q6a(i) · 6 marks

Solution

The bivariate normal density is f(x,y)=12πσ1σ21−ρ2exp{−12(1−ρ2)[u2−2ρuv+v2]},u=x−μ1σ1,v=y−μ2σ2.f(x,y)=\frac{1}{2\pi\sigma_1\sigma_2\sqrt{1-\rho^2}}\exp\!\left\{-\frac{1}{2(1-\rho^2)}\left[u^2-2\rho uv+v^2\right]\right\},\qquad u=\frac{x-\mu_1}{\sigma_1},\ v=\frac{y-\mu_2}{\sigma_2}. Its marginals are X∼N(μ1,σ12)X\sim N(\mu_1,\sigma_1^2) and Y∼N(μ2,σ22)Y\sim N(\mu_2,\sigma_2^2), and ρ=Corr(X,Y)\rho=\text{Corr}(X,Y).

If X,YX,Y are independent, then ρ=0\rho=0. Independence gives E(XY)=E(X)E(Y)E(XY)=E(X)E(Y), so Cov(X,Y)=0\text{Cov}(X,Y)=0 and ρ=0\rho=0.

If ρ=0\rho=0, then X,YX,Y are independent. Put ρ=0\rho=0 in the density: f(x,y)=1σ12πe−u2/2⋅1σ22πe−v2/2=fX(x)fY(y)for all (x,y).f(x,y)=\frac1{\sigma_1\sqrt{2\pi}}e^{-u^2/2}\cdot\frac1{\sigma_2\sqrt{2\pi}}e^{-v^2/2}=f_X(x)\,f_Y(y)\quad\text{for all }(x,y). The joint density is the product of the marginals, so XX and YY are independent. ◼\blacksquare

(For general random variables zero correlation does not imply independence. The bivariate normal is a special case where it does.)

✓ Proof checked step by step Every step was checked: the “if” part by factorising the joint density, and the “only if” part from zero covariance.

↑ Back to the question list

If (X,Y) follows BN(3,1,16,25,35), obtain P(3<Y<8∣X=7), given Φ(2)=0⋅9772 and Φ(−0⋅25)=0⋅4017, and Φ(x) represents the area under the standard normal curve from −∞ to x.

2024 · Paper I · Q6a(ii) · 6 marks

Solution

Parameters. μ1=3\mu_1=3, μ2=1\mu_2=1, σ1=4\sigma_1=4, σ2=5\sigma_2=5, ρ=35\rho=\tfrac35.

Conditional distribution. For a bivariate normal, Y∣X=x∼N(μ2+ρσ2σ1(x−μ1),σ22(1−ρ2))Y\mid X=x\sim N\!\left(\mu_2+\rho\dfrac{\sigma_2}{\sigma_1}(x-\mu_1),\ \sigma_2^2(1-\rho^2)\right). At x=7x=7: E(Y∣X=7)=1+35⋅54⋅(7−3)=1+3=4,V(Y∣X=7)=25(1−925)=16.E(Y\mid X=7)=1+\frac35\cdot\frac54\cdot(7-3)=1+3=4,\qquad V(Y\mid X=7)=25\left(1-\frac9{25}\right)=16. So Y∣X=7∼N(4,16)Y\mid X=7\sim N(4,16), with SD 4.

Probability. P(3<Y<8∣X=7)=Φ(8−44)−Φ(3−44)=Φ(1)−Φ(−0.25).P(3<Y<8\mid X=7)=\Phi\!\left(\frac{8-4}4\right)-\Phi\!\left(\frac{3-4}4\right)=\Phi(1)-\Phi(-0.25).

Note on the question. The paper supplies Φ(2)=0.9772\Phi(2)=0.9772, but the answer needs Φ(1)=0.8413\Phi(1)=0.8413, a standard table value. (Φ(2)\Phi(2) would be needed only if the conditional SD were 2.)

Answer. P(3<Y<8∣X=7)=0.8413−0.4017=0.4396.P(3<Y<8\mid X=7)=0.8413-0.4017=\mathbf{0.4396}.

✓ Checked by computer We recomputed the conditional mean (4) and SD (4) in Python, and the exact probability 0.4401. With the tabled values 0.8413 and 0.4017 the answer is 0.4396.

↑ Back to the question list

If (X,Y) follows BN(0,0,1,1,0), what will be the distribution of Z=YX?

2024 · Paper I · Q6a(iii) · 4 marks

Solution

Set-up. BN(0,0,1,1,0)BN(0,0,1,1,0) means X,YX,Y are independent N(0,1)N(0,1) (by the 2024 Q6a(i) result above, ρ=0\rho=0 gives independence).

Distribution of Z=Y/XZ=Y/X. Condition on XX. By symmetry of YY, Z=dY/|X|Z\overset d=Y/|X|. Let R=|X|R=|X|, with density 2ϕ(r)2\phi(r) on r>0r>0. Then fZ(z)=∫0∞rϕ(zr)⋅2ϕ(r)dr=22π∫0∞re−r2(1+z2)/2dr=1π⋅11+z2.f_Z(z)=\int_0^\infty r\,\phi(zr)\cdot2\phi(r)\,dr=\frac{2}{2\pi}\int_0^\infty r\,e^{-r^2(1+z^2)/2}\,dr=\frac1\pi\cdot\frac1{1+z^2}.

Answer. Z=Y/XZ=Y/X has the standard Cauchy distribution: fZ(z)=1π(1+z2),−∞<z<∞.f_Z(z)=\frac1{\pi(1+z^2)},\qquad-\infty<z<\infty. It has no mean or variance.

✓ Derivation checked step by step Every step was checked. We also ran a Kolmogorov–Smirnov test in Python on 10⁶ simulated ratios against the standard Cauchy: p-value 0.81, a good fit.

↑ Back to the question list

(i) Let the joint probability density function of X and Y be f(x,y)=C⋅exp{−(4x2+9y2−xy)}, where C is a constant. Find E(X),V(X),E(Y),V(Y) and the correlation coefficient between X and Y. (ii) If X1,X2,…,X6 are independent random variables such that P(Xi=−1)=P(Xi=1)=12,i=1,2,…,6, then obtain the value of P[∑i=16Xi=4].

2022 · Paper I · Q4b · 15 marks

Solution

(i) Recognise a bivariate normal. A bivariate normal with mean 0 has density ∝exp{−12𝐳TΣ−1𝐳}\propto\exp\{-\tfrac12\mathbf z^T\Sigma^{-1}\mathbf z\}. Match the exponent: 4x2−xy+9y2=12(xy)(8−1−118)(xy).4x^2-xy+9y^2=\tfrac12\begin{pmatrix}x&y\end{pmatrix}\begin{pmatrix}8&-1\\-1&18\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix}. So Σ−1=(8−1−118)\Sigma^{-1}=\begin{pmatrix}8&-1\\-1&18\end{pmatrix}, with |Σ−1|=144−1=143|\Sigma^{-1}|=144-1=143, and Σ=1143(18118).\Sigma=\frac1{143}\begin{pmatrix}18&1\\1&8\end{pmatrix}.

Answers. E(X)=E(Y)=0,V(X)=18143,V(Y)=8143,Cov(X,Y)=1143,E(X)=E(Y)=0,\qquad V(X)=\frac{18}{143},\qquad V(Y)=\frac8{143},\qquad \text{Cov}(X,Y)=\frac1{143}, ρ=1/14318/143⋅8/143=1144=𝟏𝟏𝟐.\rho=\frac{1/143}{\sqrt{18/143\cdot8/143}}=\frac1{\sqrt{144}}=\mathbf{\frac1{12}}. The constant is C=12π|Σ|=1432π≈1.903C=\dfrac{1}{2\pi\sqrt{|\Sigma|}}=\dfrac{\sqrt{143}}{2\pi}\approx1.903.

(ii) Let kk be the number of XiX_i equal to +1+1. Then ∑Xi=k−(6−k)=2k−6\sum X_i=k-(6-k)=2k-6, and 2k−6=42k-6=4 gives k=5k=5. With k∼B(6,12)k\sim B(6,\tfrac12): P(∑i=16Xi=4)=(65)(12)6=664=𝟑𝟑𝟐.P\left(\sum_{i=1}^6X_i=4\right)=\binom65\left(\frac12\right)^6=\frac6{64}=\mathbf{\frac3{32}}.

✓ Checked by computer We inverted the matrix in Python: Σ = (1/143)[[18, 1], [1, 8]], so ρ = 1/12. We also checked numerically that C=143/(2π)C=\sqrt{143}/(2\pi) makes the density integrate to 1, and recomputed P=3/32P=3/32 for part (ii).

↑ Back to the question list

Let the joint probability density function of X and Y be f(x,y)=C⋅exp{−(x2−4y2−xy)}, where C is a constant. Find: (i) E(X) and V(X) (ii) E(Y) and V(Y) (iii) Correlation between X and Y. Also identify the distributions of X and Y.

2019 · Paper I · Q3b · 15 marks

Solution

Note on the question. As printed, the exponent is −(x2−4y2−xy)=−x2+4y2+xy-(x^2-4y^2-xy)=-x^2+4y^2+xy. For fixed xx this grows like e4y2e^{4y^2}, so no constant CC can make it a density. The intended density is almost certainly f(x,y)=Cexp{−(x2+4y2−xy)},f(x,y)=C\exp\{-(x^2+4y^2-xy)\}, matching the 2022 question above, and we solve that.

Recognise a bivariate normal. x2−xy+4y2=12(xy)(2−1−18)(xy),Σ−1=(2−1−18),|Σ−1|=15.x^2-xy+4y^2=\tfrac12\begin{pmatrix}x&y\end{pmatrix}\begin{pmatrix}2&-1\\-1&8\end{pmatrix}\begin{pmatrix}x\\y\end{pmatrix},\qquad\Sigma^{-1}=\begin{pmatrix}2&-1\\-1&8\end{pmatrix},\ |\Sigma^{-1}|=15. Σ=115(8112),C=152π.\Sigma=\frac1{15}\begin{pmatrix}8&1\\1&2\end{pmatrix},\qquad C=\frac{\sqrt{15}}{2\pi}.

(i) E(X)=0E(X)=0 and V(X)=815V(X)=\dfrac8{15}.

(ii) E(Y)=0E(Y)=0 and V(Y)=215V(Y)=\dfrac2{15}.

(iii) ρ=1/15815⋅215=116=𝟏𝟒.\rho=\frac{1/15}{\sqrt{\frac8{15}\cdot\frac2{15}}}=\frac1{\sqrt{16}}=\mathbf{\frac14}.

Distributions. (X,Y)(X,Y) is bivariate normal, so the marginals are normal: X∼N(0,815)X\sim N\!\left(0,\tfrac8{15}\right) and Y∼N(0,215)Y\sim N\!\left(0,\tfrac2{15}\right).

✓ Checked by computer We inverted the matrix for the intended density in Python: Σ = (1/15)[[8, 1], [1, 2]] and ρ = 1/4. We also checked numerically that C=15/(2π)C=\sqrt{15}/(2\pi) makes it integrate to 1.

↑ Back to the question list

(i) An accounts manager in a company classifies 75% of customers as ‘good credit’ and the rest as ‘risky credit’ depending on their ‘credit rating’. Customers in the ‘risky’ category allow their accounts to go overdue 50% of the time on average, whereas those in the ‘good’ category allow their accounts to become overdue only 10% of the time. What percentage of overdue accounts are held by customers in the ‘risky credit’ category? (ii) Suppose that two chess players played games and it was seen that the probability that Player I would win is 0.30, the probability that Player II would win is 0.45, and the probability that the game would end in a draw is 0.25. If these two chess players played 10 games, find the probability that Player I wins 6 games, Player II wins 2 games, and the remaining 2 games would be drawn.

2019 · Paper I · Q3c · 15 marks

Solution

(i) Bayes’ theorem. Let GG = good credit, RR = risky credit, OO = overdue. P(O)=P(G)P(O∣G)+P(R)P(O∣R)=0.75(0.10)+0.25(0.50)=0.075+0.125=0.20.P(O)=P(G)P(O\mid G)+P(R)P(O\mid R)=0.75(0.10)+0.25(0.50)=0.075+0.125=0.20. P(R∣O)=0.1250.20=0.625.P(R\mid O)=\frac{0.125}{0.20}=0.625. 62.5% of overdue accounts belong to risky-credit customers.

(ii) Multinomial. The 10 games are independent, each with outcome probabilities (0.30,0.45,0.25)(0.30,0.45,0.25). P(6,2,2)=10!6!2!2!(0.30)6(0.45)2(0.25)2=1260×0.000729×0.2025×0.0625≈0.0116.P(6,2,2)=\frac{10!}{6!\,2!\,2!}(0.30)^6(0.45)^2(0.25)^2=1260\times0.000729\times0.2025\times0.0625\approx\mathbf{0.0116}.

✓ Checked by computer We recomputed both parts in Python: 0.625 for (i), and 0.01163 for (ii).

↑ Back to the question list

If Z1 and Z2 be two independent standard normal variables, show that the distribution of the ratio Z1|Z2| is Cauchy with probability density function f(x)=1π(1+x2),−∞<x<∞

2016 · Paper I · Q1c · 10 marks

Solution

Set-up. Let R=|Z2|R=|Z_2|. For r>0r>0, P(R≤r)=2Φ(r)−1P(R\le r)=2\Phi(r)-1, so RR has density 2ϕ(r)2\phi(r) on (0,∞)(0,\infty). RR is independent of Z1Z_1.

Distribution of T=Z1/RT=Z_1/R. Given R=rR=r, T=Z1/r∼N(0,1/r2)T=Z_1/r\sim N(0,1/r^2), with density rϕ(tr)r\,\phi(tr). Averaging over RR: fT(t)=∫0∞rϕ(tr)2ϕ(r)dr=22π∫0∞re−r22(1+t2)dr.f_T(t)=\int_0^\infty r\,\phi(tr)\,2\phi(r)\,dr=\frac{2}{2\pi}\int_0^\infty r\,e^{-\frac{r^2}{2}(1+t^2)}\,dr.

Evaluate. ∫0∞re−ar2/2dr=1a\displaystyle\int_0^\infty r\,e^{-ar^2/2}dr=\frac1a with a=1+t2a=1+t^2. So fT(t)=1π⋅11+t2,−∞<t<∞.f_T(t)=\frac1\pi\cdot\frac1{1+t^2},\qquad-\infty<t<\infty. This is the Cauchy density. ◼\blacksquare

(Equivalently: Z1Z_1 is symmetric and independent of |Z2||Z_2|, so Z1/|Z2|Z_1/|Z_2| has the same distribution as Z1/Z2Z_1/Z_2, the classical Cauchy ratio.)

✓ Proof checked step by step Every step was checked. We also ran a Kolmogorov–Smirnov test in Python on 10⁶ simulated values of Z1/|Z2|Z_1/|Z_2| against the standard Cauchy: p-value 0.92, a good fit.

↑ Back to the question list

Let the probability function of X and Y be P(X=x)=(nx)px(1−p)n−x,x=0(1)n;P(Y=y)=(y−1r−1)pr(1−p)y−r,y=r,r+1,… Prove that P[X≥r]=P[Y≤n].

2014 · Paper I · Q4c · 15 marks

Solution

Interpretation.

  • X∼B(n,p)X\sim B(n,p) is the number of successes in nn Bernoulli trials.
  • YY has the negative binomial (Pascal) distribution: it is the number of the trial on which the rr-th success occurs. Indeed P(Y=y)P(Y=y) needs r−1r-1 successes in the first y−1y-1 trials and a success at trial yy: (y−1r−1)pr−1qy−r⋅p\binom{y-1}{r-1}p^{r-1}q^{y-r}\cdot p.

Proof. Take one infinite sequence of independent Bernoulli(pp) trials. Let XX be the number of successes among the first nn trials, and YY the trial at which the rr-th success occurs. These have exactly the two distributions in the question. Now Y≤n⇔the r-th success comes within the first n trials⇔there are at least r successes in the first n trials⇔X≥r.Y\le n\iff\text{the }r\text{-th success comes within the first }n\text{ trials}\iff\text{there are at least }r\text{ successes in the first }n\text{ trials}\iff X\ge r. The two events are the same event, so they have the same probability: P(X≥r)=P(Y≤n).◼P(X\ge r)=P(Y\le n).\qquad\blacksquare

In formulas. ∑x=rn(nx)pxqn−x=∑y=rn(y−1r−1)prqy−r.\sum_{x=r}^n\binom nxp^xq^{n-x}=\sum_{y=r}^n\binom{y-1}{r-1}p^rq^{y-r}.

✓ Proof checked step by step Every step was checked. We also confirmed the identity numerically in Python for n = 10, r = 4, p = 0.3: both sides equal 0.35039.

↑ Back to the question list

Derive the regression equation of X1 on X2, when X1 and X2 jointly follow trinomial distribution with parameters n, P1 and P2. Tube lights of a certain brand are graded as III, II or I according as they fail during the first 6000 hours and the next 6000 hours or survive the first 12000 hours respectively. 12 such new tube lights are put to life-testing simultaneously. 5 of them are found to be of grade III. How many of the remaining are expected to be of grade I?

2011 · Paper I · Q8b · 20 marks

Solution

Regression of X1X_1 on X2X_2. (X1,X2)(X_1,X_2) is trinomial: nn trials, each giving category 1 with probability P1P_1, category 2 with P2P_2, and category 3 otherwise. P(X1=x1∣X2=x2)=P(X1=x1,X2=x2)P(X2=x2)=(n−x2x1)(P11−P2)x1(1−P11−P2)n−x2−x1.P(X_1=x_1\mid X_2=x_2)=\frac{P(X_1=x_1,X_2=x_2)}{P(X_2=x_2)}=\binom{n-x_2}{x_1}\left(\frac{P_1}{1-P_2}\right)^{x_1}\left(1-\frac{P_1}{1-P_2}\right)^{n-x_2-x_1}. So, given X2=x2X_2=x_2, the other n−x2n-x_2 trials fall in category 1 with probability P1/(1−P2)P_1/(1-P_2), and X1∣X2=x2∼B(n−x2,P11−P2)X_1\mid X_2=x_2\sim B\!\left(n-x_2,\dfrac{P_1}{1-P_2}\right). The regression equation is E(X1∣X2=x2)=(n−x2)P11−P2=nP11−P2−P11−P2x2.E(X_1\mid X_2=x_2)=\frac{(n-x_2)P_1}{1-P_2}=\frac{nP_1}{1-P_2}-\frac{P_1}{1-P_2}\,x_2. It is linear in x2x_2, with slope −P11−P2-\dfrac{P_1}{1-P_2}.

Tube lights. Let $p_{\rm III},p_{\rm II},p_{\rm I}$ be the grade probabilities. Given that 5 of the 12 are grade III, each of the other 7 is grade I with probability $p_{\rm I}/(1-p_{\rm III})$. So $$E(\text{grade I among the rest}\mid5\text{ of grade III})=\frac{7\,p_{\rm I}}{p_{\rm I}+p_{\rm II}}.$$

Note on the question. The paper does not give the grade probabilities, so a single number needs one more assumption. The natural one is an exponential life (constant failure rate):

  • Then $P(\text{survive }12000\mid\text{survive }6000)=P(\text{survive }6000)=1-p_{\rm III}$, so $\dfrac{p_{\rm I}}{1-p_{\rm III}}=1-p_{\rm III}$.
  • Estimating $p_{\rm III}$ from the sample by 512\tfrac5{12} gives about 7×712≈4.17\times\tfrac7{12}\approx\mathbf{4.1} tube lights of grade I.

✓ Checked by computer We checked the conditional mean formula against the trinomial pmf in Python. We also recomputed both versions of the tube-light answer: $7p_{\rm I}/(p_{\rm I}+p_{\rm II})$ in general, and 4.08 under an exponential life model.

↑ Back to the question list

In a two-tier competitive examination, only candidates with a minimum score of x0 in the preliminary examination are allowed to sit for the main examination. The score distribution in the preliminary examination can be assumed to be normal with mean μ and s.d. σ. Derive the expressions for the mean and the variance of scores in the preliminary examination of the candidates sitting for the main examination.

2009 · Paper I · Q1a · 12 marks

Solution

Set-up. Scores X∼N(μ,σ2)X\sim N(\mu,\sigma^2). Those sitting the main examination have X≥x0X\ge x_0. Write α=x0−μσ,λ=ϕ(α)1−Φ(α).\alpha=\frac{x_0-\mu}\sigma,\qquad\lambda=\frac{\phi(\alpha)}{1-\Phi(\alpha)}. Then Z=(X−μ)/σZ=(X-\mu)/\sigma, restricted to Z≥αZ\ge\alpha, has density ϕ(z)1−Φ(α)\dfrac{\phi(z)}{1-\Phi(\alpha)} on z≥αz\ge\alpha.

Mean. Since ϕ′(z)=−zϕ(z)\phi'(z)=-z\phi(z), E(Z∣Z≥α)=11−Φ(α)∫α∞zϕ(z)dz=[−ϕ(z)]α∞1−Φ(α)=λ.E(Z\mid Z\ge\alpha)=\frac{1}{1-\Phi(\alpha)}\int_\alpha^\infty z\phi(z)\,dz=\frac{\big[-\phi(z)\big]_\alpha^\infty}{1-\Phi(\alpha)}=\lambda.

Second moment. Integrate by parts: ∫α∞z2ϕ(z)dz=[−zϕ(z)]α∞+∫α∞ϕ(z)dz=αϕ(α)+1−Φ(α).\int_\alpha^\infty z^2\phi(z)\,dz=\big[-z\phi(z)\big]_\alpha^\infty+\int_\alpha^\infty\phi(z)\,dz=\alpha\phi(\alpha)+1-\Phi(\alpha). So E(Z2∣Z≥α)=1+αλE(Z^2\mid Z\ge\alpha)=1+\alpha\lambda, and V(Z∣Z≥α)=1+αλ−λ2V(Z\mid Z\ge\alpha)=1+\alpha\lambda-\lambda^2.

Answer. Back to the score scale, X=μ+σZX=\mu+\sigma Z: E(X∣X≥x0)=μ+σλ,V(X∣X≥x0)=σ2[1+αλ−λ2].E(X\mid X\ge x_0)=\mu+\sigma\lambda,\qquad V(X\mid X\ge x_0)=\sigma^2\left[1+\alpha\lambda-\lambda^2\right]. The mean of the selected group is above μ\mu, by λ\lambda SDs. Its variance is below σ2\sigma^2, since selection cuts off the lower tail.

−3−2−1012300.20.4standardised score z = (x − μ)/σdensitycut-off αtail mean λ
Candidates in the main examination are the shaded tail (here the cut-off is half an SD above μ). Their mean score sits λ = φ(α)/[1 − Φ(α)] SDs above μ, about 1.14σ in this example.

✓ Derivation checked step by step Every step was checked. We also compared with SciPy’s truncated normal (μ = 50, σ = 10, x₀ = 60): mean 65.251 and variance 19.910, matching the formulas.

↑ Back to the question list

For the Pareto distribution with distribution function F(x)={1−(θ/x)α,x≥θ0,otherwise derive the p.d.f. Also obtain its harmonic mean and variance.

2009 · Paper I · Q4b · 20 marks

Solution

P.d.f. Differentiate FF: f(x)=ddx[1−θαx−α]=αθαxα+1,x≥θ(α,θ>0).f(x)=\frac{d}{dx}\left[1-\theta^\alpha x^{-\alpha}\right]=\frac{\alpha\,\theta^\alpha}{x^{\alpha+1}},\qquad x\ge\theta\quad(\alpha,\theta>0).

Harmonic mean. E(1X)=∫θ∞αθαxα+2dx=αθα(α+1)θα+1=α(α+1)θ.E\left(\frac1X\right)=\int_\theta^\infty\frac{\alpha\theta^\alpha}{x^{\alpha+2}}\,dx=\frac{\alpha\theta^\alpha}{(\alpha+1)\theta^{\alpha+1}}=\frac{\alpha}{(\alpha+1)\theta}. H.M.=1E(1/X)=(α+1)θα.\text{H.M.}=\frac1{E(1/X)}=\frac{(\alpha+1)\,\theta}{\alpha}.

Variance. E(X)=∫θ∞αθαxαdx=αθα−1(α>1),E(X2)=αθ2α−2(α>2).E(X)=\int_\theta^\infty\frac{\alpha\theta^\alpha}{x^\alpha}dx=\frac{\alpha\theta}{\alpha-1}\ (\alpha>1),\qquad E(X^2)=\frac{\alpha\theta^2}{\alpha-2}\ (\alpha>2). V(X)=αθ2α−2−α2θ2(α−1)2=αθ2(α−1)2(α−2),α>2.V(X)=\frac{\alpha\theta^2}{\alpha-2}-\frac{\alpha^2\theta^2}{(\alpha-1)^2}=\frac{\alpha\,\theta^2}{(\alpha-1)^2(\alpha-2)},\qquad\alpha>2. For α≤2\alpha\le2 the variance is infinite.

✓ Checked by computer We checked by simulation in Python (4 million Pareto draws, θ = 2, α = 3.5): harmonic mean 2.5714 against 2.5714, and variance 1.489 against 1.493.

↑ 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

The joint p.d.f. of X and Y is given by f(x,y)={n!x!y!(n−x−y)!p1xp2y(1−p1−p2)n−x−y,x,y=0(1)n,x+y≤n,0<p1,p2<1,p1+p2<10,otherwise. Find the correlation coefficient between X and Y, as also the regression equation of Y on X.

2009 · Paper I · Q7a · 20 marks

Solution

Moments. Marginally X∼B(n,p1)X\sim B(n,p_1) and Y∼B(n,p2)Y\sim B(n,p_2), so V(X)=np1(1−p1)V(X)=np_1(1-p_1) and V(Y)=np2(1−p2)V(Y)=np_2(1-p_2). X+YX+Y counts the trials in either of the first two classes, so X+Y∼B(n,p1+p2)X+Y\sim B(n,p_1+p_2), and V(X+Y)=n(p1+p2)(1−p1−p2).V(X+Y)=n(p_1+p_2)(1-p_1-p_2). Then 2Cov(X,Y)=V(X+Y)−V(X)−V(Y)=−2np1p22\,\text{Cov}(X,Y)=V(X+Y)-V(X)-V(Y)=-2np_1p_2, that is, Cov(X,Y)=−np1p2.\text{Cov}(X,Y)=-np_1p_2.

Correlation coefficient. ρ=−np1p2np1(1−p1)np2(1−p2)=−p1p2(1−p1)(1−p2).\rho=\frac{-np_1p_2}{\sqrt{np_1(1-p_1)\,np_2(1-p_2)}}=-\sqrt{\frac{p_1p_2}{(1-p_1)(1-p_2)}}. It is negative: more outcomes in class 1 leave fewer trials for class 2.

Regression of YY on XX. Given X=xX=x, the other n−xn-x trials fall in class 2 with probability p21−p1\dfrac{p_2}{1-p_1}, so Y∣X=x∼B(n−x,p21−p1)Y\mid X=x\sim B\!\left(n-x,\dfrac{p_2}{1-p_1}\right) and E(Y∣X=x)=(n−x)p21−p1.E(Y\mid X=x)=\frac{(n-x)\,p_2}{1-p_1}. The regression is linear, with slope −p21−p1-\dfrac{p_2}{1-p_1}.

✓ Checked by computer We summed the trinomial pmf in Python (n = 10, p₁ = 0.2, p₂ = 0.3): Cov = −0.6 = −np₁p₂, and ρ = −0.3273, matching the formula.

↑ Back to the question list

X follows an exponential distribution with parameter λ. Prove the following relations: (i) P(X>x1+x2)=P(X>x1)P(X>x2) (ii) E(X)=E(X−x∣X≥x)

2005 · Paper I · Q2a · 20 marks

Solution

Take X∼X\sim Exp(λ\lambda) with density λe−λx\lambda e^{-\lambda x}, x>0x>0. Its survival function is P(X>x)=e−λxP(X>x)=e^{-\lambda x} and its mean is E(X)=1/λE(X)=1/\lambda.

(i) P(X>x1+x2)=e−λ(x1+x2)=e−λx1e−λx2=P(X>x1)P(X>x2).◼P(X>x_1+x_2)=e^{-\lambda(x_1+x_2)}=e^{-\lambda x_1}e^{-\lambda x_2}=P(X>x_1)\,P(X>x_2).\qquad\blacksquare Equivalently, P(X>x1+x2∣X>x1)=P(X>x2)P(X>x_1+x_2\mid X>x_1)=P(X>x_2): the memoryless property.

(ii) By the memoryless property, given X≥xX\ge x the excess X−xX-x is again Exp(λ\lambda): for t>0t>0, P(X−x>t∣X≥x)=e−λ(x+t)e−λx=e−λt.P(X-x>t\mid X\ge x)=\frac{e^{-\lambda(x+t)}}{e^{-\lambda x}}=e^{-\lambda t}. So E(X−x∣X≥x)=∫0∞e−λtdt=1λ=E(X).◼E(X-x\mid X\ge x)=\int_0^\infty e^{-\lambda t}\,dt=\frac1\lambda=E(X).\qquad\blacksquare In words: however long an item has already lasted, its expected remaining life is the same as that of a new item.

✓ Proof checked step by step Every step was checked directly from the exponential survival function.

↑ Back to the question list

(i) Obtain the mean and the variance of the exponential distribution. (ii) Write down the reproductive property of the Poisson distribution. (iii) If x and y have unit variances and correlation 0.4, find the correlation between x+2y and 2x+y (iv) When is a statistic called the best unbiased estimate of a parameter?

2001 · Paper I · Q1e · 12 marks

Solution

(This 2001 question is also listed under 1.2 Expectation and moments.)

(i) Exponential distribution. For f(x)=θe−θxf(x)=\theta e^{-\theta x}, x>0x>0: E(X)=1θ,E(X2)=2θ2,V(X)=1θ2.E(X)=\frac1\theta,\qquad E(X^2)=\frac2{\theta^2},\qquad V(X)=\frac1{\theta^2}.

(ii) Reproductive property of the Poisson. If Xi∼P(λi)X_i\sim P(\lambda_i), i=1,…,ki=1,\dots,k, are independent, then ∑Xi∼P(∑λi)\sum X_i\sim P\!\left(\sum\lambda_i\right). Proof: the m.g.f.s multiply, ∏eλi(et−1)=e(∑λi)(et−1)\prod e^{\lambda_i(e^t-1)}=e^{(\sum\lambda_i)(e^t-1)}.

(iii) V(x+2y)=1+4+2(2)(0.4)=6.6V(x+2y)=1+4+2(2)(0.4)=6.6 and V(2x+y)=6.6V(2x+y)=6.6. Cov(x+2y,2x+y)=2+0.4+1.6+2=6,r=66.6=1011≈0.909.\text{Cov}(x+2y,2x+y)=2+0.4+1.6+2=6,\qquad r=\frac6{6.6}=\frac{10}{11}\approx\mathbf{0.909}.

(iv) A statistic TT is the best (uniformly minimum variance) unbiased estimate of θ\theta if Eθ(T)=θE_\theta(T)=\theta for all θ\theta, and Vθ(T)≤Vθ(T′)V_\theta(T)\le V_\theta(T') for every other unbiased T′T' and every θ\theta.

✓ Checked by computer We recomputed the correlation in part (iii) in Python: 6/6.6 = 0.909. Parts (i), (ii) and (iv) were checked against the standard results.

↑ Back to the question list

8 unbiased coins are tossed once. Find the probability that there are at least 7 heads.

2001 · Paper I · Q2ii · 15 marks

Solution

The number of heads is X∼B(8,12)X\sim B(8,\tfrac12). P(X≥7)=P(X=7)+P(X=8)=(87)128+(88)128=8+1256=𝟗𝟐𝟓𝟔≈0.035.P(X\ge7)=P(X=7)+P(X=8)=\binom87\frac1{2^8}+\binom88\frac1{2^8}=\frac{8+1}{256}=\mathbf{\frac9{256}}\approx0.035.

✓ Checked by computer We recomputed in Python: 9/256 = 0.0352.

↑ Back to the question list

An unbiased coin is tossed till 3 heads are obtained. Find the expected value of the number of tosses.

2001 · Paper I · Q3i · 15 marks

Solution

Model. Let XX be the number of tosses needed to get 3 heads. XX has the negative binomial (Pascal) distribution with r=3r=3 and p=12p=\tfrac12: P(X=x)=(x−12)(12)x,x=3,4,…P(X=x)=\binom{x-1}{2}\left(\frac12\right)^x,\qquad x=3,4,\dots

Expected value. XX is the sum of three independent geometric waiting times, one for each head, each with mean 1/p=21/p=2. So E(X)=rp=31/2=𝟔.E(X)=\frac rp=\frac3{1/2}=\mathbf 6.

✓ Checked by computer We recomputed E(X)=r/p=6E(X)=r/p=6.

↑ Back to the question list

Write the probability density function of Beta distribution of first kind. Find the value of its r-th moment about origin.

2001 · Paper I · Q4iii · 15 marks

Solution

P.d.f. The Beta distribution of the first kind with parameters m,n>0m,n>0 is f(x)=xm−1(1−x)n−1B(m,n),0<x<1,B(m,n)=∫01xm−1(1−x)n−1dx=Γ(m)Γ(n)Γ(m+n).f(x)=\frac{x^{m-1}(1-x)^{n-1}}{B(m,n)},\qquad0<x<1,\qquad B(m,n)=\int_0^1x^{m-1}(1-x)^{n-1}dx=\frac{\Gamma(m)\Gamma(n)}{\Gamma(m+n)}.

rr-th raw moment. μr′=E(Xr)=1B(m,n)∫01xm+r−1(1−x)n−1dx=B(m+r,n)B(m,n)=Γ(m+r)Γ(m+n)Γ(m)Γ(m+n+r).\mu_r'=E(X^r)=\frac{1}{B(m,n)}\int_0^1x^{m+r-1}(1-x)^{n-1}dx=\frac{B(m+r,n)}{B(m,n)}=\frac{\Gamma(m+r)\,\Gamma(m+n)}{\Gamma(m)\,\Gamma(m+n+r)}. For integer rr: μr′=m(m+1)⋯(m+r−1)(m+n)(m+n+1)⋯(m+n+r−1).\mu_r'=\frac{m(m+1)\cdots(m+r-1)}{(m+n)(m+n+1)\cdots(m+n+r-1)}.

Special cases. Mean=μ1′=mm+n,μ2′=m(m+1)(m+n)(m+n+1),Variance=mn(m+n)2(m+n+1).\text{Mean}=\mu_1'=\frac m{m+n},\qquad \mu_2'=\frac{m(m+1)}{(m+n)(m+n+1)},\qquad\text{Variance}=\frac{mn}{(m+n)^2(m+n+1)}.

✓ Derivation checked step by step Every step was checked. We also compared with SciPy for m = 2.5, n = 3, r = 3: the third moment is 0.146853 by both routes.

↑ Back to the question list

Prove that ∑r=0ne−λλrr!=1n!∫λ∞e−xxndx where λ>0

1999 · Paper I · Q2a · 20 marks

Solution

Notation. Let In=1n!∫λ∞e−xxndxI_n=\dfrac1{n!}\displaystyle\int_\lambda^\infty e^{-x}x^n\,dx. We show In=∑r=0ne−λλrr!I_n=\sum_{r=0}^ne^{-\lambda}\dfrac{\lambda^r}{r!} by induction on nn.

Base case. I0=∫λ∞e−xdx=e−λI_0=\int_\lambda^\infty e^{-x}dx=e^{-\lambda}. ✓

Recurrence. For n≥1n\ge1, integrate by parts with u=xnu=x^n, dv=e−xdxdv=e^{-x}dx: ∫λ∞e−xxndx=[−xne−x]λ∞+n∫λ∞e−xxn−1dx=λne−λ+n∫λ∞e−xxn−1dx.\int_\lambda^\infty e^{-x}x^n\,dx=\big[-x^ne^{-x}\big]_\lambda^\infty+n\int_\lambda^\infty e^{-x}x^{n-1}dx=\lambda^ne^{-\lambda}+n\int_\lambda^\infty e^{-x}x^{n-1}dx. Dividing by n!n!: In=e−λλnn!+In−1.I_n=e^{-\lambda}\frac{\lambda^n}{n!}+I_{n-1}.

Induction. If In−1=∑r=0n−1e−λλr/r!I_{n-1}=\sum_{r=0}^{n-1}e^{-\lambda}\lambda^r/r!, then In=∑r=0ne−λλr/r!I_n=\sum_{r=0}^{n}e^{-\lambda}\lambda^r/r!. ◼\blacksquare

Meaning. The left side is P(X≤n)P(X\le n) for X∼X\sim Poisson(λ\lambda). The right side is P(G>λ)P(G>\lambda) for G∼G\sim Gamma(n+1n+1, 1), the time of the (n+1)(n+1)-th event of a unit-rate Poisson process. Both say: “at most nn events by time λ\lambda”.

✓ Proof checked step by step Every step was checked. We also compared both sides numerically in Python for λ = 3.2, n = 5: both equal 0.894592.

↑ Back to the question list

X1 and X2 are independent random variables with Poisson distribution. Find the conditional distribution of X1 given X1+X2.

1999 · Paper I · Q2b · 20 marks

Solution

Let X1∼P(λ1)X_1\sim P(\lambda_1) and X2∼P(λ2)X_2\sim P(\lambda_2) be independent. Then X1+X2∼P(λ1+λ2)X_1+X_2\sim P(\lambda_1+\lambda_2).

For k=0,1,…,nk=0,1,\dots,n: P(X1=k∣X1+X2=n)=P(X1=k)P(X2=n−k)P(X1+X2=n)=e−λ1λ1kk!⋅e−λ2λ2n−k(n−k)!e−(λ1+λ2)(λ1+λ2)nn!=(nk)(λ1λ1+λ2)k(λ2λ1+λ2)n−k.P(X_1=k\mid X_1+X_2=n)=\frac{P(X_1=k)\,P(X_2=n-k)}{P(X_1+X_2=n)}=\frac{\dfrac{e^{-\lambda_1}\lambda_1^k}{k!}\cdot\dfrac{e^{-\lambda_2}\lambda_2^{n-k}}{(n-k)!}}{\dfrac{e^{-(\lambda_1+\lambda_2)}(\lambda_1+\lambda_2)^n}{n!}}=\binom nk\left(\frac{\lambda_1}{\lambda_1+\lambda_2}\right)^k\left(\frac{\lambda_2}{\lambda_1+\lambda_2}\right)^{n-k}.

Answer. X1∣(X1+X2=n)∼B(n,λ1λ1+λ2).X_1\mid(X_1+X_2=n)\sim B\!\left(n,\ \frac{\lambda_1}{\lambda_1+\lambda_2}\right). So E(X1∣X1+X2=n)=nλ1λ1+λ2E(X_1\mid X_1+X_2=n)=\dfrac{n\lambda_1}{\lambda_1+\lambda_2}. (With equal means, λ1=λ2\lambda_1=\lambda_2, it is B(n,12)B(n,\tfrac12).)

✓ Derivation checked step by step Every step was checked. We also compared with exact Poisson probabilities in Python (λ₁ = 2, λ₂ = 3, n = 7, k = 3): both give 0.290304.

↑ Back to the question list

Define negative binomial distribution and state its deductions. What will be the limiting distribution?

1998 · Paper I · Q4b · 20 marks

Solution

Definition. In a sequence of independent trials with success probability pp (q=1−pq=1-p), let XX be the number of failures before the rr-th success. Then P(X=x)=(x+r−1r−1)prqx=(−rx)pr(−q)x,x=0,1,2,…P(X=x)=\binom{x+r-1}{r-1}p^rq^x=\binom{-r}{x}p^r(-q)^x,\qquad x=0,1,2,\dots The terms are those of the binomial expansion of pr(1−q)−rp^r(1-q)^{-r}, with a negative index, hence the name.

Deductions (properties).

  • m.g.f.: M(t)=(p1−qet)rM(t)=\left(\dfrac p{1-qe^t}\right)^r for qet<1qe^t<1.
  • Moments: mean rqp\dfrac{rq}p and variance rqp2\dfrac{rq}{p^2}. The variance exceeds the mean, unlike the binomial (variance < mean) and the Poisson (variance = mean). This suits over-dispersed counts.
  • Special case: r=1r=1 gives the geometric distribution.
  • Additive property: the sum of independent NB(ri,p)NB(r_i,p) variables is NB(∑ri,p)NB(\sum r_i,p).
  • Link with the binomial: P(trials needed≤n)=P(B(n,p)≥r)P(\text{trials needed}\le n)=P(B(n,p)\ge r).
  • Poisson–gamma mixture: if X∣Λ∼P(Λ)X\mid\Lambda\sim P(\Lambda) and Λ\Lambda is gamma, XX is negative binomial. This is why it fits accident counts in a population of varying “proneness”.

Limiting distribution. Let r→∞r\to\infty and q→0q\to0 with rq=λrq=\lambda fixed. Then M(t)=(1−q1−qet)r=(1+λ(et−1)/r1−λet/r)r→eλ(et−1),M(t)=\left(\frac{1-q}{1-qe^t}\right)^r=\left(1+\frac{\lambda(e^t-1)/r}{1-\lambda e^t/r}\right)^r\to e^{\lambda(e^t-1)}, the m.g.f. of Poisson(λ\lambda). So the negative binomial tends to the Poisson distribution. (Also, as r→∞r\to\infty with pp fixed, the standardised variable tends to N(0,1)N(0,1), by the CLT.)

✓ Answer checked step by step Every point was checked against the standard properties of the negative binomial distribution, including the m.g.f. limit to the Poisson.

↑ Back to the question list

Let X be a binomial random variable with parameters n and p. If Y is a random variable defined by Y=3X+5, find the probability function Y, E(Y) and V(Y)

1997 · Paper I · Q2b · 20 marks

Solution

Probability function. Y=3X+5Y=3X+5 is a one-to-one map of {0,1,…,n}\{0,1,\dots,n\} onto {5,8,11,…,3n+5}\{5,8,11,\dots,3n+5\}. So P(Y=y)=P(X=y−53)=(n(y−5)/3)p(y−5)/3qn−(y−5)/3,y=5,8,…,3n+5,P(Y=y)=P\left(X=\frac{y-5}3\right)=\binom{n}{(y-5)/3}p^{(y-5)/3}q^{\,n-(y-5)/3},\qquad y=5,8,\dots,3n+5, and 0 otherwise.

Moments. For a linear function, E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b and V(aX+b)=a2V(X)V(aX+b)=a^2V(X): E(Y)=3np+5,V(Y)=9npq.E(Y)=3np+5,\qquad V(Y)=9npq.

✓ Checked by computer We checked E(Y)=3np+5E(Y)=3np+5 and V(Y)=9npqV(Y)=9npq against the binomial moments.

↑ Back to the question list

Show that under certain conditions (to be precisely stated) the Poisson distribution tends to the normal distribution.

1997 · Paper I · Q4b · 20 marks

Solution

Condition. If X∼X\sim Poisson(λ\lambda) and λ→∞\lambda\to\infty, then Z=X−λλ→dN(0,1).Z=\frac{X-\lambda}{\sqrt\lambda}\xrightarrow{d}N(0,1).

Proof (m.g.f.). MX(t)=eλ(et−1)M_X(t)=e^{\lambda(e^t-1)}, so MZ(t)=e−tλMX(tλ)=exp{λ(et/λ−1)−tλ}.M_Z(t)=e^{-t\sqrt\lambda}M_X\!\left(\frac t{\sqrt\lambda}\right)=\exp\left\{\lambda\left(e^{t/\sqrt\lambda}-1\right)-t\sqrt\lambda\right\}. Expand et/λ=1+tλ+t22λ+t36λ3/2+⋯e^{t/\sqrt\lambda}=1+\dfrac t{\sqrt\lambda}+\dfrac{t^2}{2\lambda}+\dfrac{t^3}{6\lambda^{3/2}}+\cdots: λ(et/λ−1)−tλ=t22+t36λ+⋯→t22(λ→∞).\lambda\left(e^{t/\sqrt\lambda}-1\right)-t\sqrt\lambda=\frac{t^2}2+\frac{t^3}{6\sqrt\lambda}+\cdots\ \to\ \frac{t^2}2\quad(\lambda\to\infty). So MZ(t)→et2/2M_Z(t)\to e^{t^2/2}, the m.g.f. of N(0,1)N(0,1). By the uniqueness/continuity theorem for m.g.f.s, Z→dN(0,1)Z\xrightarrow{d}N(0,1). ◼\blacksquare

In practice. For large λ\lambda, X≈N(λ,λ)X\approx N(\lambda,\lambda). With a continuity correction, P(X≤k)≈Φ(k+0.5−λλ)P(X\le k)\approx\Phi\!\left(\dfrac{k+0.5-\lambda}{\sqrt\lambda}\right). (Alternatively: Poisson(λ\lambda) for integer λ=n\lambda=n is a sum of nn i.i.d. Poisson(1) variables, so the CLT applies.)

✓ Proof checked step by step Every step was checked through the m.g.f. expansion. We also measured in Python the largest gap between the Poisson and normal distribution functions: 0.129, 0.053, 0.027 and 0.013 for λ = 4, 25, 100 and 400, shrinking like 1/λ1/\sqrt\lambda.

↑ Back to the question list

Show that under suitable conditions the binomial distribution approaches the Poisson distribution.

1996 · Paper I · Q2c · 20 marks

Solution

Conditions. n→∞n\to\infty and p→0p\to0 with np=λnp=\lambda held fixed (a large number of trials, each with a small chance of success).

Proof. With p=λ/np=\lambda/n, for fixed xx: (nx)px(1−p)n−x=n(n−1)⋯(n−x+1)x!⋅λxnx(1−λn)n(1−λn)−x\binom nxp^x(1-p)^{n-x}=\frac{n(n-1)\cdots(n-x+1)}{x!}\cdot\frac{\lambda^x}{n^x}\left(1-\frac\lambda n\right)^{n}\left(1-\frac\lambda n\right)^{-x} =λxx!⋅(1−1n)⋯(1−x−1n)⏟→1⋅(1−λn)n⏟→e−λ⋅(1−λn)−x⏟→1→e−λλxx!.=\frac{\lambda^x}{x!}\cdot\underbrace{\left(1-\frac1n\right)\cdots\left(1-\frac{x-1}n\right)}_{\to1}\cdot\underbrace{\left(1-\frac\lambda n\right)^{n}}_{\to e^{-\lambda}}\cdot\underbrace{\left(1-\frac\lambda n\right)^{-x}}_{\to1}\ \to\ \frac{e^{-\lambda}\lambda^x}{x!}. So B(n,p)→B(n,p)\to Poisson(λ\lambda). ◼\blacksquare

By m.g.f. (q+pet)n=(1+λ(et−1)n)n→eλ(et−1)(q+pe^t)^n=\left(1+\dfrac{\lambda(e^t-1)}n\right)^n\to e^{\lambda(e^t-1)}, the Poisson m.g.f.

Use. For counts of rare events (misprints per page, defectives in a large lot), we may use Poisson(npnp) in place of B(n,p)B(n,p). The rule of thumb is n≥20n\ge20 with p≤0.05p\le0.05.

✓ Proof checked step by step Every step was checked. We also measured in Python the largest pmf gap between B(n, 3/n) and Poisson(3): 0.043, 0.0034 and 0.00034 for n = 10, 100 and 1000.

↑ Back to the question list

Give an example where a negative binomial distribution is appropriate. Give its pmf and determine the mean and variance of the distribution.

1995 · Paper I · Q4c · 20 marks

Solution

Example. A quality inspector tests items from a production line, each defective with probability pp, until she finds r=3r=3 defectives. The number of good items XX she tests before the third defective is negative binomial. (Other examples: the number of failures before the rr-th success in sales calls; accident counts per worker when accident-proneness varies.)

P.m.f. With q=1−pq=1-p, P(X=x)=(x+r−1r−1)prqx,x=0,1,2,…P(X=x)=\binom{x+r-1}{r-1}p^rq^x,\qquad x=0,1,2,\dots

Mean and variance. XX is the sum of rr independent geometric variables GiG_i, each counting the failures before one success, with P(Gi=g)=qgp,E(Gi)=qp,V(Gi)=qp2.P(G_i=g)=q^gp,\qquad E(G_i)=\frac qp,\qquad V(G_i)=\frac q{p^2}. So E(X)=rqp,V(X)=rqp2.E(X)=\frac{rq}p,\qquad V(X)=\frac{rq}{p^2}. (From the m.g.f. M(t)=pr(1−qet)−rM(t)=p^r(1-qe^t)^{-r}: M′(0)=rq/pM'(0)=rq/p and M″(0)=rq(1+rq)/p2M''(0)=rq(1+rq)/p^2, giving the same variance.) Since p<1p<1, the variance always exceeds the mean.

(If XX counts the trials up to the rr-th success instead, the mean is r/pr/p and the variance is the same, rq/p2rq/p^2.)

✓ Checked by computer We checked the mean rq/prq/p and variance rq/p2rq/p^2 against the m.g.f. derivatives.

↑ Back to the question list

More on Probability

Questions: UPSC Civil Services (Main) Examination, Statistics Paper I, 1995–2025. 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