Salta al contenuto
Note per Studenti Probability Theory - Mock Exam 1 Report

Probability Theory - Mock Exam 1

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 7

Mock exam built on the model of the written exams of the equivalent Italian-language course (Calcolo delle Probabilità, Information Engineering, UniPD; model paper: the exam of 24 June 2026). The real papers have six exercises, each split into two or three questions, for 32 points in total; here the points are 5, 4, 7, 6, 6 and 4, as in that paper. The sheets of the real exams do not state the duration, so we propose 2 hours, without notes and without a calculator. The values of Φ\Phi needed are given in the text (leave the answers also in closed form whenever possible).

Each exercise has three layers: first only the text, then the final results, then the full solution with links to the theory.

Exercise 1 (points 5)

A factory has three production lines L1,L2,L3L_1,L_2,L_3. A battery taken at random from the total production comes from L1L_1 with probability 25\frac25, from L2L_2 with probability 12\frac12 and from L3L_3 with probability 110\frac1{10}. Let FF be the event "the battery fails during the warranty period". The probabilities of failure conditioned on the line are P(F∣L1)=110,P(F∣L2)=120,P(F∣L3)=15.P(F\mid L_1)=\frac1{10},\qquad P(F\mid L_2)=\frac1{20},\qquad P(F\mid L_3)=\frac15 .

(a) (2 points) Compute the probability that a battery taken at random fails during the warranty.

(b) (3 points) A battery is found to have failed during the warranty. Compute, for each line, the probability that the battery comes from that line, and say which line is the most likely origin.

Show the result

(a) P(F)=17200=0.085P(F)=\dfrac{17}{200}=0.085.

(b) P(L1∣F)=817P(L_1\mid F)=\dfrac8{17}, P(L2∣F)=517P(L_2\mid F)=\dfrac5{17}, P(L3∣F)=417P(L_3\mid F)=\dfrac4{17}. The most likely origin is L1L_1.

Show the full solution

(a) The events L1,L2,L3L_1,L_2,L_3 form a partition of the sample space: every battery comes from exactly one line, and 25+12+110=4+5+110=1\frac25+\frac12+\frac1{10}=\frac{4+5+1}{10}=1. The law of total probabilityThe law of total probability computes P(E) by averaging conditional probabilities over a partition, and Bayes' rule inverts the conditioning to obtain posterior probabilities, as in the interpretation of diagnostic tests.Law of Total Probability and Bayes' Rule → gives P(F)=∑i=13P(F∣Li)P(Li)=110⋅25+120⋅12+15⋅110=125+140+150.P(F)=\sum_{i=1}^3P(F\mid L_i)P(L_i)=\frac1{10}\cdot\frac25+\frac1{20}\cdot\frac12+\frac15\cdot\frac1{10}=\frac1{25}+\frac1{40}+\frac1{50}. With common denominator 200200: P(F)=8200+5200+4200=17200.P(F)=\frac{8}{200}+\frac{5}{200}+\frac{4}{200}=\frac{17}{200}. Note that the three terms 8200,5200,4200\frac8{200},\frac5{200},\frac4{200} are the probabilities P(F∩Li)=P(F∣Li)P(Li)P(F\cap L_i)=P(F\mid L_i)P(L_i): they are useful again in (b).

(b) The definition of Conditional ProbabilityThe conditional probability P(E|F) = P(E and F)/P(F) updates the probability of E after learning that F occurred; it is itself a probability measure and yields the multiplication formula for intersections.Conditional Probability → and the multiplication rule give Bayes' rule: P(Li∣F)=P(F∩Li)P(F)=P(F∣Li)P(Li)P(F).P(L_i\mid F)=\frac{P(F\cap L_i)}{P(F)}=\frac{P(F\mid L_i)P(L_i)}{P(F)}. Using the three numerators found in (a): P(L1∣F)=8/20017/200=817,P(L2∣F)=517,P(L3∣F)=417.P(L_1\mid F)=\frac{8/200}{17/200}=\frac8{17},\qquad P(L_2\mid F)=\frac5{17},\qquad P(L_3\mid F)=\frac4{17}. Check: 8+5+417=1\frac{8+5+4}{17}=1, as it must be, because after the conditioning the lines are still a partition.

The most likely line is L1L_1 (817≈0.47\frac8{17}\approx 0.47), although L3L_3 is the least reliable (P(F∣L3)=15P(F\mid L_3)=\frac15 is the largest failure rate): L3L_3 produces few batteries, so few failures come from it. This is the difference between P(F∣Li)P(F\mid L_i) (reliability of the line) and P(Li∣F)P(L_i\mid F) (origin of a failure).

Typical mistakes. Answering (b) with the largest of the P(F∣Li)P(F\mid L_i) (it would give L3L_3), confusing P(F∣Li)P(F\mid L_i) with P(Li∣F)P(L_i\mid F); forgetting the denominator P(F)P(F) of Bayes' rule; posterior probabilities that do not sum to 11.

Exercise 2 (points 4)

A shelf holds in a row 77 distinct books: 44 of mathematics and 33 of physics. The books are arranged in a row in a random order, all the 7!7! orders being equally likely.

(a) (2 points) In how many orders are the three physics books next to each other (all three consecutive)?

(b) (2 points) Compute the probability that no two physics books are next to each other.

Show the result

(a) 5!⋅3!=7205!\cdot 3!=720 orders.

(b) 4!(53)3!7!=14405040=27\dfrac{4!\binom53 3!}{7!}=\dfrac{1440}{5040}=\dfrac27.

Show the full solution

The sample space is the set of the 7!=50407!=5040 orders of the books (permutations), with the equiprobable measureProbability theory does not say how to choose P; two common choices are the empirical measure built from repeated trials and, on a finite sample space, the equiprobable measure P(E) = favourable cases over all cases.Empirical and Equiprobable Measures →: the probability of an event is the number of favourable orders divided by 50405040. See Counting PrinciplesCounting finite sets rests on the addition principle for disjoint sets and the multiplication principle for staged procedures, which requires a constant number of outcomes at each stage and distinct composite outcomes.Counting Principles → and Sampling and Allocation ProblemsCounting problems are modelled either as drawing balls from an urn (sampling) or as placing tokens into cells (allocation), leading to dispositions with and without repetition, permutations and combinations without repetition.Sampling and Allocation Problems →.

(a) Glue the three physics books into one block. Then we arrange 4+1=54+1=5 objects (the four mathematics books and the block): 5!=1205!=120 ways. Inside the block the three physics books can be ordered in 3!=63!=6 ways. By the multiplication principle the favourable orders are 5!⋅3!=120⋅6=720.5!\cdot3!=120\cdot6=720 . Every order with the three physics books consecutive is counted exactly once, because the position of the block and the internal order determine the arrangement uniquely.

(b) Count the favourable orders in two steps.

  1. Arrange the four mathematics books in a row: 4!=244!=24 ways. They create 55 "gaps" (before the first, between consecutive ones, after the last).
  2. Put each physics book in a different gap, so that two of them are never adjacent: choose the 33 gaps among the 55 in (53)=10\binom53=10 ways (Binomial CoefficientsBinomial coefficients count the k-element subsets of an n-element set, satisfy the symmetry and Pascal recursion, and combined with equiprobable measures they give probabilities such as team selection, train boarding and urn draws.Binomial Coefficients →) and assign the three distinct physics books to them in 3!=63!=6 ways.

Favourable orders: 24⋅10⋅6=144024\cdot10\cdot6=1440, so P=14405040=27.P=\frac{1440}{5040}=\frac27 . Two different gaps are separated by at least one mathematics book: this is the reason why the condition "no two adjacent" is equivalent to "different gaps".

Typical mistakes. In (a) forgetting the 3!3! internal orders (getting 120120); in (b) choosing the places of the physics books among the 77 positions with (73)\binom73 without imposing the non-adjacency, or forgetting to multiply by 3!3! and 4!4! (the books are distinct); confusing the event of (a) with that of (b): "all together" is not the opposite of "no two adjacent".

Exercise 3 (points 7)

Let XX be a random variable with density fX(x)={c x0≤x≤1,c1<x≤2,0otherwise,f_X(x)=\begin{cases} c\,x & 0\le x\le 1,\\ c & 1<x\le 2,\\ 0 & \text{otherwise,}\end{cases} where cc is a constant.

(a) (2 points) Determine cc and the distribution function FXF_X.

(b) (2 points) Compute the expected value and the variance of XX.

(c) (3 points) Let Y=X2Y=X^2. Determine the density of YY and compute P(Y≤14)P\left(Y\le \frac14\right) and E(Y)E(Y).

Show the result

(a) c=23c=\dfrac23, and FX(x)={0x<0,x230≤x≤1,2x−131<x≤2,1x>2.F_X(x)=\begin{cases}0 & x<0,\\ \dfrac{x^2}{3} & 0\le x\le1,\\ \dfrac{2x-1}{3} & 1< x\le 2,\\ 1 & x>2.\end{cases}

(b) E(X)=119E(X)=\dfrac{11}9, var⁡(X)=37162\operatorname{var}(X)=\dfrac{37}{162}.

(c) fY(y)=13f_Y(y)=\dfrac13 for 0<y≤10<y\le1, fY(y)=13yf_Y(y)=\dfrac1{3\sqrt y} for 1<y≤41<y\le4, and 00 otherwise; P(Y≤14)=112P\left(Y\le\frac14\right)=\dfrac1{12}; E(Y)=3118E(Y)=\dfrac{31}{18}.

Show the full solution

(a) For a density, ∫−∞+∞fX=1\int_{-\infty}^{+\infty}f_X=1 (see Distribution FunctionThe distribution function F_X(x) = P(X <= x) is an alternative to the discrete density; for a discrete random variable it is a right-continuous non-decreasing step function whose jumps are the values of the density.Distribution Function →): 1=∫01c x dx+∫12c dx=c2+c=3c2⟹c=23.1=\int_0^1 c\,x\,dx+\int_1^2c\,dx=\frac c2+c=\frac{3c}2\quad\Longrightarrow\quad c=\frac23 . The distribution function is FX(x)=∫−∞xfX(t) dtF_X(x)=\int_{-\infty}^xf_X(t)\,dt; compute it on each piece.

  • x<0x<0: FX(x)=0F_X(x)=0.
  • 0≤x≤10\le x\le1: FX(x)=∫0x23t dt=x23F_X(x)=\int_0^x\frac23t\,dt=\frac{x^2}3. At x=1x=1 it gives 13\frac13.
  • 1<x≤21<x\le2: FX(x)=13+∫1x23 dt=13+2(x−1)3=2x−13F_X(x)=\frac13+\int_1^x\frac23\,dt=\frac13+\frac{2(x-1)}3=\frac{2x-1}3. At x=2x=2 it gives 11.
  • x>2x>2: FX(x)=1F_X(x)=1.

FXF_X is continuous and non-decreasing, and the two pieces agree at x=1x=1 (value 13\frac13): this is a quick check on the computation.

(b) By the definition of expected valueThe expected value E(X) is the sum of the values of a discrete random variable weighted by their probabilities; it is linear, lies between the smallest and the largest value, and equals the barycenter of the density.Expected Value →, E(X)=∫0123x2 dx+∫1223x dx=23⋅13+23⋅4−12=29+1=119.E(X)=\int_0^1\frac23x^2\,dx+\int_1^2\frac23x\,dx=\frac23\cdot\frac13+\frac23\cdot\frac{4-1}{2}=\frac29+1=\frac{11}9 . For the varianceThe variance is the expected squared deviation from the expected value and measures how spread out a random variable is; it is non-negative, zero only for constants, scales with the square of a multiplier, ignores shifts, and equals E(X^2) minus the square of E(X).Variance → use var⁡(X)=E(X2)−E(X)2\operatorname{var}(X)=E(X^2)-E(X)^2 with E(X2)=∫0123x3 dx+∫1223x2 dx=23⋅14+23⋅8−13=16+149=3+2818=3118.E(X^2)=\int_0^1\frac23x^3\,dx+\int_1^2\frac23x^2\,dx=\frac23\cdot\frac14+\frac23\cdot\frac{8-1}{3}=\frac16+\frac{14}9=\frac{3+28}{18}=\frac{31}{18}. Hence var⁡(X)=3118−(119)2=3118−12181=279−242162=37162.\operatorname{var}(X)=\frac{31}{18}-\left(\frac{11}9\right)^2=\frac{31}{18}-\frac{121}{81}=\frac{279-242}{162}=\frac{37}{162}.

(c) We follow the method of Functions of a Random VariableTo find the distribution of Y = g(X) one computes the distribution function of Y first (always works, also for mixed results) or, for piecewise invertible g and absolutely continuous X, uses the density formula with the sum of f_X(a) divided by the absolute value of g'(a) over the preimages.Functions of a Random Variable →: start from the distribution function. Since XX takes values in [0,2][0,2] with probability 11, Y=X2Y=X^2 takes values in [0,4][0,4]. For 0≤y≤40\le y\le4, since x↦x2x\mapsto x^2 is increasing for x≥0x\ge0, FY(y)=P(X2≤y)=P(X≤y)=FX(y).F_Y(y)=P(X^2\le y)=P(X\le\sqrt y)=F_X(\sqrt y). The point y=1\sqrt y=1 corresponds to y=1y=1, so there are two cases:

  • 0≤y≤10\le y\le1: y∈[0,1]\sqrt y\in[0,1] and FY(y)=(y)23=y3F_Y(y)=\frac{(\sqrt y)^2}{3}=\frac y3;
  • 1<y≤41<y\le4: y∈(1,2]\sqrt y\in(1,2] and FY(y)=2y−13F_Y(y)=\frac{2\sqrt y-1}3.

Differentiating, fY(y)={130<y≤1,13y1<y≤4,0otherwise.f_Y(y)=\begin{cases}\dfrac13 & 0<y\le1,\\[2mm] \dfrac1{3\sqrt y} & 1<y\le4,\\[2mm] 0&\text{otherwise.}\end{cases} Check on the normalization: ∫0113 dy+∫1413y dy=13+23(2−1)=1\int_0^1\frac13\,dy+\int_1^4\frac1{3\sqrt y}\,dy=\frac13+\frac23(2-1)=1. The same result follows from fY(y)=fX(y)2yf_Y(y)=\frac{f_X(\sqrt y)}{2\sqrt y}: for 0<y≤10<y\le1, 23y2y=13\frac{\frac23\sqrt y}{2\sqrt y}=\frac13; for 1<y≤41<y\le4, 2/32y=13y\frac{2/3}{2\sqrt y}=\frac1{3\sqrt y}.

The probability: P(Y≤14)=FY(14)=112P\left(Y\le\frac14\right)=F_Y\left(\frac14\right)=\frac1{12} (equivalently P(X≤12)=(1/2)23=112P\left(X\le\frac12\right)=\frac{(1/2)^2}3=\frac1{12}).

The expected value of YY is obtained without using fYf_Y, with the rule of LOTUSA function g(X) of a discrete random variable is again a discrete random variable whose density is obtained by summing p_X over the preimage, and the LOTUS computes E(g(X)) directly from p_X without finding the density of g(X).Functions of Random Variables and LOTUS →: E(Y)=E(X2)=3118E(Y)=E(X^2)=\frac{31}{18}, already computed in (b). Using fYf_Y gives the same: ∫01y3 dy+∫14y3 dy=16+29⋅7=16+149=3118\int_0^1\frac y3\,dy+\int_1^4\frac{\sqrt y}{3}\,dy=\frac16+\frac29\cdot 7=\frac16+\frac{14}9=\frac{31}{18}.

Typical mistakes. Forgetting that the density has two pieces and integrating a single formula on [0,2][0,2]; leaving FXF_X without the constant 13\frac13 in the second piece; in (c) writing fY(y)=fX(y)f_Y(y)=f_X(\sqrt y) without the factor 12y\frac1{2\sqrt y} (the Jacobian), or ignoring that the two pieces of fXf_X become two pieces of fYf_Y; computing E(X2)E(X^2) as E(X)2E(X)^2.

Exercise 4 (points 6)

Let (X,Y)(X,Y) be a discrete random vector with joint density given by the table, where XX takes values 0,1,20,1,2 and YY takes values 1,21,2:

P(X=x,Y=y)P(X=x,Y=y) y=1y=1 y=2y=2
x=0x=0 18\frac18 18\frac18
x=1x=1 14\frac14 18\frac18
x=2x=2 00 38\frac38

(a) (2 points) Determine the marginal densities of XX and of YY. Are XX and YY independent?

(b) (2 points) Compute cov⁡(X,Y)\operatorname{cov}(X,Y) and the correlation coefficient ρ(X,Y)\rho(X,Y).

(c) (2 points) Determine the conditional density of XX given Y=2Y=2 and compute E(X∣Y=2)E(X\mid Y=2). Compute also E(X∣Y=1)E(X\mid Y=1) and verify that E(E(X∣Y))=E(X)E\big(E(X\mid Y)\big)=E(X).

Show the result

(a) pX(0)=14p_X(0)=\frac14, pX(1)=38p_X(1)=\frac38, pX(2)=38p_X(2)=\frac38; pY(1)=38p_Y(1)=\frac38, pY(2)=58p_Y(2)=\frac58. Not independent.

(b) cov⁡(X,Y)=1164\operatorname{cov}(X,Y)=\dfrac{11}{64}; ρ(X,Y)=11585=1165195≈0.455\rho(X,Y)=\dfrac{11}{\sqrt{585}}=\dfrac{11\sqrt{65}}{195}\approx0.455.

(c) pX∣Y=2=(15,15,35)p_{X\mid Y=2}=\left(\frac15,\frac15,\frac35\right) on x=0,1,2x=0,1,2; E(X∣Y=2)=75E(X\mid Y=2)=\frac75; E(X∣Y=1)=23E(X\mid Y=1)=\frac23; E(E(X∣Y))=38⋅23+58⋅75=98=E(X)E(E(X\mid Y))=\frac38\cdot\frac23+\frac58\cdot\frac75=\frac98=E(X).

Show the full solution

(a) The marginals are obtained by summing the table over the other variable (Discrete Random VectorsA discrete random vector (X,Y) is described by its joint discrete density p_XY(x_i,y_j) = P(X = x_i, Y = y_j), whose marginals are obtained by summing over the other variable and which gives expectations of any function g(X,Y), including E(XY), covariance and the density of X + Y.Discrete Random Vectors →): row sums for XX, column sums for YY. pX(0)=18+18=14,pX(1)=14+18=38,pX(2)=0+38=38,p_X(0)=\tfrac18+\tfrac18=\tfrac14,\quad p_X(1)=\tfrac14+\tfrac18=\tfrac38,\quad p_X(2)=0+\tfrac38=\tfrac38, pY(1)=18+14+0=38,pY(2)=18+18+38=58.p_Y(1)=\tfrac18+\tfrac14+0=\tfrac38,\quad p_Y(2)=\tfrac18+\tfrac18+\tfrac38=\tfrac58 . Both sum to 11. IndependenceDiscrete random variables X and Y are independent when the joint density factorizes as p_XY = p_X p_Y for all pairs; independence is preserved by functions f(X), g(Y), implies E(XY) = E(X)E(Y) and var(X + Y) = var(X) + var(Y), but uncorrelated does not imply independent.Independent Random Variables → requires pX,Y(x,y)=pX(x)pY(y)p_{X,Y}(x,y)=p_X(x)p_Y(y) for all pairs. It fails already at (2,1)(2,1): pX,Y(2,1)=0p_{X,Y}(2,1)=0 while pX(2)pY(1)=38⋅38=964≠0p_X(2)p_Y(1)=\frac38\cdot\frac38=\frac9{64}\ne0. One pair is enough to conclude that XX and YY are not independent.

(b) Use cov⁡(X,Y)=E(XY)−E(X)E(Y)\operatorname{cov}(X,Y)=E(XY)-E(X)E(Y) (Covariance and CorrelationThe variance of a sum X + Y equals var(X) + var(Y) + 2 cov(X,Y), where the covariance E((X - E(X))(Y - E(Y))) cannot be computed from the two marginal laws alone, which motivates the study of random vectors and joint behaviour.Covariance and Correlation →). E(X)=0⋅14+1⋅38+2⋅38=98,E(Y)=1⋅38+2⋅58=138.E(X)=0\cdot\tfrac14+1\cdot\tfrac38+2\cdot\tfrac38=\tfrac98,\qquad E(Y)=1\cdot\tfrac38+2\cdot\tfrac58=\tfrac{13}8 . For E(XY)E(XY) add xy pX,Y(x,y)xy\,p_{X,Y}(x,y) over the cells with xy≠0xy\ne0: E(XY)=1⋅1⋅14+1⋅2⋅18+2⋅1⋅0+2⋅2⋅38=14+14+32=2.E(XY)=1\cdot1\cdot\tfrac14+1\cdot2\cdot\tfrac18+2\cdot1\cdot0+2\cdot2\cdot\tfrac38=\tfrac14+\tfrac14+\tfrac32=2 . Hence cov⁡(X,Y)=2−98⋅138=2−11764=1164.\operatorname{cov}(X,Y)=2-\frac98\cdot\frac{13}8=2-\frac{117}{64}=\frac{11}{64}. For ρ\rho we need the variances: E(X2)=38+4⋅38=158E(X^2)=\frac38+4\cdot\frac38=\frac{15}8, so var⁡(X)=158−8164=3964\operatorname{var}(X)=\frac{15}8-\frac{81}{64}=\frac{39}{64}; E(Y2)=38+4⋅58=238E(Y^2)=\frac38+4\cdot\frac58=\frac{23}8, so var⁡(Y)=238−16964=1564\operatorname{var}(Y)=\frac{23}8-\frac{169}{64}=\frac{15}{64}. Then ρ(X,Y)=11/643964⋅1564=11585=11365≈0.455.\rho(X,Y)=\frac{11/64}{\sqrt{\frac{39}{64}\cdot\frac{15}{64}}}=\frac{11}{\sqrt{585}}=\frac{11}{3\sqrt{65}}\approx0.455 . The covariance is positive, as expected from the table: the large values of XX go together with the large value Y=2Y=2. The correlation is between −1-1 and 11, as it must be.

(c) See Conditional Distributions of Random VariablesConditioning re-evaluates the distribution function or density of a random variable given an event E, which may be unrelated to X, defined through X itself, or defined through another random variable Y; for discrete vectors the conditional density is p_XY over p_Y, giving mixtures, the memoryless property of the geometric law and Bayes formula.Conditional Distributions of Random Variables →. For pY(2)=58>0p_Y(2)=\frac58>0, pX∣Y(x∣2)=pX,Y(x,2)pY(2):x=0: 1/85/8=15,x=1: 1/85/8=15,x=2: 3/85/8=35.p_{X\mid Y}(x\mid2)=\frac{p_{X,Y}(x,2)}{p_Y(2)}:\qquad x=0:\ \frac{1/8}{5/8}=\frac15,\quad x=1:\ \frac{1/8}{5/8}=\frac15,\quad x=2:\ \frac{3/8}{5/8}=\frac35 . The three values sum to 11. Then, by the definition of conditional expectationthe conditional expected value E(X given Y=y) is the mean of X under the conditional density, and the law of the iterated expectation E(g(X)) = E(E(g(X) given Y)) turns hard expectations into two easy steps, as in random sums.Conditional Expectation →, E(X∣Y=2)=0⋅15+1⋅15+2⋅35=75.E(X\mid Y=2)=0\cdot\tfrac15+1\cdot\tfrac15+2\cdot\tfrac35=\tfrac75 . Given Y=1Y=1, pX∣Y(x∣1)=pX,Y(x,1)3/8p_{X\mid Y}(x\mid1)=\frac{p_{X,Y}(x,1)}{3/8} gives (13,23,0)\left(\frac13,\frac23,0\right) and E(X∣Y=1)=23E(X\mid Y=1)=\frac23. The random variable E(X∣Y)E(X\mid Y) takes the value 23\frac23 with probability pY(1)=38p_Y(1)=\frac38 and 75\frac75 with probability pY(2)=58p_Y(2)=\frac58, so by the law of the iterated expectation E(E(X∣Y))=38⋅23+58⋅75=14+78=98=E(X),E\big(E(X\mid Y)\big)=\frac38\cdot\frac23+\frac58\cdot\frac75=\frac14+\frac78=\frac98=E(X), which agrees with the value found in (b).

Typical mistakes. Declaring independence after checking only some cells (or because the covariance is small); dividing by pXp_X instead of pYp_Y in the conditional density (X∣Y=2X\mid Y=2 requires pY(2)p_Y(2)); using the variance formula without subtracting the square of the mean; forgetting that the cell with probability 00 still counts in the independence test.

Exercise 5 (points 6)

A digital instrument rounds each of nn independent measurements to the nearest integer. The rounding errors E1,…,EnE_1,\dots,E_n are independent random variables, uniformly distributed on [−12,12]\left[-\frac12,\frac12\right]. Let Sn=E1+⋯+EnS_n=E_1+\dots+E_n be the total error. Use the values Φ(1.5)=0.9332\Phi(1.5)=0.9332, Φ(2)=0.9772\Phi(2)=0.9772, Φ(1.96)=0.975\Phi(1.96)=0.975.

(a) (2 points) Compute E(Sn)E(S_n) and var⁡(Sn)\operatorname{var}(S_n), and write them for n=108n=108.

(b) (2 points) For n=108n=108, using the central limit theorem, approximate P(S108>4.5)P(S_{108}>4.5) and P(∣S108∣≤6)P\left(|S_{108}|\le6\right).

(c) (2 points) Using the normal approximation, find the largest nn such that P(∣Sn∣≤6)≥0.95P\left(|S_n|\le 6\right)\ge0.95.

Show the result

(a) E(Sn)=0E(S_n)=0, var⁡(Sn)=n12\operatorname{var}(S_n)=\dfrac n{12}; for n=108n=108: 00 and 99.

(b) P(S108>4.5)≈1−Φ(1.5)≈0.0668P(S_{108}>4.5)\approx1-\Phi(1.5)\approx0.0668; P(∣S108∣≤6)≈2Φ(2)−1≈0.9544P(|S_{108}|\le6)\approx2\Phi(2)-1\approx0.9544.

(c) n=112n=112.

Show the full solution

(a) Each EiE_i is uniform on [−12,12]\left[-\frac12,\frac12\right]: E(Ei)=0E(E_i)=0 and var⁡(Ei)=(1/2−(−1/2))212=112\operatorname{var}(E_i)=\frac{(1/2-(-1/2))^2}{12}=\frac1{12} (or directly ∫−1/21/2t2 dt=112\int_{-1/2}^{1/2}t^2\,dt=\frac1{12}). By linearity of the expected value, E(Sn)=0E(S_n)=0. Since the EiE_i are independent, the variance of the sum is the sum of the variances (VarianceThe variance is the expected squared deviation from the expected value and measures how spread out a random variable is; it is non-negative, zero only for constants, scales with the square of a multiplier, ignores shifts, and equals E(X^2) minus the square of E(X).Variance →, Independent Random VariablesDiscrete random variables X and Y are independent when the joint density factorizes as p_XY = p_X p_Y for all pairs; independence is preserved by functions f(X), g(Y), implies E(XY) = E(X)E(Y) and var(X + Y) = var(X) + var(Y), but uncorrelated does not imply independent.Independent Random Variables →): var⁡(Sn)=n12.\operatorname{var}(S_n)=\frac n{12}. For n=108n=108: var⁡(S108)=9\operatorname{var}(S_{108})=9, standard deviation 33.

(b) The EiE_i are iid with finite variance, so the Central Limit Theoremthe standardized arithmetic mean of iid random variables with finite variance converges in distribution to N(0,1), whatever the distribution of the variables, which justifies the Gaussian approximation of sums.Central Limit Theorem → says that Sn−nμσn=Snn/12\dfrac{S_n-n\mu}{\sigma\sqrt n}=\dfrac{S_n}{\sqrt{n/12}} is approximately N(0,1)N(0,1). For n=108n=108 the standardized variable is S108/3≈Z∼N(0,1)S_{108}/3\approx Z\sim N(0,1), so P(S108>4.5)=P(S1083>1.5)≈1−Φ(1.5)=1−0.9332=0.0668,P(S_{108}>4.5)=P\left(\frac{S_{108}}3>1.5\right)\approx1-\Phi(1.5)=1-0.9332=0.0668, P(∣S108∣≤6)=P(∣S1083∣≤2)≈Φ(2)−Φ(−2)=2Φ(2)−1=0.9544.P\left(|S_{108}|\le6\right)=P\left(\left|\frac{S_{108}}3\right|\le2\right)\approx\Phi(2)-\Phi(-2)=2\Phi(2)-1=0.9544 . The variables are continuous, so no continuity correction is needed (it is used only for sums of integer-valued variables).

(c) For general nn, with σn=n/12\sigma_n=\sqrt{n/12}: P(∣Sn∣≤6)≈2Φ(6σn)−1≥0.95  ⟺  Φ(6σn)≥0.975  ⟺  6σn≥1.96,P\left(|S_n|\le6\right)\approx2\Phi\left(\frac6{\sigma_n}\right)-1\ge0.95\iff\Phi\left(\frac6{\sigma_n}\right)\ge0.975\iff\frac6{\sigma_n}\ge1.96 , since Φ\Phi is increasing and Φ(1.96)=0.975\Phi(1.96)=0.975. Solving, σn≤61.96\sigma_n\le\frac6{1.96}, i.e. n12≤361.962  ⟺  n≤4323.8416≈112.45.\frac n{12}\le\frac{36}{1.96^2}\iff n\le\frac{432}{3.8416}\approx112.45 . The largest integer is n=112n=112. (Check with the approximation: for n=112n=112 the probability is about 0.9505≥0.950.9505\ge0.95, for n=113n=113 about 0.9494<0.950.9494<0.95.)

Typical mistakes. Standardizing with var⁡(Ei)=112\operatorname{var}(E_i)=\frac1{12} instead of n/12\sqrt{n/12} (using the variance of a single term); using Φ(2)\Phi(2) in place of 2Φ(2)−12\Phi(2)-1 for a two-sided event; inverting the inequality in (c) and answering n≥112n\ge112; applying a continuity correction to continuous variables.

Exercise 6 (points 4)

Let (Ω,F,P)(\Omega,\mathcal F,P) be a probability space.

(a) (2 points) Three events A,B,CA,B,C are said to be independent if they are pairwise independent and P(A∩B∩C)=P(A)P(B)P(C)P(A\cap B\cap C)=P(A)P(B)P(C). Show with a counterexample that three events that are pairwise independent need not be independent. (b) (2 points) Prove that if P(A)=0P(A)=0 or P(A)=1P(A)=1, then AA is independent of every event BB.

Show the result

(a) Two fair tosses; A={first toss is head}A=\{\text{first toss is head}\}, B={second toss is head}B=\{\text{second toss is head}\}, C={the two tosses give the same face}C=\{\text{the two tosses give the same face}\}: pairwise independent (P=14P=\frac14 for each pair) but P(A∩B∩C)=14≠18=P(A)P(B)P(C)P(A\cap B\cap C)=\frac14\ne\frac18=P(A)P(B)P(C).

(b) If P(A)=0P(A)=0: P(A∩B)=0=P(A)P(B)P(A\cap B)=0=P(A)P(B). If P(A)=1P(A)=1: P(A∩B)=P(B)=P(A)P(B)P(A\cap B)=P(B)=P(A)P(B).

Show the full solution

The tools are the axioms and the elementary properties of PP (Probability Measures and AxiomsA probability measure is a non-negative, normalised, sigma-additive map on the sigma-algebra of events; from the three axioms follow the complement rule, monotonicity, subadditivity and inclusion-exclusion, while the axioms do not determine P uniquely.Probability Measures and Axioms →) and the definition of independenceTwo events are independent when P(E and F) = P(E)P(F), equivalently when conditioning on one does not change the probability of the other; independence of three events requires both the pairwise and the triple product conditions.Independence of Events →: A⊥ ⁣ ⁣ ⁣⊥BA\perp\!\!\!\perp B if P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B).

(a) It is enough to exhibit one example (see "Independent families of events" in Independence of EventsTwo events are independent when P(E and F) = P(E)P(F), equivalently when conditioning on one does not change the probability of the other; independence of three events requires both the pairwise and the triple product conditions.Independence of Events →: the pairwise and the triple conditions are unrelated). Toss a fair coin twice: Ω={HH,HT,TH,TT}\Omega=\{HH,HT,TH,TT\} with the equiprobable measure, each outcome with probability 14\frac14. Let A={HH,HT} (first toss is head),B={HH,TH} (second toss is head),C={HH,TT} (same face).A=\{HH,HT\}\ (\text{first toss is head}),\quad B=\{HH,TH\}\ (\text{second toss is head}),\quad C=\{HH,TT\}\ (\text{same face}). Each event has probability 12\frac12. The pairwise intersections are A∩B=A∩C=B∩C={HH},P({HH})=14=12⋅12,A\cap B=A\cap C=B\cap C=\{HH\},\qquad P(\{HH\})=\frac14=\frac12\cdot\frac12, so the three pairs are independent. But P(A∩B∩C)=P({HH})=14≠18=P(A)P(B)P(C),P(A\cap B\cap C)=P(\{HH\})=\frac14\ne\frac18=P(A)P(B)P(C), so A,B,CA,B,C are not independent.

(b) Case P(A)=0P(A)=0. Since A∩B⊂AA\cap B\subset A, monotonicity gives 0≤P(A∩B)≤P(A)=00\le P(A\cap B)\le P(A)=0. Hence P(A∩B)=0=0⋅P(B)=P(A)P(B)P(A\cap B)=0=0\cdot P(B)=P(A)P(B).

Case P(A)=1P(A)=1. Then P(Ac)=1−P(A)=0P(A^c)=1-P(A)=0, and as above P(Ac∩B)=0P(A^c\cap B)=0. Decompose B=(A∩B)∪(Ac∩B)B=(A\cap B)\cup(A^c\cap B) (disjoint): P(B)=P(A∩B)+P(Ac∩B)=P(A∩B)P(B)=P(A\cap B)+P(A^c\cap B)=P(A\cap B). Hence P(A∩B)=P(B)=1⋅P(B)=P(A)P(B)P(A\cap B)=P(B)=1\cdot P(B)=P(A)P(B).

In both cases AA and BB are independent, for every B∈FB\in\mathcal F. Note that AA does not need to be empty or equal to Ω\Omega: only its probability matters.

Typical mistakes. In (a) checking only the triple product (or only one pair), or choosing events for which the pairwise independence fails; in (b) deducing A=∅A=\varnothing from P(A)=0P(A)=0, or forgetting the second case.

Self-assessment grid
Exercise Points What you must show for full marks Typical mistakes
1 5 Partition L1,L2,L3L_1,L_2,L_3 stated; total probability 17200\frac{17}{200}; Bayes' rule with the three posteriors 817,517,417\frac8{17},\frac5{17},\frac4{17} summing to 11; most likely line Confusing P(F∣Li)P(F\mid L_i) with P(Li∣F)P(L_i\mid F); missing denominator
2 4 (a) block of physics books: 5! 3!=7205!\,3!=720; (b) gaps method 4!(53)3!=14404!\binom53 3!=1440, probability 27\frac27 Forgetting internal orders; counting without the non-adjacency constraint
3 7 c=23c=\frac23 and FXF_X with two pieces; E(X)=119E(X)=\frac{11}9, var⁡(X)=37162\operatorname{var}(X)=\frac{37}{162}; FY(y)=FX(y)F_Y(y)=F_X(\sqrt y), two-piece density of YY, P=112P=\frac1{12}, E(Y)=3118E(Y)=\frac{31}{18} Missing the constant in the second piece of FXF_X; missing the factor 12y\frac1{2\sqrt y}; E(X2)=E(X)2E(X^2)=E(X)^2
4 6 Marginals; independence refuted with one cell; cov⁡=1164\operatorname{cov}=\frac{11}{64} and ρ\rho; conditional density, E(X∣Y=2)=75E(X\mid Y=2)=\frac75, tower property verified Checking independence on some cells only; wrong denominator in the conditional density
5 6 E=0E=0, var⁡=n12\operatorname{var}=\frac n{12}; standardization with n/12\sqrt{n/12}; 1−Φ(1.5)1-\Phi(1.5) and 2Φ(2)−12\Phi(2)-1; n≤112.45n\le112.45 so n=112n=112 Wrong standard deviation; Φ\Phi instead of 2Φ−12\Phi-1; direction of the inequality in (c)
6 4 (a) explicit counterexample (two coin tosses) with the three pairwise products and the failed triple product; (b) monotonicity for P(A)=0P(A)=0, decomposition of BB for P(A)=1P(A)=1 Verifying only some pairs; deducing A=∅A=\varnothing from P(A)=0P(A)=0