Level 2 — RecallProbability Theory & Statistics

Probability Theory & Statistics

40 marksprintable — key stays hidden on paper

Level: 2 (Recall: definitions, standard problems, short derivations) Time: 30 minutes Total marks: 40


Q1. State the three Kolmogorov axioms of a probability measure PP on a sample space Ω\Omega with sigma-algebra F\mathcal{F}. (3 marks)

Q2. A fair six-sided die is rolled once. Let A={even}A=\{\text{even}\} and B={greater than 3}B=\{\text{greater than }3\}. Use the inclusion–exclusion principle to compute P(AB)P(A\cup B). (4 marks)

Q3. A discrete random variable XX has PMF p(x)=cxp(x)=cx for x=1,2,3,4x=1,2,3,4 and 00 otherwise. (a) Find cc. (b) Compute E[X]E[X]. (4 marks)

Q4. Let XBinomial(n=10,p=0.3)X\sim\text{Binomial}(n=10,\,p=0.3). State E[X]E[X] and Var(X)\mathrm{Var}(X), and compute P(X=2)P(X=2) (leave in exact form). (5 marks)

Q5. Let XExponential(λ)X\sim\text{Exponential}(\lambda) with PDF f(x)=λeλxf(x)=\lambda e^{-\lambda x} for x0x\ge 0. (a) Derive the CDF. (b) State the median in terms of λ\lambda. (4 marks)

Q6. Define the moment generating function MX(t)M_X(t) of a random variable XX. For XPoisson(μ)X\sim\text{Poisson}(\mu), it is known that MX(t)=eμ(et1)M_X(t)=e^{\mu(e^t-1)}. Use it to obtain E[X]E[X]. (4 marks)

Q7. For random variables X,YX,Y, define the covariance Cov(X,Y)\mathrm{Cov}(X,Y) and the correlation coefficient ρX,Y\rho_{X,Y}. State the value of ρ\rho when XX and YY are independent. (4 marks)

Q8. State the Central Limit Theorem for a sequence of i.i.d. random variables with mean μ\mu and finite variance σ2\sigma^2. (4 marks)

Q9. A sample of n=100n=100 has mean xˉ=50\bar{x}=50 from a population with known σ=10\sigma=10. Construct a 95% confidence interval for the population mean (use z0.025=1.96z_{0.025}=1.96). (4 marks)

Q10. Define a Type I error and a Type II error in hypothesis testing, and state which one the significance level α\alpha controls. (4 marks)


End of paper.

Answer keyMark scheme & solutions

Q1. (3 marks)

  • (i) Non-negativity: P(A)0P(A)\ge 0 for all AFA\in\mathcal{F}. (1)
  • (ii) Normalization: P(Ω)=1P(\Omega)=1. (1)
  • (iii) Countable additivity: for pairwise disjoint A1,A2,FA_1,A_2,\dots\in\mathcal{F}, P ⁣(iAi)=iP(Ai)P\!\left(\bigcup_i A_i\right)=\sum_i P(A_i). (1) Why: these axioms guarantee PP is a well-defined normalized measure.

Q2. (4 marks)

  • A={2,4,6}P(A)=3/6=1/2A=\{2,4,6\}\Rightarrow P(A)=3/6=1/2. (1)
  • B={4,5,6}P(B)=3/6=1/2B=\{4,5,6\}\Rightarrow P(B)=3/6=1/2. (1)
  • AB={4,6}P(AB)=2/6=1/3A\cap B=\{4,6\}\Rightarrow P(A\cap B)=2/6=1/3. (1)
  • P(AB)=1/2+1/21/3=2/3P(A\cup B)=1/2+1/2-1/3=2/3. (1)

Q3. (4 marks)

  • Normalization: x=14cx=c(1+2+3+4)=10c=1c=1/10\sum_{x=1}^4 cx=c(1+2+3+4)=10c=1\Rightarrow c=1/10. (2)
  • E[X]=xp(x)=110(1+4+9+16)=3010=3E[X]=\sum x\,p(x)=\tfrac{1}{10}(1+4+9+16)=\tfrac{30}{10}=3. (2)

