Menu Close

Basics of sampling and simple random sampling: UPSC Statistics Optional PYQ Solutions (1996–2026)

All 29 questions UPSC has asked on basics of sampling and simple random sampling in the Statistics Optional (Paper I, Sampling Theory and Design of Experiments) from 1996 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Sampling Theory and Design of Experiments 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 · 5d 2025 · 5d 2023 · 7a 2022 · 7c 2021 · 1a 2021 · 5d 2020 · 5c 2019 · 5c 2016 · 5d 2014 · 5c 2013 · 6c 2012 · 5d 2012 · 7a 2011 · 5c 2011 · 6b 2010 · 5e 2010 · 6c 2009 · 5c 2006 · 5c 2006 · 5e 2004 · 5c 2004 · 5d 2001 · 4i 2001 · 6i 2000 · 7a(i) 1998 · 1a 1998 · 1b 1997 · 1a 1996 · 1a

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

Derive the variance of the sample mean under simple random sample without replacement (SRSWOR).

2026 · Paper I · Q5d · 10 marks

Solution

Set-up. A population has NN units with values Y1,…,YNY_1,\dots,Y_N, mean Y‾=1N∑Yi\bar Y=\frac1N\sum Y_i and S2=1N−1∑i=1N(Yi−Y‾)2.S^2=\frac{1}{N-1}\sum_{i=1}^{N}(Y_i-\bar Y)^2 . We draw nn units by SRSWOR, so each of the (Nn)\binom Nn samples has probability 1/(Nn)1/\binom Nn. The sample mean is y‾=1n∑i∈syi\bar y=\frac1n\sum_{i\in s}y_i.

Indicator form. Let ai=1a_i=1 if unit ii is in the sample and 00 otherwise. Then y‾=1n∑i=1NaiYi.\bar y=\frac1n\sum_{i=1}^{N}a_iY_i . Here the YiY_i are fixed numbers and only the aia_i are random.

  • P(ai=1)=(N−1n−1)/(Nn)=nNP(a_i=1)=\binom{N-1}{n-1}\big/\binom Nn=\dfrac nN, so E(ai)=nNE(a_i)=\dfrac nN and V(ai)=nN(1−nN)V(a_i)=\dfrac nN\left(1-\dfrac nN\right).
  • For i≠ji\ne j: P(ai=aj=1)=n(n−1)N(N−1)P(a_i=a_j=1)=\dfrac{n(n-1)}{N(N-1)}, so Cov(ai,aj)=n(n−1)N(N−1)−n2N2=−n(N−n)N2(N−1).\operatorname{Cov}(a_i,a_j)=\frac{n(n-1)}{N(N-1)}-\frac{n^2}{N^2}=-\frac{n(N-n)}{N^2(N-1)} .

Expectation. E(y‾)=1n∑nNYi=Y‾E(\bar y)=\frac1n\sum \frac nN Y_i=\bar Y, so y‾\bar y is unbiased.

Variance. Since y‾−Y‾=1n∑ai(Yi−Y‾)\bar y-\bar Y=\frac1n\sum a_i(Y_i-\bar Y) (because ∑(Yi−Y‾)=0\sum(Y_i-\bar Y)=0), write Di=Yi−Y‾D_i=Y_i-\bar Y: V(y‾)=1n2[∑iDi2V(ai)+∑i≠jDiDjCov(ai,aj)].V(\bar y)=\frac1{n^2}\Big[\sum_i D_i^2V(a_i)+\sum_{i\ne j}D_iD_j\operatorname{Cov}(a_i,a_j)\Big]. Now ∑i≠jDiDj=(∑Di)2−∑Di2=−∑Di2\sum_{i\ne j}D_iD_j=\big(\sum D_i\big)^2-\sum D_i^2=-\sum D_i^2. So V(y‾)=1n2∑Di2[nN⋅N−nN+n(N−n)N2(N−1)]=1n2∑Di2⋅n(N−n)N(N−1).V(\bar y)=\frac1{n^2}\sum D_i^2\left[\frac nN\cdot\frac{N-n}{N}+\frac{n(N-n)}{N^2(N-1)}\right]=\frac1{n^2}\sum D_i^2\cdot\frac{n(N-n)}{N(N-1)} . Using ∑Di2=(N−1)S2\sum D_i^2=(N-1)S^2: V(y‾)=N−nNnS2=(1n−1N)S2=1−fnS2,f=nN.\boxed{V(\bar y)=\frac{N-n}{Nn}\,S^2=\left(\frac1n-\frac1N\right)S^2=\frac{1-f}{n}S^2,\qquad f=\frac nN .} The factor 1−f1-f is the finite population correction. When NN is large compared with nn it is close to 1 and V(y‾)≈S2/nV(\bar y)\approx S^2/n.

✓ Derivation checked step by step Every step was checked: E(aᵢ) = n/N, the variance and covariance of the inclusion indicators, and the final (N − n)S²/(Nn), which we also confirmed by listing every sample of a small population.

↑ Back to the question list

Assume that in a population of very large number of items, proportion of defective items is 0·30. What should be the size of the sample, if a simple random sample is to be drawn from this population to estimate the percent defective within 2 percent of the true value with 95·5 percent probability? [Given P(0≤Z≤1⋅96)=0⋅475; and P(0≤Z≤2⋅005)=0⋅4775].

2025 · Paper I · Q5d · 10 marks

Solution

Choosing zz. “95.5 percent probability” means P(|Z|≤z)=0.955P(|Z|\le z)=0.955, so P(0≤Z≤z)=0.4775P(0\le Z\le z)=0.4775. From the table supplied, z=2.005z=2.005. (The 0.475 value, z=1.96z=1.96, is for 95 percent and is not needed.)

Formula. The population is very large, so we sample effectively with replacement. The sample proportion pp has V(p)=PQ/nV(p)=PQ/n with P=0.30P=0.30, Q=0.70Q=0.70. We want P(|p−P|≤d)=0.955⇔zPQn=d⇔n=z2PQd2.P(|p-P|\le d)=0.955\quad\Longleftrightarrow\quad z\sqrt{\frac{PQ}{n}}=d\quad\Longleftrightarrow\quad n=\frac{z^2PQ}{d^2}.

Margin. “Within 2 percent of the true value” means the estimate of percent defective should be within 2 percentage points, so d=0.02d=0.02. n=(2.005)2(0.30)(0.70)(0.02)2=4.0200×0.210.0004=2110.5.n=\frac{(2.005)^2(0.30)(0.70)}{(0.02)^2}=\frac{4.0200\times0.21}{0.0004}=2110.5 . We round up: a sample of 2,111 items is needed. (With the rounded value z=2z=2 the answer is 2,100.)

If “2 percent” is read as relative error, d=0.02×0.30=0.006d=0.02\times0.30=0.006 and n=4.0200×0.21/0.000036≈23,451n=4.0200\times0.21/0.000036\approx23{,}451. The usual reading in this kind of question is the absolute one above.

✓ Checked by computer We checked in Python: n = 2.005² × 0.30 × 0.70 / 0.02² = 2110.5, so 2111. With the relative reading the same formula gives 23,451.

↑ Back to the question list

Discuss the difference between sampling for variables and sampling for attributes with examples. For a qualitative characteristic, find an unbiased estimator of population proportion along with its variance when sample is drawn by simple random sampling without replacement. Also obtain an unbiased estimator of this variance.

2023 · Paper I · Q7a · 20 marks

Solution

Variables versus attributes.

  • Sampling for variables: the characteristic is measured on a numerical scale, and we estimate a mean, total or variance. Examples: monthly income of households, yield of paddy per hectare, weight of packets.
  • Sampling for attributes: each unit is only classified as having or not having a quality, and we estimate a proportion or a total count. Examples: proportion of smokers, proportion of defective bulbs, number of households owning a vehicle.

Attribute sampling is the special case of variable sampling in which YiY_i takes only the values 0 and 1. It usually needs a larger sample for the same relative precision when the proportion is small.

Estimator of the proportion. Let Yi=1Y_i=1 if unit ii has the attribute and 00 otherwise. Let A=∑YiA=\sum Y_i, so P=A/NP=A/N and Q=1−PQ=1-P. In an SRSWOR sample of size nn, let aa units have the attribute and p=a/np=a/n, q=1−pq=1-p.

  • pp is just the sample mean y‾\bar y of the 0–1 variable, so E(p)=Y‾=PE(p)=\bar Y=P. pp is unbiased.

Variance. For a 0–1 variable, ∑Yi2=∑Yi=NP\sum Y_i^2=\sum Y_i=NP, so S2=1N−1(∑Yi2−NY‾2)=NPQN−1.S^2=\frac{1}{N-1}\Big(\sum Y_i^2-N\bar Y^2\Big)=\frac{NPQ}{N-1}. From V(y‾)=N−nNnS2V(\bar y)=\frac{N-n}{Nn}S^2: V(p)=N−nN−1⋅PQn.\boxed{V(p)=\frac{N-n}{N-1}\cdot\frac{PQ}{n}.}

