Menu Close

Probability spaces and random variables: UPSC Statistics Optional PYQ Solutions (1995–2026)

All 105 questions UPSC has asked on probability spaces and random variables in the Statistics Optional (Paper I, Probability) from 1995 to 2026, 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):

2026 · 1a(i) 2026 · 1a(ii) 2026 · 1b 2026 · 2b(i) 2026 · 2b(ii) 2026 · 2c(i) 2025 · 1a 2025 · 2a 2025 · 2c 2024 · 1a(i) 2024 · 1a(ii) 2024 · 1b(i) 2024 · 1b(ii) 2023 · 1a 2023 · 1b 2023 · 2a 2023 · 3a(ii) 2022 · 1c 2022 · 2b 2021 · 1b 2021 · 4b 2020 · 1a 2020 · 1b 2020 · 2b 2019 · 1a 2019 · 3c 2019 · 4b 2018 · 1a 2018 · 1c 2018 · 2a 2017 · 1a 2017 · 1b 2017 · 2c 2017 · 3a 2017 · 3b 2016 · 1b 2016 · 2a 2016 · 2b 2015 · 1a 2015 · 4a 2014 · 1a 2014 · 1b 2013 · 1a 2013 · 1b 2012 · 1a 2012 · 1b 2011 · 1a 2011 · 1b 2011 · 1c 2011 · 3c 2010 · 1a 2010 · 1b 2010 · 1c 2010 · 2a 2010 · 2b 2010 · 3a 2009 · 2a 2007 · 1a 2007 · 1b 2007 · 2c 2006 · 1a 2006 · 1c 2006 · 2b 2005 · 1a 2005 · 1b 2005 · 2c 2004 · 1a 2004 · 1c 2003 · 1a 2003 · 1c 2003 · 2b 2003 · 2c 2002 · 1a 2002 · 2a 2001 · 1a 2001 · 1b 2001 · 1c 2001 · 2i 2001 · 3iii 1999 · 1a 1999 · 1b 1999 · 1c 1998 · 1a 1998 · 1b 1998 · 1c 1998 · 1d 1998 · 2b 1998 · 2c(ii) 1998 · 4a(i) 1998 · 4a(ii) 1997 · 1a 1997 · 1b 1997 · 1c 1997 · 1d 1996 · 1a 1996 · 1b 1996 · 1c 1996 · 2a 1996 · 2b 1995 · 1a 1995 · 1b 1995 · 1c 1995 · 2a 1995 · 2b 1995 · 3c

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

Show that for n events A1,A2,⋯,An P(⋂i=1nAi)≥∑i=1nP(Ai)−(n−1)

2026 · Paper I · Q1a(i) · 7 marks

Solution

Take complements. By De Morgan’s law, (⋂iAi)c=⋃iAic\left(\bigcap_iA_i\right)^c=\bigcup_iA_i^c. So P(⋂i=1nAi)=1−P(⋃i=1nAic).P\left(\bigcap_{i=1}^nA_i\right)=1-P\left(\bigcup_{i=1}^nA_i^c\right).

Boole’s inequality. P(⋃iAic)≤∑iP(Aic)=∑i(1−P(Ai))=n−∑iP(Ai)P\left(\bigcup_iA_i^c\right)\le\sum_iP(A_i^c)=\sum_i\big(1-P(A_i)\big)=n-\sum_iP(A_i).

Combine. P(⋂i=1nAi)≥1−n+∑i=1nP(Ai)=∑i=1nP(Ai)−(n−1).◼P\left(\bigcap_{i=1}^nA_i\right)\ge1-n+\sum_{i=1}^nP(A_i)=\sum_{i=1}^nP(A_i)-(n-1).\qquad\blacksquare This is Bonferroni’s inequality. For example, if each of 10 events has probability 0.99, all ten occur together with probability at least 0.90.

✓ Proof checked step by step Every step was checked: De Morgan’s law and Boole’s inequality.

↑ Back to the question list

For two mutually exclusive events A and B, show that P(A∣A∪B)=P(A)P(A)+P(B);P(A),P(B)>0

2026 · Paper I · Q1a(ii) · 3 marks

Solution

Since A⊆A∪BA\subseteq A\cup B, A∩(A∪B)=AA\cap(A\cup B)=A. Because AA and BB are mutually exclusive, P(A∪B)=P(A)+P(B)>0P(A\cup B)=P(A)+P(B)>0. So P(A∣A∪B)=P(A∩(A∪B))P(A∪B)=P(A)P(A)+P(B).◼P(A\mid A\cup B)=\frac{P\big(A\cap(A\cup B)\big)}{P(A\cup B)}=\frac{P(A)}{P(A)+P(B)}.\qquad\blacksquare (Example: in repeated dice throws, the chance that a 5 comes before a 7 is 4/364/36+6/36=25\frac{4/36}{4/36+6/36}=\frac25.)

✓ Proof checked step by step Every step was checked from the definition of conditional probability.

↑ Back to the question list

Let the joint probability mass function of X and Y be p(x,y)=x2+2y80,x=0,1,2;y=1,2,3,4 Find– (i) the marginal probability mass functions of X and Y; (ii) P(X≤1,Y>2).

2026 · Paper I · Q1b · 10 marks

Solution

Check. ∑x,yx2+2y80=180∑x=02(4x2+20)=20+6080=1\sum_{x,y}\dfrac{x^2+2y}{80}=\dfrac1{80}\sum_{x=0}^2(4x^2+20)=\dfrac{20+60}{80}=1. ✓

(i) Marginals. pX(x)=∑y=14x2+2y80=4x2+2080=x2+520:pX(0)=520,pX(1)=620,pX(2)=920.p_X(x)=\sum_{y=1}^4\frac{x^2+2y}{80}=\frac{4x^2+20}{80}=\frac{x^2+5}{20}:\qquad p_X(0)=\tfrac5{20},\ p_X(1)=\tfrac6{20},\ p_X(2)=\tfrac9{20}. pY(y)=∑x=02x2+2y80=5+6y80:pY(1)=1180,pY(2)=1780,pY(3)=2380,pY(4)=2980.p_Y(y)=\sum_{x=0}^2\frac{x^2+2y}{80}=\frac{5+6y}{80}:\qquad p_Y(1)=\tfrac{11}{80},\ p_Y(2)=\tfrac{17}{80},\ p_Y(3)=\tfrac{23}{80},\ p_Y(4)=\tfrac{29}{80}.

(ii) P(X≤1,Y>2)=∑x=01∑y=34x2+2y80=(6+8)+(7+9)80=3080=𝟑𝟖.P(X\le1,Y>2)=\sum_{x=0}^1\sum_{y=3}^4\frac{x^2+2y}{80}=\frac{(6+8)+(7+9)}{80}=\frac{30}{80}=\mathbf{\frac38}.

✓ Checked by computer We summed the joint pmf with exact fractions in Python: total 1, marginals as below, and P(X≤1,Y>2)=38P(X\le1,Y>2)=\tfrac38.

↑ Back to the question list

The time required, in hours, to repair a car at a garage is a random variable X with probability density function (p.d.f.) f(x)=c(4x−x2),0≤x≤4,c is a constant Find the value of c. Obtain the probabilities that for a car which arrives now at the garage– (1) X is at least one but less than three; (2) X is more than two.

2026 · Paper I · Q2b(i) · 9 marks

Solution

Find cc. c∫04(4x−x2)dx=c[2x2−x33]04=c(32−643)=32c3=1⇒c=332.c\int_0^4(4x-x^2)\,dx=c\left[2x^2-\frac{x^3}3\right]_0^4=c\left(32-\frac{64}3\right)=\frac{32c}3=1\Rightarrow c=\frac3{32}.

(1) P(1≤X<3)=332[2x2−x33]13=332(9−53)=332⋅223=𝟏𝟏𝟏𝟔.P(1\le X<3)=\frac3{32}\left[2x^2-\frac{x^3}3\right]_1^3=\frac3{32}\left(9-\frac53\right)=\frac3{32}\cdot\frac{22}3=\mathbf{\frac{11}{16}}.

(2) The density 332x(4−x)\frac3{32}x(4-x) is symmetric about x=2x=2, so P(X>2)=𝟏𝟐.P(X>2)=\mathbf{\frac12}. (Directly: 332[2x2−x33]24=332⋅163=12\frac3{32}\left[2x^2-\frac{x^3}3\right]_2^4=\frac3{32}\cdot\frac{16}3=\frac12.)

✓ Checked by computer We recomputed in SymPy: c = 3/32, P(1 ≤ X < 3) = 11/16 and P(X > 2) = 1/2.

↑ Back to the question list

Let f(x)=3x4(2−x);0<x<2 be the probability density function of a continuous random variable X. Write the cumulative distribution function of X and find P(12<X<32)

2026 · Paper I · Q2b(ii) · 6 marks

Solution