Q4. (5 marks)

  • E[X]=np=10(0.3)=3E[X]=np=10(0.3)=3. (1)
  • Var(X)=np(1p)=10(0.3)(0.7)=2.1\mathrm{Var}(X)=np(1-p)=10(0.3)(0.7)=2.1. (1)
  • P(X=2)=(102)(0.3)2(0.7)8P(X=2)=\binom{10}{2}(0.3)^2(0.7)^8. (2)
  • =45(0.09)(0.78)0.2335=45(0.09)(0.7^8)\approx 0.2335. (1)

Q5. (4 marks)

  • CDF: F(x)=0xλeλtdt=1eλxF(x)=\int_0^x\lambda e^{-\lambda t}\,dt=1-e^{-\lambda x} for x0x\ge0 (0 otherwise). (2)
  • Median mm: F(m)=1/21eλm=1/2m=ln2λF(m)=1/2\Rightarrow 1-e^{-\lambda m}=1/2\Rightarrow m=\dfrac{\ln 2}{\lambda}. (2)

Q6. (4 marks)

  • Definition: MX(t)=E[etX]M_X(t)=E[e^{tX}] (when it exists in a neighborhood of 00). (1)
  • E[X]=MX(0)E[X]=M_X'(0). (1)
  • MX(t)=eμ(et1)μetM_X'(t)=e^{\mu(e^t-1)}\cdot\mu e^t. (1)
  • At t=0t=0: MX(0)=e0μ1=μM_X'(0)=e^0\cdot\mu\cdot1=\mu, so E[X]=μE[X]=\mu. (1)

Q7. (4 marks)

  • Cov(X,Y)=E[(XE[X])(YE[Y])]=E[XY]E[X]E[Y]\mathrm{Cov}(X,Y)=E[(X-E[X])(Y-E[Y])]=E[XY]-E[X]E[Y]. (2)
  • ρX,Y=Cov(X,Y)σXσY\rho_{X,Y}=\dfrac{\mathrm{Cov}(X,Y)}{\sigma_X\sigma_Y}. (1)
  • If X,YX,Y independent then Cov=0ρ=0\mathrm{Cov}=0\Rightarrow\rho=0. (1)

Q8. (4 marks)

  • Let X1,,XnX_1,\dots,X_n i.i.d. with mean μ\mu, variance σ2<\sigma^2<\infty, Xˉn=1nXi\bar{X}_n=\tfrac1n\sum X_i. (1)
  • Then Xˉnμσ/ndN(0,1)\dfrac{\bar{X}_n-\mu}{\sigma/\sqrt{n}}\xrightarrow{d} N(0,1) as nn\to\infty. (2)
  • Equivalently n(Xˉnμ)dN(0,σ2)\sqrt{n}(\bar{X}_n-\mu)\xrightarrow{d}N(0,\sigma^2). (1)

Q9. (4 marks)

  • CI: xˉ±z0.025σn\bar{x}\pm z_{0.025}\dfrac{\sigma}{\sqrt{n}}. (1)
  • Margin =1.9610100=1.961=1.96=1.96\cdot\dfrac{10}{\sqrt{100}}=1.96\cdot1=1.96. (2)
  • Interval: (48.04,51.96)(48.04,\,51.96). (1)

Q10. (4 marks)

  • Type I error: rejecting H0H_0 when H0H_0 is true (false positive). (1.5)
  • Type II error: failing to reject H0H_0 when H0H_0 is false (false negative). (1.5)
  • α\alpha (significance level) controls the Type I error probability. (1)
[
  {"claim":"Q2: P(A∪B)=2/3","code":"PA=Rational(1,2); PB=Rational(1,2); PAB=Rational(1,3); result = (PA+PB-PAB == Rational(2,3))"},
  {"claim":"Q3: c=1/10 and E[X]=3","code":"c=Rational(1,10); E=sum(x*c*x for x in [1,2,3,4]); result = (10*c==1 and E==3)"},
  {"claim":"Q4: P(X=2) ≈ 0.2335","code":"from sympy import binomial, Rational; p=binomial(10,2)*Rational(3,10)**2*Rational(7,10)**8; result = (abs(float(p)-0.2335)<0.001)"},
  {"claim":"Q9: 95% CI is (48.04,51.96)","code":"m=1.96*10/ (100**0.5); result = (abs((50-m)-48.04)<1e-9 and abs((50+m)-51.96)<1e-9)"}
]