Unbiased estimator of the variance. In SRSWOR the sample variance s2s^2 is unbiased for S2S^2. For 0–1 data, s2=1n−1(a−np2)=npqn−1s^2=\frac{1}{n-1}(a-np^2)=\frac{npq}{n-1}. So E(npqn−1)=NPQN−1,E\left(\frac{npq}{n-1}\right)=\frac{NPQ}{N-1}, and v(p)=N−nNn⋅npqn−1=N−nN(n−1)pq\boxed{v(p)=\frac{N-n}{Nn}\cdot\frac{npq}{n-1}=\frac{N-n}{N(n-1)}\,pq} is an unbiased estimator of V(p)V(p).

✓ Derivation checked step by step Every step was checked: E(p) = P, V(p) = (N − n)PQ/((N − 1)n), and the unbiasedness of v(p) = (N − n)pq/(N(n − 1)), which follow from the SRSWOR results for a 0–1 variable.

↑ Back to the question list

A sample of size n is drawn with equal probability and without replacement from a population with size N. Let Y‾̂N=∑r=1naryr be any linear estimate of the population mean Y‾N, where ar are constants and yr denotes the value of the unit included in the sample at the rth draw. (i) Show that Y‾̂N is an unbiased estimate of Y‾N if and only if ∑r=1nar=1 (ii) Under above condition V(Y‾̂N)=S2N[N∑r=1nar2−1] (iii) If ar=1n, for what value of n may this variance of the sample mean in simple random sampling without replacement be exactly half the variance of the mean of a random sample of the same size taken with replacement?

2022 · Paper I · Q7c · 15 marks

Solution

Distribution of a single draw. In SRSWOR, the unit at the rr-th draw is equally likely to be any of the NN units. So for every rr, E(yr)=Y‾,V(yr)=σ2=N−1NS2.E(y_r)=\bar Y,\qquad V(y_r)=\sigma^2=\frac{N-1}{N}S^2 . For two different draws r≠sr\ne s, the pair is equally likely to be any ordered pair of distinct units, so Cov(yr,ys)=1N(N−1)∑i≠j(Yi−Y‾)(Yj−Y‾)=−1N(N−1)∑(Yi−Y‾)2=−S2N.\operatorname{Cov}(y_r,y_s)=\frac{1}{N(N-1)}\sum_{i\ne j}(Y_i-\bar Y)(Y_j-\bar Y)=-\frac{1}{N(N-1)}\sum(Y_i-\bar Y)^2=-\frac{S^2}{N}.

(i) Unbiasedness. E(∑aryr)=Y‾∑arE\big(\sum a_ry_r\big)=\bar Y\sum a_r. This equals Y‾\bar Y for every population if and only if ∑r=1nar=1\sum_{r=1}^{n}a_r=1.

(ii) Variance under ∑ar=1\sum a_r=1. V=∑rar2N−1NS2−S2N∑r≠saras.V=\sum_r a_r^2\,\frac{N-1}{N}S^2-\frac{S^2}{N}\sum_{r\ne s}a_ra_s . With ∑r≠saras=(∑ar)2−∑ar2=1−∑ar2\sum_{r\ne s}a_ra_s=\big(\sum a_r\big)^2-\sum a_r^2=1-\sum a_r^2: V=S2N[(N−1)∑ar2−1+∑ar2]=S2N[N∑r=1nar2−1].V=\frac{S^2}{N}\Big[(N-1)\sum a_r^2-1+\sum a_r^2\Big]=\boxed{\frac{S^2}{N}\Big[N\sum_{r=1}^{n}a_r^2-1\Big].}

(iii) ar=1/na_r=1/n. Then ∑ar2=1/n\sum a_r^2=1/n, and VWOR(y‾)=S2N(Nn−1)=N−nNnS2.V_{\text{WOR}}(\bar y)=\frac{S^2}{N}\left(\frac Nn-1\right)=\frac{N-n}{Nn}S^2 . With replacement, VWR(y‾)=σ2n=N−1NnS2V_{\text{WR}}(\bar y)=\dfrac{\sigma^2}{n}=\dfrac{N-1}{Nn}S^2. Setting VWOR=12VWRV_{\text{WOR}}=\tfrac12V_{\text{WR}}: N−n=N−12⇒n=N+12.N-n=\frac{N-1}{2}\quad\Longrightarrow\quad \boxed{n=\frac{N+1}{2}.} So the variance without replacement is exactly half when the sample takes (just over) half the population. For example, N=99N=99 needs n=50n=50. This needs NN odd for nn to be a whole number.

✓ Derivation checked step by step Every step was checked, and we confirmed (i) and (ii) by listing all 120 ordered samples of size 3 from a population of 6 with unequal a’s. For (iii), n = (N + 1)/2.

↑ Back to the question list

A production unit manufacturing surgical masks is concerned about the quality of their masks. A random sample of n masks are inspected to estimate ‘p’, the probability of manufacturing a defective mask. How large a sample is required so that the estimate of p lies in the range p±0.1 with probability 0.95?

2021 · Paper I · Q1a · 10 marks

Solution

Requirement. We want P(|p̂−p|≤0.1)=0.95P(|\hat p-p|\le0.1)=0.95, where p̂\hat p is the proportion defective in a sample of nn masks. Production is a large (effectively infinite) population, so V(p̂)=p(1−p)n,V(\hat p)=\frac{p(1-p)}{n}, and by the normal approximation 1.96p(1−p)n≤0.1⇔n≥(1.96)2p(1−p)(0.1)2.1.96\sqrt{\frac{p(1-p)}{n}}\le0.1\quad\Longleftrightarrow\quad n\ge\frac{(1.96)^2p(1-p)}{(0.1)^2}.

Unknown pp. The required nn depends on pp, which we are trying to estimate. Since p(1−p)≤14p(1-p)\le\tfrac14 for all pp, with equality at p=12p=\tfrac12, the safe choice is n≥(1.96)2×0.250.01=96.04.n\ge\frac{(1.96)^2\times0.25}{0.01}=96.04 . So n=97n=97 masks guarantee the required precision whatever the true pp. If past records suggested, say, p≈0.1p\approx0.1, a smaller sample would do: n≥1.962(0.09)/0.01=34.6n\ge1.96^2(0.09)/0.01=34.6, so 35.

✓ Checked by computer We checked in Python: n = 1.96² × 0.25 / 0.1² = 96.04, so 97 masks.

↑ Back to the question list

A sample of size n is drawn from a population having N units by simple random sampling without replacement. A sub-sample of n1 units is drawn from the n units by simple random sampling without replacement. Let y‾1 denote the mean based on n1 units and y‾2, the mean based on n2=n−n1 units. Consider the estimator of the population mean Y‾N given by: Y‾̂N=wy‾1+(1−w)y‾2;0<w<1 Show that E(Y‾̂N)=Y‾N, and obtain its variance.

2021 · Paper I · Q5d · 10 marks

Solution

Key facts.

  1. A simple random subsample of n1n_1 units from an SRSWOR sample of nn units is itself an SRSWOR sample of n1n_1 units from the population. Likewise the remaining n2=n−n1n_2=n-n_1 units form an SRSWOR sample of size n2n_2. So E(y‾1)=E(y‾2)=Y‾,V(y‾1)=(1n1−1N)S2,V(y‾2)=(1n2−1N)S2.E(\bar y_1)=E(\bar y_2)=\bar Y,\quad V(\bar y_1)=\Big(\frac1{n_1}-\frac1N\Big)S^2,\quad V(\bar y_2)=\Big(\frac1{n_2}-\frac1N\Big)S^2 .
  2. The two parts are disjoint. For disjoint SRSWOR parts, each pair of units (one from each part) has covariance −S2/N-S^2/N (as for two different draws). So Cov(y‾1,y‾2)=1n1n2⋅n1n2(−S2N)=−S2N.\operatorname{Cov}(\bar y_1,\bar y_2)=\frac{1}{n_1n_2}\cdot n_1n_2\left(-\frac{S^2}{N}\right)=-\frac{S^2}{N}.

Unbiasedness. E(Y‾̂N)=wY‾+(1−w)Y‾=Y‾N.E\big(\hat{\bar Y}_N\big)=w\bar Y+(1-w)\bar Y=\bar Y_N .