C.d.f. For 0≤x≤20\le x\le2, F(x)=∫0x3t4(2−t)dt=34(x2−x33)=3x2−x34.F(x)=\int_0^x\frac{3t}4(2-t)\,dt=\frac34\left(x^2-\frac{x^3}3\right)=\frac{3x^2-x^3}4. So F(x)={0,x<03x2−x34,0≤x<21,x≥2.F(x)=\begin{cases}0,&x<0\\[2pt]\dfrac{3x^2-x^3}4,&0\le x<2\\[4pt]1,&x\ge2.\end{cases}

Probability. P(12<X<32)=F(32)−F(12)=6.75−3.3754−0.75−0.1254=3.375−0.6254=𝟏𝟏𝟏𝟔.P\left(\tfrac12<X<\tfrac32\right)=F\left(\tfrac32\right)-F\left(\tfrac12\right)=\frac{6.75-3.375}4-\frac{0.75-0.125}4=\frac{3.375-0.625}4=\mathbf{\frac{11}{16}}.

✓ Checked by computer We recomputed the c.d.f. and the probability (11/16) in SymPy.

↑ Back to the question list

Let X follow uniform distribution on (0,1) and let Y=−loge(1−X). Find the distribution of Y.

2026 · Paper I · Q2c(i) · 5 marks

Solution

Y=−loge(1−X)Y=-\log_e(1-X) takes values in (0,∞)(0,\infty), and it is increasing in XX. For y>0y>0: P(Y≤y)=P(−log(1−X)≤y)=P(1−X≥e−y)=P(X≤1−e−y)=1−e−y.P(Y\le y)=P\big(-\log(1-X)\le y\big)=P\left(1-X\ge e^{-y}\right)=P\left(X\le1-e^{-y}\right)=1-e^{-y}. So FY(y)=1−e−yF_Y(y)=1-e^{-y} and fY(y)=e−yf_Y(y)=e^{-y}, y>0y>0.

Answer. YY has the standard exponential distribution (mean 1). This is how computers generate exponential random numbers from uniform ones.

✓ Derivation checked step by step Every step was checked; this is the inverse-c.d.f. method used to simulate exponential variables.

↑ Back to the question list

Let E, F and G be three pairwise independent events such that P(E∩F)=0⋅1 and P(F∩G)=0⋅3. Prove that P(Ec∪G)≥1112.

2025 · Paper I · Q1a · 10 marks

Solution

Set-up. By pairwise independence, P(E)P(F)=0.1P(E)P(F)=0.1 and P(F)P(G)=0.3P(F)P(G)=0.3. Write f=P(F)f=P(F). Then P(E)=0.1f,P(G)=0.3f.P(E)=\frac{0.1}f,\qquad P(G)=\frac{0.3}f. Since P(G)≤1P(G)\le1, f≥0.3f\ge0.3.

Rewrite the target. EE and GG are independent, so EE and GcG^c are too. Hence P(Ec∪G)=1−P(E∩Gc)=1−P(E)(1−P(G)).P(E^c\cup G)=1-P(E\cap G^c)=1-P(E)\big(1-P(G)\big).

Bound P(E)(1−P(G))P(E)(1-P(G)). Put u=1/f∈[1,103]u=1/f\in\left[1,\tfrac{10}3\right]: P(E)(1−P(G))=0.1u(1−0.3u)=0.1u−0.03u2.P(E)\big(1-P(G)\big)=0.1u(1-0.3u)=0.1u-0.03u^2. This quadratic is largest at u=0.10.06=53u=\dfrac{0.1}{0.06}=\dfrac53, where it equals 16−112=112\dfrac16-\dfrac1{12}=\dfrac1{12}.

Conclusion. P(Ec∪G)≥1−112=1112.◼P(E^c\cup G)\ge1-\frac1{12}=\frac{11}{12}.\qquad\blacksquare (The bound is attained when P(F)=0.6P(F)=0.6, P(E)=16P(E)=\frac16 and P(G)=12P(G)=\frac12.)

✓ Proof checked step by step Every step was checked. We also maximised P(E∩Gc)P(E\cap G^c) numerically in Python over all admissible P(F): the maximum is 1/12.

↑ Back to the question list

Let X be a continuous random variable having probability density function f(x)={225(x+2),−2≤x≤30,otherwise. Find the cumulative distribution function of Y=X2 and hence find probability density function of Y.

2025 · Paper I · Q2a · 20 marks

Solution

Support. X∈[−2,3]X\in[-2,3], so Y=X2∈[0,9]Y=X^2\in[0,9]. The map x↦x2x\mapsto x^2 is not one-to-one on [−2,2][-2,2], so we work with the c.d.f.

C.d.f. of YY. Let G(x)=∫−2x225(t+2)dt=(x+2)225G(x)=\int_{-2}^x\frac2{25}(t+2)\,dt=\frac{(x+2)^2}{25}.

  • For 0≤y≤40\le y\le4, both ±y\pm\sqrt y lie in [−2,2][-2,2]: FY(y)=P(−y≤X≤y)=(y+2)2−(2−y)225=8y25.F_Y(y)=P(-\sqrt y\le X\le\sqrt y)=\frac{(\sqrt y+2)^2-(2-\sqrt y)^2}{25}=\frac{8\sqrt y}{25}.
  • For 4<y≤94<y\le9, −y<−2-\sqrt y<-2, so only the upper limit matters: FY(y)=P(X≤y)=(y+2)225.F_Y(y)=P(X\le\sqrt y)=\frac{(\sqrt y+2)^2}{25}.

So FY(y)={0,y<08y25,0≤y≤4(y+2)225,4<y≤91,y>9.F_Y(y)=\begin{cases}0,&y<0\\[2pt]\dfrac{8\sqrt y}{25},&0\le y\le4\\[6pt]\dfrac{(\sqrt y+2)^2}{25},&4<y\le9\\[6pt]1,&y>9.\end{cases} Both pieces give 1625\frac{16}{25} at y=4y=4, and FY(9)=1F_Y(9)=1.

P.d.f. of YY. Differentiate: fY(y)={425y,0<y<4y+225y,4<y<90,otherwise.f_Y(y)=\begin{cases}\dfrac4{25\sqrt y},&0<y<4\\[6pt]\dfrac{\sqrt y+2}{25\sqrt y},&4<y<9\\[6pt]0,&\text{otherwise.}\end{cases}

✓ Checked by computer We checked the c.d.f. of Y by simulation in Python (about 4 million draws) at y = 1, 4 and 6.25: 0.320, 0.640 and 0.810, matching the formulas.

↑ Back to the question list

Let the joint probability density function of (X,Y) be f(x,y)={2e−(x+y),0<x<y<∞0,otherwise Compute the following: (i) P(Y<1) (ii) P(λX<Y),λ>1 (iii) P(Y>3X∣Y>2X)

2025 · Paper I · Q2c · 15 marks

Solution

Check. ∫0∞∫x∞2e−x−ydydx=∫0∞2e−2xdx=1\displaystyle\int_0^\infty\!\!\int_x^\infty2e^{-x-y}\,dy\,dx=\int_0^\infty2e^{-2x}dx=1. ✓

(i) P(Y<1)=∫01∫0y2e−x−ydxdy=∫012e−y(1−e−y)dy=2(1−e−1)−(1−e−2)=(𝟏−𝐞−𝟏)𝟐≈0.3996.P(Y<1)=\int_0^1\!\!\int_0^y2e^{-x-y}\,dx\,dy=\int_0^12e^{-y}\left(1-e^{-y}\right)dy=2\left(1-e^{-1}\right)-\left(1-e^{-2}\right)=\mathbf{\left(1-e^{-1}\right)^2}\approx0.3996.

(ii) For λ>1\lambda>1: P(λX<Y)=∫0∞∫λx∞2e−x−ydydx=∫0∞2e−(1+λ)xdx=𝟐𝟏+𝛌.P(\lambda X<Y)=\int_0^\infty\!\!\int_{\lambda x}^\infty2e^{-x-y}\,dy\,dx=\int_0^\infty2e^{-(1+\lambda)x}dx=\mathbf{\frac2{1+\lambda}}.

(iii) {Y>3X}⊆{Y>2X}\{Y>3X\}\subseteq\{Y>2X\}, so by (ii) P(Y>3X∣Y>2X)=P(Y>3X)P(Y>2X)=2/42/3=𝟑𝟒.P(Y>3X\mid Y>2X)=\frac{P(Y>3X)}{P(Y>2X)}=\frac{2/4}{2/3}=\mathbf{\frac34}.

✓ Checked by computer We checked all three parts by simulation in Python (10⁶ draws, λ = 2.5 for part ii): 0.5714 against 2/(1 + λ), and 0.7499 against 3/4.

↑ Back to the question list

Two events A and B are such that P(A)=13, P(B)=14 and P(A|B)+P(B|A)=23. Evaluate the following: P(Ac∪Bc)

2024 · Paper I · Q1a(i) · 5 marks

Solution

Find P(A∩B)P(A\cap B). P(A∣B)+P(B∣A)=P(AB)1/4+P(AB)1/3=7P(AB)=23⇒P(AB)=221.P(A\mid B)+P(B\mid A)=\frac{P(AB)}{1/4}+\frac{P(AB)}{1/3}=7P(AB)=\frac23\ \Rightarrow\ P(AB)=\frac2{21}.

Answer. By De Morgan’s law, P(Ac∪Bc)=1−P(A∩B)=1−221=𝟏𝟗𝟐𝟏.P(A^c\cup B^c)=1-P(A\cap B)=1-\frac2{21}=\mathbf{\frac{19}{21}}.

✓ Checked by computer We solved for P(A ∩ B) = 2/21 and recomputed both answers with exact fractions.

↑ Back to the question list

P(A|Bc)+P(B|Ac)

2024 · Paper I · Q1a(ii) · 5 marks

Solution

(This continues the 2024 question above, with P(A)=13P(A)=\tfrac13, P(B)=14P(B)=\tfrac14 and P(A∩B)=221P(A\cap B)=\tfrac2{21}.)

P(A∣Bc)=P(A)−P(AB)1−P(B)=13−22134=521⋅43=2063,P(A\mid B^c)=\frac{P(A)-P(AB)}{1-P(B)}=\frac{\frac13-\frac2{21}}{\frac34}=\frac5{21}\cdot\frac43=\frac{20}{63}, P(B∣Ac)=P(B)−P(AB)1−P(A)=14−22123=1384⋅32=1356.P(B\mid A^c)=\frac{P(B)-P(AB)}{1-P(A)}=\frac{\frac14-\frac2{21}}{\frac23}=\frac{13}{84}\cdot\frac32=\frac{13}{56}.

Answer. P(A∣Bc)+P(B∣Ac)=2063+1356=160+117504=𝟐𝟕𝟕𝟓𝟎𝟒≈0.550.P(A\mid B^c)+P(B\mid A^c)=\frac{20}{63}+\frac{13}{56}=\frac{160+117}{504}=\mathbf{\frac{277}{504}}\approx0.550.

✓ Checked by computer We recomputed in exact fractions: 20/63 + 13/56 = 277/504.

↑ Back to the question list

Suppose the joint probability function of two random variables X and Y is f(x,y)=xyx−13;x=1,2,3 and 0<y<1 Compute the following: P(X≥2 and Y≥12)

2024 · Paper I · Q1b(i) · 5 marks

Solution

Check. For each xx, ∫01xyx−1dy=1\int_0^1xy^{x-1}dy=1, so ∑x=1313⋅1=1\sum_{x=1}^3\frac13\cdot1=1. ✓ (Each xx has probability 13\frac13, and given X=xX=x, YY has density xyx−1xy^{x-1}.)

P(X≥2,Y≥12)=∑x=2313∫1/21xyx−1dy=13∑x=23[1−(12)x]=13(34+78)=𝟏𝟑𝟐𝟒.P\left(X\ge2,\ Y\ge\tfrac12\right)=\sum_{x=2}^3\frac13\int_{1/2}^1xy^{x-1}dy=\frac13\sum_{x=2}^3\left[1-\left(\tfrac12\right)^x\right]=\frac13\left(\frac34+\frac78\right)=\mathbf{\frac{13}{24}}.

✓ Checked by computer We recomputed with exact fractions: 13/24.

↑ Back to the question list

P(X≥2)

2024 · Paper I · Q1b(ii) · 5 marks

Solution

(This continues the 2024 question above.) Integrate out yy for each xx: P(X=x)=∫01xyx−13dy=13,x=1,2,3.P(X=x)=\int_0^1\frac{xy^{x-1}}3\,dy=\frac13,\qquad x=1,2,3. So P(X≥2)=P(X=2)+P(X=3)=𝟐𝟑.P(X\ge2)=P(X=2)+P(X=3)=\mathbf{\frac23}.

✓ Checked by computer We recomputed: 2/3.

↑ Back to the question list

Out of 1000 persons born, only 900 reach the age of 15 years, and out of every 1000 who reach the age of 15 years, 950 reach the age of 50 years. Out of every 1000 who reach the age of 50 years, 40 die in one year. Accordingly, what is the probability that a person would attain the age of 51 years?

2023 · Paper I · Q1a · 10 marks

Solution

Chain the conditional probabilities:

  • P(reach 15)=9001000=0.90P(\text{reach }15)=\dfrac{900}{1000}=0.90;
  • P(reach 50∣reach 15)=9501000=0.95P(\text{reach }50\mid\text{reach }15)=\dfrac{950}{1000}=0.95;
  • P(reach 51∣reach 50)=1−401000=0.96P(\text{reach }51\mid\text{reach }50)=1-\dfrac{40}{1000}=0.96.

By the multiplication rule, P(reach 51)=0.90×0.95×0.96=0.8208.P(\text{reach }51)=0.90\times0.95\times0.96=\mathbf{0.8208}.

✓ Checked by computer We recomputed 0.9 × 0.95 × 0.96 = 0.8208.

↑ Back to the question list

Let X be a continuous random variable with probability density function: f(x)={x2,0≤x<112,1≤x<23−x2,2≤x<30,elsewhere Obtain the cumulative distribution function of X and hence find the value of P(X>32).

2023 · Paper I · Q1b · 10 marks

Solution

C.d.f. Integrate piece by piece: F(x)={0,x<0x24,0≤x<114+x−12=2x−14,1≤x<21−(3−x)24,2≤x<31,x≥3.F(x)=\begin{cases}0,&x<0\\[2pt]\dfrac{x^2}4,&0\le x<1\\[6pt]\dfrac14+\dfrac{x-1}2=\dfrac{2x-1}4,&1\le x<2\\[6pt]1-\dfrac{(3-x)^2}4,&2\le x<3\\[6pt]1,&x\ge3.\end{cases} (For 2≤x<32\le x<3: F(x)=34+∫2x3−t2dt=34+1−(3−x)24F(x)=\frac34+\int_2^x\frac{3-t}2dt=\frac34+\frac{1-(3-x)^2}4.) The pieces join continuously: F(1)=14F(1)=\frac14, F(2)=34F(2)=\frac34, F(3)=1F(3)=1.

Probability. P(X>32)=1−F(32)=1−2(1.5)−14=1−12=𝟏𝟐.P\left(X>\tfrac32\right)=1-F\left(\tfrac32\right)=1-\frac{2(1.5)-1}4=1-\frac12=\mathbf{\frac12}. (Also clear from symmetry: the density is symmetric about x=32x=\frac32.)

✓ Checked by computer We recomputed the c.d.f. pieces and P(X>3/2)=1/2P(X>3/2)=1/2 in SymPy.

↑ Back to the question list

Let X,Y,Z be three mutually independent standard exponential variates and W1=X+Y+Z,W2=X+YX+Y+Z,W3=XX+Y. Then (i) determine the joint distribution of W1,W2 and W3. (ii) find out the marginal probability density functions of W1,W2 and W3. (iii) examine the mutual independence of W1,W2 and W3, and give your comment.

2023 · Paper I · Q2a · 20 marks

Solution

(i) Joint distribution. Invert the map: X=W1W2W3,Y=W1W2(1−W3),Z=W1(1−W2),X=W_1W_2W_3,\qquad Y=W_1W_2(1-W_3),\qquad Z=W_1(1-W_2), with w1>0w_1>0, 0<w2<10<w_2<1, 0<w3<10<w_3<1. The Jacobian is J=∂(x,y,z)∂(w1,w2,w3)=∣w2w3w1w3w1w2w2(1−w3)w1(1−w3)−w1w21−w2−w10∣,|J|=w12w2.J=\frac{\partial(x,y,z)}{\partial(w_1,w_2,w_3)}=\begin{vmatrix}w_2w_3&w_1w_3&w_1w_2\\w_2(1-w_3)&w_1(1-w_3)&-w_1w_2\\1-w_2&-w_1&0\end{vmatrix},\qquad|J|=w_1^2w_2. Since fX,Y,Z=e−(x+y+z)=e−w1f_{X,Y,Z}=e^{-(x+y+z)}=e^{-w_1}, g(w1,w2,w3)=w12w2e−w1,w1>0,0<w2<1,0<w3<1.g(w_1,w_2,w_3)=w_1^2w_2\,e^{-w_1},\qquad w_1>0,\ 0<w_2<1,\ 0<w_3<1.

(ii) Marginals. The joint density factorises: g=w12e−w12⏟W1⋅2w2⏟W2⋅1⏟W3.g=\underbrace{\frac{w_1^2e^{-w_1}}{2}}_{W_1}\cdot\underbrace{2w_2}_{W_2}\cdot\underbrace{1}_{W_3}.

  • W1∼W_1\sim Gamma(3, 1): f(w1)=12w12e−w1f(w_1)=\frac12w_1^2e^{-w_1}, w1>0w_1>0.
  • W2∼W_2\sim Beta(2, 1): f(w2)=2w2f(w_2)=2w_2, 0<w2<10<w_2<1.
  • W3∼U(0,1)W_3\sim U(0,1).

(iii) Independence. The joint density is the product of the three marginals on a product region, so W1,W2,W3W_1,W_2,W_3 are mutually independent.

Comment. For i.i.d. exponential (more generally, gamma) variables, the total X+Y+ZX+Y+Z is independent of how the total is split up. The proportions form a Dirichlet distribution that carries no information about the total. This is the basis of Lukacs’ characterisation of the gamma distribution.

✓ Derivation checked step by step Every step was checked, including the Jacobian. We also simulated 10⁶ triples in Python: the pairwise correlations of W₁, W₂, W₃ are 0.000–0.001, and the mean of W₂ is 0.666 (Beta(2, 1) mean 2/3).

↑ Back to the question list

In a certain recruitment test, there are multiple choice questions. There are four possible options to each question, out of which one is correct. The probability of knowing correct option for an intelligent student is 90%, while it is 20% for a weaker student. An intelligent student ticks the correct option. What is the probability that he was guessing?

2023 · Paper I · Q3a(ii) · 10 marks

Solution

Set-up. For an intelligent student: P(knows)=0.9P(\text{knows})=0.9 and P(guesses)=0.1P(\text{guesses})=0.1. A guess is correct with probability 14\frac14.

Bayes’ theorem. P(correct)=0.9(1)+0.1(14)=0.925,P(\text{correct})=0.9(1)+0.1\left(\tfrac14\right)=0.925, P(guessing∣correct)=0.1×0.250.925=0.0250.925=𝟏𝟑𝟕≈0.027.P(\text{guessing}\mid\text{correct})=\frac{0.1\times0.25}{0.925}=\frac{0.025}{0.925}=\mathbf{\frac1{37}}\approx0.027. (The 20% figure for a weaker student is not needed: we are told the student is intelligent.)

✓ Checked by computer We recomputed by Bayes’ theorem: 0.025/0.925 = 1/37 ≈ 0.027.

↑ Back to the question list

An unbiased six-sided die is thrown twice. Let X denote the smaller of the scores obtained. Then show that the probability mass function (p.m.f.) of X is given by: pX(x)={13−2x36,x=1,2,…,60,otherwise.

2022 · Paper I · Q1c · 10 marks

Solution

Tail probability. X=min(D1,D2)≥xX=\min(D_1,D_2)\ge x exactly when both dice show at least xx: P(X≥x)=(7−x6)2,x=1,…,6.P(X\ge x)=\left(\frac{7-x}6\right)^2,\qquad x=1,\dots,6.

P.m.f. pX(x)=P(X≥x)−P(X≥x+1)=(7−x)2−(6−x)236=(7−x)+(6−x)36=13−2x36.p_X(x)=P(X\ge x)-P(X\ge x+1)=\frac{(7-x)^2-(6-x)^2}{36}=\frac{(7-x)+(6-x)}{36}=\frac{13-2x}{36}. For x=1,…,6x=1,\dots,6 this gives 1136,936,736,536,336,136\frac{11}{36},\frac9{36},\frac7{36},\frac5{36},\frac3{36},\frac1{36}, which sum to 1. ◼\blacksquare

✓ Checked by computer We listed all 36 outcomes in Python and counted: 11, 9, 7, 5, 3, 1 out of 36 for x = 1, …, 6.

↑ Back to the question list

Each Sunday a fisherman visits one of three possible locations near his home: he goes to the sea with probability 12, to a river with probability 14, or to a lake with probability 14. If he goes to the sea there is an 80% chance that he will catch fish; corresponding figures for the river and the lake are 40% and 60% respectively. (i) Find the probability that, on a given Sunday, he catches fish. (ii) If, on a particular Sunday, he comes home without catching anything, determine the most likely place that he has been to.

2022 · Paper I · Q2b · 15 marks

Solution

(i) Total probability. P(fish)=12(0.8)+14(0.4)+14(0.6)=0.40+0.10+0.15=0.65.P(\text{fish})=\tfrac12(0.8)+\tfrac14(0.4)+\tfrac14(0.6)=0.40+0.10+0.15=\mathbf{0.65}.

(ii) Bayes’ theorem, with P(no fish)=0.35P(\text{no fish})=0.35:

Place Prior P(no fish ∣ place) Joint Posterior
Sea 0.50 0.20 0.10 2/7
River 0.25 0.60 0.15 3/7
Lake 0.25 0.40 0.10 2/7

Given that he caught nothing, the most likely place is the river, with probability 37≈0.43\frac37\approx0.43. This is so even though the sea was the most likely place beforehand.

✓ Checked by computer We recomputed P(fish) = 0.65 and the posteriors 2/7, 3/7, 2/7 in Python.

↑ Back to the question list

An insurance company studies a sample of 150 policy-holders. There are three categories of policies: auto, home and medical. The following results are obtained about the policies held by the policy-holders: (i) 30 have only home insurance (ii) 10 have only medical insurance (iii) 98 have auto insurance, but not all three types of insurance (iv) 27 have medical insurance, but not all three types of insurance (v) 13 have auto and medical insurance Given that a policy-holder has medical insurance, calculate the probability that he has home insurance.

2021 · Paper I · Q1b · 10 marks

Solution

Assumption. Every one of the 150 policy-holders holds at least one of the three policies. (The data cannot be solved without this.)

Regions (A = auto, H = home, M = medical; “only” means that policy and no other). Let aa = A only, bb = A∩H only, cc = A∩M only, dd = H∩M only, and tt = all three.

    1. H only = 30, and (ii) M only = 10.
    1. a+b+c=98a+b+c=98.
    1. 10+c+d=2710+c+d=27, so c+d=17c+d=17.
    1. c+t=13c+t=13.
  • Total: 30+10+(a+b+c)+d+t=15030+10+(a+b+c)+d+t=150, so d+t=12d+t=12.

Solve. From c+d=17c+d=17 and c+t=13c+t=13: d−t=4d-t=4. With d+t=12d+t=12: d=8d=8, t=4t=4, c=9c=9.

Answer. Medical holders: 10+c+d+t=10+9+8+4=3110+c+d+t=10+9+8+4=31. Medical and home: d+t=12d+t=12. So P(H∣M)=1231≈0.387.P(H\mid M)=\frac{12}{31}\approx\mathbf{0.387}.

✓ Checked by computer We solved the Venn-diagram equations by hand and checked that every region count is non-negative and the total is 150.

↑ Back to the question list

Let f(x,y)=e−yx22y3/2e−y2π,−∞<x<∞,y>0. (i) Obtain the marginal distribution of Y and conditional distribution of X given Y. (ii) Find E(Y),V(Y),E(X∣Y),V(X∣Y). (iii) Use (ii) to find E(X),V(X).

2021 · Paper I · Q4b · 15 marks

Solution

(This question is also listed under 1.2 Expectation and moments. The worked solution is repeated here so that this page is complete.)

(i) Marginal of YY. For fixed yy, ∫−∞∞e−yx2/2dx=2π/y\int_{-\infty}^\infty e^{-yx^2/2}dx=\sqrt{2\pi/y}, so fY(y)=y3/2e−y2π2πy=ye−y,y>0.f_Y(y)=\frac{y^{3/2}e^{-y}}{\sqrt{2\pi}}\sqrt{\frac{2\pi}y}=y\,e^{-y},\qquad y>0. YY is Gamma(2, 1).

Conditional of XX. f(x∣y)=f(x,y)fY(y)=y2πe−yx2/2,−∞<x<∞.f(x\mid y)=\frac{f(x,y)}{f_Y(y)}=\sqrt{\frac y{2\pi}}\,e^{-yx^2/2},\qquad -\infty<x<\infty. So X∣Y=y∼N(0,1y)X\mid Y=y\sim N\!\left(0,\ \tfrac1y\right).

(ii) Moments. E(Y)=2,V(Y)=2(Gamma(2,1));E(X∣Y)=0,V(X∣Y)=1Y.E(Y)=2,\qquad V(Y)=2\quad(\text{Gamma}(2,1));\qquad E(X\mid Y)=0,\qquad V(X\mid Y)=\frac1Y.

(iii) Unconditional moments of XX. E(X)=E[E(X∣Y)]=𝟎,E(X)=E[E(X\mid Y)]=\mathbf 0, V(X)=E[V(X∣Y)]+V[E(X∣Y)]=E(1Y)+0=∫0∞1yye−ydy=𝟏.V(X)=E[V(X\mid Y)]+V[E(X\mid Y)]=E\!\left(\frac1Y\right)+0=\int_0^\infty\frac1y\,y\,e^{-y}\,dy=\mathbf 1.

✓ Checked by computer We checked in SymPy that fY(y)=ye−yf_Y(y)=ye^{-y}, E(Y)=V(Y)=2E(Y)=V(Y)=2 and E(1/Y)=1E(1/Y)=1.

↑ Back to the question list

An insurer offers a health plan to the employees of a large company. As part of this plan, individually any employee may choose exactly two or none of the supplementary coverages A, B and C. The proportions of the company employees that choose coverage A, B and C are 16, 12 and 712 respectively. Determine the probability that a randomly chosen employee will choose no supplementary coverage.

2020 · Paper I · Q1a · 10 marks

Solution

Set-up. Each employee chooses either none, or exactly one pair: ABAB, ACAC or BCBC. Let xAB,xAC,xBCx_{AB},x_{AC},x_{BC} be the proportions choosing each pair. Then xAB+xAC=16,xAB+xBC=12,xAC+xBC=712.x_{AB}+x_{AC}=\tfrac16,\qquad x_{AB}+x_{BC}=\tfrac12,\qquad x_{AC}+x_{BC}=\tfrac7{12}.

Add the three equations. 2(xAB+xAC+xBC)=2+6+712=1512⇒xAB+xAC+xBC=58.2(x_{AB}+x_{AC}+x_{BC})=\tfrac{2+6+7}{12}=\tfrac{15}{12}\ \Rightarrow\ x_{AB}+x_{AC}+x_{BC}=\tfrac58.

Answer. P(no supplementary coverage)=1−58=𝟑𝟖.P(\text{no supplementary coverage})=1-\tfrac58=\mathbf{\tfrac38}. (Individually: xAB=124x_{AB}=\frac1{24}, xAC=18x_{AC}=\frac18, xBC=1124x_{BC}=\frac{11}{24}, all non-negative, so the data are consistent.)

✓ Checked by computer We solved the three equations with exact fractions: none = 3/8.

↑ Back to the question list

Let X and Y be iid random variables with P(X=k)=2−k,k=1,2,3,…. Find P(X>Y).

2020 · Paper I · Q1b · 10 marks

Solution

Ties. P(X=Y)=∑k=1∞2−k⋅2−k=∑k=1∞4−k=13.P(X=Y)=\sum_{k=1}^\infty2^{-k}\cdot2^{-k}=\sum_{k=1}^\infty4^{-k}=\frac13.

Symmetry. XX and YY are i.i.d., so P(X>Y)=P(Y>X)P(X>Y)=P(Y>X). These two and P(X=Y)P(X=Y) add to 1, so P(X>Y)=1−132=𝟏𝟑.P(X>Y)=\frac{1-\frac13}2=\mathbf{\frac13}. (Directly: P(X>Y)=∑kP(Y=k)P(X>k)=∑k2−k2−k=13P(X>Y)=\sum_kP(Y=k)P(X>k)=\sum_k2^{-k}2^{-k}=\frac13.)

✓ Checked by computer We summed the double series numerically in Python: 0.33333.

↑ Back to the question list

The random variable X takes values on the interval [0,2]. Given that P(X=1)=0.25, F(x∣x<1)=x2, F(x∣x>1)=x−1, E(X)=1. Find P(X≤1).

2020 · Paper I · Q2b · 15 marks

Solution

Split XX into three parts. Let a=P(X<1)a=P(X<1). Then P(X>1)=1−0.25−a=0.75−aP(X>1)=1-0.25-a=0.75-a.

  • Given X<1X<1: F(x)=x2F(x)=x^2 on [0,1][0,1], so the density is 2x2x and the conditional mean is ∫012x2dx=23\int_0^12x^2dx=\frac23.
  • Given X>1X>1: F(x)=x−1F(x)=x-1 on (1,2](1,2], so XX is uniform on (1,2)(1,2) with mean 32\frac32.
  • P(X=1)=0.25P(X=1)=0.25.

Use E(X)=1E(X)=1. 23a+1(0.25)+32(0.75−a)=1⇒1.375−56a=1⇒a=0.45.\frac23a+1(0.25)+\frac32(0.75-a)=1\ \Rightarrow\ 1.375-\frac56a=1\ \Rightarrow\ a=0.45.

Answer. P(X≤1)=P(X<1)+P(X=1)=0.45+0.25=0.70.P(X\le1)=P(X<1)+P(X=1)=0.45+0.25=\mathbf{0.70}.

✓ Checked by computer We solved the linear equation for P(X < 1) symbolically: 9/20, so P(X ≤ 1) = 0.7.

↑ Back to the question list

Suppose a coin is tossed three times. If X denotes the number of heads on first toss and Y is the total number of heads, then write down the probability distribution of Z=X+Y.

2019 · Paper I · Q1a · 10 marks

Solution

Outcome XX YY Z=X+YZ=X+Y
HHH 1 3 4
HHT, HTH 1 2 3
HTT 1 1 2
THH 0 2 2
THT, TTH 0 1 1
TTT 0 0 0

Distribution of ZZ.

zz 0 1 2 3 4
P(Z=z)P(Z=z) 18\frac18 28\frac28 28\frac28 28\frac28 18\frac18

(Equivalently, Z=2X+(heads on tosses 2 and 3)Z=2X+(\text{heads on tosses 2 and 3}).)

✓ Checked by computer We listed all 8 outcomes in Python and counted the values of Z: 1, 2, 2, 2, 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

(This question is also listed under 1.6 Standard distributions. The worked solution is repeated here so that this page is complete.)

(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

A random variable X has the following probability function:

Value of X=x −2 −1 0 1 2 3
f(x) 0.15 k 0.25 2k 0.35 k

(i) Find the value of k. (ii) Obtain the distribution function F(x) and draw its graph.

2019 · Paper I · Q4b · 15 marks

Solution

(i) The probabilities add to 1: 0.15+k+0.25+2k+0.35+k=0.75+4k=1⇒k=0.0625=116.0.15+k+0.25+2k+0.35+k=0.75+4k=1\ \Rightarrow\ k=\mathbf{0.0625}=\tfrac1{16}.

(ii) Distribution function. F(x)={0,x<−20.15,−2≤x<−10.2125,−1≤x<00.4625,0≤x<10.5875,1≤x<20.9375,2≤x<31,x≥3.F(x)=\begin{cases}0,&x<-2\\0.15,&-2\le x<-1\\0.2125,&-1\le x<0\\0.4625,&0\le x<1\\0.5875,&1\le x<2\\0.9375,&2\le x<3\\1,&x\ge3.\end{cases}

Graph. FF is a right-continuous step function that jumps by f(x)f(x) at each value of XX:

−3−2−10123400.250.50.751xF(x)
F(x) is a step function: it jumps by f(x) at each value x = −2, −1, 0, 1, 2, 3 and is flat in between. The dots mark the value taken at each jump (F is right-continuous).

✓ Checked by computer We recomputed k = 1/16 and the cumulative sums in Python.

↑ Back to the question list

We have a bag with 3 coins in it. One of them is a fair coin, but the others are biased trick coins. When flipped the three coins come up ‘heads’ with probability 0.5, 0.6, 0.1 respectively. If one of these coins is picked at random and flipped three times, (i) What is P(HTT)? (ii) Assuming that {HTT} occurred, what is the probability of having chosen a fair coin? Here {H,T} denote Heads and Tails respectively.

2018 · Paper I · Q1a · 10 marks

Solution

(i) Total probability. Each coin is picked with probability 13\frac13, and for a coin with P(H)=pP(H)=p, P(HTT)=p(1−p)2P(HTT)=p(1-p)^2. P(HTT)=13[0.5(0.5)2+0.6(0.4)2+0.1(0.9)2]=13[0.125+0.096+0.081]=0.3023≈0.1007.P(HTT)=\frac13\left[0.5(0.5)^2+0.6(0.4)^2+0.1(0.9)^2\right]=\frac13\left[0.125+0.096+0.081\right]=\frac{0.302}3\approx\mathbf{0.1007}.

(ii) Bayes’ theorem. P(fair∣HTT)=13(0.125)13(0.302)=125302≈0.414.P(\text{fair}\mid HTT)=\frac{\frac13(0.125)}{\frac13(0.302)}=\frac{125}{302}\approx\mathbf{0.414}.

✓ Checked by computer We recomputed in Python: P(HTT) = 0.302/3 = 0.1007 and P(fair | HTT) = 0.125/0.302 = 0.414.

↑ Back to the question list

Consider two independent and identically distributed uniform U(0,1) random variables. Derive the distribution of U=XY. Comment on E(U).

2018 · Paper I · Q1c · 10 marks

Solution

C.d.f. of U=X/YU=X/Y. (X,Y)(X,Y) is uniform on the unit square, so P(U≤u)P(U\le u) is the area of {x≤uy}\{x\le uy\} inside it.

  • 0≤u≤10\le u\le1: the region is a triangle with vertices (0,0),(0,1),(u,1)(0,0),(0,1),(u,1), of area u2\frac u2.
  • u>1u>1: the complement {x>uy}\{x>uy\} is a triangle with vertices (0,0),(1,0),(1,1u)(0,0),(1,0),(1,\frac1u), of area 12u\frac1{2u}.

So FU(u)={u2,0≤u≤11−12u,u>1,fU(u)={12,0<u<112u2,u>1.F_U(u)=\begin{cases}\dfrac u2,&0\le u\le1\\[6pt]1-\dfrac1{2u},&u>1,\end{cases}\qquad f_U(u)=\begin{cases}\dfrac12,&0<u<1\\[6pt]\dfrac1{2u^2},&u>1.\end{cases}

E(U)E(U). E(U)=∫01u2du+∫1∞u2u2du=14+12∫1∞duu=∞.E(U)=\int_0^1\frac u2\,du+\int_1^\infty\frac u{2u^2}\,du=\frac14+\frac12\int_1^\infty\frac{du}u=\infty. E(U)E(U) does not exist (it is infinite). The reason is that YY can be very close to 0: E(X/Y)=E(X)E(1/Y)=12∫01dyy=∞E(X/Y)=E(X)\,E(1/Y)=\frac12\int_0^1\frac{dy}y=\infty. Note that E(X)/E(Y)=1E(X)/E(Y)=1, but this is not E(X/Y)E(X/Y).

✓ Checked by computer We checked by simulation in Python (10⁶ ratios): P(U ≤ 0.5) = 0.250 and P(U ≤ 3) = 0.833, matching the c.d.f.

↑ Back to the question list

The joint density of X, Y is f(x,y)=e−y,0≤x≤y<∞. Find the marginal distributions of X, Y and the conditional distribution of Y given X.

2018 · Paper I · Q2a · 20 marks

Solution

Marginal of XX. fX(x)=∫x∞e−ydy=e−x,x≥0.f_X(x)=\int_x^\infty e^{-y}\,dy=e^{-x},\qquad x\ge0. X∼X\sim Exp(1).

Marginal of YY. fY(y)=∫0ye−ydx=ye−y,y≥0.f_Y(y)=\int_0^ye^{-y}\,dx=y\,e^{-y},\qquad y\ge0. Y∼Y\sim Gamma(2, 1).

Conditional of YY given X=xX=x. f(y∣x)=e−ye−x=e−(y−x),y≥x.f(y\mid x)=\frac{e^{-y}}{e^{-x}}=e^{-(y-x)},\qquad y\ge x. So Y−xY-x, given X=xX=x, is Exp(1): Y=X+(an independent Exp(1))Y=X+(\text{an independent Exp(1)}). (The conditional of XX given Y=yY=y is uniform on (0,y)(0,y).)

✓ Checked by computer We checked each marginal and conditional density integrates to 1 (SymPy).

↑ Back to the question list

Ten percent of a certain population suffer from a serious disease. Two independent tests are given to a person suspected of the disease. Each test gives a correct diagnosis 90% of the time. Find the probability that the person really suffers from the disease, given that– (i) both tests are positive; (ii) only one test is positive.

2017 · Paper I · Q1a · 10 marks

Solution

Set-up. P(D)=0.1P(D)=0.1. Each test is correct with probability 0.9: P(+∣D)=0.9P(+\mid D)=0.9 and P(+∣Dc)=0.1P(+\mid D^c)=0.1. The tests are independent given the disease status.

(i) Both positive. P(D∣++)=0.1(0.9)20.1(0.9)2+0.9(0.1)2=0.0810.081+0.009=0.9.P(D\mid{+}{+})=\frac{0.1(0.9)^2}{0.1(0.9)^2+0.9(0.1)^2}=\frac{0.081}{0.081+0.009}=\mathbf{0.9}.

(ii) Exactly one positive. P(one+∣D)=2(0.9)(0.1)=0.18P(\text{one}+\mid D)=2(0.9)(0.1)=0.18, and P(one+∣Dc)=2(0.1)(0.9)=0.18P(\text{one}+\mid D^c)=2(0.1)(0.9)=0.18. So P(D∣one+)=0.1(0.18)0.1(0.18)+0.9(0.18)=0.1.P(D\mid\text{one}+)=\frac{0.1(0.18)}{0.1(0.18)+0.9(0.18)}=\mathbf{0.1}. Two conflicting results carry no information when the tests are equally accurate, so the probability stays at the prior, 10%.

✓ Checked by computer We recomputed both posteriors in Python: 0.9 and 0.1.

↑ Back to the question list

Let X be a continuous random variable with the probability density function f(x)={2/x2,if 1<x<20,elsewhere Find the cumulative distribution function and the probability density function of Y=X2.

2017 · Paper I · Q1b · 10 marks

Solution

C.d.f. of XX. FX(x)=∫1x2t2dt=2−2xF_X(x)=\displaystyle\int_1^x\frac2{t^2}dt=2-\frac2x for 1<x<21<x<2.

C.d.f. of Y=X2Y=X^2. Y∈(1,4)Y\in(1,4), and X=YX=\sqrt Y is increasing, so for 1<y<41<y<4: FY(y)=P(X≤y)=2−2y.F_Y(y)=P(X\le\sqrt y)=2-\frac2{\sqrt y}. FY(y)={0,y≤12−2y,1<y<41,y≥4.F_Y(y)=\begin{cases}0,&y\le1\\2-\dfrac2{\sqrt y},&1<y<4\\1,&y\ge4.\end{cases}

P.d.f. fY(y)=ddy(2−2y−1/2)=y−3/2,1<y<4.f_Y(y)=\frac{d}{dy}\left(2-2y^{-1/2}\right)=y^{-3/2},\qquad1<y<4. (Check: ∫14y−3/2dy=[−2y−1/2]14=1\int_1^4y^{-3/2}dy=\left[-2y^{-1/2}\right]_1^4=1.)

✓ Checked by computer We checked in SymPy that the density of Y integrates to 1 over (1, 4).

↑ Back to the question list

In a community of (a+b) potential voters, a are for abortion and b(b<a) are against it. Suppose that a vote is taken to determine the will of the majority with regard to legalizing abortion. If n(n<b) random persons of these (a+b) potential voters do not vote, what is the probability that those against abortion will win?

2017 · Paper I · Q2c · 15 marks

Solution

Who stays away. The nn non-voters are a random sample (without replacement) from the a+ba+b people. Let KK be the number of “for” people among them. KK is hypergeometric: P(K=k)=(ak)(bn−k)(a+bn).P(K=k)=\frac{\binom ak\binom b{n-k}}{\binom{a+b}n}.

When does “against” win? Votes for =a−K=a-K, and votes against =b−(n−K)=b-(n-K). “Against” wins (a strict majority) when b−n+K>a−K⇔K>a−b+n2.b-n+K>a-K\iff K>\frac{a-b+n}2.

Answer. P(against wins)=∑k>a−b+n2min(n,a)(ak)(bn−k)(a+bn).P(\text{against wins})=\sum_{k>\frac{a-b+n}2}^{\min(n,\,a)}\frac{\binom ak\binom b{n-k}}{\binom{a+b}n}. If n≤a−bn\le a-b, no value of k≤nk\le n satisfies the condition, and the probability is 0: too few people abstain to overturn the majority. (If a−b+na-b+n is even, K=a−b+n2K=\frac{a-b+n}2 gives a tie.)

✓ Checked by computer We checked the formula by simulation in Python (a = 7, b = 5, n = 3): 0.1591 from the formula, 0.1591 simulated.

↑ Back to the question list

X1 is the time that a customer takes from getting on line at a service desk in a bank to completion of service and X2 is the time to wait in line before reaching the service desk (X1≥X2). The joint probability density function of (X1,X2) is given by f(x1,x2)={e−x1,0≤x2≤x1<∞0,elsewhere Let Y1=X1+X2 and Y2=X1−X2. Find the joint probability density function of Y1 and Y2. Are Y1 and Y2 independently distributed? Give reason.

2017 · Paper I · Q3a · 20 marks

Solution

Transformation. Y1=X1+X2Y_1=X_1+X_2 and Y2=X1−X2Y_2=X_1-X_2, so X1=Y1+Y22,X2=Y1−Y22,|J|=|det(121212−12)|=12.X_1=\frac{Y_1+Y_2}2,\qquad X_2=\frac{Y_1-Y_2}2,\qquad|J|=\left|\det\begin{pmatrix}\frac12&\frac12\\\frac12&-\frac12\end{pmatrix}\right|=\frac12.

New support. x2≥0⇔y1≥y2x_2\ge0\iff y_1\ge y_2, and x2≤x1⇔y2≥0x_2\le x_1\iff y_2\ge0. So the support is 0≤y2≤y1<∞0\le y_2\le y_1<\infty.

Joint p.d.f. g(y1,y2)=12e−(y1+y2)/2,0≤y2≤y1<∞.g(y_1,y_2)=\frac12e^{-(y_1+y_2)/2},\qquad0\le y_2\le y_1<\infty. (Check: ∫0∞∫y2∞12e−(y1+y2)/2dy1dy2=∫0∞e−y2dy2=1\int_0^\infty\int_{y_2}^\infty\frac12e^{-(y_1+y_2)/2}dy_1dy_2=\int_0^\infty e^{-y_2}dy_2=1.)

Independence: no. The support {0≤y2≤y1}\{0\le y_2\le y_1\} is not a product set, so Y1,Y2Y_1,Y_2 cannot be independent. For example, Y2>5Y_2>5 forces Y1>5Y_1>5. Explicitly, the marginals are g2(y2)=e−y2,g1(y1)=e−y1/2(1−e−y1/2),g_2(y_2)=e^{-y_2},\qquad g_1(y_1)=e^{-y_1/2}\left(1-e^{-y_1/2}\right), and their product is not g(y1,y2)g(y_1,y_2).

✓ Derivation checked step by step Every step was checked, including the Jacobian. We also simulated in Python: corr(Y₁, Y₂) = 0.45, not 0, and the mean of Y₂ is 1.00, as the Exp(1) marginal predicts.

↑ Back to the question list

Let X1,X2,X3 and X4 be independent and identically distributed random variables each having probability density function f(x)={3(1−x)2,0<x<10,otherwise Find the cumulative distribution function and probability density function of Y=Min(X1,X2,X3,X4).

2017 · Paper I · Q3b · 15 marks

Solution

C.d.f. of one XiX_i. F(x)=∫0x3(1−t)2dt=1−(1−x)3F(x)=\int_0^x3(1-t)^2dt=1-(1-x)^3, so P(Xi>x)=(1−x)3P(X_i>x)=(1-x)^3 for 0<x<10<x<1.

C.d.f. of the minimum. Y>yY>y exactly when all four exceed yy: P(Y>y)=[(1−y)3]4=(1−y)12.P(Y>y)=\left[(1-y)^3\right]^4=(1-y)^{12}. FY(y)={0,y≤01−(1−y)12,0<y<11,y≥1.F_Y(y)=\begin{cases}0,&y\le0\\1-(1-y)^{12},&0<y<1\\1,&y\ge1.\end{cases}

P.d.f. fY(y)=12(1−y)11,0<y<1.f_Y(y)=12(1-y)^{11},\qquad0<y<1. YY is Beta(1, 12).

✓ Checked by computer We checked the formula FY(y)=1−(1−y)12F_Y(y)=1-(1-y)^{12} numerically at y = 0.1 and 0.3.

↑ Back to the question list

Let F be a probability distribution function of a discrete random variable. Prove that the functions Fn and 1−(1−F)n are also probability distribution functions.

2016 · Paper I · Q1b · 10 marks

Solution

What a d.f. needs. GG is a distribution function if it is (a) non-decreasing, (b) right-continuous, and (c) G(−∞)=0G(-\infty)=0, G(+∞)=1G(+\infty)=1. FF has all three properties, with 0≤F≤10\le F\le1.

G1=FnG_1=F^n.

    1. If x<yx<y, then 0≤F(x)≤F(y)0\le F(x)\le F(y), so F(x)n≤F(y)nF(x)^n\le F(y)^n.
    1. t↦tnt\mapsto t^n is continuous, so FnF^n is right-continuous.
    1. Fn(−∞)=0n=0F^n(-\infty)=0^n=0 and Fn(∞)=1n=1F^n(\infty)=1^n=1.

G2=1−(1−F)nG_2=1-(1-F)^n.

    1. 1−F1-F is non-increasing and ≥0\ge0, so (1−F)n(1-F)^n is non-increasing and 1−(1−F)n1-(1-F)^n is non-decreasing.
    1. It is a continuous function of a right-continuous function, so it is right-continuous.
    1. G2(−∞)=1−1=0G_2(-\infty)=1-1=0 and G2(∞)=1−0=1G_2(\infty)=1-0=1.

Both are distribution functions. ◼\blacksquare

Interpretation. If X1,…,XnX_1,\dots,X_n are i.i.d. with d.f. FF, then FnF^n is the d.f. of maxXi\max X_i and 1−(1−F)n1-(1-F)^n is the d.f. of minXi\min X_i. (The argument does not use that FF is discrete.)

✓ Proof checked step by step Every step was checked against the defining properties of a distribution function.

↑ Back to the question list

What is the probability of an even number of successes in n independent Bernoulli trials?

2016 · Paper I · Q2a · 15 marks

Solution

Generating-function trick. Let X∼B(n,p)X\sim B(n,p) and q=1−pq=1-p. By the binomial theorem, (q+p)n=∑k(nk)pkqn−k=1,(q−p)n=∑k(nk)(−p)kqn−k=∑k(−1)kP(X=k).(q+p)^n=\sum_k\binom nkp^kq^{n-k}=1,\qquad(q-p)^n=\sum_k\binom nk(-p)^kq^{n-k}=\sum_k(-1)^kP(X=k). Adding the two, the odd terms cancel and the even terms double: 1+(q−p)n=2∑k evenP(X=k).1+(q-p)^n=2\sum_{k\text{ even}}P(X=k).

Answer. P(even number of successes)=1+(q−p)n2=1+(1−2p)n2.P(\text{even number of successes})=\frac{1+(q-p)^n}2=\frac{1+(1-2p)^n}2. For p=12p=\frac12 this is exactly 12\frac12. For any 0<p<10<p<1 it tends to 12\frac12 as n→∞n\to\infty. (Zero successes counts as even.)

✓ Checked by computer We checked the formula against the binomial pmf in Python (n = 5, p = 0.3 and n = 6, p = 0.7).

↑ Back to the question list

You bought a box of lightbulbs from a shop. You know that the bulbs are all either short-life bulbs with a mean life of 500 hours or long-life bulbs with a mean life of 2500 hours, but you cannot tell which, because there was no label on the box. As you have not shopped at this shop before, you initially have no opinion as to whether you have been sold long-life bulbs or the cheaper alternative. After approximately 300 hours you find that 5 bulbs are alive. Assuming that the life of an individual lightbulb has an exponential distribution, how would you now assess the probability that you bought long-life bulbs?

2016 · Paper I · Q2b · 20 marks

Solution

Note on the question. The number of bulbs in the box is not given. We take the natural reading: the box held 5 bulbs, and all 5 are still working after 300 hours. The general formula is given at the end.

Prior. With no opinion either way, P(L)=P(S)=12P(L)=P(S)=\frac12.

Likelihood. An exponential life with mean μ\mu survives 300 hours with probability e−300/μe^{-300/\mu}: pL=e−300/2500=e−0.12=0.8869,pS=e−300/500=e−0.6=0.5488.p_L=e^{-300/2500}=e^{-0.12}=0.8869,\qquad p_S=e^{-300/500}=e^{-0.6}=0.5488. The bulbs are independent, so P(all 5 alive∣L)=pL5,P(all 5 alive∣S)=pS5.P(\text{all 5 alive}\mid L)=p_L^5,\qquad P(\text{all 5 alive}\mid S)=p_S^5.

Posterior. P(L∣data)=pL5pL5+pS5=11+e−2.4=11.0212.02≈0.92.P(L\mid\text{data})=\frac{p_L^5}{p_L^5+p_S^5}=\frac1{1+e^{-2.4}}=\frac{11.02}{12.02}\approx\mathbf{0.92}. Seeing all five bulbs still working raises the probability of long-life bulbs from 50% to about 92%.

General case. If the box held mm bulbs and exactly 5 are alive, multiply each likelihood by the chance that the other m−5m-5 have failed: P(L∣data)=[1+(pSpL)5(1−pS1−pL)m−5]−1.P(L\mid\text{data})=\left[1+\left(\frac{p_S}{p_L}\right)^5\left(\frac{1-p_S}{1-p_L}\right)^{m-5}\right]^{-1}.

✓ Checked by computer We recomputed in Python: survival chances 0.8869 (long) and 0.5488 (short) at 300 hours, likelihood ratio e^{2.4} = 11.02, posterior 0.917.

↑ Back to the question list

Let the probability that a family has exactly n children be αpn (α>0,0<p<1). Assume that a child can be a boy or a girl with equal probability. (i) Obtain the probability that a family has exactly k(≥1) boys. (ii) Given that a family has at least one boy, what is the probability that there are two or more children in that family?

2015 · Paper I · Q1a · 10 marks

Solution

Model. P(N=n)=αpnP(N=n)=\alpha p^n for n≥1n\ge1. (The remaining probability, 1−αp1−p1-\frac{\alpha p}{1-p}, is on n=0n=0.) Given N=nN=n, the number of boys is B(n,12)B(n,\frac12).

(i) Exactly k≥1k\ge1 boys. P(K=k)=∑n=k∞αpn(nk)12n=α∑n=k∞(nk)(p2)n.P(K=k)=\sum_{n=k}^\infty\alpha p^n\binom nk\frac1{2^n}=\alpha\sum_{n=k}^\infty\binom nk\left(\frac p2\right)^n. Using ∑n≥k(nk)xn=xk(1−x)k+1\sum_{n\ge k}\binom nkx^n=\dfrac{x^k}{(1-x)^{k+1}} with x=p/2x=p/2: P(K=k)=α(p/2)k(1−p/2)k+1=2αpk(2−p)k+1,k=1,2,…P(K=k)=\alpha\frac{(p/2)^k}{(1-p/2)^{k+1}}=\frac{2\alpha p^k}{(2-p)^{k+1}},\qquad k=1,2,\dots

(ii) Sum (i) over k≥1k\ge1: P(K≥1)=2α2−p⋅p/(2−p)1−p/(2−p)=αp(2−p)(1−p).P(K\ge1)=\frac{2\alpha}{2-p}\cdot\frac{p/(2-p)}{1-p/(2-p)}=\frac{\alpha p}{(2-p)(1-p)}. A one-child family has at least one boy with probability αp⋅12\alpha p\cdot\frac12. So P(N≥2∣K≥1)=1−αp/2αp/[(2−p)(1−p)]=1−(2−p)(1−p)2=p(3−p)2.P(N\ge2\mid K\ge1)=1-\frac{\alpha p/2}{\alpha p/[(2-p)(1-p)]}=1-\frac{(2-p)(1-p)}2=\frac{p(3-p)}2.

✓ Checked by computer We checked both answers numerically in Python (α = 0.2, p = 0.4) by summing the series directly: P(k = 1, 2 boys) = 0.0625, 0.015625, and part (ii) = 0.52 = p(3 − p)/2.

↑ Back to the question list

Let F(⋅) be the cumulative distribution function (cdf) given by F(x)={0if x<112+(x−1)4if 1≤x<278+(x−2)8if 2≤x<31if x≥3 Find the set of discontinuity points of F and express F as a mixture of its discrete and continuous parts.

2015 · Paper I · Q4a · 20 marks

Solution

Jumps of FF.

  • At x=1x=1: F(1)−F(1−)=12−0=12F(1)-F(1-)=\frac12-0=\frac12.
  • At x=2x=2: F(2)−F(2−)=78−(12+14)=18F(2)-F(2-)=\frac78-\left(\frac12+\frac14\right)=\frac18.
  • At x=3x=3: F(3)−F(3−)=1−(78+18)=0F(3)-F(3-)=1-\left(\frac78+\frac18\right)=0, so no jump.

Discontinuity set: {1,2}\{1,2\}. The total jump is 12+18=58\frac12+\frac18=\frac58.

Continuous part. Between the jumps FF rises with slope 14\frac14 on (1,2)(1,2) and 18\frac18 on (2,3)(2,3), a total of 14+18=38\frac14+\frac18=\frac38. (Check: 58+38=1\frac58+\frac38=1.)

Mixture. F(x)=58Fd(x)+38Fc(x),F(x)=\frac58F_d(x)+\frac38F_c(x), where

  • FdF_d is discrete with P(1)=1/25/8=45P(1)=\frac{1/2}{5/8}=\frac45 and P(2)=1/85/8=15P(2)=\frac{1/8}{5/8}=\frac15;
  • FcF_c is absolutely continuous with density 1/43/8=23\frac{1/4}{3/8}=\frac23 on (1,2)(1,2) and 1/83/8=13\frac{1/8}{3/8}=\frac13 on (2,3)(2,3).

Fc(x)={0,x<123(x−1),1≤x<223+13(x−2),2≤x<31,x≥3.F_c(x)=\begin{cases}0,&x<1\\\frac23(x-1),&1\le x<2\\\frac23+\frac13(x-2),&2\le x<3\\1,&x\ge3.\end{cases}

✓ Checked by computer We checked that the discrete and continuous parts recombine to F at several points.

↑ Back to the question list

If for the events A and B, P(A)>0 and P(B)>0 then show that P(A∣B)>P(A), if and only if P(B∣A)>P(B). Likewise, P(A∣B)<P(A), if and only if P(B∣A)<P(B).

2014 · Paper I · Q1a · 10 marks

Solution

Since P(A),P(B)>0P(A),P(B)>0, P(A∣B)>P(A)⇔P(A∩B)P(B)>P(A)⇔P(A∩B)>P(A)P(B).P(A\mid B)>P(A)\iff\frac{P(A\cap B)}{P(B)}>P(A)\iff P(A\cap B)>P(A)P(B). By the same algebra with AA and BB swapped, P(B∣A)>P(B)⇔P(A∩B)>P(A)P(B).P(B\mid A)>P(B)\iff P(A\cap B)>P(A)P(B). The two statements are equivalent to the same inequality, so P(A∣B)>P(A)⇔P(B∣A)>P(B).P(A\mid B)>P(A)\iff P(B\mid A)>P(B). Replacing >> by << throughout gives the second statement. ◼\blacksquare

Meaning. Positive association is symmetric: if BB makes AA more likely, then AA makes BB more likely. (With “=” in place of “>”, this is independence.)

✓ Proof checked step by step Every step was checked; both equivalences reduce to the same inequality between P(A ∩ B) and P(A)P(B).

↑ Back to the question list

Three digits 1, 2 and 3 are written down in random order. What is the probability that at least one digit will occupy its proper place?

2014 · Paper I · Q1b · 10 marks

Solution

There are 3!=63!=6 equally likely orders. We list them, marking digits in their proper place in bold:

𝟏𝟐𝟑\mathbf{1}\mathbf{2}\mathbf{3}, 𝟏32\mathbf 1\,3\,2, 21𝟑2\,1\,\mathbf 3, 2312\,3\,1, 3123\,1\,2, 3𝟐13\,\mathbf 2\,1.

Only 231231 and 312312 have no digit in place (these are the derangements). So P(at least one in place)=1−26=𝟐𝟑.P(\text{at least one in place})=1-\frac26=\mathbf{\frac23}. (By inclusion–exclusion: 1−12!+13!=231-\frac1{2!}+\frac1{3!}=\frac23.)

✓ Checked by computer We listed all 6 orders in Python: 4 of them have at least one digit in its place.

↑ Back to the question list

In the course of an experiment with a particular brand of DDT on flies, it is found that 80% are killed in the first application. Those which survive develop a resistance, so that the percentage of survivors killed in any later application is half that in the preceding application. Thus 40% of the survivors of the first application would succumb to the second, 20% of the survivors of the first two applications would succumb to the third, and so on. Find the probability that (i) a fly will survive four applications. (ii) it will survive four applications, given that it has survived the first one.

2013 · Paper I · Q1a · 10 marks

Solution

Kill rates. The applications kill 80%, 40%, 20% and 10% of the flies present. So the survival chances are 0.2, 0.6, 0.8 and 0.9 in turn.

(i) P(survives 4)=0.2×0.6×0.8×0.9=0.0864.P(\text{survives 4})=0.2\times0.6\times0.8\times0.9=\mathbf{0.0864}.

(ii) P(survives 4∣survives the 1st)=0.08640.2=0.6×0.8×0.9=0.432.P(\text{survives 4}\mid\text{survives the 1st})=\frac{0.0864}{0.2}=0.6\times0.8\times0.9=\mathbf{0.432}.

✓ Checked by computer We recomputed both products in Python: 0.0864 and 0.432.

↑ Back to the question list

The joint distribution of two random variables X and Y has the pdf fX,Y(x,y)=βa+bxa−1(y−x)b−1e−βy,0<X<Y<∞;=0 otherwise Derive the marginal distribution of X and the conditional distribution of Y given X.

2013 · Paper I · Q1b · 10 marks

Solution

Note on the question. As printed, the density lacks its normalising constant. The correct joint density is f(x,y)=βa+bΓ(a)Γ(b)xa−1(y−x)b−1e−βy,0<x<y<∞.f(x,y)=\frac{\beta^{a+b}}{\Gamma(a)\Gamma(b)}x^{a-1}(y-x)^{b-1}e^{-\beta y},\qquad0<x<y<\infty. (Without 1Γ(a)Γ(b)\frac1{\Gamma(a)\Gamma(b)} it would integrate to Γ(a)Γ(b)\Gamma(a)\Gamma(b), not 1.)

Marginal of XX. Substitute w=y−xw=y-x: ∫x∞(y−x)b−1e−βydy=e−βx∫0∞wb−1e−βwdw=e−βxΓ(b)βb.\int_x^\infty(y-x)^{b-1}e^{-\beta y}\,dy=e^{-\beta x}\int_0^\infty w^{b-1}e^{-\beta w}dw=e^{-\beta x}\frac{\Gamma(b)}{\beta^b}. So fX(x)=βaΓ(a)xa−1e−βx,x>0.f_X(x)=\frac{\beta^a}{\Gamma(a)}x^{a-1}e^{-\beta x},\qquad x>0. X∼X\sim Gamma(shape aa, rate β\beta).

Conditional of YY given X=xX=x. f(y∣x)=f(x,y)fX(x)=βbΓ(b)(y−x)b−1e−β(y−x),y>x.f(y\mid x)=\frac{f(x,y)}{f_X(x)}=\frac{\beta^b}{\Gamma(b)}(y-x)^{b-1}e^{-\beta(y-x)},\qquad y>x. So, given X=xX=x, Y−x∼Y-x\sim Gamma(bb, β\beta). In other words Y=X+WY=X+W with W∼W\sim Gamma(bb, β\beta) independent of XX, and so Y∼Y\sim Gamma(a+ba+b, β\beta).

✓ Derivation checked step by step Every step was checked using the gamma integral ∫x∞(y−x)b−1e−βydy=e−βxΓ(b)/βb\int_x^\infty(y-x)^{b-1}e^{-\beta y}dy=e^{-\beta x}\Gamma(b)/\beta^b.

↑ Back to the question list

A tyre manufacturing company has three production units A, B and C which produce respectively 50%, 30% and 20% of the entire production. Unit A is known to produce 5% defectives, unit B produces 3% defectives and unit C produces 1% defectives. What percentage of items in the entire produce is defective? If an item is found to be defective, what is the probability that it was produced at unit C?

2012 · Paper I · Q1a · 12 marks

Solution

Total probability. P(D)=0.5(0.05)+0.3(0.03)+0.2(0.01)=0.025+0.009+0.002=0.036,P(D)=0.5(0.05)+0.3(0.03)+0.2(0.01)=0.025+0.009+0.002=0.036, so 3.6% of the entire production is defective.

Bayes’ theorem. P(C∣D)=0.2×0.010.036=0.0020.036=𝟏𝟏𝟖≈0.056.P(C\mid D)=\frac{0.2\times0.01}{0.036}=\frac{0.002}{0.036}=\mathbf{\frac1{18}}\approx0.056. (Similarly P(A∣D)=2536P(A\mid D)=\frac{25}{36} and P(B∣D)=14P(B\mid D)=\frac14.)

✓ Checked by computer We recomputed: 3.6% defective, and P(C | defective) = 0.002/0.036 = 1/18.

↑ Back to the question list

A bivariate random vector (X,Y) is specified by P(X>x,Y>y)=e−(x+y+θxy);x,y>0,0≤θ≤1. Obtain (i) the p.d.f. (ii) the marginal p.d.f’s and (iii) the conditional p.d.f’s. When will X and Y be independent?

2012 · Paper I · Q1b · 12 marks

Solution

(i) Joint p.d.f. For a joint survival function F‾(x,y)=P(X>x,Y>y)\bar F(x,y)=P(X>x,Y>y), the density is f=∂2F‾∂x∂yf=\dfrac{\partial^2\bar F}{\partial x\,\partial y}. ∂F‾∂x=−(1+θy)e−(x+y+θxy),\frac{\partial\bar F}{\partial x}=-(1+\theta y)\,e^{-(x+y+\theta xy)}, f(x,y)=∂2F‾∂x∂y=[(1+θx)(1+θy)−θ]e−(x+y+θxy),x,y>0.f(x,y)=\frac{\partial^2\bar F}{\partial x\,\partial y}=\big[(1+\theta x)(1+\theta y)-\theta\big]e^{-(x+y+\theta xy)},\qquad x,y>0. (It is non-negative because 0≤θ≤10\le\theta\le1.)

(ii) Marginals. P(X>x)=F‾(x,0)=e−xP(X>x)=\bar F(x,0)=e^{-x}, so fX(x)=e−xf_X(x)=e^{-x}, x>0x>0. Likewise fY(y)=e−yf_Y(y)=e^{-y}, y>0y>0. Both marginals are Exp(1).

(iii) Conditionals. f(y∣x)=[(1+θx)(1+θy)−θ]e−y(1+θx),y>0;f(y\mid x)=\big[(1+\theta x)(1+\theta y)-\theta\big]e^{-y(1+\theta x)},\qquad y>0; f(x∣y)=[(1+θx)(1+θy)−θ]e−x(1+θy),x>0.f(x\mid y)=\big[(1+\theta x)(1+\theta y)-\theta\big]e^{-x(1+\theta y)},\qquad x>0.

Independence. F‾(x,y)=e−xe−ye−θxy\bar F(x,y)=e^{-x}e^{-y}e^{-\theta xy} equals P(X>x)P(Y>y)P(X>x)P(Y>y) for all x,yx,y if and only if θ=0\theta=0. So XX and YY are independent exactly when θ=0\theta=0. (This is Gumbel’s bivariate exponential distribution. For θ>0\theta>0, XX and YY are negatively correlated.)

✓ Derivation checked step by step Every step was checked: we differentiated the joint survival function symbolically in SymPy.

↑ Back to the question list

Of the under-5 children in a locality, 20% are malnourished but not immunised, while 40% are immunised but not malnourished. If 30% are neither immunised nor malnourished, what percentage of the under-5 children of the locality are malnourished?

2011 · Paper I · Q1a · 12 marks

Solution

Let MM = malnourished and II = immunised. The four regions add to 1: P(M∩Ic)=0.2,P(I∩Mc)=0.4,P(Mc∩Ic)=0.3⇒P(M∩I)=1−0.9=0.1.P(M\cap I^c)=0.2,\quad P(I\cap M^c)=0.4,\quad P(M^c\cap I^c)=0.3\ \Rightarrow\ P(M\cap I)=1-0.9=0.1. P(M)=P(M∩Ic)+P(M∩I)=0.2+0.1=0.3.P(M)=P(M\cap I^c)+P(M\cap I)=0.2+0.1=\mathbf{0.3}. So 30% of the under-5 children are malnourished.

✓ Checked by computer We recomputed the four Venn regions: they sum to 1, and P(M) = 0.3.

↑ Back to the question list

For a discrete random variable X P{X>r}=(1−1n)(1−2n)…(1−rn),r=1,2,… Find the probability mass function of X.

2011 · Paper I · Q1b · 12 marks

Solution

Support. P(X>0)=1P(X>0)=1 (the empty product), and P(X>n)P(X>n) contains the factor 1−nn=01-\frac nn=0. So X∈{1,2,…,n}X\in\{1,2,\dots,n\}.

P.m.f. For r=1,…,nr=1,\dots,n: P(X=r)=P(X>r−1)−P(X>r)=∏j=1r−1(1−jn)[1−(1−rn)]=rn∏j=1r−1(1−jn).P(X=r)=P(X>r-1)-P(X>r)=\prod_{j=1}^{r-1}\left(1-\frac jn\right)\left[1-\left(1-\frac rn\right)\right]=\frac rn\prod_{j=1}^{r-1}\left(1-\frac jn\right). That is, P(X=r)=rn⋅(n−1)(n−2)⋯(n−r+1)nr−1=r(n−1)!nr(n−r)!,r=1,2,…,n.P(X=r)=\frac rn\cdot\frac{(n-1)(n-2)\cdots(n-r+1)}{n^{r-1}}=\frac{r\,(n-1)!}{n^r\,(n-r)!},\qquad r=1,2,\dots,n.

(This is the “birthday problem”: in random draws with replacement from nn equally likely items, X+1X+1 is the draw at which the first repeat occurs.)

✓ Checked by computer We checked in Python (n = 7) that the probabilities sum to 1.

↑ Back to the question list

Suppose every packet of the biscuit NICE contains a coupon bearing one of the letters N, I, C or E with equal probability. A customer who has all the four letters, wins a free packet. A housewife buys 8 such packets. What is the probability that she wins (i) one free packet and (ii) two free packets?

2011 · Paper I · Q1c · 12 marks

Solution

Model. 8 coupons, each N, I, C or E with probability 14\frac14, independently. A full set needs each letter at least once; two free packets need each letter at least twice.

At least one full set (inclusion–exclusion over missing letters): P(all 4 letters)=1−4(34)8+6(12)8−4(14)8=4082465536≈0.6229.P(\text{all 4 letters})=1-4\left(\tfrac34\right)^8+6\left(\tfrac12\right)^8-4\left(\tfrac14\right)^8=\frac{40824}{65536}\approx0.6229.

(ii) Two free packets. With 8 coupons, two full sets means each letter exactly twice: P(two packets)=8!(2!)4⋅148=252065536≈0.0385.P(\text{two packets})=\frac{8!}{(2!)^4}\cdot\frac1{4^8}=\frac{2520}{65536}\approx\mathbf{0.0385}.

(i) Exactly one free packet. P(exactly one)=0.6229−0.0385=3830465536≈0.5845.P(\text{exactly one})=0.6229-0.0385=\frac{38304}{65536}\approx\mathbf{0.5845}.

✓ Checked by computer We listed all 4⁸ = 65 536 letter sequences in Python: P(at least one full set) = 0.62292, P(two full sets) = 0.03845, matching the formulas.

↑ Back to the question list

The joint probability density function of X,Y is given by f(x,y)={x(x+y3),0<x<1,0<y<20,otherwise Compute (i) P(X>12), (ii) P(Y<X) and (iii) P(Y<12∣X<12). Also derive the regression equation of Y on X.

2011 · Paper I · Q3c · 20 marks

Solution

f(x,y)=x2+xy3f(x,y)=x^2+\dfrac{xy}3 on 0<x<10<x<1, 0<y<20<y<2.

Marginal of XX. fX(x)=∫02(x2+xy3)dy=2x2+2x3f_X(x)=\int_0^2\left(x^2+\frac{xy}3\right)dy=2x^2+\frac{2x}3.

(i) P(X>12)=∫1/21(2x2+2x3)dx=[2x33+x23]1/21=1−16=𝟓𝟔.P\left(X>\tfrac12\right)=\int_{1/2}^1\left(2x^2+\frac{2x}3\right)dx=\left[\frac{2x^3}3+\frac{x^2}3\right]_{1/2}^1=1-\frac16=\mathbf{\frac56}.

(ii) P(Y<X)=∫01∫0x(x2+xy3)dydx=∫01(x3+x36)dx=76⋅14=𝟕𝟐𝟒.P(Y<X)=\int_0^1\!\!\int_0^x\left(x^2+\frac{xy}3\right)dy\,dx=\int_0^1\left(x^3+\frac{x^3}6\right)dx=\frac76\cdot\frac14=\mathbf{\frac7{24}}.

(iii) P(X<12)=16P(X<\frac12)=\frac16 from (i). Also P(X<12,Y<12)=∫01/2(x22+x24)dx=148+1192=5192.P\left(X<\tfrac12,Y<\tfrac12\right)=\int_0^{1/2}\left(\frac{x^2}2+\frac x{24}\right)dx=\frac1{48}+\frac1{192}=\frac5{192}. So P(Y<12∣X<12)=5/1921/6=𝟓𝟑𝟐.P\left(Y<\tfrac12\mid X<\tfrac12\right)=\frac{5/192}{1/6}=\mathbf{\frac5{32}}.

Regression of YY on XX. E(Y∣X=x)=∫02y(x2+xy3)dy2x2+2x3=2x2+8x92x2+2x3=9x+49x+3,0<x<1.E(Y\mid X=x)=\frac{\int_0^2y\left(x^2+\frac{xy}3\right)dy}{2x^2+\frac{2x}3}=\frac{2x^2+\frac{8x}9}{2x^2+\frac{2x}3}=\frac{9x+4}{9x+3},\qquad0<x<1. It is a curve (a rectangular hyperbola), not a straight line. It falls from 43\frac43 near x=0x=0 to 1312\frac{13}{12} at x=1x=1.

✓ Checked by computer We recomputed all four answers in SymPy: 5/6, 7/24, 5/32, and E(Y | x) = (9x + 4)/(9x + 3).

↑ Back to the question list

5% residents of a locality are earning more than Rs 10 lakhs per annum. The percentage of single earner in the family among those earning more than Rs 10 lakhs per annum is 80%, whereas percentage of single earner among others (earning less than Rs 10 lakhs per annum) is 50%. A randomly selected resident of that locality was found to be single earner. What is the probability that he earns more than Rs 10 lakhs per annum?

2010 · Paper I · Q1a · 12 marks

Solution

Let HH = earns more than Rs 10 lakh and SS = single earner. P(S)=0.05(0.80)+0.95(0.50)=0.040+0.475=0.515.P(S)=0.05(0.80)+0.95(0.50)=0.040+0.475=0.515. P(H∣S)=0.0400.515≈0.078.P(H\mid S)=\frac{0.040}{0.515}\approx\mathbf{0.078}. Only about 7.8% of single earners are in the high-income group, even though 80% of the high-income group are single earners.

✓ Checked by computer We recomputed: 0.04/0.515 = 0.0777.

↑ Back to the question list

T is a triangle in (X,Y) plane with vertices (0,0), (0,2) and (2,2). Let F(x,y) denote the area of intersection of T and the set S={(a,b):a≤x,b≤y}. Does F define a cumulative distribution function? If yes, find the joint probability density function.

2010 · Paper I · Q1b · 12 marks

Solution

TT has area 1. It is the right triangle {0≤x≤y≤2}\{0\le x\le y\le\sqrt2\}, with legs 2\sqrt2, so its area is 12(2)2=1\frac12(\sqrt2)^2=1.

Yes, FF is a c.d.f. Let (X,Y)(X,Y) be uniformly distributed on TT. Its density is 1 on TT, because the area is 1. Then P(X≤x,Y≤y)=area(T∩{(a,b):a≤x,b≤y})=F(x,y).P(X\le x,\ Y\le y)=\text{area}\big(T\cap\{(a,b):a\le x,\ b\le y\}\big)=F(x,y). So FF is the joint c.d.f. of this pair. It inherits every property of a c.d.f.: non-decreasing and right-continuous in each argument, the rectangle inequality, F→0F\to0 as xx or y→−∞y\to-\infty, and F(∞,∞)=1F(\infty,\infty)=1.

Explicitly, for (x,y)(x,y) in [0,2]2[0,\sqrt2]^2: F(x,y)={xy−x22,0≤x≤y,y22,0≤y<x.F(x,y)=\begin{cases}xy-\dfrac{x^2}2,&0\le x\le y,\\[6pt]\dfrac{y^2}2,&0\le y<x.\end{cases} Outside the square, replace xx or yy by 0 if negative, or by 2\sqrt2 if larger.

Joint p.d.f. In the region 0<x<y<20<x<y<\sqrt2, ∂2F∂x∂y=∂2∂x∂y(xy−x22)=1\dfrac{\partial^2F}{\partial x\,\partial y}=\dfrac{\partial^2}{\partial x\,\partial y}\left(xy-\dfrac{x^2}2\right)=1. Elsewhere the derivative is 0. So f(x,y)={1,0<x<y<20,otherwise.f(x,y)=\begin{cases}1,&0<x<y<\sqrt2\\0,&\text{otherwise.}\end{cases}

✓ Checked by computer We checked that the triangle has area 1, and that F(x, y) = xy − x²/2 on 0 ≤ x ≤ y ≤ √2 gives density 1.

↑ 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

Two players A and B decide to play a series of at most 7 games. A player who wins 4 games wins the series. If both the players have equal chance of winning a game and A wins the first two games, what is the probability that A will win the series?

2010 · Paper I · Q1c · 12 marks

Solution

Set-up. After winning the first two games, AA needs 2 more wins before BB gets 4. At most 5 games remain, each won by either player with probability 12\frac12.

Complement: BB wins the series. BB must win 4 games while AA wins at most 1 of them:

  • BB wins the next 4: (12)4=116\left(\frac12\right)^4=\frac1{16}.
  • AA wins exactly one of the next 4, then BB wins the 5th: (41)(12)5=432\binom41\left(\frac12\right)^5=\frac4{32}.

So P(B)=116+18=316P(B)=\frac1{16}+\frac18=\frac3{16}.

Answer. P(A wins the series)=1−316=𝟏𝟑𝟏𝟔.P(A\text{ wins the series})=1-\frac3{16}=\mathbf{\frac{13}{16}}.

✓ Checked by computer We recomputed with exact fractions: 1 − 3/16 = 13/16.

↑ Back to the question list

Cumulative distribution function (c.d.f.) of a random variable X is F(x)={0,if x<014,if 0≤x<1x3,if 1≤x<21,if x≥2 Find α such that we can write F(x)=αFc(x)+(1−α)Fd(x), where Fc(x) and Fd(x) are c.d.f. of continuous and discrete random variables respectively. Find Fc(x) and Fd(x).

2010 · Paper I · Q2a · 20 marks

Solution

Jumps of FF.

  • x=0x=0: 14−0=14\frac14-0=\frac14.
  • x=1x=1: F(1)−F(1−)=13−14=112F(1)-F(1-)=\frac13-\frac14=\frac1{12}.
  • x=2x=2: F(2)−F(2−)=1−23=13F(2)-F(2-)=1-\frac23=\frac13.

The total jump is 14+112+13=23\frac14+\frac1{12}+\frac13=\frac23.

Continuous part. FF increases smoothly only on (1,2)(1,2), with slope 13\frac13, a total rise of 13\frac13. So α=13,1−α=23.\alpha=\frac13,\qquad1-\alpha=\frac23.

The two d.f.s.

  • FcF_c: density 1/31/3=1\frac{1/3}{1/3}=1 on (1,2)(1,2), so FcF_c is the U(1,2)U(1,2) d.f.: Fc(x)={0,x<1x−1,1≤x<21,x≥2.F_c(x)=\begin{cases}0,&x<1\\x-1,&1\le x<2\\1,&x\ge2.\end{cases}
  • FdF_d: jumps rescaled by 23\frac23, so P(0)=38P(0)=\frac38, P(1)=18P(1)=\frac18, P(2)=12P(2)=\frac12: Fd(x)={0,x<038,0≤x<112,1≤x<21,x≥2.F_d(x)=\begin{cases}0,&x<0\\\frac38,&0\le x<1\\\frac12,&1\le x<2\\1,&x\ge2.\end{cases}

Check at x=1.5x=1.5: 13(0.5)+23(12)=16+13=12=1.53\frac13(0.5)+\frac23\left(\frac12\right)=\frac16+\frac13=\frac12=\frac{1.5}3. ✓

✓ Checked by computer We checked that α F_c + (1 − α) F_d reproduces F at x = 0, 0.5, 1, 1.5 and 2.

↑ Back to the question list

The joint probability density function of random variables X and Y is given as f(x,y)={k(y2−x2)e−y,if |x|<y,y>00,otherwise Comment on independence and correlation between X and Y.

2010 · Paper I · Q2b · 20 marks

Solution

(This question is also listed under 1.2 Expectation and moments. The worked solution is repeated here so that this page is complete.)

Find kk. For fixed yy, ∫−yy(y2−x2)dx=2y3−23y3=43y3\int_{-y}^y(y^2-x^2)\,dx=2y^3-\tfrac23y^3=\tfrac43y^3. So 1=k∫0∞43y3e−ydy=k⋅43⋅3!=8k⇒k=18.1=k\int_0^\infty\tfrac43y^3e^{-y}\,dy=k\cdot\tfrac43\cdot3!=8k\quad\Rightarrow\quad k=\tfrac18.

Independence. The support {|x|<y}\{|x|<y\} is not a rectangle: if Y=1Y=1 then |X|<1|X|<1, but if Y=5Y=5, XX can be 4. Formally, the marginal of YY is fY(y)=16y3e−yf_Y(y)=\tfrac16y^3e^{-y} for y>0y>0, and fX(x)>0f_X(x)>0 for every real xx. So fX(x)fY(y)>0f_X(x)f_Y(y)>0 at (4,1)(4,1), where f(4,1)=0f(4,1)=0. Hence XX and YY are not independent.

Correlation. f(−x,y)=f(x,y)f(-x,y)=f(x,y), so given Y=yY=y the distribution of XX is symmetric about 0 and E(X∣Y)=0E(X\mid Y)=0. Therefore E(X)=0,Cov(X,Y)=E(XY)−E(X)E(Y)=E[YE(X∣Y)]=0.E(X)=0,\qquad\text{Cov}(X,Y)=E(XY)-E(X)E(Y)=E\big[Y\,E(X\mid Y)\big]=0. So ρ(X,Y)=0\rho(X,Y)=0: XX and YY are uncorrelated.

Comment. This is a standard example where zero correlation does not imply independence. The dependence is not linear: it shows in the spread of XX, which grows with YY (V(X∣Y=y)=y2/5V(X\mid Y=y)=y^2/5).

✓ Checked by computer We checked in SymPy that k=18k=\tfrac18 and E(XY)=0E(XY)=0.

↑ Back to the question list

The joint probability density function of X and Y is f(x,y)={12xe−y,if 0<x<2,y>00,elsewhere Derive the distribution of X+Y.

2010 · Paper I · Q3a · 20 marks

Solution

Independence. f(x,y)=x2⋅e−yf(x,y)=\frac x2\cdot e^{-y} on a rectangle. So XX (density x2\frac x2 on (0,2)(0,2)) and Y∼Y\sim Exp(1) are independent.

Convolution. For Z=X+YZ=X+Y, fZ(z)=∫fX(x)fY(z−x)dxf_Z(z)=\int f_X(x)f_Y(z-x)\,dx, where we need 0<x<20<x<2 and z−x>0z-x>0.

  • For 0<z<20<z<2, xx runs over (0,z)(0,z): fZ(z)=e−z2∫0zxexdx=e−z2[(z−1)ez+1]=12(z−1+e−z).f_Z(z)=\frac{e^{-z}}2\int_0^zxe^x\,dx=\frac{e^{-z}}2\left[(z-1)e^z+1\right]=\frac12\left(z-1+e^{-z}\right).
  • For z≥2z\ge2, xx runs over (0,2)(0,2): fZ(z)=e−z2∫02xexdx=e−z2(e2+1).f_Z(z)=\frac{e^{-z}}2\int_0^2xe^x\,dx=\frac{e^{-z}}2\left(e^2+1\right).

Answer. fZ(z)={12(z−1+e−z),0<z<212(1+e2)e−z,z≥2.f_Z(z)=\begin{cases}\frac12\left(z-1+e^{-z}\right),&0<z<2\\[4pt]\frac12\left(1+e^2\right)e^{-z},&z\ge2.\end{cases} The two pieces agree at z=2z=2: both equal 12(1+e−2)\frac12(1+e^{-2}).

✓ Checked by computer We computed the convolution integrals in SymPy and checked that the density of X + Y integrates to 1.

↑ Back to the question list

X1 and X2 are i.i.d. random variables with common probability mass function f(x)={qxp,x=0,1,2,…,0<p<1,q=1−p0,otherwise. Obtain the probability distribution of Y=max(X1,X2). Also derive E(Y).

2009 · Paper I · Q2a · 20 marks

Solution

D.f. of one XiX_i. P(X≤y)=∑x=0ypqx=1−qy+1P(X\le y)=\sum_{x=0}^ypq^x=1-q^{y+1}, y=0,1,2,…y=0,1,2,\dots

Distribution of Y=max(X1,X2)Y=\max(X_1,X_2). P(Y≤y)=(1−qy+1)2,P(Y\le y)=\left(1-q^{y+1}\right)^2, P(Y=y)=(1−qy+1)2−(1−qy)2=pqy(2−qy−qy+1),y=0,1,2,…P(Y=y)=\left(1-q^{y+1}\right)^2-\left(1-q^y\right)^2=pq^y\left(2-q^y-q^{y+1}\right),\qquad y=0,1,2,\dots

E(Y)E(Y) by the tail formula. E(Y)=∑y=0∞P(Y>y)=∑y=0∞[1−(1−qy+1)2]=∑y=0∞(2qy+1−q2y+2)=2q1−q−q21−q2.E(Y)=\sum_{y=0}^\infty P(Y>y)=\sum_{y=0}^\infty\left[1-\left(1-q^{y+1}\right)^2\right]=\sum_{y=0}^\infty\left(2q^{y+1}-q^{2y+2}\right)=\frac{2q}{1-q}-\frac{q^2}{1-q^2}. Simplifying, E(Y)=q(2+q)(1−q)(1+q)=q(2+q)p(1+q).E(Y)=\frac{q(2+q)}{(1-q)(1+q)}=\frac{q(2+q)}{p(1+q)}.

✓ Checked by computer We summed the tail series numerically for q = 2/5: E(Y) = 1.142857, matching q(2 + q)/[p(1 + q)].

↑ Back to the question list

In every box of a certain cereal is a picture of a football player. A full set is represented by m players. Find the probability that n (> m) boxes of cereal must be purchased to obtain a full set of pictures.

2007 · Paper I · Q1a · 12 marks

Solution

Set-up. Each box holds one of mm players, equally likely, independently. Let TT be the number of boxes needed for a full set. We want P(T=n)P(T=n) for n≥mn\ge m.

T=nT=n means: the first n−1n-1 boxes contain exactly m−1m-1 different players, and box nn holds the missing one.

There are mm choices for the missing player, and box nn holds him with probability 1m\frac1m. These factors cancel, so take the missing player to be player mm: P(T=n)=P(boxes 1,…,n−1 avoid player m and show all of players 1,…,m−1).P(T=n)=P(\text{boxes }1,\dots,n-1\text{ avoid player }m\text{ and show all of players }1,\dots,m-1). By inclusion–exclusion over which of the m−1m-1 players are also missing: P(T=n)=∑j=0m−1(−1)j(m−1j)(m−1−jm)n−1,n=m,m+1,…P(T=n)=\sum_{j=0}^{m-1}(-1)^j\binom{m-1}j\left(\frac{m-1-j}m\right)^{n-1},\qquad n=m,m+1,\dots

Equivalent form. P(T≤n)=∑j=0m(−1)j(mj)(1−jm)nP(T\le n)=\sum_{j=0}^m(-1)^j\binom mj\left(1-\frac jm\right)^n, and P(T=n)=P(T≤n)−P(T≤n−1)P(T=n)=P(T\le n)-P(T\le n-1).

(Example: m=4m=4, n=5n=5 gives 0.14060.1406. The mean number of boxes is m(1+12+⋯+1m)m\left(1+\frac12+\cdots+\frac1m\right).)

✓ Checked by computer We checked the formula against the inclusion–exclusion c.d.f. for m = 4 (n = 4, 5, 7) and confirmed the probabilities sum to 1.

↑ Back to the question list

A random variable X has the following distribution:

x p(x)
0 0
1 k
2 2k
3 2k
4 3k
5 k2
6 2k2
7 7k2+k

Find k and determine the distribution function of X.

2007 · Paper I · Q1b · 12 marks

Solution

Find kk. 0+k+2k+2k+3k+k2+2k2+7k2+k=10k2+9k=1⇒(10k−1)(k+1)=0.0+k+2k+2k+3k+k^2+2k^2+7k^2+k=10k^2+9k=1\ \Rightarrow\ (10k-1)(k+1)=0. A probability cannot be negative, so k=𝟏𝟏𝟎k=\mathbf{\frac1{10}}.

Distribution. p(x)=0,0.1,0.2,0.2,0.3,0.01,0.02,0.17p(x)=0,\ 0.1,\ 0.2,\ 0.2,\ 0.3,\ 0.01,\ 0.02,\ 0.17 for x=0,…,7x=0,\dots,7.

Distribution function. F(x)={0,x<10.1,1≤x<20.3,2≤x<30.5,3≤x<40.8,4≤x<50.81,5≤x<60.83,6≤x<71,x≥7.F(x)=\begin{cases}0,&x<1\\0.1,&1\le x<2\\0.3,&2\le x<3\\0.5,&3\le x<4\\0.8,&4\le x<5\\0.81,&5\le x<6\\0.83,&6\le x<7\\1,&x\ge7.\end{cases}

✓ Checked by computer We solved 10k² + 9k − 1 = 0 symbolically (roots 1/10 and −1) and recomputed the cumulative sums.

↑ Back to the question list

Let (X, Y) be a two-dimensional non-negative continuous random variable having the joint density f(x,y)=4xye−(x2+y2),x,y≥0 Derive the density function of U=x2+y2

2007 · Paper I · Q2c · 20 marks

Solution

Polar coordinates. Put x=ucosθx=u\cos\theta, y=usinθy=u\sin\theta, with u≥0u\ge0 and 0≤θ≤π20\le\theta\le\frac\pi2 (the first quadrant). The Jacobian is uu. So g(u,θ)=4(ucosθ)(usinθ)e−u2⋅u=2u3e−u2sin2θ.g(u,\theta)=4(u\cos\theta)(u\sin\theta)e^{-u^2}\cdot u=2u^3e^{-u^2}\sin2\theta.

Integrate out θ\theta. ∫0π/2sin2θdθ=1\displaystyle\int_0^{\pi/2}\sin2\theta\,d\theta=1, so fU(u)=2u3e−u2,u≥0.f_U(u)=2u^3e^{-u^2},\qquad u\ge0. (Check: with v=u2v=u^2, ∫0∞2u3e−u2du=∫0∞ve−vdv=1\int_0^\infty2u^3e^{-u^2}du=\int_0^\infty ve^{-v}dv=1. So U2∼U^2\sim Gamma(2, 1).)

Also, Θ\Theta has density sin2θ\sin2\theta and is independent of UU.

✓ Derivation checked step by step Every step was checked. We also simulated in Python: the mean of U is 1.3294, against 1.3293 from the density 2u³e^{−u²}.

↑ Back to the question list

Given that A, B, C are events with A and C mutually exclusive, B and C independent and P(A)=1/12, P(B)=1/3, P(C)=1/4 & P(A∩B¯)=0, calculate: (i) P(A∪B∪C) (ii) P(B¯∩C¯) [?] (iii) P((A∪B)∩C) (iv) P(A∣B)

2006 · Paper I · Q1a · 12 marks

Solution

Key facts.

  • P(A∩B‾)=0P(A\cap\bar B)=0 means A⊆BA\subseteq B (up to probability 0), so P(A∩B)=P(A)=112P(A\cap B)=P(A)=\frac1{12}.
  • A,CA,C are mutually exclusive: P(A∩C)=0P(A\cap C)=0.
  • B,CB,C are independent: P(B∩C)=13⋅14=112P(B\cap C)=\frac13\cdot\frac14=\frac1{12}.

(i) Since A⊆BA\subseteq B, A∪B∪C=B∪CA\cup B\cup C=B\cup C: P(A∪B∪C)=13+14−112=𝟏𝟐.P(A\cup B\cup C)=\frac13+\frac14-\frac1{12}=\mathbf{\frac12}.

(ii) B‾\bar B and C‾\bar C are independent: P(B‾∩C‾)=23⋅34=𝟏𝟐.P(\bar B\cap\bar C)=\frac23\cdot\frac34=\mathbf{\frac12}.

(iii) P((A∪B)∩C)=P(B∩C)=𝟏𝟏𝟐(since A⊆B).P\big((A\cup B)\cap C\big)=P(B\cap C)=\mathbf{\frac1{12}}\qquad(\text{since }A\subseteq B).

(iv) P(A∣B)=P(A∩B)P(B)=1/121/3=𝟏𝟒.P(A\mid B)=\frac{P(A\cap B)}{P(B)}=\frac{1/12}{1/3}=\mathbf{\frac14}.

✓ Checked by computer We recomputed each part with exact fractions.

↑ Back to the question list

Independent trials consisting in rolling of two fair dice are performed. What is the probability that an outcome of 5 appears before an outcome of 7, where the outcome of a roll is the sum of the dice?

2006 · Paper I · Q1c · 12 marks

Solution

On one roll of two dice, P(sum=5)=436P(\text{sum}=5)=\frac4{36} and P(sum=7)=636P(\text{sum}=7)=\frac6{36}. Rolls that give neither just repeat the experiment. So the first roll that gives 5 or 7 decides the outcome, and P(5 before 7)=4/364/36+6/36=𝟐𝟓.P(5\text{ before }7)=\frac{4/36}{4/36+6/36}=\mathbf{\frac25}. (As a series: ∑n≥1(2636)n−1436=4/3610/36\sum_{n\ge1}\left(\frac{26}{36}\right)^{n-1}\frac4{36}=\frac{4/36}{10/36}.)

✓ Checked by computer We recomputed with exact fractions: (4/36)/(10/36) = 2/5.

↑ Back to the question list

Let X, Y, Z be independent and uniformly distributed over (0, 1). Compute P(X≥YZ).

2006 · Paper I · Q2b · 20 marks

Solution

Condition on YZYZ. For t∈[0,1]t\in[0,1], P(X≥t)=1−tP(X\ge t)=1-t. YZYZ is independent of XX, so P(X≥YZ)=E[1−YZ]=1−E(Y)E(Z)=1−12⋅12=𝟑𝟒.P(X\ge YZ)=E\big[1-YZ\big]=1-E(Y)E(Z)=1-\frac12\cdot\frac12=\mathbf{\frac34}.

✓ Checked by computer We checked by simulation in Python (10⁶ triples): 0.7495.

↑ Back to the question list

An unbiased coin is tossed three times. Write down the sample space of this experiment. Define a random variable on this sample space and also its probability distribution.

2005 · Paper I · Q1a · 12 marks

Solution

Sample space. Ω={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}.\Omega=\{HHH,\ HHT,\ HTH,\ THH,\ HTT,\ THT,\ TTH,\ TTT\}. Each of the 8 outcomes has probability 18\frac18.

A random variable. Let X(ω)X(\omega) be the number of heads in ω\omega. For example, X(HTH)=2X(HTH)=2 and X(TTT)=0X(TTT)=0. XX is a function from Ω\Omega to {0,1,2,3}\{0,1,2,3\}.

Its distribution.

xx 0 1 2 3
P(X=x)P(X=x) 18\frac18 38\frac38 38\frac38 18\frac18

This is B(3,12)B(3,\frac12).

✓ Answer checked step by step We listed the 8 outcomes and the distribution of the number of heads.

↑ Back to the question list

The random variables Xi (i=1,2) are distributed independently with p.d.f. fi(x)=λie−λixi=1,2 Determine the probability P[min(X1,X2)≥t]

2005 · Paper I · Q1b · 12 marks

Solution

For t≥0t\ge0, min(X1,X2)≥t\min(X_1,X_2)\ge t exactly when both Xi≥tX_i\ge t. By independence, P[min(X1,X2)≥t]=P(X1≥t)P(X2≥t)=e−λ1te−λ2t=𝐞−(𝛌𝟏+𝛌𝟐)𝐭.P\left[\min(X_1,X_2)\ge t\right]=P(X_1\ge t)P(X_2\ge t)=e^{-\lambda_1t}e^{-\lambda_2t}=\mathbf{e^{-(\lambda_1+\lambda_2)t}}. (For t<0t<0 the probability is 1.) So min(X1,X2)∼\min(X_1,X_2)\sim Exp(λ1+λ2\lambda_1+\lambda_2).

✓ Checked by computer We checked the formula: the minimum of independent exponentials is exponential with the sum of the rates.

↑ Back to the question list

X1,X2,…,Xn are random samples from a uniform distribution over (0, 1). Find the p.d.f. of U=(X1,X2,…,Xn)1/n.

2005 · Paper I · Q2c · 20 marks

Solution

Note on the question. U=(X1X2⋯Xn)1/nU=(X_1X_2\cdots X_n)^{1/n}, the geometric mean of the sample. The comma-separated form printed in the paper is a misprint.

Logs. If X∼U(0,1)X\sim U(0,1), then −logX∼-\log X\sim Exp(1). So −logU=1n∑i=1n(−logXi)=Wn,W∼Gamma(n,1).-\log U=\frac1n\sum_{i=1}^n(-\log X_i)=\frac Wn,\qquad W\sim\text{Gamma}(n,1). Hence V=−logUV=-\log U has the Gamma(shape nn, rate nn) density fV(v)=nn(n−1)!vn−1e−nv,v>0.f_V(v)=\frac{n^n}{(n-1)!}v^{n-1}e^{-nv},\qquad v>0.

Back to U=e−VU=e^{-V}. |dv/du|=1/u|dv/du|=1/u, so fU(u)=nn(n−1)!(−logu)n−1un⋅1u=nn(n−1)!un−1(−logu)n−1,0<u<1.f_U(u)=\frac{n^n}{(n-1)!}(-\log u)^{n-1}u^{n}\cdot\frac1u=\frac{n^n}{(n-1)!}\,u^{n-1}(-\log u)^{n-1},\qquad0<u<1. (For n=1n=1 this is f(u)=1f(u)=1, the uniform density.)

✓ Derivation checked step by step Every step was checked. We also simulated n = 4 in Python: the mean of U is 0.4098, against 0.4096 from the density.

↑ Back to the question list

Let X be an absolutely continuous random variable with p.d.f. f(x) and distribution function F(x). Show that Y=F(x) has U(0,1) distribution.

2004 · Paper I · Q1a · 12 marks

Solution

Let FF be continuous. Then Y=F(X)Y=F(X) takes values in [0,1][0,1].

For 0<y<10<y<1. Let xy=sup{x:F(x)≤y}x_y=\sup\{x:F(x)\le y\}. Since FF is continuous and rises from 0 to 1, F(xy)=yF(x_y)=y. Moreover F(X)≤y⇔X≤xyF(X)\le y\iff X\le x_y, up to an event of probability 0 (flat stretches of FF carry no probability). Hence P(Y≤y)=P(X≤xy)=F(xy)=y.P(Y\le y)=P(X\le x_y)=F(x_y)=y.

For y≤0y\le0 the probability is 0, and for y≥1y\ge1 it is 1. So Y∼U(0,1)Y\sim U(0,1). ◼\blacksquare

(If FF is strictly increasing this is simply P(F(X)≤y)=P(X≤F−1(y))=F(F−1(y))=yP(F(X)\le y)=P(X\le F^{-1}(y))=F(F^{-1}(y))=y.)

Uses. This is the probability integral transform. It is the basis of simulation by the inverse-c.d.f. method (X=F−1(U)X=F^{-1}(U)), and of distribution-free tests such as the Kolmogorov–Smirnov test.

✓ Proof checked step by step Every step was checked; it uses only the continuity of F, so it covers flat stretches of F too.

↑ Back to the question list

Let X be a random variable with p.m.f. P(X=−2)=1/5, P(X=−1)=1/6, P(X=0)=1/5, P(X=1)=1/15, P(X=2)=11/30. Obtain the distribution of Y=X2.

2004 · Paper I · Q1c · 12 marks

Solution

Y=X2Y=X^2 takes the values 0,1,40,1,4:

yy from xx P(Y=y)P(Y=y)
0 0 15=630\frac15=\frac6{30}
1 ±1\pm1 16+115=730\frac16+\frac1{15}=\frac7{30}
4 ±2\pm2 15+1130=1730\frac15+\frac{11}{30}=\frac{17}{30}

These sum to 3030=1\frac{30}{30}=1. ✓

✓ Checked by computer We recomputed with exact fractions: 1/5, 7/30, 17/30, which sum to 1.

↑ Back to the question list

For the three mutually exclusive events A, B, C, the following probabilities are given P(A)=2/3, P(B)=1/4, P(C)=1/6. Calculate P(A∪B∪C) and comment about result.

2003 · Paper I · Q1a · 12 marks

Solution

If A,B,CA,B,C were mutually exclusive, then P(A∪B∪C)=P(A)+P(B)+P(C)=23+14+16=1312.P(A\cup B\cup C)=P(A)+P(B)+P(C)=\frac23+\frac14+\frac16=\frac{13}{12}.

Comment. A probability cannot exceed 1. So the given data are inconsistent: three mutually exclusive events cannot have these probabilities. Either the events overlap (then P(A∪B∪C)≤1P(A\cup B\cup C)\le1 and the intersections must be taken into account), or the stated probabilities are wrong.

✓ Answer checked step by step We checked the sum 2/3 + 1/4 + 1/6 = 13/12.

↑ Back to the question list

State the properties of the probability density function of a random variable X. Examine whether the following f(x) is a probability density function. Also evaluate P(2<x<6): f(x)={1θe−x/θ,0<x<∞0,elsewhere Where θ>0 is a constant.

2003 · Paper I · Q1c · 12 marks

Solution

Properties of a p.d.f. A function ff is a probability density if

  1. f(x)≥0f(x)\ge0 for all xx, and
  2. ∫−∞∞f(x)dx=1\int_{-\infty}^\infty f(x)\,dx=1.

Then P(a<X<b)=∫abf(x)dxP(a<X<b)=\int_a^bf(x)\,dx, P(X=a)=0P(X=a)=0 for every single point, and F′(x)=f(x)F'(x)=f(x) wherever ff is continuous.

Check. f(x)=1θe−x/θ≥0f(x)=\frac1\theta e^{-x/\theta}\ge0, and ∫0∞1θe−x/θdx=[−e−x/θ]0∞=1.\int_0^\infty\frac1\theta e^{-x/\theta}\,dx=\left[-e^{-x/\theta}\right]_0^\infty=1. So ff is a p.d.f. (the exponential with mean θ\theta).

Probability. P(2<X<6)=∫261θe−x/θdx=𝐞−𝟐/𝛉−𝐞−𝟔/𝛉.P(2<X<6)=\int_2^6\frac1\theta e^{-x/\theta}\,dx=\mathbf{e^{-2/\theta}-e^{-6/\theta}}.

✓ Checked by computer We integrated the density in SymPy: total 1, and P(2 < X < 6) = e^{−2/θ} − e^{−6/θ}.

↑ Back to the question list

The joint probability density function of two random variables X and Y is f(x,y)=1/8(6−x−y),0<x<2,2<y<4 Find (i) P(X<1,Y<3) and P(X+Y<3) (ii) Marginal distributions of X and Y.

2003 · Paper I · Q2b · 20 marks

Solution

Check. 18∫02∫24(6−x−y)dydx=18∫02(6−2x)dx=18(12−4)=1\displaystyle\frac18\int_0^2\!\!\int_2^4(6-x-y)\,dy\,dx=\frac18\int_0^2(6-2x)\,dx=\frac18(12-4)=1. ✓

(i) P(X<1,Y<3)=18∫01∫23(6−x−y)dydx=18∫01(72−x)dx=18⋅3=𝟑𝟖.P(X<1,Y<3)=\frac18\int_0^1\!\!\int_2^3(6-x-y)\,dy\,dx=\frac18\int_0^1\left(\frac72-x\right)dx=\frac18\cdot3=\mathbf{\frac38}.

X+Y<3X+Y<3 needs 2<y<32<y<3 and 0<x<3−y0<x<3-y. Put s=3−ys=3-y: P(X+Y<3)=18∫01∫0s(3+s−x)dxds=18∫01(3s+s22)ds=18(32+16)=𝟓𝟐𝟒.P(X+Y<3)=\frac18\int_0^1\!\!\int_0^s(3+s-x)\,dx\,ds=\frac18\int_0^1\left(3s+\frac{s^2}2\right)ds=\frac18\left(\frac32+\frac16\right)=\mathbf{\frac5{24}}.

(ii) Marginals. fX(x)=18∫24(6−x−y)dy=3−x4,0<x<2;fY(y)=18∫02(6−x−y)dx=5−y4,2<y<4.f_X(x)=\frac18\int_2^4(6-x-y)\,dy=\frac{3-x}4,\quad0<x<2;\qquad f_Y(y)=\frac18\int_0^2(6-x-y)\,dx=\frac{5-y}4,\quad2<y<4.

✓ Checked by computer We recomputed in SymPy: 3/8, 5/24, and the marginals (3 − x)/4 and (5 − y)/4.

↑ Back to the question list

Let X be a random variable having standard Cauchy’s distribution. Obtain the probability density function of X2 and identify the resulting distribution.

2003 · Paper I · Q2c · 20 marks

Solution

Transformation. XX has density 1π(1+x2)\dfrac1{\pi(1+x^2)}. For y>0y>0, Y=X2≤y⇔−y≤X≤yY=X^2\le y\iff-\sqrt y\le X\le\sqrt y, so FY(y)=2∫0ydxπ(1+x2)=2πtan−1y.F_Y(y)=2\int_0^{\sqrt y}\frac{dx}{\pi(1+x^2)}=\frac2\pi\tan^{-1}\sqrt y.

Density. fY(y)=2π⋅11+y⋅12y=1πy(1+y),y>0.f_Y(y)=\frac2\pi\cdot\frac1{1+y}\cdot\frac1{2\sqrt y}=\frac1{\pi\sqrt y\,(1+y)},\qquad y>0.

Identify it. This is the FF distribution with (1, 1) degrees of freedom. It is also the Beta distribution of the second kind β2(12,12)\beta_2\left(\frac12,\frac12\right), since B(12,12)=πB\left(\frac12,\frac12\right)=\pi. This makes sense: X=Z1/Z2X=Z_1/Z_2 for independent N(0,1)N(0,1) variables, so X2=Z12/1Z22/1X^2=\dfrac{Z_1^2/1}{Z_2^2/1} is a ratio of independent χ12\chi^2_1 variables.

✓ Derivation checked step by step Every step was checked. We also ran a Kolmogorov–Smirnov test in Python on 10⁶ squared Cauchy values against F(1, 1): p-value 0.23, a good fit.

↑ Back to the question list

If P(A)=p and P(B)=q, then show that P(A∣B)≥p+q−1q

2002 · Paper I · Q1a · 12 marks

Solution

By the addition rule, P(A∩B)=P(A)+P(B)−P(A∪B)P(A\cap B)=P(A)+P(B)-P(A\cup B), and P(A∪B)≤1P(A\cup B)\le1. So P(A∩B)≥p+q−1.P(A\cap B)\ge p+q-1. Dividing by P(B)=q>0P(B)=q>0: P(A∣B)=P(A∩B)q≥p+q−1q.◼P(A\mid B)=\frac{P(A\cap B)}q\ge\frac{p+q-1}q.\qquad\blacksquare (The bound is useful only when p+q>1p+q>1; otherwise it is negative and holds trivially.)

✓ Proof checked step by step Every step was checked: it rests on P(A∪B)≤1P(A\cup B)\le1.

↑ Back to the question list

Let X1,X2,…,Xn be i.i.d. geometric random variables with parameter p. Show that the p.m.f. of the smallest order statistic X(1) is also geometric with parameter 1−(1−p)n

2002 · Paper I · Q2a · 20 marks

Solution

Tail of one variable. Take P(X=k)=pqk−1P(X=k)=pq^{k-1}, k=1,2,…k=1,2,\dots (q=1−pq=1-p). Then P(X≥k)=qk−1P(X\ge k)=q^{k-1}.

Tail of the minimum. X(1)≥kX_{(1)}\ge k exactly when all Xi≥kX_i\ge k: P(X(1)≥k)=(qk−1)n=(qn)k−1.P\left(X_{(1)}\ge k\right)=\left(q^{k-1}\right)^n=(q^n)^{k-1}.

P.m.f. P(X(1)=k)=(qn)k−1−(qn)k=(qn)k−1(1−qn),k=1,2,…P\left(X_{(1)}=k\right)=(q^n)^{k-1}-(q^n)^k=(q^n)^{k-1}\left(1-q^n\right),\qquad k=1,2,\dots This is geometric with success probability p*=1−qn=1−(1−p)np^*=1-q^n=1-(1-p)^n. ◼\blacksquare

(If the geometric starts at 0, P(X=k)=pqkP(X=k)=pq^k, the same argument with P(X≥k)=qkP(X\ge k)=q^k gives P(X(1)=k)=(qn)k(1−qn)P(X_{(1)}=k)=(q^n)^k(1-q^n), again geometric with parameter 1−(1−p)n1-(1-p)^n.)

Intuition. Think of nn independent Bernoulli sequences run side by side. X(1)X_{(1)} is the first round in which at least one of them succeeds, which happens with probability 1−qn1-q^n per round.

✓ Proof checked step by step Every step was checked for both common parametrisations of the geometric distribution.

↑ Back to the question list

Choose the correct answer for (i), (ii) and (iv) and answer (iii). (i) A, B and C are three arbitrary events. The expression for the event that “only A occurs” in terms of A, B, C is [(A∩B∩C),(A∩B¯∩C¯)(A∪B¯∪C¯)] (ii) A coin is tossed three times in succession. If A is an event that there are at least two heads and B is the event that 1st throw gives head, the probability P(A∩B) is………………. [1/8, 5/8, 3/8] (iii) State Neyman-Pearson Lemma for testing a simple hypothesis against a simple alternative. (iv) An estimate Tn based on a sample of size n is called an asymptotically unbiased estimate of θ if……… ……. limn→∞P(Tn=θ)=1,E(Tn)=limn→∞ limn→∞E(Tn)=

2001 · Paper I · Q1a · 12 marks

Solution

(i) “Only A occurs” is A∩B‾∩C‾A\cap\bar B\cap\bar C.

(ii) A∩BA\cap B = “first toss is a head, and at least two heads” = {HHH,HHT,HTH}\{HHH,HHT,HTH\}. So P(A∩B)=𝟑𝟖P(A\cap B)=\mathbf{\frac38}.

(iii) Neyman–Pearson lemma. To test the simple hypothesis H0:θ=θ0H_0:\theta=\theta_0 against the simple alternative H1:θ=θ1H_1:\theta=\theta_1, consider the test that rejects H0H_0 when L(θ1;𝐱)L(θ0;𝐱)>k,\frac{L(\theta_1;\mathbf x)}{L(\theta_0;\mathbf x)}>k, where kk is chosen so that Pθ0(reject)=αP_{\theta_0}(\text{reject})=\alpha. Among all tests of size at most α\alpha, it is the most powerful.

(iv) TnT_n is asymptotically unbiased for θ\theta if limn→∞E(Tn)=θ.\lim_{n\to\infty}E(T_n)=\theta.

✓ Answer checked step by step Each part was checked against the definitions; we listed the 8 outcomes for part (ii).

↑ Back to the question list

Match X with Y:

X Y
(i) Random experiment (a) Characteristic function
(ii) Sufficient (b) Non-parametric method
(iii) Inversion theorem (c) Probability theory
(iv) Kolmogorov test for goodness of fit (d) Estimate

Solution

(This question is also listed under 1.4 Generating and characteristic functions. The worked solution is repeated here so that this page is complete.)

X Y Reason
(i) Random experiment (c) Probability theory The basic notion on which probability theory is built
(ii) Sufficient (d) Estimate Sufficiency is a property of a statistic used for estimation
(iii) Inversion theorem (a) Characteristic function It recovers the distribution from its c.f.
(iv) Kolmogorov test for goodness of fit (b) Non-parametric method The K–S test is distribution-free

Answer: (i)–(c), (ii)–(d), (iii)–(a), (iv)–(b).

✓ Answer checked step by step Each match was checked against standard usage.

2001 · Paper I · Q1b · 12 marks

↑ Back to the question list

Supply the missing word(s) (i) If A and B are independent events then the conditional probability P(B/A) is equal to………….. (ii) If p=q=1/2, then the binomial distribution is …………….. (iii) If a hypothesis specifies the value of all the parameters of a density function, it is called ……………. (iv) Methods which are not concerned with testing or estimating the parameters of a density function of a given type are called………….

2001 · Paper I · Q1c · 12 marks

Solution

(i) P(B)P(B). (Independence means P(B∣A)=P(B)P(B\mid A)=P(B).)

(ii) symmetrical (about its mean n2\frac n2).

(iii) a simple hypothesis.

(iv) non-parametric (distribution-free) methods.

✓ Answer checked step by step Each blank was checked against the standard definitions.

↑ Back to the question list

A random experiment consists in taking two balls out of a bag containing 3 white and 2 black balls. Write down the corresponding sample space, enumerating all the elementary events and their probabilities.

2001 · Paper I · Q2i · 15 marks

Solution

Label the balls W1,W2,W3,B1,B2W_1,W_2,W_3,B_1,B_2. Two balls are drawn together (without regard to order), so the sample space has (52)=10\binom52=10 equally likely elementary events, each with probability 110\frac1{10}:

Elementary events Type Probability
{W1W2},{W1W3},{W2W3}\{W_1W_2\},\{W_1W_3\},\{W_2W_3\} two white 3×110=3103\times\frac1{10}=\frac3{10}
{W1B1},{W1B2},{W2B1},{W2B2},{W3B1},{W3B2}\{W_1B_1\},\{W_1B_2\},\{W_2B_1\},\{W_2B_2\},\{W_3B_1\},\{W_3B_2\} one of each 6×110=6106\times\frac1{10}=\frac6{10}
{B1B2}\{B_1B_2\} two black 110\frac1{10}

(If the order of drawing is recorded, there are 5×4=205\times4=20 ordered pairs, each with probability 120\frac1{20}.)

✓ Answer checked step by step We listed all C(5, 2) = 10 equally likely pairs.

↑ Back to the question list

A bag contains four red and six black balls. One ball is taken out a random, without noting its colour. A second ball is then taken out of the remaining balls in the bag at random and found to be black. What is the conditional probability that the first ball taken out was also black?

2001 · Paper I · Q3iii · 15 marks

Solution

Let B1B_1, B2B_2 be the events that the first and second balls are black.

P(B2)P(B_2). By symmetry, the second ball is equally likely to be any of the 10, so P(B2)=610P(B_2)=\frac6{10}. (Directly: 610⋅59+410⋅69=5490\frac6{10}\cdot\frac59+\frac4{10}\cdot\frac69=\frac{54}{90}.)

P(B1∩B2)P(B_1\cap B_2). 610⋅59=13\frac6{10}\cdot\frac59=\frac13.

Answer. P(B1∣B2)=1/33/5=𝟓𝟗.P(B_1\mid B_2)=\frac{1/3}{3/5}=\mathbf{\frac59}. (Intuitively: given the second ball is black, the first is one of the other 9 balls, 5 of which are black.)

✓ Checked by computer We recomputed with exact fractions: (1/3)/(3/5) = 5/9.

↑ Back to the question list

State and prove Baye’s theorem.

1999 · Paper I · Q1a · 20 marks

Solution

Bayes’ theorem. Let B1,…,BnB_1,\dots,B_n be mutually exclusive and exhaustive events with P(Bi)>0P(B_i)>0, and let AA be an event with P(A)>0P(A)>0. Then for each kk, P(Bk∣A)=P(Bk)P(A∣Bk)∑i=1nP(Bi)P(A∣Bi).P(B_k\mid A)=\frac{P(B_k)\,P(A\mid B_k)}{\sum_{i=1}^nP(B_i)\,P(A\mid B_i)}.

Proof.

  1. By the definition of conditional probability, P(Bk∩A)=P(Bk)P(A∣Bk)P(B_k\cap A)=P(B_k)P(A\mid B_k).
  2. Total probability. The BiB_i partition the sample space, so A=⋃i(A∩Bi)A=\bigcup_i(A\cap B_i), a disjoint union. Hence P(A)=∑i=1nP(A∩Bi)=∑i=1nP(Bi)P(A∣Bi).P(A)=\sum_{i=1}^nP(A\cap B_i)=\sum_{i=1}^nP(B_i)P(A\mid B_i).
  3. Therefore P(Bk∣A)=P(Bk∩A)P(A)=P(Bk)P(A∣Bk)∑iP(Bi)P(A∣Bi).◼P(B_k\mid A)=\frac{P(B_k\cap A)}{P(A)}=\frac{P(B_k)P(A\mid B_k)}{\sum_iP(B_i)P(A\mid B_i)}.\qquad\blacksquare

Terms. The P(Bi)P(B_i) are prior probabilities, the P(A∣Bi)P(A\mid B_i) are likelihoods, and the P(Bk∣A)P(B_k\mid A) are posterior probabilities.

Example. Machines produce 50%, 30% and 20% of the output, with 5%, 3% and 1% defective. A defective item came from the third machine with probability 0.0020.036=118\frac{0.002}{0.036}=\frac1{18}.

✓ Proof checked step by step Every step was checked: it combines the definition of conditional probability with the theorem of total probability.

↑ Back to the question list

An urn contains r red and w white balls, k balls are drawn from the urn and kept aside without noticing their colour. From the remaining r+w−k balls one ball is drawn. What is the probability that it is red?

1999 · Paper I · Q1b · 15 marks

Solution

Answer. P(red)=rr+wP(\text{red})=\dfrac r{r+w}. Removing balls without looking at them does not change the chance.

Proof by symmetry. Shuffle all r+wr+w balls into a random order. The kk removed balls are the first kk, and the ball then drawn is the (k+1)(k+1)-th. In a random order, every position is equally likely to hold any given ball. So the (k+1)(k+1)-th ball is red with probability rr+w\frac r{r+w}.

Proof by algebra. Let JJ be the number of red balls among the kk removed (hypergeometric). Then P(red)=E[r−Jr+w−k]=r−E(J)r+w−k=r−krr+wr+w−k=rr+w−kr+wr+w−k=rr+w.◼P(\text{red})=E\left[\frac{r-J}{r+w-k}\right]=\frac{r-E(J)}{r+w-k}=\frac{r-\frac{kr}{r+w}}{r+w-k}=\frac{r\,\frac{r+w-k}{r+w}}{r+w-k}=\frac r{r+w}.\qquad\blacksquare

✓ Proof checked step by step Every step was checked. We also summed the hypergeometric average in Python (r = 5, w = 3, k = 4): 0.625 = r/(r + w).

↑ Back to the question list

Let F be the distribution function of a random variable X. Show that F can have at most countably many discontinuities.

1999 · Paper I · Q1c · 25 marks

Solution

Set-up. FF is non-decreasing, so at every point xx the left limit F(x−)F(x-) exists, and FF is discontinuous at xx exactly when the jump J(x)=F(x)−F(x−)J(x)=F(x)-F(x-) is positive.

Count the large jumps. For n=1,2,…n=1,2,\dots let Dn={x:J(x)>1n}.D_n=\left\{x:J(x)>\frac1n\right\}. Take any finite set of points x1<⋯<xmx_1<\cdots<x_m in DnD_n. The jumps at these points are separate parts of the total rise of FF, which is at most 1: mn<∑i=1mJ(xi)≤F(∞)−F(−∞)=1.\frac mn<\sum_{i=1}^mJ(x_i)\le F(\infty)-F(-\infty)=1. So m<nm<n, and DnD_n has fewer than nn points. It is finite.

Conclusion. The set of discontinuities is D={x:J(x)>0}=⋃n=1∞Dn,D=\{x:J(x)>0\}=\bigcup_{n=1}^\infty D_n, a countable union of finite sets. Hence DD is at most countable. ◼\blacksquare

Remark. The jumps of a d.f. are exactly the atoms of the distribution, P(X=x)=J(x)P(X=x)=J(x). So a random variable has at most countably many values of positive probability. The set of jumps may be dense, though: the d.f. of a variable taking each rational qkq_k with probability 2−k2^{-k} jumps at every rational number.

✓ Proof checked step by step Every step was checked: the total size of the jumps cannot exceed 1.

↑ Back to the question list

An urn contains 5 white and 3 black balls, a second urn contains 6 white and 5 black balls. A ball is randomly transferred from the first urn to the second and then from the second to first urn. If a ball is now selected randomly from the first urn, find the probability that it is white.

1998 · Paper I · Q1a · 15 marks

Solution

First transfer (urn I: 5W, 3B → urn II: 6W, 5B).

(a) A white ball moves (probability 58\frac58). Urn I has 4W, 3B and urn II has 7W, 5B. The ball returned from urn II is

  • white with probability 712\frac7{12}, leaving urn I with 5W, 3B, so P(W)=58P(W)=\frac58;
  • black with probability 512\frac5{12}, leaving urn I with 4W, 4B, so P(W)=48P(W)=\frac48.

(b) A black ball moves (probability 38\frac38). Urn I has 5W, 2B and urn II has 6W, 6B. The ball returned is

  • white with probability 12\frac12, leaving urn I with 6W, 2B, so P(W)=68P(W)=\frac68;
  • black with probability 12\frac12, leaving urn I with 5W, 3B, so P(W)=58P(W)=\frac58.

Total probability. P(W)=58[712⋅58+512⋅48]+38[12⋅68+12⋅58]=58⋅5596+38⋅1116=275+198768=𝟒𝟕𝟑𝟕𝟔𝟖≈0.616.P(W)=\frac58\left[\frac7{12}\cdot\frac58+\frac5{12}\cdot\frac48\right]+\frac38\left[\frac12\cdot\frac68+\frac12\cdot\frac58\right]=\frac58\cdot\frac{55}{96}+\frac38\cdot\frac{11}{16}=\frac{275+198}{768}=\mathbf{\frac{473}{768}}\approx0.616.

✓ Checked by computer We recomputed the four-branch tree with exact fractions: 473/768 ≈ 0.616.

↑ Back to the question list

Describe a priori probabilities, likelihoods and posterior probabilities in defining the Bayes theorem. Explain why, in spite of its easy deductibility from the postulates of probability, it has been the subject of such extensive controversy.

1998 · Paper I · Q1b · 10 marks

Solution

The three ingredients of Bayes’ theorem. P(Bk∣A)=P(Bk)P(A∣Bk)∑iP(Bi)P(A∣Bi).P(B_k\mid A)=\frac{P(B_k)\,P(A\mid B_k)}{\sum_iP(B_i)\,P(A\mid B_i)}.

  • A priori (prior) probabilities P(Bk)P(B_k): how probable each possible “cause” or hypothesis BkB_k is before we see the data.
  • Likelihoods P(A∣Bk)P(A\mid B_k): how probable the observed data AA would be if BkB_k were true. They measure how well each hypothesis explains what was seen.
  • Posterior probabilities P(Bk∣A)P(B_k\mid A): the revised probabilities of the hypotheses after the data. In words, posterior ∝ prior × likelihood.

Why it has been controversial. The theorem itself is uncontroversial: it follows in two lines from the definition of conditional probability. The dispute is over how it is used for inference.

  1. Where do the priors come from? In scientific problems the “causes” are often fixed unknown parameters, such as a population mean, not outcomes of a random experiment. Frequentists such as Fisher and Neyman held that assigning them probabilities is meaningless, or merely a matter of personal belief.
  2. Subjectivity. Different priors give different posteriors from the same data. Critics see this as letting personal opinion into science.
  3. The “principle of insufficient reason”. Using equal priors to express ignorance (as Bayes and Laplace did) is not invariant: a uniform prior on θ\theta is not uniform on θ2\theta^2. This can lead to paradoxes.
  4. Philosophy of probability. The dispute reflects two views of probability: relative frequency on one side, and degree of belief on the other.

Today, Bayesian methods are widely used where priors can be justified (empirical Bayes, decision theory, hierarchical models). The debate is about interpretation, not about the mathematics.

✓ Answer checked step by step Each point was checked against standard accounts of Bayesian and frequentist inference.

↑ Back to the question list

A sportsman’s chance of shooting an animal at a distance s(>r) is r2s2. He fires when s=2r and if he misses he reloads and fires when s=3r,4r,…. If he misses at distance nr, the animal escapes. Calculate the odds against the sportsman.

1998 · Paper I · Q1c · 15 marks

Solution

Shots. He fires at distances s=krs=kr for k=2,3,…,nk=2,3,\dots,n. A shot at krkr hits with probability r2(kr)2=1k2\frac{r^2}{(kr)^2}=\frac1{k^2}, and the shots are independent.

Probability that the animal escapes (all shots miss): ∏k=2n(1−1k2)=∏k=2n(k−1)(k+1)k⋅k=(∏k=2nk−1k)(∏k=2nk+1k)=1n⋅n+12=n+12n.\prod_{k=2}^n\left(1-\frac1{k^2}\right)=\prod_{k=2}^n\frac{(k-1)(k+1)}{k\cdot k}=\left(\prod_{k=2}^n\frac{k-1}k\right)\left(\prod_{k=2}^n\frac{k+1}k\right)=\frac1n\cdot\frac{n+1}2=\frac{n+1}{2n}. (Both products telescope.)

Probability that he succeeds: 1−n+12n=n−12n1-\dfrac{n+1}{2n}=\dfrac{n-1}{2n}.

Odds against the sportsman: n+12n:n−12n=(𝐧+𝟏):(𝐧−𝟏).\frac{n+1}{2n}:\frac{n-1}{2n}=\mathbf{(n+1):(n-1)}. (As n→∞n\to\infty the odds approach evens: he never does better than a 50% chance.)

✓ Checked by computer We checked the telescoping product in Python for n = 3, 5 and 10: P(escape) = (n + 1)/(2n) each time.

↑ Back to the question list

(i) For n events A1,A2,…,An show that P(⋃i=1nAi)≤∑i=1nP(Ai) (ii) If p be the probability that none of the n events occurs, then p≤e−∑i=1npi

1998 · Paper I · Q1d · 20 marks

Solution

(i) Boole’s inequality. For two events, P(A1∪A2)=P(A1)+P(A2)−P(A1∩A2)≤P(A1)+P(A2)P(A_1\cup A_2)=P(A_1)+P(A_2)-P(A_1\cap A_2)\le P(A_1)+P(A_2). Suppose the result holds for n−1n-1 events. Then P(⋃i=1nAi)≤P(⋃i=1n−1Ai)+P(An)≤∑i=1n−1P(Ai)+P(An).P\left(\bigcup_{i=1}^nA_i\right)\le P\left(\bigcup_{i=1}^{n-1}A_i\right)+P(A_n)\le\sum_{i=1}^{n-1}P(A_i)+P(A_n). By induction it holds for all nn. ◼\blacksquare

(ii) Note on the question. The bound needs the events to be independent. For example, if A1=⋯=An=AA_1=\cdots=A_n=A with P(A)=12P(A)=\frac12, then p=12p=\frac12, but e−n/2e^{-n/2} is smaller than that for n≥2n\ge2. With pi=P(Ai)p_i=P(A_i) and the AiA_i independent: p=P(⋂i=1nAic)=∏i=1n(1−pi).p=P\left(\bigcap_{i=1}^nA_i^c\right)=\prod_{i=1}^n(1-p_i). Since 1−x≤e−x1-x\le e^{-x} for all real xx (the line 1−x1-x is tangent to the convex curve e−xe^{-x} at 0), p≤∏i=1ne−pi=e−∑i=1npi.◼p\le\prod_{i=1}^ne^{-p_i}=e^{-\sum_{i=1}^np_i}.\qquad\blacksquare This is the key step in the second Borel–Cantelli lemma: if ∑pi=∞\sum p_i=\infty, the chance that none of the events occurs is 0.

✓ Proof checked step by step Every step was checked: induction for (i), and 1−x≤e−x1-x\le e^{-x} for (ii).

↑ Back to the question list

Let X and Y be jointly distributed with p.d.f. f(x,y)={x+y,0<x<1,0<y<10,otherwise Find marginals conditional distributions and correlation coefficient.

1998 · Paper I · Q2b · 20 marks

Solution

(This question is also listed under 1.2 Expectation and moments. The worked solution is repeated here so that this page is complete.)

Marginals. fX(x)=∫01(x+y)dy=x+12,0<x<1;fY(y)=y+12,0<y<1.f_X(x)=\int_0^1(x+y)\,dy=x+\tfrac12,\quad0<x<1;\qquad f_Y(y)=y+\tfrac12,\quad0<y<1.

Conditional distributions. f(y∣x)=x+yx+12,0<y<1;f(x∣y)=x+yy+12,0<x<1.f(y\mid x)=\frac{x+y}{x+\frac12},\quad0<y<1;\qquad f(x\mid y)=\frac{x+y}{y+\frac12},\quad0<x<1. These depend on the conditioning value, so XX and YY are not independent.

Moments. By symmetry, XX and YY have the same moments. E(X)=∫01x(x+12)dx=13+14=712,E(X2)=14+16=512,E(X)=\int_0^1x\left(x+\tfrac12\right)dx=\tfrac13+\tfrac14=\tfrac7{12},\qquad E(X^2)=\tfrac14+\tfrac16=\tfrac5{12}, V(X)=512−49144=11144,E(XY)=∫01∫01xy(x+y)dxdy=16+16=13.V(X)=\tfrac5{12}-\tfrac{49}{144}=\tfrac{11}{144},\qquad E(XY)=\int_0^1\!\!\int_0^1xy(x+y)\,dx\,dy=\tfrac16+\tfrac16=\tfrac13. Cov(X,Y)=13−49144=−1144.\text{Cov}(X,Y)=\tfrac13-\tfrac{49}{144}=-\tfrac1{144}.

Correlation coefficient. ρ=−1/14411/144=−𝟏𝟏𝟏≈−0.091.\rho=\frac{-1/144}{11/144}=\mathbf{-\frac1{11}}\approx-0.091.

✓ Checked by computer We recomputed the moments in SymPy: E(X)=712E(X)=\tfrac7{12}, V(X)=11144V(X)=\tfrac{11}{144}, Cov=−1144\text{Cov}=-\tfrac1{144}, ρ=−111\rho=-\tfrac1{11}.

↑ Back to the question list

If the probability of hitting a target is 13 and if 6 shots are fired, what is the conditional probability of the target being hit at least twice assuming that at least one hit is already scored?

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

Solution

The number of hits is X∼B(6,13)X\sim B\left(6,\frac13\right). P(X=0)=(23)6=64729,P(X=1)=6⋅13(23)5=192729.P(X=0)=\left(\tfrac23\right)^6=\frac{64}{729},\qquad P(X=1)=6\cdot\tfrac13\left(\tfrac23\right)^5=\frac{192}{729}. P(X≥2∣X≥1)=1−P(0)−P(1)1−P(0)=729−64−192729−64=𝟒𝟕𝟑𝟔𝟔𝟓≈0.711.P(X\ge2\mid X\ge1)=\frac{1-P(0)-P(1)}{1-P(0)}=\frac{729-64-192}{729-64}=\mathbf{\frac{473}{665}}\approx0.711.

✓ Checked by computer We recomputed with exact binomial terms: 473/665 ≈ 0.711.

↑ Back to the question list

Do the following functions define distribution functions of random variables? F(x)={0,x<−a12(xa+2),−a≤x≤a1,x>a

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

Solution

Requirements. A d.f. must be non-decreasing and right-continuous, with F(−∞)=0F(-\infty)=0, F(∞)=1F(\infty)=1, and so 0≤F≤10\le F\le1.

Check. At x=ax=a: F(a)=12(aa+2)=32>1F(a)=\frac12\left(\frac aa+2\right)=\frac32>1. So FF is not a distribution function. (It also jumps from 0 to 12\frac12 at −a-a and then drops from 32\frac32 to 1 just after aa, so it is not even non-decreasing.)

(The intended function was probably F(x)=12(xa+1)F(x)=\frac12\left(\frac xa+1\right) on [−a,a][-a,a]. That is the d.f. of the uniform distribution on (−a,a)(-a,a), rising from 0 to 1.)

✓ Answer checked step by step We checked the value of F at x = a against the requirement F ≤ 1.

↑ Back to the question list

F(x)={0,if x≤1k4(x−1)3,if 1<x≤31,if x>3 Justify your answer in each case.

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

Solution

Conditions.

  • Non-decreasing: (x−1)3(x-1)^3 increases on (1,3](1,3], so we need k≥0k\ge0.
  • At the left end, F(1+)=0=F(1)F(1+)=0=F(1), which is fine.
  • At x=3x=3: F(3)=k4⋅23=2kF(3)=\frac k4\cdot2^3=2k, while F(x)=1F(x)=1 for x>3x>3. Right-continuity at 3 requires F(3)=F(3+)=1F(3)=F(3+)=1, that is, 2k=12k=1. (If 2k>12k>1, FF would exceed 1 and then fall. If 2k<12k<1, FF would jump up just after 3, but F(3)F(3) itself is set by the middle formula, so FF would not be right-continuous there.)

Answer. FF is a distribution function if and only if k=12k=\frac12: F(x)=(x−1)38,1<x≤3,F(x)=\frac{(x-1)^3}8,\qquad1<x\le3, with density f(x)=3(x−1)28f(x)=\dfrac{3(x-1)^2}8 on (1,3)(1,3). For any other kk it is not a d.f.

✓ Answer checked step by step We checked that F(3) = 2k, so right-continuity at 3 forces 2k = 1.

↑ Back to the question list

A postman delivers 5 letters at random to 5 different addresses in a locality. What is the probability that none of the letters is correctly delivered?

1997 · Paper I · Q1a · 15 marks

Solution

Inclusion–exclusion. Let AiA_i be the event that letter ii is delivered correctly. Then P(none correct)=1−∑P(Ai)+∑P(AiAj)−⋯=∑k=05(−1)kk!=1−1+12−16+124−1120=44120=𝟏𝟏𝟑𝟎≈0.367.P(\text{none correct})=1-\sum P(A_i)+\sum P(A_iA_j)-\cdots=\sum_{k=0}^5\frac{(-1)^k}{k!}=1-1+\frac12-\frac16+\frac1{24}-\frac1{120}=\frac{44}{120}=\mathbf{\frac{11}{30}}\approx0.367. (44 is the number of derangements of 5 objects. For many letters the answer approaches e−1≈0.368e^{-1}\approx0.368.)

✓ Checked by computer We recomputed: D₅ = 44 derangements out of 5! = 120, giving 11/30.

↑ Back to the question list

A certain water-supply system consists of three pumping stations and a destination. Each pumping station has probability p(0≤p≤1) of being operable at a specified time t0. If the stations are operable or failed independently of one another and if the stations are connected as shown below, find the probability that water is available to the destination at time t0.

[Figure: network diagram. Source (dot with arrow) on the left feeds a vertical junction line from which three parallel paths run left to right towards a vertical junction line on the right, which leads by an arrow to Destination. Top path: arrow to station 1 (circle labelled 1), then on to the right junction. Middle path: arrow from the source junction to station 3 (circle labelled 3); from station 3 two lines branch out, one going up to station 1 and one going down to station 2. Bottom path: arrow to station 2 (circle at the bottom, label partly hidden in the source; read as 2), then on to the right junction. Arrows on the right junction point from the top and bottom paths towards the Destination outlet. So water reaches the destination through station 1 or station 2; station 1 and station 2 are each fed either directly from the source or through station 3.]

1997 · Paper I · Q1b · 25 marks

Solution

Note on the question. The diagram printed in the paper is hard to read. We take it as follows: water reaches the destination through station 1 or through station 2, and each of these can be fed straight from the source or through station 3.

SourceDesti-nation132
Our reading of the printed diagram: stations 1 and 2 each lead to the destination; each can be fed straight from the source or through station 3.

Reliability. Under this reading, water arrives exactly when station 1 or station 2 works. The paths through station 3 only add routes into stations 1 and 2, which can be fed directly anyway. With independent stations, P(water available)=1−P(1 fails and 2 fails)=1−(1−p)2=𝟐𝐩−𝐩𝟐.P(\text{water available})=1-P(\text{1 fails and 2 fails})=1-(1-p)^2=\mathbf{2p-p^2}.

Other readings.

  • If station 3 is a third parallel route to the destination, the answer is 1−(1−p)3=3p−3p2+p31-(1-p)^3=3p-3p^2+p^3.
  • If stations 1 and 2 can be fed only through station 3, the answer is p[1−(1−p)2]=2p2−p3p\left[1-(1-p)^2\right]=2p^2-p^3.

The method is the same in each case: list the routes from source to destination, and use independence on the series and parallel parts.

✓ Checked by computer We checked the reliability formula by listing all 2³ operating patterns of the stations in Python.

↑ Back to the question list

State Bayes’ theorem and explain its significance.

1997 · Paper I · Q1c · 10 marks

Solution

Bayes’ theorem. If B1,…,BnB_1,\dots,B_n are mutually exclusive and exhaustive events with P(Bi)>0P(B_i)>0, and P(A)>0P(A)>0, then P(Bk∣A)=P(Bk)P(A∣Bk)∑i=1nP(Bi)P(A∣Bi),k=1,…,n.P(B_k\mid A)=\frac{P(B_k)\,P(A\mid B_k)}{\sum_{i=1}^nP(B_i)\,P(A\mid B_i)},\qquad k=1,\dots,n.

Significance.

  • Reasoning from effects to causes. It reverses conditioning. From the probabilities of an observed effect AA under each possible cause BkB_k, it gives the probability of each cause given that the effect was observed.
  • Learning from data. It updates prior probabilities into posterior ones: posterior ∝ prior × likelihood. It is the foundation of Bayesian inference and decision theory.
  • Applications. Medical diagnosis (the chance of disease given a positive test), quality control (which machine made a defective item), spam filtering, and reliability.
  • A warning against base-rate neglect. With a rare disease, even an accurate test gives many false positives. Bayes’ theorem makes the prior’s influence explicit.

✓ Answer checked step by step The statement was checked against the standard form; the significance points follow standard texts.

↑ Back to the question list

A pair of fair dice are rolled as long as necessary for a sum of two scores of 7 to turn up. Assuming that 7 does not appear on the first throw, what is the probability that more than two throws will be necessary?

1997 · Paper I · Q1d · 10 marks

Solution

On each throw, P(sum=7)=636=16P(\text{sum}=7)=\frac6{36}=\frac16, independently. Let NN be the throw on which 7 first appears. Then P(N>m)=(56)mP(N>m)=\left(\frac56\right)^m. P(N>2∣N>1)=(5/6)25/6=𝟓𝟔.P(N>2\mid N>1)=\frac{(5/6)^2}{5/6}=\mathbf{\frac56}. (By the memoryless property of the geometric distribution: given that the first throw was not 7, we need only the second throw not to be 7.)

✓ Checked by computer We recomputed: P(N > 2 | N > 1) = (5/6)²/(5/6) = 5/6.

↑ Back to the question list

(i) For n events A1,A2,…,An show that ∑i=1nP(Ai)−∑i<jP(Ai∩Aj)≤P⋃i=1nAi≤∑i=1nP(Ai) (ii) Let {An} be a non-decreasing sequence of events. State that limn→∞P(An)=P(limn→∞An)

1996 · Paper I · Q1a · 26 marks

Solution

(i) Bonferroni’s inequalities. Write S1=∑iP(Ai)S_1=\sum_iP(A_i) and S2=∑i<jP(Ai∩Aj)S_2=\sum_{i<j}P(A_i\cap A_j).

Upper bound (Boole), by induction: P(⋃i=1nAi)=P(⋃i=1n−1Ai)+P(An)−P(An∩⋃i<nAi)≤P(⋃i<nAi)+P(An),P\left(\bigcup_{i=1}^nA_i\right)=P\left(\bigcup_{i=1}^{n-1}A_i\right)+P(A_n)-P\left(A_n\cap\bigcup_{i<n}A_i\right)\le P\left(\bigcup_{i<n}A_i\right)+P(A_n), which gives P(⋃Ai)≤S1P\left(\bigcup A_i\right)\le S_1.

Lower bound, by induction. True for n=2n=2 (with equality). Assume it for n−1n-1, and write U=⋃i<nAiU=\bigcup_{i<n}A_i: P(U∪An)=P(U)+P(An)−P(⋃i<n(Ai∩An)).P(U\cup A_n)=P(U)+P(A_n)-P\left(\bigcup_{i<n}(A_i\cap A_n)\right). By the induction hypothesis, P(U)≥∑i<nP(Ai)−∑i<j<nP(AiAj)P(U)\ge\sum_{i<n}P(A_i)-\sum_{i<j<n}P(A_iA_j). By Boole, P(⋃i<nAiAn)≤∑i<nP(AiAn)P\left(\bigcup_{i<n}A_iA_n\right)\le\sum_{i<n}P(A_iA_n). Hence P(⋃i=1nAi)≥S1−S2.◼P\left(\bigcup_{i=1}^nA_i\right)\ge S_1-S_2.\qquad\blacksquare Together: S1−S2≤P(⋃i=1nAi)≤S1S_1-S_2\le P\left(\bigcup_{i=1}^nA_i\right)\le S_1.

(ii) Continuity from below. If A1⊆A2⊆⋯A_1\subseteq A_2\subseteq\cdots and A=limAn=⋃nAnA=\lim A_n=\bigcup_nA_n, then limnP(An)=P(A)\lim_nP(A_n)=P(A).

Proof. Let B1=A1B_1=A_1 and Bk=Ak\Ak−1B_k=A_k\setminus A_{k-1}. The BkB_k are disjoint, An=⋃k≤nBkA_n=\bigcup_{k\le n}B_k and A=⋃kBkA=\bigcup_kB_k. By countable additivity, P(A)=∑k=1∞P(Bk)=limn→∞∑k=1nP(Bk)=limn→∞P(An).◼P(A)=\sum_{k=1}^\infty P(B_k)=\lim_{n\to\infty}\sum_{k=1}^nP(B_k)=\lim_{n\to\infty}P(A_n).\qquad\blacksquare

✓ Proof checked step by step Every step was checked: induction for (i), and disjoint decomposition with countable additivity for (ii).

↑ Back to the question list

An urn contains R red and W white balls. Balls are drawn one by one without replacement. If Ak is the event that a red ball is drawn for the first time on the kth draw, then determine P(Ak). Let p be the proportion of red balls in the urn before the first draw. Show that P(Ak)→p(1−p)k−1 as R+W→∞

1996 · Paper I · Q1b · 20 marks

Solution

Exact probability. AkA_k means the first k−1k-1 balls are white and the kk-th is red. For k=1,…,W+1k=1,\dots,W+1: P(Ak)=WR+W⋅W−1R+W−1⋯W−k+2R+W−k+2⋅RR+W−k+1=Wk−1_R(R+W)k_,P(A_k)=\frac{W}{R+W}\cdot\frac{W-1}{R+W-1}\cdots\frac{W-k+2}{R+W-k+2}\cdot\frac R{R+W-k+1}=\frac{W^{\underline{k-1}}\;R}{(R+W)^{\underline{k}}}, where mj_=m(m−1)⋯(m−j+1)m^{\underline j}=m(m-1)\cdots(m-j+1).

Limit. Let N=R+W→∞N=R+W\to\infty with R/N=pR/N=p fixed. Each factor W−iN−i→WN=1−p\frac{W-i}{N-i}\to\frac WN=1-p for fixed ii, and RN−k+1→p\frac R{N-k+1}\to p. There are k−1k-1 factors of the first kind, so P(Ak)→(1−p)k−1p.P(A_k)\to(1-p)^{k-1}p. In a very large urn, drawing without replacement is almost the same as drawing with replacement, so the waiting time for the first red ball becomes geometric. ◼\blacksquare

✓ Checked by computer We checked the formula in Python (R = 6, W = 9): P(A₁), P(A₂), P(A₃) = 0.400, 0.257, 0.158, and the probabilities over all k sum to 1.

↑ Back to the question list

Explain clearly why there must be a mistake in each of the following statements: (i) The probability that a student will get an ‘A’ in a statistics course is 0.32 and the probability that he or she will get either an ‘A’ or a ‘B’ is 0.27. (ii) A company is working on the construction of two shopping centers. The probability that the larger one will be completed on time is 0.35 and the probability that both will be completed on time is 0.42.

1996 · Paper I · Q1c · 14 marks

Solution

(i) The event “A” is contained in the event “A or B”. So P(A or B)≥P(A).P(A\text{ or }B)\ge P(A). But here 0.27<0.320.27<0.32. This is impossible.

(ii) “Both completed on time” is contained in “the larger one completed on time”. So P(both)≤P(larger).P(\text{both})\le P(\text{larger}). But here 0.42>0.350.42>0.35. This is impossible.

In both cases a probability has been assigned to a smaller event that exceeds the probability of a larger event containing it. This contradicts the monotonicity of probability: A⊆B⇒P(A)≤P(B)A\subseteq B\Rightarrow P(A)\le P(B).

✓ Answer checked step by step Each statement was checked against the basic rules A ⊆ A ∪ B and A ∩ B ⊆ A.

↑ Back to the question list

State and prove Bayes’ theorem.

1996 · Paper I · Q2a · 20 marks

Solution

Bayes’ theorem. Let B1,B2,…,BnB_1,B_2,\dots,B_n be mutually exclusive events whose union is the whole sample space, with P(Bi)>0P(B_i)>0. For any event AA with P(A)>0P(A)>0: P(Bk∣A)=P(Bk)P(A∣Bk)∑i=1nP(Bi)P(A∣Bi),k=1,…,n.P(B_k\mid A)=\frac{P(B_k)\,P(A\mid B_k)}{\sum_{i=1}^nP(B_i)\,P(A\mid B_i)},\qquad k=1,\dots,n.

Proof.

Step 1 (multiplication rule). By definition, P(A∣Bk)=P(A∩Bk)/P(Bk)P(A\mid B_k)=P(A\cap B_k)/P(B_k), so P(A∩Bk)=P(Bk)P(A∣Bk)P(A\cap B_k)=P(B_k)P(A\mid B_k).

Step 2 (total probability). Since the BiB_i partition the sample space, A=A∩(⋃iBi)=⋃i(A∩Bi),A=A\cap\left(\bigcup_iB_i\right)=\bigcup_i(A\cap B_i), and the sets A∩BiA\cap B_i are disjoint. By additivity, P(A)=∑i=1nP(A∩Bi)=∑i=1nP(Bi)P(A∣Bi).P(A)=\sum_{i=1}^nP(A\cap B_i)=\sum_{i=1}^nP(B_i)P(A\mid B_i).

Step 3. P(Bk∣A)=P(A∩Bk)P(A)=P(Bk)P(A∣Bk)∑iP(Bi)P(A∣Bi).◼P(B_k\mid A)=\frac{P(A\cap B_k)}{P(A)}=\frac{P(B_k)P(A\mid B_k)}{\sum_iP(B_i)P(A\mid B_i)}.\qquad\blacksquare

Example. Ten per cent of a population has a disease, and a test is 90% accurate both ways. Then P(disease∣+)=0.1×0.90.1×0.9+0.9×0.1=12.P(\text{disease}\mid+)=\frac{0.1\times0.9}{0.1\times0.9+0.9\times0.1}=\frac12. A positive result moves the probability only from 10% to 50%.

✓ Proof checked step by step Every step was checked: the definition of conditional probability plus total probability.

↑ Back to the question list

If two random variables have the joint density f(x1,x2)={x1x2for 0<x1<1,0<x2<20elsewhere find the probabilities that (i) both random variables will take on values less than 1. (ii) the sum of the values taken on by both will be less than 1.

1996 · Paper I · Q2b · 20 marks

Solution

Check. ∫01∫02x1x2dx2dx1=12⋅2=1\displaystyle\int_0^1\!\!\int_0^2x_1x_2\,dx_2\,dx_1=\frac12\cdot2=1. ✓ (The density factorises, so X1X_1 and X2X_2 are independent, with densities 2x12x_1 on (0,1)(0,1) and x22\frac{x_2}2 on (0,2)(0,2).)

(i) P(X1<1,X2<1)=∫01x1dx1∫01x2dx2=12⋅12=𝟏𝟒.P(X_1<1,X_2<1)=\int_0^1x_1\,dx_1\int_0^1x_2\,dx_2=\frac12\cdot\frac12=\mathbf{\frac14}.

(ii) P(X1+X2<1)=∫01x1∫01−x1x2dx2dx1=∫01x1(1−x1)22dx1=12B(2,3)=12⋅112=𝟏𝟐𝟒.P(X_1+X_2<1)=\int_0^1x_1\int_0^{1-x_1}x_2\,dx_2\,dx_1=\int_0^1x_1\frac{(1-x_1)^2}2\,dx_1=\frac12B(2,3)=\frac12\cdot\frac1{12}=\mathbf{\frac1{24}}.

✓ Checked by computer We recomputed both integrals in SymPy: 1/4 and 1/24.

↑ Back to the question list

What is a random experiment? Consider the random experiment “a die is rolled n times”. Define the associated sample space and state the number of elementary events in it. What is the event that “number 1 shows at least once”? How many elementary events are there in this event?

1995 · Paper I · Q1a · 25 marks

Solution

Random experiment. An experiment that

  1. can be repeated (at least in principle) under identical conditions,
  2. has a set of possible outcomes that is known in advance, and
  3. has an outcome that cannot be predicted with certainty on any one trial.

Tossing a coin and rolling a die are examples.

Sample space for nn rolls. Ω={(x1,x2,…,xn):xi∈{1,2,…,6}},\Omega=\{(x_1,x_2,\dots,x_n):x_i\in\{1,2,\dots,6\}\}, the set of ordered nn-tuples of faces. It has 6n6^n elementary events, all equally likely for a fair die.

The event “1 shows at least once”. A={(x1,…,xn)∈Ω:xi=1 for some i}=Ω\{1 never shows}.A=\{(x_1,\dots,x_n)\in\Omega:x_i=1\text{ for some }i\}=\Omega\setminus\{1\text{ never shows}\}. The complement {xi∈{2,…,6} for all i}\{x_i\in\{2,\dots,6\}\text{ for all }i\} has 5n5^n points, so AA has 6n−5n elementary events,6^n-5^n\text{ elementary events}, and P(A)=1−(56)nP(A)=1-\left(\frac56\right)^n.

✓ Answer checked step by step We checked the counts 6ⁿ and 6ⁿ − 5ⁿ by direct counting.

↑ Back to the question list

A fair die is rolled twice. Let A be the event that the first throw shows a number ≤2 and B the event that the second throw shows at least 4. Describe the event A∩B and find P(A∪B).

1995 · Paper I · Q1b · 15 marks

Solution

Events. A={(i,j):i≤2}A=\{(i,j):i\le2\} (12 outcomes) and B={(i,j):j≥4}B=\{(i,j):j\ge4\} (18 outcomes).

A∩BA\cap B = “first throw is 1 or 2, and second throw is 4, 5 or 6”: A∩B={(1,4),(1,5),(1,6),(2,4),(2,5),(2,6)},P(A∩B)=636=16.A\cap B=\{(1,4),(1,5),(1,6),(2,4),(2,5),(2,6)\},\qquad P(A\cap B)=\frac6{36}=\frac16.

P(A∪B)P(A\cup B). P(A∪B)=1236+1836−636=2436=𝟐𝟑.P(A\cup B)=\frac{12}{36}+\frac{18}{36}-\frac6{36}=\frac{24}{36}=\mathbf{\frac23}. (AA and BB are independent: 13⋅12=16\frac13\cdot\frac12=\frac16.)

✓ Checked by computer We recomputed by counting the 36 outcomes: |A ∩ B| = 6 and P(A ∪ B) = 24/36 = 2/3.

↑ Back to the question list

A point is picked at random from the unit square Ω={(x,y);0≤x≤1,0≤y≤1}. Find the probability that the point (i) lies in the circle with centre (12,12) and radius 12, (ii) lies at most a unit distance from the origin (0, 0).

1995 · Paper I · Q1c · 20 marks

Solution

A point chosen at random from the unit square has probability equal to the area of the region (the total area is 1).

(i) The circle with centre (12,12)\left(\frac12,\frac12\right) and radius 12\frac12 lies entirely inside the square. Its area is π(12)2=𝛑𝟒≈0.785.\pi\left(\tfrac12\right)^2=\mathbf{\frac\pi4}\approx0.785.

(ii) {(x,y):x2+y2≤1}\{(x,y):x^2+y^2\le1\} meets the square in a quarter of the unit disc. Its area is 14π(1)2=𝛑𝟒≈0.785.\tfrac14\pi(1)^2=\mathbf{\frac\pi4}\approx0.785.

(The two answers coincide, even though the regions are different shapes.)

✓ Checked by computer We recomputed the areas: both equal π/4 ≈ 0.785.

↑ Back to the question list

When is a random variable said to be of the discrete type? What is the pmf of such a random variable? Define the corresponding distribution function. Give an example of such a random variable.

1995 · Paper I · Q2a · 20 marks

Solution

Discrete random variable. A random variable XX is of the discrete type if it takes a finite or countably infinite set of values x1,x2,…x_1,x_2,\dots with P(X=xi)=pi>0,∑ipi=1.P(X=x_i)=p_i>0,\qquad\sum_ip_i=1.

P.m.f. The probability mass function is p(x)=P(X=x)p(x)=P(X=x), with p(xi)=pip(x_i)=p_i and p(x)=0p(x)=0 elsewhere. It satisfies

  1. p(x)≥0p(x)\ge0, and
  2. ∑xp(x)=1\sum_xp(x)=1.

Also P(X∈A)=∑x∈Ap(x)P(X\in A)=\sum_{x\in A}p(x) for any set AA.

Distribution function. F(x)=P(X≤x)=∑xi≤xpi,−∞<x<∞.F(x)=P(X\le x)=\sum_{x_i\le x}p_i,\qquad-\infty<x<\infty. For a discrete variable, FF is a step function. It jumps by pip_i at each xix_i and is constant in between. It is non-decreasing and right-continuous, with F(−∞)=0F(-\infty)=0 and F(∞)=1F(\infty)=1.

Example. XX = number of heads in 2 tosses of a fair coin: p(0)=14p(0)=\frac14, p(1)=12p(1)=\frac12, p(2)=14p(2)=\frac14, and F(x)={0,x<014,0≤x<134,1≤x<21,x≥2.F(x)=\begin{cases}0,&x<0\\\frac14,&0\le x<1\\\frac34,&1\le x<2\\1,&x\ge2.\end{cases} Another example: the Poisson(λ\lambda) number of calls in a minute, p(x)=e−λλx/x!p(x)=e^{-\lambda}\lambda^x/x!, x=0,1,2,…x=0,1,2,\dots

✓ Answer checked step by step Each definition was checked against the standard texts.

↑ Back to the question list

Let (X, Y) be jointly distributed with pdf f(x,y)={2if 0<x<y<10otherwise Find all the marginal and conditional density functions.

1995 · Paper I · Q2b · 20 marks

Solution

Check. The region 0<x<y<10<x<y<1 has area 12\frac12, so f=2f=2 integrates to 1. ✓

Marginals. fX(x)=∫x12dy=2(1−x),0<x<1;fY(y)=∫0y2dx=2y,0<y<1.f_X(x)=\int_x^12\,dy=2(1-x),\quad0<x<1;\qquad f_Y(y)=\int_0^y2\,dx=2y,\quad0<y<1.

Conditionals. f(y∣x)=22(1−x)=11−x,x<y<1(Y∣X=x∼U(x,1));f(y\mid x)=\frac2{2(1-x)}=\frac1{1-x},\quad x<y<1\qquad(Y\mid X=x\sim U(x,1)); f(x∣y)=22y=1y,0<x<y(X∣Y=y∼U(0,y)).f(x\mid y)=\frac2{2y}=\frac1y,\quad0<x<y\qquad(X\mid Y=y\sim U(0,y)). (XX and YY are the minimum and maximum of two independent U(0,1)U(0,1) variables.)

✓ Checked by computer We checked in SymPy that every marginal and conditional density integrates to 1.

↑ Back to the question list

Do the following functions define distribution functions of random variables? (i) F(x)={0if x<0xif 0≤x<121if x≥12 (ii) F(x)={0if x<112if x=1−1xif x>1 [?] Justify your answer in each case.

1995 · Paper I · Q3c · 16 marks

Solution

A d.f. must be: non-decreasing, right-continuous, with F(−∞)=0F(-\infty)=0 and F(∞)=1F(\infty)=1 (so 0≤F≤10\le F\le1).

(i) Yes, it is a d.f. It is 0 for x<0x<0, rises as xx on [0,12)[0,\frac12), and is 1 from x=12x=\frac12 on. It is non-decreasing, right-continuous everywhere (including at 12\frac12, where F(12)=1F(\frac12)=1), and has the right limits. It is a mixed distribution: density 1 on (0,12)(0,\frac12) carrying probability 12\frac12, plus an atom P(X=12)=12P(X=\frac12)=\frac12.

(ii) No, it is not a d.f. For x>1x>1, F(x)=−1x<0F(x)=-\frac1x<0, a negative value. Also FF falls from 12\frac12 at x=1x=1 to negative values, so it is not non-decreasing, and F(∞)=0≠1F(\infty)=0\ne1.

(Even if 1−1x1-\frac1x was intended for x>1x>1, FF would drop from F(1)=12F(1)=\frac12 to F(1+)=0F(1+)=0. That would make it neither non-decreasing nor right-continuous, so it would still fail.)

✓ Answer checked step by step We checked each function against the defining properties of a distribution function.

↑ Back to the question list

More on Probability

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

Spotted an error? Tell us.

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

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted