Salta al contenuto
Note per Studenti Probability Theory - Exam of 24 June 2026 Report

Probability Theory - Exam of 24 June 2026

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

In questa pagina 7

Exam of Probability Theory, third session of 24 June 2026 (Version A, Bachelor's degrees in Telecommunications Engineering and in Automation Engineering, UniPD). This is the paper of the equivalent course taught in Italian (Calcolo delle Probabilità), translated into English, because the English-language course does not publish its own exams. Six exercises, 32 points in total: 5 + 4 + 7 + 6 + 6 + 4. The sheet does not state the duration or the allowed material, so these are not declared here. Exercise 1 asks to leave the fractions indicated without carrying out the final numerical computation.

Exercise 1 (points 5)

A laboratory receives electronic components from three suppliers, denoted A,B,CA, B, C. The probability that a component comes from AA is 12\frac12, from BB is 13\frac13 and from CC is 16\frac16. The probabilities that a component is defective, conditional on the supplier, are respectively P(D∣A)=120,P(D∣B)=110,P(D∣C)=15.P(D\mid A)=\frac1{20},\qquad P(D\mid B)=\frac1{10},\qquad P(D\mid C)=\frac15 . Two components produced by the same supplier are chosen, the supplier being picked at random according to the probabilities above.

(a) (2 points) Compute the probability that exactly one of the two components is defective.

(b) (3 points) Decide whether the events D1=D_1= "the first component is defective" and D2=D_2= "the second component is defective" are independent.

Leave the fractions indicated without carrying out the calculations.

Show the result

(a) P(exactly one defective)=1931200P(\text{exactly one defective})=\dfrac{193}{1200}.

(b) P(D1)=11120P(D_1)=\dfrac{11}{120}, P(D1∩D2)=9800P(D_1\cap D_2)=\dfrac{9}{800}, and P(D1)P(D2)=12114400≠9800P(D_1)P(D_2)=\dfrac{121}{14400}\neq\dfrac9{800}: the events are not independent.

Show the full solution

Set-up. The supplier is chosen first (probabilities 12,13,16\frac12,\frac13,\frac16), then the two components come from that same supplier. Write pA=120p_A=\frac1{20}, pB=110p_B=\frac1{10}, pC=15p_C=\frac15 for the defect probabilities. The key modelling point: given the supplier, the two components are defective independently, each with the probability of that supplier (this is how the problem is meant: components "produced by the same supplier"). The two events are not independent unconditionally, because both depend on the supplier, which is random.

(a) The events {A},{B},{C}\{A\},\{B\},\{C\} form a partition of the sample space, so we use the Law of Total Probability and Bayes' RuleThe 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 →: P(E)=P(E∣A)P(A)+P(E∣B)P(B)+P(E∣C)P(C),P(E)=P(E\mid A)P(A)+P(E\mid B)P(B)+P(E\mid C)P(C), where E=E= "exactly one of the two is defective". Given supplier AA, the number of defective components is binomial (see Bernoulli, Uniform and Binomial Random VariablesBernoulli, discrete uniform and binomial random variables are the basic families with finite alphabet; the binomial counts successes in n independent identical trials, and when independence or constant probability fails (urns without replacement) the hypergeometric density appears instead.Bernoulli, Uniform and Binomial Random Variables →) with n=2n=2, success probability pAp_A, so exactly one defective has probability 2pA(1−pA)2p_A(1-p_A) (two positions for the defective one: the factor 2 is the classic thing to forget). Hence P(E)=12⋅2⋅120⋅1920+13⋅2⋅110⋅910+16⋅2⋅15⋅45.P(E)=\frac12\cdot2\cdot\frac1{20}\cdot\frac{19}{20}+\frac13\cdot2\cdot\frac1{10}\cdot\frac9{10}+\frac16\cdot2\cdot\frac15\cdot\frac45 . Simplify each term: 12⋅19200=19400,13⋅950=350,16⋅825=475.\frac12\cdot\frac{19}{200}=\frac{19}{400},\qquad \frac13\cdot\frac{9}{50}=\frac{3}{50},\qquad \frac16\cdot\frac{8}{25}=\frac{4}{75}. The common denominator is 12001200: 19400=571200\frac{19}{400}=\frac{57}{1200}, 350=721200\frac3{50}=\frac{72}{1200}, 475=641200\frac4{75}=\frac{64}{1200}, and P(E)=57+72+641200=1931200≈0.1608.P(E)=\frac{57+72+64}{1200}=\frac{193}{1200}\approx0.1608 .

(b) Independence of D1,D2D_1,D_2 means P(D1∩D2)=P(D1)P(D2)P(D_1\cap D_2)=P(D_1)P(D_2) (see 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 →). Compute the three probabilities by total probability.

Marginal: P(D1)=12⋅120+13⋅110+16⋅15=140+130+130=3+4+4120=11120P(D_1)=\frac12\cdot\frac1{20}+\frac13\cdot\frac1{10}+\frac16\cdot\frac15=\frac1{40}+\frac1{30}+\frac1{30}=\frac{3+4+4}{120}=\frac{11}{120}. By symmetry P(D2)=11120P(D_2)=\frac{11}{120} as well (the second component has the same law as the first).

Joint: given the supplier, the two defects are independent, so P(D1∩D2∣A)=pA2P(D_1\cap D_2\mid A)=p_A^2, and so on: P(D1∩D2)=12(120)2+13(110)2+16(15)2=1800+1300+1150=3+8+162400=272400=9800.P(D_1\cap D_2)=\frac12\Big(\frac1{20}\Big)^2+\frac13\Big(\frac1{10}\Big)^2+\frac16\Big(\frac15\Big)^2=\frac1{800}+\frac1{300}+\frac1{150}=\frac{3+8+16}{2400}=\frac{27}{2400}=\frac9{800}.

Comparison: P(D1)P(D2)=(11120)2=12114400P(D_1)P(D_2)=\big(\frac{11}{120}\big)^2=\frac{121}{14400}, while 9800=16214400\frac9{800}=\frac{162}{14400}. They differ, so D1,D2D_1,D_2 are not independent; in fact P(D2∣D1)=9/80011/120=27220≈0.123>P(D2)≈0.092P(D_2\mid D_1)=\frac{9/800}{11/120}=\frac{27}{220}\approx0.123>P(D_2)\approx0.092. Intuition: finding a defective component makes it more likely that the supplier is a bad one (CC, say), which raises the chance that the second component is defective too.

Typical mistakes. Writing P(D1∩D2)=P(D1)2P(D_1\cap D_2)=P(D_1)^2 "because the components are independent" (they are independent only conditionally on the supplier); forgetting the factor 2 in (a); computing P(D1)P(D_1) as a plain average of the three probabilities instead of weighting with 12,13,16\frac12,\frac13,\frac16.

Exercise 2 (points 4)

From an urn containing 8 black balls and 6 white balls, 2 draws are made with replacement. At each draw one wins 2 euros if a black ball is drawn, while one loses 1 euro if a white ball is drawn. Let XX be the random variable describing the winnings (or loss).

(a) (2 points) Determine the discrete density of XX.

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

Show the result

(a) Alphabet {−2,1,4}\{-2,1,4\} with pX(−2)=949p_X(-2)=\frac9{49}, pX(1)=2449p_X(1)=\frac{24}{49}, pX(4)=1649p_X(4)=\frac{16}{49}.

(b) E(X)=107E(X)=\dfrac{10}{7}, var(X)=21649\mathrm{var}(X)=\dfrac{216}{49}.

Show the full solution

(a) Let YY be the number of black balls in the 2 draws. The draws are with replacement, hence independent, and each draw is black with probability 814=47\frac8{14}=\frac47. So Y∼Bin(2,47)Y\sim\mathrm{Bin}(2,\frac47) (see Bernoulli, Uniform and Binomial Random VariablesBernoulli, discrete uniform and binomial random variables are the basic families with finite alphabet; the binomial counts successes in n independent identical trials, and when independence or constant probability fails (urns without replacement) the hypergeometric density appears instead.Bernoulli, Uniform and Binomial Random Variables →). With YY blacks there are 2−Y2-Y whites, so the winnings are X=2Y−(2−Y)=3Y−2.X=2Y-(2-Y)=3Y-2 . Y∈{0,1,2}Y\in\{0,1,2\} gives X∈{−2,1,4}X\in\{-2,1,4\} (a one-to-one correspondence, so the densities coincide, see 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 →): pX(−2)=pY(0)=(37)2=949,pX(1)=pY(1)=2⋅47⋅37=2449,pX(4)=pY(2)=(47)2=1649.p_X(-2)=p_Y(0)=\Big(\frac37\Big)^2=\frac9{49},\qquad p_X(1)=p_Y(1)=2\cdot\frac47\cdot\frac37=\frac{24}{49},\qquad p_X(4)=p_Y(2)=\Big(\frac47\Big)^2=\frac{16}{49}. Check: 9+24+16=499+24+16=49.

(b) For the binomial, E(Y)=np=2⋅47=87E(Y)=np=2\cdot\frac47=\frac87 and var(Y)=np(1−p)=2⋅47⋅37=2449\mathrm{var}(Y)=np(1-p)=2\cdot\frac47\cdot\frac37=\frac{24}{49}. Now use the effect of an affine map (see 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 → and 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 →): E(aY+b)=aE(Y)+bE(aY+b)=aE(Y)+b and var(aY+b)=a2var(Y)\mathrm{var}(aY+b)=a^2\mathrm{var}(Y) (the constant bb does not change the spread, and aa enters squared): E(X)=3⋅87−2=24−147=107,var(X)=9⋅2449=21649.E(X)=3\cdot\frac87-2=\frac{24-14}{7}=\frac{10}{7},\qquad \mathrm{var}(X)=9\cdot\frac{24}{49}=\frac{216}{49}. Direct check with the density: E(X)=−2⋅9+1⋅24+4⋅1649=7049=107E(X)=\frac{-2\cdot9+1\cdot24+4\cdot16}{49}=\frac{70}{49}=\frac{10}7 and E(X2)=4⋅9+24+16⋅1649=31649E(X^2)=\frac{4\cdot9+24+16\cdot16}{49}=\frac{316}{49}, so var(X)=31649−10049=21649\mathrm{var}(X)=\frac{316}{49}-\frac{100}{49}=\frac{216}{49}.

Typical mistakes. Treating the draws as without replacement (hypergeometric); writing var(3Y−2)=3 var(Y)−2\mathrm{var}(3Y-2)=3\,\mathrm{var}(Y)-2 or 3 var(Y)3\,\mathrm{var}(Y) instead of 9 var(Y)9\,\mathrm{var}(Y).

Exercise 3 (points 7)

Let XX and YY be independent random variables with geometric distribution Geo(1/2)\mathrm{Geo}(1/2).

(a) (2 points) Compute the probability of the event {X>E(X)}\{X>E(X)\}.

(b) (2 points) Compute the expected value of the random variable W=(32)XW=\big(\frac32\big)^X.

(c) (3 points) Let Z:=X+YZ:=X+Y. Determine the alphabet of ZZ and its discrete density.

Show the result

(a) E(X)=2E(X)=2 and P(X>E(X))=14P(X>E(X))=\dfrac14.

(b) E(W)=3E(W)=3.

(c) Alphabet {n∈N: n≥2}\{n\in\mathbb N:\ n\ge2\} and pZ(n)=n−12np_Z(n)=\dfrac{n-1}{2^n} for n≥2n\ge2.

Show the full solution

Geometric convention (the one of the course): X∼Geo(p)X\sim\mathrm{Geo}(p) counts the trial of the first success, alphabet {1,2,… }\{1,2,\dots\} and pX(k)=(1−p)k−1pp_X(k)=(1-p)^{k-1}p (see Geometric Random VariableThe geometric random variable counts the trial at which the first success occurs in independent binary trials; it has infinite alphabet, density (1-p)^(k-1) p, mean 1/p and the memoryless property.Geometric Random Variable →). Here p=12p=\frac12, so pX(k)=(12)kp_X(k)=\big(\frac12\big)^k.

(a) The mean of a geometric is E(X)=1p=2E(X)=\frac1p=2. The tail is P(X>n)=(1−p)nP(X>n)=(1-p)^n for integer nn (the first nn trials are all failures). Hence P(X>E(X))=P(X>2)=(12)2=14.P(X>E(X))=P(X>2)=\Big(\frac12\Big)^2=\frac14 . Direct check: P(X>2)=∑k≥32−k=2−31−12=14P(X>2)=\sum_{k\ge3}2^{-k}=\frac{2^{-3}}{1-\frac12}=\frac14. (Do not confuse with P(X≥2)=P(X>1)=12P(X\ge2)=P(X>1)=\frac12.)

(b) W=g(X)W=g(X) with g(x)=(32)xg(x)=(\frac32)^x, so by LOTUS (see Functions of Random Variables and 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(W)=∑ng(n)pX(n)E(W)=\sum_n g(n)p_X(n): E(W)=∑n=1∞(32)n(12)n=∑n=1∞(34)n.E(W)=\sum_{n=1}^\infty\Big(\frac32\Big)^n\Big(\frac12\Big)^n=\sum_{n=1}^\infty\Big(\frac34\Big)^n . (Combine the two powers: (32)n(12)n−1⋅12=(32⋅12)n=(34)n(\frac32)^n(\frac12)^{n-1}\cdot\frac12=(\frac32\cdot\frac12)^n=(\frac34)^n.) This is a geometric series with ratio 34<1\frac34<1, so it converges, and starting at n=1n=1: ∑n=1∞(34)n=3/41−3/4=3.\sum_{n=1}^\infty\Big(\frac34\Big)^n=\frac{3/4}{1-3/4}=3 . Equivalently ∑n=0∞(34)n−1=4−1=3\sum_{n=0}^\infty(\frac34)^n-1=4-1=3. Trap: E(W)≠(32)E(X)=94E(W)\neq(\frac32)^{E(X)}=\frac94; in general E(g(X))≠g(E(X))E(g(X))\neq g(E(X)) unless gg is affine.

(c) Alphabet. X,Y≥1X,Y\ge1 are integers, so Z=X+YZ=X+Y takes every integer value n≥2n\ge2, and the value nn is attained (e.g. X=1X=1, Y=n−1Y=n-1). Alphabet: {2,3,4,… }\{2,3,4,\dots\}.

Density. For n≥2n\ge2 split according to the value of YY (Y=jY=j with j≥1j\ge1, and then X=n−j≥1X=n-j\ge1 forces j≤n−1j\le n-1). By total probability on the partition {Y=j}\{Y=j\} (see Law of Total Probability and Bayes' RuleThe 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 →): pZ(n)=P(X+Y=n)=∑j=1n−1P(X=n−j∣Y=j)P(Y=j)=∑j=1n−1P(X=n−j)P(Y=j),p_Z(n)=P(X+Y=n)=\sum_{j=1}^{n-1}P(X=n-j\mid Y=j)P(Y=j)=\sum_{j=1}^{n-1}P(X=n-j)P(Y=j), where the last step uses the independence of XX and YY (see 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 →): conditioning on Y=jY=j does not change the law of XX. Insert pX(k)=2−kp_X(k)=2^{-k}: pZ(n)=∑j=1n−12−(n−j) 2−j=∑j=1n−12−n=n−12n,n≥2.p_Z(n)=\sum_{j=1}^{n-1}2^{-(n-j)}\,2^{-j}=\sum_{j=1}^{n-1}2^{-n}=\frac{n-1}{2^n},\qquad n\ge2 . The terms do not depend on jj, so the sum is just n−1n-1 equal terms. Check that it is a density: ∑n≥2n−12n=∑m≥1m2m+1=12∑m≥1m(12)m=12⋅2=1\sum_{n\ge2}\frac{n-1}{2^n}=\sum_{m\ge1}\frac{m}{2^{m+1}}=\frac12\sum_{m\ge1}m\Big(\frac12\Big)^m=\frac12\cdot2=1 (using ∑m≥1mrm=r(1−r)2\sum_{m\ge1}mr^m=\frac r{(1-r)^2}, which equals 22 for r=12r=\frac12). Typical mistakes. Letting jj run from 00 or up to nn (the geometric has no mass at 00); using the other geometric convention (support from 00), which would shift the alphabet.

Exercise 4 (points 6)

Let XX be a random variable with density fX(x)=c(1+x)1[0,1](x).f_X(x)=c(1+x)\mathbf 1_{[0,1]}(x). Define also Z=XZ=\sqrt X.

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

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

(c) (2 points) Determine the density of ZZ and compute P(Z>12)P\big(Z>\frac12\big).

Show the result

(a) c=23c=\dfrac23 and FX(x)={0x<023(x+x22)0≤x<11x≥1.F_X(x)=\begin{cases}0&x<0\\ \frac23\big(x+\frac{x^2}2\big)&0\le x<1\\ 1&x\ge1.\end{cases}

(b) E(X)=59E(X)=\dfrac59; for θ≠0\theta\ne0, φX(θ)=23[eiθ−1iθ+eiθiθ−eiθ−1(iθ)2]\varphi_X(\theta)=\dfrac23\Big[\dfrac{e^{i\theta}-1}{i\theta}+\dfrac{e^{i\theta}}{i\theta}-\dfrac{e^{i\theta}-1}{(i\theta)^2}\Big], and φX(0)=1\varphi_X(0)=1.

(c) fZ(z)=43 z(1+z2)1[0,1](z)f_Z(z)=\dfrac43\,z(1+z^2)\mathbf 1_{[0,1]}(z) and P(Z>12)=1316P\big(Z>\frac12\big)=\dfrac{13}{16}.

Show the full solution

(a) A density must integrate to 11 (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 → and Absolutely Continuous Random VectorsAn absolutely continuous random vector (X,Y) has a joint density f_XY with F_XY the double integral of f_XY; probabilities of sets are double integrals, marginals are obtained by integrating out one variable, the uniform vector on D has density 1/area(D) on D, and the density of X + Y is an integral of f_XY along the line x + y = z.Absolutely Continuous Random Vectors → for the density language): 1=c∫01(1+x) dx=c(1+12)=32c ⟹ c=23.1=c\int_0^1(1+x)\,dx=c\Big(1+\frac12\Big)=\frac32c\ \Longrightarrow\ c=\frac23 . (Also fX≥0f_X\ge0 on [0,1][0,1], as required.) The distribution function is FX(x)=∫−∞xfXF_X(x)=\int_{-\infty}^xf_X. For x<0x<0 it is 00; for 0≤x<10\le x<1 FX(x)=23∫0x(1+t) dt=23(x+x22);F_X(x)=\frac23\int_0^x(1+t)\,dt=\frac23\Big(x+\frac{x^2}2\Big); for x≥1x\ge1 it is FX(1)=23⋅32=1F_X(1)=\frac23\cdot\frac32=1.

(b) Expected value: E(X)=23∫01x(1+x) dx=23(12+13)=23⋅56=59.E(X)=\frac23\int_0^1x(1+x)\,dx=\frac23\Big(\frac12+\frac13\Big)=\frac23\cdot\frac56=\frac59 . Characteristic function (see Characteristic Functionsmoments and the moment generating function lead to the characteristic function, the Fourier transform of the density, which always exists, characterizes the distribution, turns sums of independent variables into products and gives moments by differentiation; the multivariate version works the same way for random vectors.Characteristic Functions →; the notes write jj for the imaginary unit, here ii as on the exam sheet): φX(θ)=E(eiθX)=23∫01eiθx(1+x) dx\varphi_X(\theta)=E(e^{i\theta X})=\frac23\int_0^1e^{i\theta x}(1+x)\,dx. For θ=0\theta=0 the integrand is 1+x1+x and φX(0)=1\varphi_X(0)=1, as always. For θ≠0\theta\ne0 we need two integrals: ∫01eiθxdx=[eiθxiθ]01=eiθ−1iθ,\int_0^1e^{i\theta x}dx=\Big[\frac{e^{i\theta x}}{i\theta}\Big]_0^1=\frac{e^{i\theta}-1}{i\theta}, and, by parts (derivative of xx, antiderivative of eiθxe^{i\theta x}), ∫01xeiθxdx=[xeiθxiθ]01−∫01eiθxiθdx=eiθiθ−eiθ−1(iθ)2.\int_0^1xe^{i\theta x}dx=\Big[\frac{xe^{i\theta x}}{i\theta}\Big]_0^1-\int_0^1\frac{e^{i\theta x}}{i\theta}dx=\frac{e^{i\theta}}{i\theta}-\frac{e^{i\theta}-1}{(i\theta)^2}. Adding up and multiplying by 23\frac23 gives the stated formula. It can be simplified, using (iθ)2=−θ2(i\theta)^2=-\theta^2: φX(θ)=23[2eiθ−1iθ+eiθ−1θ2],θ≠0.\varphi_X(\theta)=\frac23\Big[\frac{2e^{i\theta}-1}{i\theta}+\frac{e^{i\theta}-1}{\theta^2}\Big],\qquad\theta\ne0 . Consistency checks (done by script): the limit as θ→0\theta\to0 is 11, and φX′(0)/i=59=E(X)\varphi_X'(0)/i=\frac59=E(X), as the moment property of the CF requires.

(c) XX takes values in [0,1][0,1], so Z=XZ=\sqrt X does too. Use the method of the distribution function (see 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 →): for z∈[0,1]z\in[0,1], since t↦t2t\mapsto t^2 is increasing on [0,∞)[0,\infty), FZ(z)=P(X≤z)=P(X≤z2)=FX(z2),F_Z(z)=P(\sqrt X\le z)=P(X\le z^2)=F_X(z^2), with FZ=0F_Z=0 for z<0z<0 and FZ=1F_Z=1 for z>1z>1. Differentiating (chain rule): fZ(z)=fX(z2)⋅2z=23(1+z2)⋅2z=43z(1+z2),z∈[0,1],f_Z(z)=f_X(z^2)\cdot2z=\frac23(1+z^2)\cdot2z=\frac43z(1+z^2),\qquad z\in[0,1], and fZ=0f_Z=0 elsewhere. (Check: ∫0143(z+z3)dz=43(12+14)=1\int_0^1\frac43(z+z^3)dz=\frac43\big(\frac12+\frac14\big)=1.) For the probability, P(Z>12)=P(X>14)=1−FX(14)=1−23(14+132)=1−23⋅932=1−316=1316.P\Big(Z>\frac12\Big)=P\Big(X>\frac14\Big)=1-F_X\Big(\frac14\Big)=1-\frac23\Big(\frac14+\frac1{32}\Big)=1-\frac23\cdot\frac9{32}=1-\frac3{16}=\frac{13}{16}. The same value from fZf_Z: ∫1/2143(z+z3)dz=43[(12−18)+(14−164)]=43⋅3964=1316\int_{1/2}^1\frac43(z+z^3)dz=\frac43\big[(\frac12-\frac18)+(\frac14-\frac1{64})\big]=\frac43\cdot\frac{39}{64}=\frac{13}{16}.

Typical mistakes. Forgetting the Jacobian factor 2z2z in fZf_Z; computing fZ(z)=fX(z)f_Z(z)=f_X(\sqrt z) (that is the density of X2X^2, not of X\sqrt X); leaving the integral from 00 to 11 of xeiθxx e^{i\theta x} without the by-parts boundary term.

Exercise 5 (points 6)

Let (X,Y)(X,Y) be a Gaussian random vector with mean m=(1,−1)\mathbf m=(1,-1) and covariance matrix Σ=(4222).\Sigma=\begin{pmatrix}4&2\\2&2\end{pmatrix}. (a) (2 points) Write the joint density of (X,Y)(X,Y).

(b) (2 points) Determine the law of U:=X−2YU:=X-2Y and compute P(U>5)P(U>5).

(c) (2 points) Compute Cov(X,U)\mathrm{Cov}(X,U) and the correlation coefficient ρ(X,U)\rho(X,U).

Show the result

(a) fX,Y(x,y)=14πexp⁡{−12(12u2−uv+v2)}f_{X,Y}(x,y)=\dfrac1{4\pi}\exp\Big\{-\dfrac12\Big(\dfrac12u^2-uv+v^2\Big)\Big\} with u=x−1u=x-1, v=y+1v=y+1.

(b) U∼N(3,4)U\sim N(3,4) and P(U>5)=1−Φ(1)≈0.1587P(U>5)=1-\Phi(1)\approx0.1587.

(c) Cov(X,U)=0\mathrm{Cov}(X,U)=0 and ρ(X,U)=0\rho(X,U)=0.

Show the full solution

Recall (see Gaussian Random Vectorsa gaussian vector is defined as an affine transformation of a vector of i.i.d. standard normals, so it is identified by its mean vector and covariance matrix, has a density only when the covariance matrix is invertible, stays gaussian under affine maps, and has independent components exactly when they are uncorrelated.Gaussian Random Vectors →) that a Gaussian vector N(m,Σ)N(\mathbf m,\Sigma) with Σ\Sigma invertible has density f(w)=12πdet⁡Σexp⁡{−12(w−m)TΣ−1(w−m)}.f(\mathbf w)=\frac1{2\pi\sqrt{\det\Sigma}}\exp\Big\{-\frac12(\mathbf w-\mathbf m)^T\Sigma^{-1}(\mathbf w-\mathbf m)\Big\}.

(a) det⁡Σ=4⋅2−2⋅2=4>0\det\Sigma=4\cdot2-2\cdot2=4>0, so Σ\Sigma is invertible and the density exists, with 2πdet⁡Σ=4π2\pi\sqrt{\det\Sigma}=4\pi. The inverse of a 2×22\times2 matrix swaps the diagonal entries and changes the sign of the off-diagonal ones, dividing by the determinant: Σ−1=14(2−2−24)=(12−12−121).\Sigma^{-1}=\frac14\begin{pmatrix}2&-2\\-2&4\end{pmatrix}=\begin{pmatrix}\frac12&-\frac12\\-\frac12&1\end{pmatrix}. With u=x−1u=x-1, v=y+1v=y+1 the quadratic form is (u,v)Σ−1(u,v)T=12u2−uv+v2(u,v)\Sigma^{-1}(u,v)^T=\frac12u^2-uv+v^2 (the cross term appears twice: 2⋅(−12)uv2\cdot(-\frac12)uv). Therefore fX,Y(x,y)=14πexp⁡{−12(12(x−1)2−(x−1)(y+1)+(y+1)2)},(x,y)∈R2.f_{X,Y}(x,y)=\frac1{4\pi}\exp\Big\{-\frac12\Big(\frac12(x-1)^2-(x-1)(y+1)+(y+1)^2\Big)\Big\},\qquad(x,y)\in\mathbb R^2 .

(b) U=X−2Y=(1,−2)⋅(X,Y)U=X-2Y=(1,-2)\cdot(X,Y) is a linear combination of the components of a Gaussian vector, hence it is Gaussian (see Gaussian Random Vectorsa gaussian vector is defined as an affine transformation of a vector of i.i.d. standard normals, so it is identified by its mean vector and covariance matrix, has a density only when the covariance matrix is invertible, stays gaussian under affine maps, and has independent components exactly when they are uncorrelated.Gaussian Random Vectors →: affine maps preserve Gaussianity); only its mean and variance are needed (Mean Vector and Covariance MatrixFor a column random vector X the mean vector collects the expectations of the components, the correlation matrix R = E(X X^T) and the covariance matrix Sigma = E((X - mu)(X - mu)^T) = R - mu mu^T are symmetric positive semidefinite, and under Y = A X + b they transform as mu_Y = A mu_X + b and Sigma_Y = A Sigma_X A^T.Mean Vector and Covariance Matrix →): E(U)=E(X)−2E(Y)=1−2(−1)=3,E(U)=E(X)-2E(Y)=1-2(-1)=3, var(U)=var(X)+4 var(Y)−4 Cov(X,Y)=4+4⋅2−4⋅2=4.\mathrm{var}(U)=\mathrm{var}(X)+4\,\mathrm{var}(Y)-4\,\mathrm{Cov}(X,Y)=4+4\cdot2-4\cdot2=4 . (The cross term is 2⋅1⋅(−2)Cov(X,Y)=−4Cov(X,Y)2\cdot1\cdot(-2)\mathrm{Cov}(X,Y)=-4\mathrm{Cov}(X,Y).) So U∼N(3,4)U\sim N(3,4), standard deviation 22. Standardize with Z∼N(0,1)Z\sim N(0,1): P(U>5)=P(Z>5−32)=P(Z>1)=1−Φ(1)≈0.1587.P(U>5)=P\Big(Z>\frac{5-3}{2}\Big)=P(Z>1)=1-\Phi(1)\approx0.1587 . (The exam leaves the answer as 1−Φ(1)1-\Phi(1); see 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 → for the notation Φ\Phi.)

(c) By bilinearity of covariance (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 →): Cov(X,U)=Cov(X,X−2Y)=var(X)−2 Cov(X,Y)=4−2⋅2=0.\mathrm{Cov}(X,U)=\mathrm{Cov}(X,X-2Y)=\mathrm{var}(X)-2\,\mathrm{Cov}(X,Y)=4-2\cdot2=0 . Hence ρ(X,U)=Cov(X,U)var(X)var(U)=04⋅4=0\rho(X,U)=\dfrac{\mathrm{Cov}(X,U)}{\sqrt{\mathrm{var}(X)\mathrm{var}(U)}}=\dfrac0{\sqrt{4\cdot4}}=0: XX and UU are uncorrelated. Remark beyond what is asked: since (X,U)(X,U) is itself a Gaussian vector (a linear image of (X,Y)(X,Y)), uncorrelated here does imply independent. This holds only for jointly Gaussian variables.

Typical mistakes. Forgetting the square on the coefficient (var(−2Y)=4 var(Y)\mathrm{var}(-2Y)=4\,\mathrm{var}(Y)); using var(Y)\mathrm{var}(Y) and Cov\mathrm{Cov} in the wrong positions of Σ\Sigma; writing the density with det⁡Σ\sqrt{\det\Sigma} missing or with Σ\Sigma instead of Σ−1\Sigma^{-1} in the exponent; dividing by the variance 44 instead of the standard deviation 22 when standardizing.

Exercise 6 (points 4)

Let (Xn)n≥1(X_n)_{n\ge1} be a sequence of random variables such that, for every n∈Nn\in\mathbb N, P(Xn=0)=1−1n,P(Xn=n)=1n.P(X_n=0)=1-\frac1n,\qquad P\big(X_n=\sqrt n\big)=\frac1n . (a) (2 points) Study the convergence in distribution and in probability of (Xn)n≥1(X_n)_{n\ge1}.

(b) (2 points) Study the convergence in mean, that is in L1L^1, and in mean square, that is in L2L^2.

Show the result

(a) Xn→0X_n\to0 in probability, hence also in distribution.

(b) Xn→0X_n\to0 in L1L^1 (since E∣Xn∣=1n→0E|X_n|=\frac1{\sqrt n}\to0), but XnX_n does not converge in L2L^2 (since E(Xn2)=1E(X_n^2)=1 for every nn).

Show the full solution

See Modes of Convergencea random sequence can converge pointwise (almost surely), in distribution, in probability or in the mean of order p; the notes define the last three, relate them (L2 implies L1 implies probability implies distribution), use Levy's theorem with characteristic functions, and show with counterexamples what convergence in distribution or in probability does not guarantee.Modes of Convergence → for the definitions and the implications L2⇒L1⇒P⇒DL^2\Rightarrow L^1\Rightarrow P\Rightarrow\mathcal D.

(a) In probability. The natural candidate is the constant 00, because Xn=0X_n=0 with probability 1−1n→11-\frac1n\to1. Fix ε>0\varepsilon>0. If n>ε2n>\varepsilon^2 then n>ε\sqrt n>\varepsilon, so {∣Xn∣>ε}={Xn=n}\{|X_n|>\varepsilon\}=\{X_n=\sqrt n\} and P(∣Xn∣>ε)=1n⟶0.P(|X_n|>\varepsilon)=\frac1n\longrightarrow0 . (For n≤ε2n\le\varepsilon^2 the probability is at most 11, which does not matter for the limit.) Hence Xn→P0X_n\xrightarrow{P}0. In distribution: convergence in probability implies convergence in distribution, so Xn→D0X_n\xrightarrow{\mathcal D}0. Directly: the distribution function of XnX_n is 00 for x<0x<0, 1−1n1-\frac1n for 0≤x<n0\le x<\sqrt n and 11 for x≥nx\ge\sqrt n; for every fixed x≥0x\ge0, once n>x2n>x^2 we get FXn(x)=1−1n→1F_{X_n}(x)=1-\frac1n\to1, while FXn(x)=0F_{X_n}(x)=0 for x<0x<0; this is the distribution function of the constant 00 at every xx (also at the jump point 00, where FXn(0)=1−1n→1F_{X_n}(0)=1-\frac1n\to1).

(b) If XnX_n converged in L1L^1 or L2L^2 to some XX, then it would also converge in probability to XX (by the implications), and limits in probability are almost surely unique, so X=0X=0 a.s. It is therefore enough to test convergence to 00: E(∣Xn∣)=n⋅1n=1n⟶0⟹Xn→L10.E(|X_n|)=\sqrt n\cdot\frac1n=\frac1{\sqrt n}\longrightarrow0\quad\Longrightarrow\quad X_n\xrightarrow{L^1}0 . E(∣Xn∣2)=n⋅1n=1for every n, which does not tend to 0⟹Xn̸→L20.E(|X_n|^2)=n\cdot\frac1n=1\quad\text{for every }n,\ \text{which does not tend to }0\quad\Longrightarrow\quad X_n\not\xrightarrow{L^2}0 . So (Xn)(X_n) does not converge in L2L^2 to 00, hence (by the uniqueness argument) to nothing. This sequence is the standard example showing that convergence in L1L^1 does not imply convergence in L2L^2, and convergence in probability does not imply convergence in L2L^2: the rare, large value n\sqrt n is enough to keep the second moment at 11. Convergence in L1L^1 could also be used to recover convergence in probability, via the Markov inequality (Markov and Chebyshev InequalitiesFor a nonnegative random variable P(X >= a) is at most E(X)/a (Markov), and for any random variable with finite mean and variance P(|X - E(X)| >= eps) is at most var(X)/eps^2 (Chebyshev); both bounds are loose but universal, valid whatever the distribution.Markov and Chebyshev Inequalities →): P(∣Xn∣>ε)≤E∣Xn∣ε=1εn→0P(|X_n|>\varepsilon)\le\frac{E|X_n|}\varepsilon=\frac1{\varepsilon\sqrt n}\to0.

Typical mistakes. Claiming that XnX_n does not converge in L2L^2 "because it does not converge to 00" without computing E(Xn2)E(X_n^2); concluding L2L^2 convergence from convergence in probability; stopping at "E(Xn2)=1↛0E(X_n^2)=1\not\to0" without noting that the limit must be 00 (justification of the uniqueness of the limit).

Self-assessment grid
Exercise Points What must be there for full marks Typical mistakes
1 5 (a) Total probability over the supplier, binomial "exactly one" with factor 2p(1−p)2p(1-p), result 1931200\frac{193}{1200}. (b) P(D1)=11120P(D_1)=\frac{11}{120}, P(D1∩D2)=9800P(D_1\cap D_2)=\frac9{800} with conditional independence given the supplier, and the comparison with 12114400\frac{121}{14400} concluding "not independent". Using P(D1)2P(D_1)^2 for the joint probability; missing factor 2; unweighted average of the defect rates.
2 4 (a) X=3Y−2X=3Y-2 with Y∼Bin(2,47)Y\sim\mathrm{Bin}(2,\frac47) and the three values with probabilities 949,2449,1649\frac9{49},\frac{24}{49},\frac{16}{49}. (b) E(X)=107E(X)=\frac{10}7, var(X)=21649\mathrm{var}(X)=\frac{216}{49}. Draws without replacement; var(3Y−2)≠3var(Y)\mathrm{var}(3Y-2)\ne3\mathrm{var}(Y).
3 7 (a) E(X)=2E(X)=2, P(X>2)=14P(X>2)=\frac14. (b) LOTUS, geometric series of ratio 34\frac34, E(W)=3E(W)=3. (c) Alphabet {2,3,… }\{2,3,\dots\} and pZ(n)=n−12np_Z(n)=\frac{n-1}{2^n} with the sum over j=1,…,n−1j=1,\dots,n-1 justified by independence. P(X>2)P(X>2) confused with P(X≥2)P(X\ge2); E(W)=(32)E(X)E(W)=(\frac32)^{E(X)}; wrong range of the index in the convolution.
4 6 (a) c=23c=\frac23 and the three-piece FXF_X. (b) E(X)=59E(X)=\frac59; CF by two integrals (one by parts), for θ≠0\theta\ne0. (c) fZ=43z(1+z2)f_Z=\frac43z(1+z^2) on [0,1][0,1] via FZ(z)=FX(z2)F_Z(z)=F_X(z^2), and P(Z>12)=1316P(Z>\frac12)=\frac{13}{16}. Missing Jacobian 2z2z; FXF_X without the pieces 00 and 11; by-parts boundary term lost.
5 6 (a) det⁡Σ=4\det\Sigma=4, Σ−1\Sigma^{-1}, density with prefactor 14π\frac1{4\pi} and centred variables. (b) U∼N(3,4)U\sim N(3,4) justified by Gaussianity of linear combinations, P(U>5)=1−Φ(1)P(U>5)=1-\Phi(1). (c) Cov(X,U)=0\mathrm{Cov}(X,U)=0 and ρ=0\rho=0. var(−2Y)=−2var(Y)\mathrm{var}(-2Y)=-2\mathrm{var}(Y) or 2var(Y)2\mathrm{var}(Y); Σ\Sigma instead of Σ−1\Sigma^{-1} in the exponent; wrong standardization.
6 4 (a) P(∣Xn∣>ε)=1n→0P(|X_n|>\varepsilon)=\frac1n\to0, so convergence to 00 in probability, hence in distribution. (b) E∣Xn∣=1n→0E|X_n|=\frac1{\sqrt n}\to0 (L1L^1 yes) and E(Xn2)=1E(X_n^2)=1 (L2L^2 no), with the remark that the only possible limit is 00. Believing that convergence in probability implies L2L^2; omitting the identification of the limit.