Variance. V(Y‾̂N)=w2V(y‾1)+(1−w)2V(y‾2)+2w(1−w)Cov(y‾1,y‾2)V\big(\hat{\bar Y}_N\big)=w^2V(\bar y_1)+(1-w)^2V(\bar y_2)+2w(1-w)\operatorname{Cov}(\bar y_1,\bar y_2) =S2[w2n1+(1−w)2n2−w2+(1−w)2+2w(1−w)N]=S2[w2n1+(1−w)2n2−1N].=S^2\left[\frac{w^2}{n_1}+\frac{(1-w)^2}{n_2}-\frac{w^2+(1-w)^2+2w(1-w)}{N}\right]=\boxed{S^2\left[\frac{w^2}{n_1}+\frac{(1-w)^2}{n_2}-\frac1N\right].}

Remark. This is smallest when w=n1/nw=n_1/n, which gives (1n−1N)S2\left(\frac1n-\frac1N\right)S^2, the variance of the ordinary mean y‾\bar y of all nn units. Any other weight is less efficient.

✓ Derivation checked step by step Every step was checked, and we confirmed E and V by listing all ordered samples of size 4 from a population of 6, with n₁ = 1 and w = 0.3.

↑ Back to the question list

A population consists of 6 units with values 6, 3, 1, 4, 2 and 5. Write down all possible samples of size 2 without replacement and verify that V(y‾)=N−nN.nS2.

2020 · Paper I · Q5c · 10 marks

Solution

Population. N=6N=6, values 6,3,1,4,2,56,3,1,4,2,5. Y‾=216=3.5,S2=15∑(Yi−3.5)2=17.55=3.5.\bar Y=\frac{21}{6}=3.5,\qquad S^2=\frac{1}{5}\sum(Y_i-3.5)^2=\frac{17.5}{5}=3.5 .

All (62)=15\binom62=15 samples of size 2.

Sample Mean y‾\bar y (y‾−3.5)2(\bar y-3.5)^2
(6, 3) 4.5 1.00
(6, 1) 3.5 0
(6, 4) 5.0 2.25
(6, 2) 4.0 0.25
(6, 5) 5.5 4.00
(3, 1) 2.0 2.25
(3, 4) 3.5 0
(3, 2) 2.5 1.00
(3, 5) 4.0 0.25
(1, 4) 2.5 1.00
(1, 2) 1.5 4.00
(1, 5) 3.0 0.25
(4, 2) 3.0 0.25
(4, 5) 4.5 1.00
(2, 5) 3.5 0
Total 52.5 17.50

Check.

  • E(y‾)=52.5/15=3.5=Y‾E(\bar y)=52.5/15=3.5=\bar Y, so y‾\bar y is unbiased.
  • V(y‾)=115∑(y‾−3.5)2=17.515=1.1667V(\bar y)=\dfrac{1}{15}\sum(\bar y-3.5)^2=\dfrac{17.5}{15}=1.1667.
  • Formula: N−nNnS2=6−26×2×3.5=412×3.5=1.1667\dfrac{N-n}{Nn}S^2=\dfrac{6-2}{6\times2}\times3.5=\dfrac{4}{12}\times3.5=1.1667.

The two agree, which verifies V(y‾)=N−nNnS2V(\bar y)=\dfrac{N-n}{Nn}S^2.

✓ Checked by computer We checked in Python: the 15 sample means average 3.5 = Ȳ, their variance is 1.1667, and (N − n)S²/(Nn) = (4/12)(3.5) = 1.1667.

↑ Back to the question list

In Simple Random Sampling with Replacement (SRSWR) (with usual notation), show that (i) E(y‾)=Y‾, and (ii) Var(y‾)=N−1NnSy2.

2019 · Paper I · Q5c · 10 marks

Solution

Set-up. In SRSWR, each of the nn draws is independent and picks unit ii with probability 1/N1/N. Let yry_r be the value at draw rr, and σ2=1N∑(Yi−Y‾)2=N−1NSy2.\sigma^2=\frac1N\sum(Y_i-\bar Y)^2=\frac{N-1}{N}S_y^2 .

(i) For every draw, E(yr)=∑iYi⋅1N=Y‾E(y_r)=\sum_i Y_i\cdot\frac1N=\bar Y. So E(y‾)=1n∑r=1nE(yr)=Y‾.E(\bar y)=\frac1n\sum_{r=1}^{n}E(y_r)=\bar Y .

(ii) Each draw has V(yr)=E(yr−Y‾)2=1N∑(Yi−Y‾)2=σ2V(y_r)=E(y_r-\bar Y)^2=\frac1N\sum(Y_i-\bar Y)^2=\sigma^2. The draws are independent, so all covariances are zero and V(y‾)=1n2∑r=1nV(yr)=σ2n=N−1NnSy2.V(\bar y)=\frac{1}{n^2}\sum_{r=1}^{n}V(y_r)=\frac{\sigma^2}{n}=\frac{N-1}{Nn}S_y^2 . ◼\blacksquare

✓ Proof checked step by step We checked the proof, and confirmed by listing all 216 ordered samples of size 3 from a population of 6 that E(ȳ) = Ȳ and V(ȳ) = (N − 1)S²/(Nn).

↑ Back to the question list

In SRSWOR (N,n) resulting in unlabelled observations y1,y2,…,yn, show that the sample mean y‾ is the best linear unbiased estimator of the population mean.

2016 · Paper I · Q5d · 10 marks

Solution

The class of estimators. With unlabelled observations we only know the values y1,…,yny_1,\dots,y_n in the order drawn, not which population units they came from. A linear estimator is therefore of the form t=∑r=1naryr,t=\sum_{r=1}^{n}a_ry_r, with constants ara_r that may depend on the draw number rr but not on unit labels.

Unbiasedness. In SRSWOR every draw has the same distribution, so E(yr)=Y‾E(y_r)=\bar Y and E(t)=Y‾∑arE(t)=\bar Y\sum a_r. Thus tt is unbiased for every population if and only if ∑ar=1\sum a_r=1.

Variance. Using V(yr)=N−1NS2V(y_r)=\frac{N-1}{N}S^2 and Cov(yr,ys)=−S2N\operatorname{Cov}(y_r,y_s)=-\frac{S^2}{N} for r≠sr\ne s, and ∑ar=1\sum a_r=1, we get (as in the standard derivation) V(t)=S2N[N∑ar2−1].V(t)=\frac{S^2}{N}\Big[N\sum a_r^2-1\Big].

Minimising. We must minimise ∑ar2\sum a_r^2 subject to ∑ar=1\sum a_r=1. By the Cauchy–Schwarz inequality, 1=(∑r=1nar⋅1)2≤n∑ar2,so∑ar2≥1n,1=\Big(\sum_{r=1}^{n}a_r\cdot1\Big)^2\le n\sum a_r^2,\qquad\text{so}\qquad \sum a_r^2\ge\frac1n, with equality if and only if all ara_r are equal, that is ar=1/na_r=1/n.

So the minimum variance is S2N(Nn−1)=N−nNnS2\frac{S^2}{N}\left(\frac Nn-1\right)=\frac{N-n}{Nn}S^2, attained only by t=1n∑yr=y‾t=\frac1n\sum y_r=\bar y. The sample mean is the best linear unbiased estimator of Y‾\bar Y. ◼\blacksquare

✓ Proof checked step by step Every step was checked: for unlabelled observations a linear estimator has coefficients by draw order, unbiasedness forces Σaᵣ = 1, and Cauchy–Schwarz gives Σaᵣ² ≥ 1/n with equality only at aᵣ = 1/n.

↑ Back to the question list

For a population size 10, show that in SRS without replacement the probability of drawing a specified unit at 5th draw is equal to the probability of drawing it at the first draw.

2014 · Paper I · Q5c · 10 marks

Solution

Set-up. N=10N=10, sampling without replacement. Let AA be a specified unit.

First draw. P(A at draw 1)=110P(A\text{ at draw 1})=\dfrac1{10}.

Fifth draw. AA is drawn fifth if it is missed at draws 1 to 4 and then picked at draw 5: P(A at draw 5)=910⋅89⋅78⋅67⋅16=110.P(A\text{ at draw 5})=\frac{9}{10}\cdot\frac{8}{9}\cdot\frac{7}{8}\cdot\frac{6}{7}\cdot\frac{1}{6}=\frac1{10}. The fractions cancel in a chain.

So the probability of drawing a specified unit at the 5th draw equals the probability at the 1st draw, namely 1/101/10. In general, the probability is 1/N1/N at every draw rr in SRSWOR. ◼\blacksquare

✓ Proof checked step by step Every step was checked: the product of conditional probabilities telescopes to 1/10 at every draw.

↑ Back to the question list

Suppose it is required to estimate the average value of output of a group of 5000 factories in a region so that the sample estimate lies within 10% of the true value with confidence coefficient of 95%. The population coefficient of variation is known to be 60%. Determine the equation to calculate minimum sample size.

2013 · Paper I · Q6c · 15 marks

Solution

Requirement. N=5000N=5000 factories. We want the sample mean output y‾\bar y to lie within 10 percent of Y‾\bar Y with 95 percent confidence: P(|y‾−Y‾|≤rY‾)=0.95,r=0.10.P\big(|\bar y-\bar Y|\le r\bar Y\big)=0.95,\qquad r=0.10 .

Equation. Under SRSWOR, y‾\bar y is approximately normal with variance (1n−1N)S2\left(\frac1n-\frac1N\right)S^2. So we need z(1n−1N)S2=rY‾,z=1.96.z\sqrt{\left(\frac1n-\frac1N\right)S^2}=r\bar Y,\qquad z=1.96 . Divide by Y‾\bar Y and write C=S/Y‾=0.60C=S/\bar Y=0.60 for the coefficient of variation: 1n−1N=(rzC)2⇔n=n01+n0/N,n0=(zCr)2.\boxed{\frac1n-\frac1N=\left(\frac{r}{zC}\right)^2\quad\Longleftrightarrow\quad n=\frac{n_0}{1+n_0/N},\qquad n_0=\left(\frac{zC}{r}\right)^2 .}

Numbers. n0=(1.96×0.600.10)2=(11.76)2=138.30,n=138.301+138.30/5000=138.301.02766=134.6.n_0=\left(\frac{1.96\times0.60}{0.10}\right)^2=(11.76)^2=138.30,\qquad n=\frac{138.30}{1+138.30/5000}=\frac{138.30}{1.02766}=134.6 . So the minimum sample is 135 factories.

✓ Checked by computer We checked in Python: n₀ = (1.96 × 0.6 / 0.1)² = 138.3 and n = n₀/(1 + n₀/5000) = 134.6, so 135 factories.

↑ Back to the question list

Distinguish between simple random sampling with and without replacement. Write down the expression for the number of samples and the probability that a specified individual is included in the sample under both the sampling schemes SRSWR and SRSWOR.

2012 · Paper I · Q5d · 12 marks

Solution

The two schemes.

  • SRSWR (with replacement): after each draw the selected unit is returned to the population. Every draw is from all NN units, the draws are independent, and a unit can appear more than once.
  • SRSWOR (without replacement): a selected unit is not returned. The rr-th draw is from the N−r+1N-r+1 units still left, and every unit appears at most once. The draws are dependent.

Number of possible samples of size nn.

SRSWR SRSWOR
Ordered samples NnN^n N(N−1)⋯(N−n+1)=N!(N−n)!N(N-1)\cdots(N-n+1)=\dfrac{N!}{(N-n)!}
Unordered samples (N+n−1n)\binom{N+n-1}{n} (not equally likely) (Nn)\binom Nn (each with probability 1/(Nn)1/\binom Nn)

Probability that a specified unit is in the sample.

  • SRSWR: the unit is missed at one draw with probability 1−1N1-\frac1N, and the draws are independent, so P(included)=1−(1−1N)n.P(\text{included})=1-\left(1-\frac1N\right)^n .
  • SRSWOR: the samples containing the unit number (N−1n−1)\binom{N-1}{n-1}, so P(included)=(N−1n−1)(Nn)=nN.P(\text{included})=\frac{\binom{N-1}{n-1}}{\binom Nn}=\frac nN .

In both schemes, the probability that the unit is chosen at any particular draw is 1/N1/N. Since 1−(1−1/N)n<n/N1-(1-1/N)^n<n/N for n≥2n\ge2, a unit is less likely to appear in a WR sample, because some draws are used up by repeats.

✓ Answer checked step by step Every point was checked against the standard SRS results: Nⁿ and C(N, n) samples, and inclusion probabilities 1 − (1 − 1/N)ⁿ and n/N.

↑ Back to the question list

Let N=3, n=2 and the possible distinct samples are s1=(1,2), s2=(1,3) and s3=(2,3). If SRSWOR is adopted, write down p(si) for i=1,2,3. If t={y1/2+y2/2if s1 occursy1/2+2y3/3if s2 occursy2/2+y3/3if s3 occurs, examine whether t is unbiased for the population mean. Also find the expression for v(t), if unbiased.

2012 · Paper I · Q7a · 20 marks

Solution

Note on the question. We read y1/2y_{1/2}, y2/2y_{2/2}, 2y3/32y_{3/3} as 12y1\tfrac12y_1, 12y2\tfrac12y_2 and 23y3\tfrac23y_3, the usual form of this question. So t={12y1+12y2if s1=(1,2) occurs12y1+23y3if s2=(1,3) occurs12y2+13y3if s3=(2,3) occurs.t=\begin{cases}\tfrac12y_1+\tfrac12y_2 & \text{if } s_1=(1,2)\text{ occurs}\\[2pt] \tfrac12y_1+\tfrac23y_3 & \text{if } s_2=(1,3)\text{ occurs}\\[2pt] \tfrac12y_2+\tfrac13y_3 & \text{if } s_3=(2,3)\text{ occurs.}\end{cases}

Probabilities. Under SRSWOR with N=3N=3, n=2n=2, all (32)=3\binom32=3 samples are equally likely: p(s1)=p(s2)=p(s3)=13.p(s_1)=p(s_2)=p(s_3)=\frac13 .

Unbiasedness. E(t)=13[(12y1+12y2)+(12y1+23y3)+(12y2+13y3)]=13(y1+y2+y3)=Y‾.E(t)=\frac13\left[\left(\tfrac12y_1+\tfrac12y_2\right)+\left(\tfrac12y_1+\tfrac23y_3\right)+\left(\tfrac12y_2+\tfrac13y_3\right)\right]=\frac13(y_1+y_2+y_3)=\bar Y . So tt is unbiased for the population mean.

Variance. V(t)=∑ip(si)ti2−Y‾2V(t)=\sum_i p(s_i)\,t_i^2-\bar Y^2: V(t)=13[(y1+y22)2+(y12+2y33)2+(y22+y33)2]−(y1+y2+y33)2.V(t)=\frac13\left[\left(\tfrac{y_1+y_2}{2}\right)^2+\left(\tfrac{y_1}{2}+\tfrac{2y_3}{3}\right)^2+\left(\tfrac{y_2}{2}+\tfrac{y_3}{3}\right)^2\right]-\left(\frac{y_1+y_2+y_3}{3}\right)^2 . Expanding and collecting terms: V(t)=y12−y1y2+y2218−y2y39+2y3227.\boxed{V(t)=\frac{y_1^2-y_1y_2+y_2^2}{18}-\frac{y_2y_3}{9}+\frac{2y_3^2}{27}.} For comparison, the sample mean has V(y‾)=S26=y12+y22+y32−y1y2−y1y3−y2y318V(\bar y)=\frac{S^2}{6}=\frac{y_1^2+y_2^2+y_3^2-y_1y_2-y_1y_3-y_2y_3}{18}.

✓ Checked by computer We checked in Python (sympy): E(t) − Ȳ = 0 identically, and V(t) = (Y₁² − Y₁Y₂ + Y₂²)/18 − Y₂Y₃/9 + 2Y₃²/27.

↑ Back to the question list

6 days are to be selected from the 366 calendar days of 2012 for recording the maximum daily temperature in a metropolitan city. Using the following set of random numbers, select these days, mentioning the month and the date for each, and giving the procedure in detail: 6503 0085 3822 2193 5392 4635 0495 3296 1348.

2011 · Paper I · Q5c · 12 marks

Solution

Numbering the days. 2012 is a leap year, so we number the days 1 (1 January) to 366 (31 December).

Using four-digit random numbers. The numbers are four-digit, from 0000 to 9999. To use as many of them as possible, we use the remainder method:

  • The largest multiple of 366 not exceeding 9999 is 27×366=988227\times366=9882.
  • Accept a random number RR from 0001 to 9882 and take the day as the remainder of R÷366R\div366, with remainder 0 read as day 366. Reject 0000 and 9883–9999, and also any day already chosen.
  • Each day then corresponds to exactly 27 accepted numbers, so all days are equally likely.

Selection.

Random number Remainder on dividing by 366 Day number Date in 2012
6503 6503−17×366=2816503-17\times366=281 281 7 October
0085 85 85 25 March
3822 3822−10×366=1623822-10\times366=162 162 10 June
2193 2193−5×366=3632193-5\times366=363 363 28 December
5392 5392−14×366=2685392-14\times366=268 268 24 September
4635 4635−12×366=2434635-12\times366=243 243 30 August

The first six numbers give six different days, so we stop. To turn a day number into a date we use the cumulative day counts of a leap year: 31 (Jan), 60 (Feb), 91 (Mar), 121 (Apr), 152 (May), 182 (Jun), 213 (Jul), 244 (Aug), 274 (Sep), 305 (Oct), 335 (Nov), 366 (Dec). For example, day 281 is 281−274=7281-274=7, so 7 October.

Selected days: 25 March, 10 June, 30 August, 24 September, 7 October and 28 December 2012.

✓ Checked by computer We checked in Python: the remainders mod 366 of 6503, 0085, 3822, 2193, 5392 and 4635 are 281, 85, 162, 363, 268 and 243, and the dates in leap year 2012 are as listed.

↑ 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

Determine the sample size n, such that the estimated value, based on this sample, of the mean SO2 level in air in 1000 petrol pumps in a large town, differs from the true value by at most 5μg/m3 with probability 0·95, assuming the standard deviation to be 35μg/m3. [2·5% and 5% points of a standard normal variate are 1·960 and 1·645 respectively.].

2011 · Paper I · Q6b · 20 marks

Solution

Requirement. N=1000N=1000 petrol pumps, S=35μg/m3S=35\ \mu g/m^3, permissible error d=5μg/m3d=5\ \mu g/m^3, and confidence 0.95, so z=1.960z=1.960 (the 2.5 percent point, because the error can be on either side).

Formula (SRSWOR). We need z(1n−1N)S2=dz\sqrt{\left(\frac1n-\frac1N\right)S^2}=d, so n=n01+n0/N,n0=(zSd)2.n=\frac{n_0}{1+n_0/N},\qquad n_0=\left(\frac{zS}{d}\right)^2 .

Numbers. n0=(1.960×355)2=(13.72)2=188.24,n=188.241+0.18824=158.4.n_0=\left(\frac{1.960\times35}{5}\right)^2=(13.72)^2=188.24,\qquad n=\frac{188.24}{1+0.18824}=158.4 . So a sample of 159 petrol pumps is needed. (Ignoring the finite population correction would give 189.)

✓ Checked by computer We checked in Python: n₀ = (1.96 × 35 / 5)² = 188.24 and n = n₀/(1 + n₀/1000) = 158.4, so 159 petrol pumps.

↑ Back to the question list

In a population consisting of three units U1, U2 and U3, the observations are Y1, Y2 and Y3 respectively. A sample of size 2 is drawn from the population by using simple random sampling without replacement. Define an estimator T as follows: T={12Y1+12Y2,if U1 and U2 selected12Y1+23Y3,if U1 and U3 selected12Y2+13Y3,if U2 and U3 selected Show that T is unbiased estimator of population mean and has smaller variance than sample mean if Y3(3Y2−3Y1−Y3)>0.

2010 · Paper I · Q5e · 12 marks

Solution

Probabilities. With N=3N=3, n=2n=2, SRSWOR, each of the three samples {U1,U2}\{U_1,U_2\}, {U1,U3}\{U_1,U_3\}, {U2,U3}\{U_2,U_3\} has probability 13\tfrac13.

Unbiasedness. E(T)=13[(12Y1+12Y2)+(12Y1+23Y3)+(12Y2+13Y3)]=Y1+Y2+Y33=Y‾.E(T)=\frac13\left[\left(\tfrac12Y_1+\tfrac12Y_2\right)+\left(\tfrac12Y_1+\tfrac23Y_3\right)+\left(\tfrac12Y_2+\tfrac13Y_3\right)\right]=\frac{Y_1+Y_2+Y_3}{3}=\bar Y . So TT is unbiased.

Comparing variances. Both TT and y‾\bar y are unbiased, so V(y‾)−V(T)=E(y‾2)−E(T2).V(\bar y)-V(T)=E(\bar y^2)-E(T^2). The first sample gives the same value for both estimators, so only the other two samples matter: E(y‾2)−E(T2)=13[(Y1+Y32)2−(Y12+2Y33)2+(Y2+Y32)2−(Y22+Y33)2].E(\bar y^2)-E(T^2)=\frac13\left[\left(\frac{Y_1+Y_3}{2}\right)^2-\left(\frac{Y_1}{2}+\frac{2Y_3}{3}\right)^2+\left(\frac{Y_2+Y_3}{2}\right)^2-\left(\frac{Y_2}{2}+\frac{Y_3}{3}\right)^2\right]. Use a2−b2=(a−b)(a+b)a^2-b^2=(a-b)(a+b) on each pair:

  • First pair: a−b=−Y36a-b=-\frac{Y_3}{6}, a+b=Y1+7Y36a+b=Y_1+\frac{7Y_3}{6}.
  • Second pair: a−b=Y36a-b=\frac{Y_3}{6}, a+b=Y2+5Y36a+b=Y_2+\frac{5Y_3}{6}.

So E(y‾2)−E(T2)=13⋅Y36[(Y2+5Y36)−(Y1+7Y36)]=Y318(Y2−Y1−Y33)=Y3(3Y2−3Y1−Y3)54.E(\bar y^2)-E(T^2)=\frac13\cdot\frac{Y_3}{6}\left[\left(Y_2+\frac{5Y_3}{6}\right)-\left(Y_1+\frac{7Y_3}{6}\right)\right]=\frac{Y_3}{18}\left(Y_2-Y_1-\frac{Y_3}{3}\right)=\frac{Y_3(3Y_2-3Y_1-Y_3)}{54}.

Conclusion. V(T)<V(y‾)V(T)<V(\bar y) exactly when Y3(3Y2−3Y1−Y3)>0Y_3(3Y_2-3Y_1-Y_3)>0. ◼\blacksquare

This shows that, for particular populations, an unbiased estimator other than y‾\bar y can do better. That is why y‾\bar y is “best” only within restricted classes, such as linear estimators of unlabelled data.

✓ Proof checked step by step We checked in Python (sympy): E(T) = Ȳ identically, and V(ȳ) − V(T) = Y₃(3Y₂ − 3Y₁ − Y₃)/54.

↑ Back to the question list

From a population of N units, a random sample of 3 units is drawn by simple random sampling with replacement. Find the expectation of distinct units in the sample. Define T as mean of distinct units in the sample. Show that T is unbiased estimate of population mean.

2010 · Paper I · Q6c · 20 marks

Solution

Number of distinct units. Let ν\nu be the number of distinct units in an SRSWR sample of 3 draws, and bi=1b_i=1 if unit ii appears at least once. Then ν=∑i=1Nbi\nu=\sum_{i=1}^{N}b_i and P(bi=1)=1−(1−1N)3.P(b_i=1)=1-\left(1-\frac1N\right)^3 . So E(ν)=N[1−(1−1N)3]=N3−(N−1)3N2=3N2−3N+1N2.E(\nu)=N\left[1-\left(1-\frac1N\right)^3\right]=\frac{N^3-(N-1)^3}{N^2}=\boxed{\frac{3N^2-3N+1}{N^2}.} For example, with N=10N=10 the expected number of distinct units is 2.712.71, slightly less than 3.

TT is unbiased. Let TT be the mean of the ν\nu distinct units. Given ν=k\nu=k (k=1,2,3k=1,2,3), the set of distinct units is equally likely to be any of the (Nk)\binom Nk sets of kk units, by symmetry, because every unit is treated alike by SRSWR. So, given ν=k\nu=k, the distinct units form an SRSWOR sample of size kk, and E(T∣ν=k)=Y‾for each k.E(T\mid\nu=k)=\bar Y\quad\text{for each }k . Hence E(T)=E[E(T∣ν)]=Y‾.E(T)=E\big[E(T\mid\nu)\big]=\bar Y . TT is an unbiased estimator of the population mean. ◼\blacksquare

Moreover, V(T)≤V(y‾)V(T)\le V(\bar y). Given the set of distinct units, y‾\bar y has conditional expectation TT by symmetry, and taking a conditional expectation on the set of distinct units (a sufficient statistic) never increases variance, by the Rao–Blackwell theorem.

✓ Proof checked step by step We checked E(ν) = (3N² − 3N + 1)/N² in sympy, and confirmed E(T) = Ȳ by listing all 64 ordered samples of size 3 from a population of 4.

↑ Back to the question list

Locate 5 points at random on a rectangular paddy field measuring 30 m × 20 m for conducting a crop-cutting experiment. The points are to be located using rectangular co-ordinates to nearest decimeters with one corner of the plot as origin. The following set of random numbers may be used: 2292 2933 6125 2464 1038 3163 3569 7155 2029 2538 7080 3027 6215 3125 5856 9543.

2009 · Paper I · Q5c · 12 marks

Solution

Coordinates. Take one corner of the field as the origin, the 30 m side as the xx-axis and the 20 m side as the yy-axis. To the nearest decimetre:

  • xx takes the values 1 to 300 decimetres (0.1 m to 30.0 m);
  • yy takes the values 1 to 200 decimetres (0.1 m to 20.0 m).

Rule. Use the first three digits of each random number, taking the numbers in pairs, the first for xx and the second for yy.

  • For xx, accept 001–900 and take the remainder on dividing by 300 (remainder 0 means 300). Each xx value then arises from exactly three numbers.
  • For yy, accept 001–800 and take the remainder on dividing by 200 (remainder 0 means 200).
  • If either number in a pair is rejected, we discard the pair.

Selection.

Pair (first 3 digits) xx (dm) yy (dm) Point (m)
229, 293 229 293−200=93293-200=93 (22.9, 9.3)
612, 246 612−600=12612-600=12 246−200=46246-200=46 (1.2, 4.6)
103, 316 103 316−200=116316-200=116 (10.3, 11.6)
356, 715 356−300=56356-300=56 715−600=115715-600=115 (5.6, 11.5)
202, 253 202 253−200=53253-200=53 (20.2, 5.3)

The five sampling points, measured from the corner along the length and breadth, are (22.9, 9.3), (1.2, 4.6), (10.3, 11.6), (5.6, 11.5) and (20.2, 5.3) metres. At each point the crop-cutting plot is marked with that corner fixed at the point.

Any other systematic and stated way of using the random numbers is equally valid, as long as every point of the field is equally likely.

✓ Checked by computer We checked in Python: the first three digits taken in pairs, reduced by the remainder method (x mod 300, y mod 200), give the five points listed.

↑ Back to the question list

In a simple random sample of size 200 (without replacement) from a population of size 1000, 75 persons happened to be smokers. Estimate the proportion of smokers and total number of smokers in the population and calculate 95% confidence interval for the proportion of smokers and also for the total number of smokers in the population. (Given that for 95% confidence probability, t=1.96)

2006 · Paper I · Q5c · 12 marks

Solution

Estimates. N=1000N=1000, n=200n=200, a=75a=75 smokers. p=75200=0.375,Â=Np=375 smokers.p=\frac{75}{200}=0.375,\qquad \hat A=Np=375\text{ smokers}.

Estimated variance (SRSWOR). v(p)=N−nN(n−1)pq=8001000×199×0.375×0.625=0.000942,s.e.(p)=0.0307.v(p)=\frac{N-n}{N(n-1)}pq=\frac{800}{1000\times199}\times0.375\times0.625=0.000942,\qquad \text{s.e.}(p)=0.0307 .

95% confidence interval for the proportion. p±1.96s.e.(p)=0.375±1.96(0.0307)=0.375±0.060,p\pm1.96\,\text{s.e.}(p)=0.375\pm1.96(0.0307)=0.375\pm0.060, so 0.315 to 0.435 (31.5 to 43.5 percent).

95% confidence interval for the total. s.e.(Â)=Ns.e.(p)=30.7\text{s.e.}(\hat A)=N\,\text{s.e.}(p)=30.7, so 375±1.96(30.7)=375±60,375\pm1.96(30.7)=375\pm60, that is about 315 to 435 smokers in the population.

✓ Checked by computer We checked in Python: p = 0.375, v(p) = 800 × 0.375 × 0.625 / (1000 × 199) = 0.000942, s.e. = 0.0307, so the CI is 0.315 to 0.435, and for the total 315 to 435.

↑ Back to the question list

Suppose that coefficient of variation of income of households in a region with 2000 households is 75%. How large a random sample of households is required for a margin of error ± 5% with 95% as [?] confidence coefficient? (For 95% confidence probability, t=1.96)

2006 · Paper I · Q5e · 12 marks

Solution

Note on the question. “[?]” stands for a missing word in the source; we read “95% as the confidence coefficient”. We take “margin of error ± 5%” as a relative error of 5 percent of the true mean.

Requirement. N=2000N=2000, C=S/Y‾=0.75C=S/\bar Y=0.75, r=0.05r=0.05, t=1.96t=1.96. We need t(1n−1N)S=rY‾t\sqrt{\left(\frac1n-\frac1N\right)}\,S=r\bar Y, so n=n01+n0/N,n0=(tCr)2.n=\frac{n_0}{1+n_0/N},\qquad n_0=\left(\frac{tC}{r}\right)^2 .

Numbers. n0=(1.96×0.750.05)2=(29.4)2=864.36,n=864.361+864.36/2000=864.361.43218=603.5.n_0=\left(\frac{1.96\times0.75}{0.05}\right)^2=(29.4)^2=864.36,\qquad n=\frac{864.36}{1+864.36/2000}=\frac{864.36}{1.43218}=603.5 . So a random sample of 604 households is needed.

✓ Checked by computer We checked in Python: n₀ = (1.96 × 0.75 / 0.05)² = 864.4 and n = n₀/(1 + n₀/2000) = 603.5, so 604 households.

↑ Back to the question list

A simple random sample of size n=n1+n2 with mean y‾ is drawn from a finite population, and a simple random sub-sample of size n1 is drawn from it with mean y‾1. Show that (i) V(y‾1−y‾)=(1n1−1n)S2. (ii) Cov(y‾,y‾1−y‾)=0

2004 · Paper I · Q5c · 12 marks

Solution

Facts used.

  1. The subsample is an SRSWOR sample of n1n_1 units from the population, so V(y‾1)=(1n1−1N)S2V(\bar y_1)=\left(\frac1{n_1}-\frac1N\right)S^2.
  2. The full sample gives V(y‾)=(1n−1N)S2V(\bar y)=\left(\frac1n-\frac1N\right)S^2.
  3. Given the first-stage sample ss, the subsample mean is unbiased for y‾\bar y: E(y‾1∣s)=y‾E(\bar y_1\mid s)=\bar y.

The covariance of y‾\bar y and y‾1\bar y_1. By fact 3, Cov(y‾,y‾1)=E[y‾E(y‾1∣s)]−Y‾2=E(y‾2)−Y‾2=V(y‾).\operatorname{Cov}(\bar y,\bar y_1)=E\big[\bar y\,E(\bar y_1\mid s)\big]-\bar Y^2=E(\bar y^2)-\bar Y^2=V(\bar y).

(i) V(y‾1−y‾)=V(y‾1)+V(y‾)−2Cov(y‾1,y‾)=V(y‾1)−V(y‾)=(1n1−1N)S2−(1n−1N)S2=(1n1−1n)S2.V(\bar y_1-\bar y)=V(\bar y_1)+V(\bar y)-2\operatorname{Cov}(\bar y_1,\bar y)=V(\bar y_1)-V(\bar y)=\left(\frac1{n_1}-\frac1N\right)S^2-\left(\frac1n-\frac1N\right)S^2=\left(\frac1{n_1}-\frac1n\right)S^2 .

(ii) Cov(y‾,y‾1−y‾)=Cov(y‾,y‾1)−V(y‾)=V(y‾)−V(y‾)=0.\operatorname{Cov}(\bar y,\bar y_1-\bar y)=\operatorname{Cov}(\bar y,\bar y_1)-V(\bar y)=V(\bar y)-V(\bar y)=0 . ◼\blacksquare

So the overall mean and the difference “subsample mean minus overall mean” are uncorrelated. This result is used in two-phase sampling and in the analysis of interpenetrating subsamples.

✓ Proof checked step by step We checked the proof, and confirmed both results by listing all ordered samples of size 4 from a population of 6, with n₁ = 1.

↑ Back to the question list

Bring out, giving an example, the relationship between a sampling scheme and a sampling design.

2004 · Paper I · Q5d · 12 marks

Solution

Sampling design. A sampling design is a probability function p(s)p(s) on the set 𝒮\mathcal S of all possible samples, with p(s)≥0p(s)\ge0 and ∑s∈𝒮p(s)=1\sum_{s\in\mathcal S}p(s)=1. It tells us how likely each whole sample is. All the statistical properties of an estimator (its expectation, variance, inclusion probabilities) depend only on the design.

Sampling scheme. A sampling scheme is the practical, draw-by-draw procedure that selects the units: the probability with which the next unit is chosen at each draw, given the units already drawn.

Relationship.

  • Every scheme gives (implies) a unique design: multiplying the draw-by-draw probabilities gives p(s)p(s).
  • Conversely, a given design can be put into practice by many different schemes. So the design is the more basic concept, and the scheme is just a convenient way of realising it.

Example: SRSWOR, N=4N=4, n=2n=2.

  • Scheme 1: at the first draw choose one unit with probability 14\tfrac14, and at the second draw choose one of the remaining three with probability 13\tfrac13. A particular unordered sample, say {1,2}\{1,2\}, can arise in two orders, so p({1,2})=2×14×13=16=1(42).p(\{1,2\})=2\times\frac14\times\frac13=\frac16=\frac{1}{\binom42}.
  • Scheme 2: list all six pairs and pick one with a random number from 1 to 6.
  • Scheme 3: go through the units one by one and include unit kk with probability (number still needed)/(number still left).

All three schemes give the same design p(s)=1/6p(s)=1/6 for every pair. So they are equivalent for estimation, even though the field procedures differ.

Another example. The Midzuno–Sen scheme draws the first unit with probability proportional to size and the rest by SRSWOR. Its design is p(s)∝∑i∈sxip(s)\propto\sum_{i\in s}x_i, which makes the ratio estimator unbiased.

✓ Answer checked step by step Every point was checked against the standard definitions of a sampling design p(s) and a sampling scheme, with the SRSWOR example worked through.

↑ Back to the question list

Show that 2=s2=Σ(xi−x)2/(n−1) is an unbiased estimate of the population variance, where xi for i=1,2,…,n are observed values in SRSWR sampling and x¯ is the sample mean.

2001 · Paper I · Q4i · 15 marks

Solution

Note on the question. The printed “2=s22=s^2” has a stray “2”. The statement is: s2=∑(xi−x‾)2/(n−1)s^2=\sum(x_i-\bar x)^2/(n-1) is unbiased for the population variance σ2=1N∑(Xj−X‾)2\sigma^2=\frac1N\sum(X_j-\bar X)^2 under SRSWR.

Facts. In SRSWR, x1,…,xnx_1,\dots,x_n are independent, each taking the population values with probability 1/N1/N. So E(xi)=X‾E(x_i)=\bar X, V(xi)=σ2V(x_i)=\sigma^2, and V(x‾)=σ2/nV(\bar x)=\sigma^2/n.

Proof. ∑i=1n(xi−x‾)2=∑(xi−X‾)2−n(x‾−X‾)2.\sum_{i=1}^{n}(x_i-\bar x)^2=\sum(x_i-\bar X)^2-n(\bar x-\bar X)^2 . Taking expectations: E∑(xi−x‾)2=nσ2−n⋅σ2n=(n−1)σ2.E\sum(x_i-\bar x)^2=n\sigma^2-n\cdot\frac{\sigma^2}{n}=(n-1)\sigma^2 . So E(s2)=(n−1)σ2n−1=σ2.E(s^2)=\frac{(n-1)\sigma^2}{n-1}=\sigma^2 . ◼\blacksquare

Note that the target here is σ2\sigma^2 (divisor NN). Under SRSWOR, by contrast, s2s^2 is unbiased for S2S^2 (divisor N−1N-1).

✓ Proof checked step by step We checked the proof, and confirmed E(s²) = σ² (divisor N) by listing all 216 ordered SRSWR samples of size 3 from a population of 6.

↑ Back to the question list

Calculate the expectation and the variance of the sample mean in SRSWOR sampling.

2001 · Paper I · Q6i · 15 marks

Solution

Set-up. Population values Y1,…,YNY_1,\dots,Y_N with mean Y‾\bar Y, and σ2=1N∑(Yi−Y‾)2,S2=NN−1σ2.\sigma^2=\frac1N\sum(Y_i-\bar Y)^2,\qquad S^2=\frac{N}{N-1}\sigma^2 . An SRSWOR sample of nn gives draws y1,…,yny_1,\dots,y_n and mean y‾\bar y.

Expectation. At each draw rr, every unit is equally likely to be selected (see the 5th-draw argument: the probability is 1/N1/N at every draw). So E(yr)=Y‾E(y_r)=\bar Y and E(y‾)=1n∑E(yr)=Y‾.E(\bar y)=\frac1n\sum E(y_r)=\bar Y .

Variance.

  • V(yr)=σ2V(y_r)=\sigma^2 for each rr.
  • For r≠sr\ne s, the ordered pair (yr,ys)(y_r,y_s) is equally likely to be any of the N(N−1)N(N-1) ordered pairs of distinct units, so Cov(yr,ys)=1N(N−1)∑i≠j(Yi−Y‾)(Yj−Y‾)=0−Nσ2N(N−1)=−σ2N−1.\operatorname{Cov}(y_r,y_s)=\frac{1}{N(N-1)}\sum_{i\ne j}(Y_i-\bar Y)(Y_j-\bar Y)=\frac{0-N\sigma^2}{N(N-1)}=-\frac{\sigma^2}{N-1}.

So V(y‾)=1n2[nσ2−n(n−1)σ2N−1]=σ2n⋅N−nN−1=N−nNnS2.V(\bar y)=\frac1{n^2}\left[n\sigma^2-n(n-1)\frac{\sigma^2}{N-1}\right]=\frac{\sigma^2}{n}\cdot\frac{N-n}{N-1}=\boxed{\frac{N-n}{Nn}S^2 .}

The same result in words: the variance with replacement, σ2/n\sigma^2/n, is reduced by the factor N−nN−1\frac{N-n}{N-1}.

✓ Derivation checked step by step Every step was checked: E(ȳ) = Ȳ by symmetry, and V(ȳ) = (N − n)S²/(Nn) from the variances and covariances of single draws.

↑ Back to the question list

Define first and second order inclusion probabilities. Evaluate them for SRSWR and SRSWOR.

2000 · Paper I · Q7a(i) · 8 marks

Solution

Definitions. For a sampling design p(s)p(s):

  • First-order inclusion probability of unit ii: πi=P(i∈s)=∑s∋ip(s)\pi_i=P(i\in s)=\sum_{s\ni i}p(s).
  • Second-order inclusion probability of units i≠ji\ne j: πij=P(i∈s and j∈s)=∑s∋i,jp(s)\pi_{ij}=P(i\in s\text{ and }j\in s)=\sum_{s\ni i,j}p(s).

They are the building blocks of the Horvitz–Thompson estimator ∑i∈syi/πi\sum_{i\in s}y_i/\pi_i and of its variance.

SRSWOR (sample size nn). πi=(N−1n−1)(Nn)=nN,πij=(N−2n−2)(Nn)=n(n−1)N(N−1).\pi_i=\frac{\binom{N-1}{n-1}}{\binom Nn}=\frac nN,\qquad \pi_{ij}=\frac{\binom{N-2}{n-2}}{\binom Nn}=\frac{n(n-1)}{N(N-1)} .

SRSWR (nn independent draws). A unit is missed at one draw with probability 1−1N1-\frac1N. πi=1−(1−1N)n.\pi_i=1-\left(1-\frac1N\right)^n . By inclusion–exclusion, P(i∉s or j∉s)=2(1−1N)n−(1−2N)nP(i\notin s\text{ or }j\notin s)=2\left(1-\frac1N\right)^n-\left(1-\frac2N\right)^n, so πij=1−2(1−1N)n+(1−2N)n.\pi_{ij}=1-2\left(1-\frac1N\right)^n+\left(1-\frac2N\right)^n .

Check. For N=5N=5, n=3n=3: πi=1−0.512=0.488\pi_i=1-0.512=0.488 and πij=1−1.024+0.216=0.192\pi_{ij}=1-1.024+0.216=0.192. Listing all 53=1255^3=125 samples gives the same values.

✓ Checked by computer We checked in Python by listing all SRSWR samples with N = 5, n = 3: πᵢ = 0.488 = 1 − (4/5)³ and πᵢⱼ = 0.192 = 1 − 2(4/5)³ + (3/5)³.

↑ Back to the question list

Suppose one university is interested in determining the attitude of students towards a proposed change in the method of examination in its affiliated colleges and teaching departments. How would you proceed to plan a sample survey for this purpose.

1998 · Paper I · Q1a · 20 marks

Solution

We would plan the survey in the following steps.

1. Objectives. State clearly what we want to know: the proportion of students in favour of the proposed change, the strength of their views, and how these vary by faculty, level (UG/PG), type of institution (college or university department), gender and location (urban/rural). State the precision needed, for example the proportion in favour within ±3 percentage points with 95 percent confidence.

2. Population and units. The target population is all students currently enrolled in the affiliated colleges and the teaching departments. The ultimate sampling unit is a student, and the colleges and departments are natural first-stage units.

3. Sampling frame. Obtain the list of affiliated colleges and departments, with enrolment by faculty and year, from the university. Student rolls are then obtained from the selected institutions.

4. Sampling design.

  • Stratify the institutions by faculty (arts, science, commerce, professional), type (university department, urban college, rural college), and perhaps size. Opinions are likely to differ between strata, so stratification improves precision and gives separate estimates.
  • Within each stratum use two-stage sampling: select colleges (with probability proportional to enrolment, or by SRS), then select students by systematic sampling from the class rolls.
  • Allocate the sample to strata in proportion to enrolment, or by Neyman allocation if past data on variability exist.

5. Sample size. For a proportion near 0.5, n0=1.962(0.25)/0.032≈1067n_0=1.96^2(0.25)/0.03^2\approx1067. Increase this for the design effect of clustering (say ×1.5) and for non-response (say 10 percent), giving about 1,800 students.

6. Questionnaire. Describe the proposed change neutrally. Ask about the attitude on a Likert scale (strongly agree … strongly disagree), with reasons and background variables. Keep it short, and avoid leading questions.

7. Pilot survey. Try the questionnaire and procedures on a small sample. Use it to check wording, the time taken, response rates and the variability, and to refine the plan and the estimate of nn.

8. Fieldwork. Use self-administered forms in class or online, with trained investigators supervising. Ensure anonymity to get frank answers. Follow up non-respondents.

9. Processing and analysis. Scrutinise and code the forms. Compute stratum-wise and overall proportions with weights, their standard errors and confidence intervals, and cross-tabulations by faculty, level and so on.

10. Report. Present the findings, the methodology, the precision achieved and the limitations (non-response, possible response bias) to the university authorities.

✓ Answer checked step by step Every point was checked against the standard stages of planning a sample survey: objectives, population, frame, design, questionnaire, pilot, fieldwork, analysis and reporting.

↑ Back to the question list

Suppose N1 of the N units in a population are known to have the value zero and a simple random sample of n units is selected from the N−N1 non-zero units with replacement. Suggest an unbiased estimator of the overall population mean and obtain its efficiency compared to simple random sampling of n units directly from all the N units with replacement.

1998 · Paper I · Q1b · 20 marks

Solution

Notation. N′=N−N1N'=N-N_1 is the number of non-zero units. Among them, let the mean be Y‾′\bar Y' and the variance (divisor N′N') be σ′2\sigma'^2. The overall mean is Y‾=N′NY‾′\bar Y=\frac{N'}{N}\bar Y', because the zero units add nothing to the total.

Estimator. Let y‾′\bar y' be the mean of an SRSWR sample of nn units drawn from the N′N' non-zero units. Then E(y‾′)=Y‾′E(\bar y')=\bar Y', so Y‾̂=N′Ny‾′\hat{\bar Y}=\frac{N'}{N}\,\bar y' is an unbiased estimator of Y‾\bar Y, with V(Y‾̂)=(N′N)2σ′2n.V(\hat{\bar Y})=\left(\frac{N'}{N}\right)^2\frac{\sigma'^2}{n}.

Direct SRSWR from all NN units. V(y‾)=σ2/nV(\bar y)=\sigma^2/n, where σ2\sigma^2 is the variance of all NN values: σ2=1N∑Yi2−Y‾2=N′N(σ′2+Y‾′2)−(N′N)2Y‾′2.\sigma^2=\frac1N\sum Y_i^2-\bar Y^2=\frac{N'}{N}\left(\sigma'^2+\bar Y'^2\right)-\left(\frac{N'}{N}\right)^2\bar Y'^2 .

Relative efficiency. E=V(y‾)V(Y‾̂)=σ2(N′/N)2σ′2=NN′(1+Y‾′2σ′2)−Y‾′2σ′2=NN′+N1N′⋅Y‾′2σ′2.E=\frac{V(\bar y)}{V(\hat{\bar Y})}=\frac{\sigma^2}{(N'/N)^2\sigma'^2}=\frac{N}{N'}\left(1+\frac{\bar Y'^2}{\sigma'^2}\right)-\frac{\bar Y'^2}{\sigma'^2}=\boxed{\frac{N}{N'}+\frac{N_1}{N'}\cdot\frac{\bar Y'^2}{\sigma'^2}.}

Interpretation. The first term is at least 1 and the second is never negative, so E≥1E\ge1. Leaving out the known zeros always helps, and the gain is larger when there are many zeros (N1N_1 large) and the non-zero values are fairly homogeneous (small coefficient of variation σ′/Y‾′\sigma'/\bar Y'). For example, if half the units are zero and the non-zero values have a coefficient of variation of 0.5, then E=2+1×4=6E=2+1\times4=6.

✓ Checked by computer We checked the efficiency formula numerically: for a population (0, 0, 0, 4, 7, 9, 12), σ²/((N′/N)²σ′²) = N/N′ + (N₁/N′)Ȳ′²/σ′² = 7.397.

↑ Back to the question list

What are the measures of the qualities of an estimator in the case of sampling from finite populations? Explain them. Also show that sampling without replacement is better than sampling with replacement in the case of simple random sampling.

1997 · Paper I · Q1a · 20 marks

Solution

Measures of the quality of an estimator tt of a parameter θ\theta. In finite-population sampling the randomness comes from the selection of the sample. So all expectations are taken over the sampling design.

  1. Bias: B(t)=E(t)−θB(t)=E(t)-\theta. The estimator is unbiased if B(t)=0B(t)=0 for every population.
  2. Variance (sampling variance): V(t)=E[t−E(t)]2V(t)=E\big[t-E(t)\big]^2. It measures how much the estimate varies from sample to sample. Its square root is the standard error.
  3. Mean square error: MSE(t)=E(t−θ)2=V(t)+B(t)2\text{MSE}(t)=E(t-\theta)^2=V(t)+B(t)^2. This is the main overall measure of accuracy, which allows for both bias and variance.
  4. Relative efficiency of t1t_1 compared with t2t_2: MSE(t2)/MSE(t1)\text{MSE}(t_2)/\text{MSE}(t_1), or the ratio of variances for unbiased estimators.
  5. Consistency: tt tends to θ\theta as the sample size increases. In finite populations, t=θt=\theta when the whole population is enumerated.
  6. Coefficient of variation V(t)/E(t)\sqrt{V(t)}/E(t) is often used to compare precision on a relative scale. Also important are cost (precision per unit cost) and the availability of an unbiased variance estimator.

SRSWOR is better than SRSWR. Both give an unbiased sample mean. Their variances are VWR(y‾)=σ2n=N−1NnS2,VWOR(y‾)=N−nNnS2.V_{\text{WR}}(\bar y)=\frac{\sigma^2}{n}=\frac{N-1}{Nn}S^2,\qquad V_{\text{WOR}}(\bar y)=\frac{N-n}{Nn}S^2 . So VWR−VWOR=(N−1)−(N−n)NnS2=n−1NnS2≥0,V_{\text{WR}}-V_{\text{WOR}}=\frac{(N-1)-(N-n)}{Nn}S^2=\frac{n-1}{Nn}S^2\ge0, with strict inequality for n>1n>1 and S2>0S^2>0. Hence SRSWOR is more efficient: VWRVWOR=N−1N−n>1.\frac{V_{\text{WR}}}{V_{\text{WOR}}}=\frac{N-1}{N-n}>1 . ◼\blacksquare

The intuition: without replacement no draw is wasted on repeating a unit already observed, so every draw brings in new information. The gain is negligible when n/Nn/N is small.

✓ Proof checked step by step Every step was checked: the definitions of bias, variance, MSE, efficiency and consistency, and V_WR − V_WOR = (n − 1)S²/(Nn) ≥ 0.

↑ Back to the question list

Define random sampling. Why are random samples distinctly superior to non-random samples? Describe linear systematic sampling with interval k and show that it is an equal probability sampling method.

1996 · Paper I · Q1a · 20 marks

Solution

Random sampling. A random (probability) sample is one in which every unit of the population has a known, non-zero chance of selection, and the selection is made by a chance mechanism such as random numbers, not by the judgment of the investigator. Simple random sampling is the case in which every possible sample of size nn has the same chance.

Why random samples are superior to non-random samples.

  1. Freedom from selection bias: the investigator’s personal choice cannot favour particular units, so the sample is not systematically unrepresentative.
  2. Valid inference: because the selection probabilities are known, we can build unbiased estimators and compute their sampling errors and confidence intervals. With purposive or convenience samples the error cannot be measured.
  3. Measurable precision and sample-size planning: we can decide in advance how large a sample gives the required precision.
  4. Objectivity and credibility: another investigator following the same procedure gets a sample with the same properties.

A purposive sample may sometimes look “more typical”, but its error is unknown and cannot be reduced by increasing the sample size.

Linear systematic sampling with interval kk. Let the NN units be numbered 11 to NN and let N=nkN=nk. Choose a random number rr from 11 to kk (the random start). The sample consists of the units r,r+k,r+2k,…,r+(n−1)k.r,\ r+k,\ r+2k,\ \dots,\ r+(n-1)k . So there are exactly kk possible samples, one for each start rr, and each has probability 1/k1/k.

It is an equal-probability method. Every unit jj belongs to exactly one of the kk possible samples, namely the one with start r≡j(modk)r\equiv j\pmod k (with r=kr=k when kk divides jj). So πj=P(unit j selected)=1k=nNfor every j=1,…,N.\pi_j=P(\text{unit } j\text{ selected})=\frac1k=\frac nN\quad\text{for every }j=1,\dots,N . All units have the same inclusion probability, which is the same as under SRSWOR. So linear systematic sampling is an equal-probability method, and the sample mean is unbiased for Y‾\bar Y. ◼\blacksquare

However, unlike SRSWOR, most pairs of units can never be selected together (πij=0\pi_{ij}=0), so no unbiased estimator of the variance is available from a single systematic sample.

✓ Proof checked step by step Every step was checked: with N = nk and a random start r in 1…k, each unit belongs to exactly one of the k possible samples, so its inclusion probability is 1/k = n/N.

↑ Back to the question list

More on Sampling Theory and Design of Experiments

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