Salta al contenuto
Note per Studenti Probability Theory - Midterm Exam of 17 November 2025 Report

Probability Theory - Midterm Exam of 17 November 2025

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

In questa pagina 5

Midterm exam (first partial test) of Calcolo delle Probabilità, 17 November 2025, Theme A (Bachelor's degrees in Telecommunications Engineering and in Automation Engineering, UniPD). This is the paper of the equivalent Italian-language course, translated into English, because the English-language course does not publish its exams. It covers only the first part of the course (probability spaces, conditional probability, independence, random variables). The sheet does not state the duration of the test. Total: 31 points, split as 8 + 9 + 6 + 8; the points of each part are given in the exercise headings.

Exercise 1 (points 8 = 3+2+3)

(a) Show that if AA and BB are independent events, then AA and BcB^c are also independent events.

(b) Show that if P(A)=P(B)=0P(A)=P(B)=0 then P(A∪B)=0P(A\cup B)=0.

(c) Prove the following decomposition formula for conditional probability: given three events A,B,CA,B,C such that P(A∩C)>0P(A\cap C)>0 and P(Ac∩C)>0P(A^c\cap C)>0, one has P(B∣C)=P(B∣A∩C) P(A∣C)+P(B∣Ac∩C) P(Ac∣C).P(B\mid C)=P(B\mid A\cap C)\,P(A\mid C)+P(B\mid A^c\cap C)\,P(A^c\mid C).

Show the result

(a) P(A∩Bc)=P(A)P(Bc)P(A\cap B^c)=P(A)P(B^c), so A⊥ ⁣ ⁣ ⁣⊥BcA\perp\!\!\!\perp B^c (3 points).

(b) 0≤P(A∪B)≤P(A)+P(B)=00\le P(A\cup B)\le P(A)+P(B)=0, hence P(A∪B)=0P(A\cup B)=0 (2 points).

(c) After multiplying by P(C)P(C), the formula is equivalent to P(B∩C)=P(B∩C∩A)+P(B∩C∩Ac)P(B\cap C)=P(B\cap C\cap A)+P(B\cap C\cap A^c), which is true by additivity (3 points).

Show the full solution

(a) Hypothesis: A⊥ ⁣ ⁣ ⁣⊥BA\perp\!\!\!\perp B, that is P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B) (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 →). Thesis: P(A∩Bc)=P(A)P(Bc)P(A\cap B^c)=P(A)P(B^c).

Write AA as a disjoint union (see Sample Spaces and EventsThe sample space collects all possible outcomes of an experiment, events are its subsets, and set operations (complement, union, intersection, difference, partitions) translate into statements about what occurs.Sample Spaces and Events →): A=A∩Ω=A∩(B∪Bc)=(A∩B)∪(A∩Bc),(A∩B)∩(A∩Bc)=∅.A=A\cap\Omega=A\cap(B\cup B^c)=(A\cap B)\cup(A\cap B^c),\qquad (A\cap B)\cap(A\cap B^c)=\varnothing. The two pieces have empty intersection, because B∩Bc=∅B\cap B^c=\varnothing. By additivity of PP (see 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 →): P(A)=P(A∩B)+P(A∩Bc) ⟹ P(A∩Bc)=P(A)−P(A∩B).P(A)=P(A\cap B)+P(A\cap B^c)\ \Longrightarrow\ P(A\cap B^c)=P(A)-P(A\cap B). Now use the hypothesis on the last term and the complement rule P(Bc)=1−P(B)P(B^c)=1-P(B): P(A∩Bc)=P(A)−P(A)P(B)=P(A)(1−P(B))=P(A)P(Bc).P(A\cap B^c)=P(A)-P(A)P(B)=P(A)\big(1-P(B)\big)=P(A)P(B^c). This is exactly the definition of independence of AA and BcB^c. □\square

Typical mistake: "proving" it by saying that if AA does not depend on BB then it does not depend on BcB^c. This is the statement, not a proof; the proof needs the decomposition above. Another mistake is to confuse independence with A∩B=∅A\cap B=\varnothing.

(b) Subadditivity is property (f) in 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 →: P(A∪B)≤P(A)+P(B)P(A\cup B)\le P(A)+P(B) (it follows from P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B) and P(A∩B)≥0P(A\cap B)\ge0). Together with P(⋅)≥0P(\cdot)\ge 0: 0≤P(A∪B)≤P(A)+P(B)=0+0=0.0\le P(A\cup B)\le P(A)+P(B)=0+0=0. Hence P(A∪B)=0P(A\cup B)=0. □\square

Remark. One can also argue with monotonicity: A∩B⊆AA\cap B\subseteq A gives P(A∩B)=0P(A\cap B)=0, and then P(A∪B)=P(A)+P(B)−P(A∩B)=0P(A\cup B)=P(A)+P(B)-P(A\cap B)=0. Do not write P(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B) without justification: it holds only if A∩B=∅A\cap B=\varnothing or P(A∩B)=0P(A\cap B)=0, which here has to be shown.

(c) The hypotheses guarantee that all conditional probabilities exist: P(C)≥P(A∩C)>0P(C)\ge P(A\cap C)>0 (monotonicity), so P(⋅∣C)P(\cdot\mid C) is defined; P(A∩C)>0P(A\cap C)>0 and P(Ac∩C)>0P(A^c\cap C)>0 make P(B∣A∩C)P(B\mid A\cap C) and P(B∣Ac∩C)P(B\mid A^c\cap C) defined. Use the definition of conditional probability, P(E∣F)=P(E∩F)P(F)P(E\mid F)=\dfrac{P(E\cap F)}{P(F)} (see 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 →), on each product: P(B∣A∩C) P(A∣C)=P(B∩A∩C)P(A∩C)⋅P(A∩C)P(C)=P(B∩C∩A)P(C),P(B\mid A\cap C)\,P(A\mid C)=\frac{P(B\cap A\cap C)}{P(A\cap C)}\cdot\frac{P(A\cap C)}{P(C)}=\frac{P(B\cap C\cap A)}{P(C)}, P(B∣Ac∩C) P(Ac∣C)=P(B∩Ac∩C)P(Ac∩C)⋅P(Ac∩C)P(C)=P(B∩C∩Ac)P(C).P(B\mid A^c\cap C)\,P(A^c\mid C)=\frac{P(B\cap A^c\cap C)}{P(A^c\cap C)}\cdot\frac{P(A^c\cap C)}{P(C)}=\frac{P(B\cap C\cap A^c)}{P(C)}. The factors P(A∩C)P(A\cap C) and P(Ac∩C)P(A^c\cap C) cancel, and this is the step that uses the hypotheses. Adding the two lines, the right-hand side of the formula is P(B∩C∩A)+P(B∩C∩Ac)P(C).\frac{P(B\cap C\cap A)+P(B\cap C\cap A^c)}{P(C)}. The two events B∩C∩AB\cap C\cap A and B∩C∩AcB\cap C\cap A^c are disjoint (they differ by AA versus AcA^c) and their union is (B∩C∩A)∪(B∩C∩Ac)=B∩C∩(A∪Ac)=B∩C.(B\cap C\cap A)\cup(B\cap C\cap A^c)=B\cap C\cap(A\cup A^c)=B\cap C. By additivity, the numerator equals P(B∩C)P(B\cap C). So the right-hand side equals P(B∩C)P(C)=P(B∣C)\dfrac{P(B\cap C)}{P(C)}=P(B\mid C). □\square

Interpretation. It is the law of total probability (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 →) applied inside the "universe" CC: the measure P(⋅∣C)P(\cdot\mid C) is itself a probability measure, and {A,Ac}\{A,A^c\} is a partition. Remember that the formula is not P(B∣C)=P(B∣A)P(A∣C)+…P(B\mid C)=P(B\mid A)P(A\mid C)+\dots: the conditioning on CC must stay in each factor.

Exercise 2 (points 9 = 3+3+3)

A certain disease XXX affects 0.4% of the male population and 0.5% of the female population. A random sample of 2000 people is chosen, half males and half females.

(a) What is the probability that an individual chosen at random in the sample is ill?

(b) Knowing that the chosen individual is ill, what is the probability that the individual is male?

(c) What is the probability that the number of ill females in the sample is greater than 5? Approximate this value using the Poisson approximation. Leave the sums indicated.

Show the result

(a) P(A)=0.0045P(A)=0.0045 (0.45%) (3 points).

(b) P(M∣A)=49≃0.444P(M\mid A)=\dfrac{4}{9}\simeq0.444 (3 points).

(c) With X∼Bin(1000;0.005)X\sim\text{Bin}(1000;0.005) the number of ill females: P(X>5)=1−∑k=05(1000k)(0.005)k(0.995)1000−k≃0.3840,P(X>5)=1-\sum_{k=0}^{5}\binom{1000}{k}(0.005)^k(0.995)^{1000-k}\simeq0.3840, and with Y∼P(5)Y\sim\mathcal P(5) (Poisson approximation) P(Y>5)=1−e−5∑k=055kk!≃0.3840P(Y>5)=1-e^{-5}\sum_{k=0}^{5}\frac{5^k}{k!}\simeq0.3840 (3 points).

Show the full solution

Setting. Let AA = "the chosen individual is ill", FF = "the individual is female", M=FcM=F^c = "male". The percentages are empirical probabilities and give conditional probabilities: P(A∣M)=0.004,P(A∣F)=0.005,P(F)=P(M)=12 (half males, half females).P(A\mid M)=0.004,\qquad P(A\mid F)=0.005,\qquad P(F)=P(M)=\tfrac12\ \text{(half males, half females)}.

(a) {F,M}\{F,M\} is a partition of the sample space. By the law of total probability (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(A)=P(A∣F)P(F)+P(A∣M)P(M)=0.005⋅0.5+0.004⋅0.5=0.0025+0.002=0.0045.P(A)=P(A\mid F)P(F)+P(A\mid M)P(M)=0.005\cdot0.5+0.004\cdot0.5=0.0025+0.002=0.0045. Typical mistake: answering with the plain mean of the two percentages without noticing that the weights are P(F)P(F), P(M)P(M) (here they happen to be equal, so the mean is correct, but with a sample not split in half it would not be).

(b) Bayes' rule (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 →) inverts the conditioning: P(M∣A)=P(A∣M)P(M)P(A)=0.004⋅0.50.0045=0.0020.0045=49≃0.444.P(M\mid A)=\frac{P(A\mid M)P(M)}{P(A)}=\frac{0.004\cdot0.5}{0.0045}=\frac{0.002}{0.0045}=\frac49\simeq0.444. Sanity check: the complement is P(F∣A)=0.00250.0045=59P(F\mid A)=\frac{0.0025}{0.0045}=\frac59 and 49+59=1\frac49+\frac59=1. Females are a bit more likely to be ill, so among the ill individuals they are the majority: 49<12\frac49<\frac12 is coherent.

Remark (error in the official solution). The official solution gives P(M∣A)≃0.445P(M\mid A)\simeq0.445. The exact value is 4/9=0.4444…4/9=0.4444\ldots, which rounds to 0.4440.444, not 0.4450.445.

(c) Let XX = number of ill females in the sample. There are 10001000 females, and each is ill with probability 0.0050.005; the sample is large and, as in the standard model, the individuals are treated as independent trials (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 →: the number of successes in nn independent trials with the same probability pp). Therefore X∼Bin(1000; 0.005)X\sim\text{Bin}(1000;\,0.005). Passing to the complement (the event {X>5}\{X>5\} is the complement of {X≤5}\{X\le5\}, a finite sum of six terms): P(X>5)=1−P(X≤5)=1−∑k=05(1000k)(0.005)k(1−0.005)1000−k.P(X>5)=1-P(X\le5)=1-\sum_{k=0}^{5}\binom{1000}{k}(0.005)^k(1-0.005)^{1000-k}. Poisson approximation. When nn is large and pp is small, Bin(n,p)\text{Bin}(n,p) is close to P(λ)\mathcal P(\lambda) with λ=np\lambda=np. This is the Poisson limit law: Bin(n,λ/n)→DP(λ)\text{Bin}(n,\lambda/n)\xrightarrow{\mathcal D}\mathcal P(\lambda), proved with characteristic functions in 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 → (the Poisson CF is in 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 →). Here λ=np=1000⋅0.005=5,\lambda=np=1000\cdot0.005=5, and with Y∼P(5)Y\sim\mathcal P(5), whose density is P(Y=k)=e−55kk!P(Y=k)=e^{-5}\dfrac{5^k}{k!}, P(X>5)≃P(Y>5)=1−P(Y≤5)=1−e−5∑k=055kk!.P(X>5)\simeq P(Y>5)=1-P(Y\le5)=1-e^{-5}\sum_{k=0}^{5}\frac{5^k}{k!}. Numerical values (not required, since the text asks to leave the sums indicated): the exact binomial sum gives P(X>5)=0.384039P(X>5)=0.384039 and the Poisson sum gives P(Y>5)=0.384039P(Y>5)=0.384039 (the two differ only in the seventh decimal), so the approximation is excellent. A Monte Carlo simulation with 2⋅1062\cdot10^6 samples of XX gives 0.38410.3841.

Typical mistakes: writing ∑k=04\sum_{k=0}^{4} for the complement of X>5X>5 (the complement of {X>5}\{X>5\} is {X≤5}\{X\le5\}, which includes k=5k=5); using n=2000n=2000 (the number of females is 10001000); using λ=0.005\lambda=0.005 instead of λ=np=5\lambda=np=5.

Exercise 3 (points 6 = 3+3)

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 that quantifies the gain (or loss).

(a) Determine the discrete density of XX.

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

Show the result

(a) XX takes the values −2,1,4-2,1,4 with pX(−2)=949,pX(1)=2449,pX(4)=1649p_X(-2)=\frac{9}{49},\qquad p_X(1)=\frac{24}{49},\qquad p_X(4)=\frac{16}{49} (3 points).

(b) E(X)=107E(X)=\dfrac{10}{7} and Var(X)=21649≃4.41\text{Var}(X)=\dfrac{216}{49}\simeq4.41 (3 points).

Show the full solution

(a) Let YY be the number of black balls drawn in the 2 draws. Since the draws are with replacement, the composition of the urn is the same at each draw and the two draws are independent; each is black with probability p=814=47p=\frac{8}{14}=\frac47. Therefore YY is the number of successes in 22 independent trials with probability 47\frac47, i.e. Y∼Bin(2,47)Y\sim\text{Bin}\big(2,\tfrac47\big) (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 →): pY(k)=(2k)(47)k(37)2−k,pY(0)=949,  pY(1)=2⋅1249=2449,  pY(2)=1649.p_Y(k)=\binom2k\Big(\frac47\Big)^k\Big(\frac37\Big)^{2-k},\qquad p_Y(0)=\frac{9}{49},\ \ p_Y(1)=2\cdot\frac{12}{49}=\frac{24}{49},\ \ p_Y(2)=\frac{16}{49}. With YY black balls there are 2−Y2-Y white balls, so the gain is X=2Y−(2−Y)=3Y−2,X=2Y-(2-Y)=3Y-2, a function of YY (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 →). The map y↦3y−2y\mapsto3y-2 is injective, so the values are distinct and the probabilities carry over: Y=0↦X=−2Y=0\mapsto X=-2, Y=1↦X=1Y=1\mapsto X=1, Y=2↦X=4Y=2\mapsto X=4: pX(−2)=949,pX(1)=2449,pX(4)=1649.p_X(-2)=\frac9{49},\qquad p_X(1)=\frac{24}{49},\qquad p_X(4)=\frac{16}{49}. Check: 9+24+1649=1\frac{9+24+16}{49}=1.

Typical mistake: using the product rule for a draw without replacement (probabilities 814⋅713\frac{8}{14}\cdot\frac{7}{13}, etc.). The text says with replacement, so the draws are independent and the denominator stays 1414.

(b) Use the properties of the expected value and of the variance for an affine function (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 →, 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)\text{Var}(aY+b)=a^2\text{Var}(Y). For Y∼Bin(n,p)Y\sim\text{Bin}(n,p): E(Y)=npE(Y)=np and Var(Y)=np(1−p)\text{Var}(Y)=np(1-p), here with n=2n=2, p=47p=\frac47: E(Y)=2⋅47=87,Var(Y)=2⋅47⋅37=2449.E(Y)=2\cdot\frac47=\frac87,\qquad \text{Var}(Y)=2\cdot\frac47\cdot\frac37=\frac{24}{49}. Hence E(X)=3E(Y)−2=247−2=107,Var(X)=9 Var(Y)=9⋅2449=21649.E(X)=3E(Y)-2=\frac{24}{7}-2=\frac{10}{7},\qquad \text{Var}(X)=9\,\text{Var}(Y)=9\cdot\frac{24}{49}=\frac{216}{49}. Check by definition: E(X)=−2⋅949+1⋅2449+4⋅1649=−18+24+6449=7049=107E(X)=-2\cdot\frac9{49}+1\cdot\frac{24}{49}+4\cdot\frac{16}{49}=\frac{-18+24+64}{49}=\frac{70}{49}=\frac{10}{7} and E(X2)=4⋅949+1⋅2449+16⋅1649=36+24+25649=31649E(X^2)=4\cdot\frac9{49}+1\cdot\frac{24}{49}+16\cdot\frac{16}{49}=\frac{36+24+256}{49}=\frac{316}{49}, so Var(X)=31649−10049=21649\text{Var}(X)=\frac{316}{49}-\frac{100}{49}=\frac{216}{49} ✓.

Note on the official solution. The official text stops at Var(X)=9⋅2449\text{Var}(X)=9\cdot\frac{24}{49} without computing the product; the value is 21649\frac{216}{49}. Nothing else is wrong there.

Typical mistake: writing Var(3Y−2)=3 Var(Y)−2\text{Var}(3Y-2)=3\,\text{Var}(Y)-2: the constant disappears and the factor is squared.

Exercise 4 (points 8 = 3+2+3)

Let XX be a random variable with density fX(t)=a t2 1(−a, 2a)(t).f_X(t)=a\,t^2\,\mathbb 1_{(-a,\,2a)}(t).

(a) Determine the value of the constant aa.

(b) Compute the distribution function FXF_X.

(c) Compute P(X>0)P(X>0) and P(X>a2 ∣ X>0)P\big(X>\tfrac a2\,\big|\,X>0\big).

Show the result

(a) a=3−1/4a=3^{-1/4}, that is a4=13a^4=\frac13 (3 points).

(b) FX(x)={0x<−aa3 (x3+a3)−a≤x<2a1x≥2aF_X(x)=\begin{cases}0&x<-a\\[2pt] \dfrac a3\,(x^3+a^3)&-a\le x<2a\\[4pt] 1&x\ge2a\end{cases} (2 points).

(c) P(X>0)=89P(X>0)=\dfrac89 and P(X>a2∣X>0)=6364P\big(X>\tfrac a2\mid X>0\big)=\dfrac{63}{64} (3 points).

Show the full solution

(a) A density must be non-negative: fX(t)=at2≥0f_X(t)=at^2\ge0 for t∈(−a,2a)t\in(-a,2a) forces a≥0a\ge0 (and a=0a=0 would make the interval empty and the integral zero, so a>0a>0). The normalisation condition ∫−∞+∞fX=1\int_{-\infty}^{+\infty}f_X=1 (see 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/DF relation, here in one variable) gives a∫−a2at2 dt=a⋅(2a)3−(−a)33=a⋅8a3+a33=3a4=1  ⟺  a4=13  ⟺  a=131/4.a\int_{-a}^{2a}t^2\,dt=a\cdot\frac{(2a)^3-(-a)^3}{3}=a\cdot\frac{8a^3+a^3}{3}=3a^4=1\iff a^4=\frac13\iff a=\frac1{3^{1/4}}. (We keep the positive root because a>0a>0.)

(b) By definition FX(x)=P(X≤x)=∫−∞xfX(t) dtF_X(x)=P(X\le x)=\int_{-\infty}^xf_X(t)\,dt (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 →). Three cases:

  • x<−ax<-a: the density is 00 on (−∞,x)(-\infty,x), so FX(x)=0F_X(x)=0.
  • −a≤x<2a-a\le x<2a: FX(x)=a∫−axt2 dt=a x3−(−a)33=a3 (x3+a3)F_X(x)=a\displaystyle\int_{-a}^{x}t^2\,dt=a\,\frac{x^3-(-a)^3}{3}=\frac a3\,(x^3+a^3).
  • x≥2ax\ge2a: all the mass is to the left of xx, so FX(x)=1F_X(x)=1. Consistency check: at x=2ax=2a the middle branch gives a3(8a3+a3)=3a4=1\frac a3(8a^3+a^3)=3a^4=1 ✓, and at x=−ax=-a it gives 00 ✓. FXF_X is continuous, as expected for an absolutely continuous random variable.

Using a4=13a^4=\frac13, the middle branch can also be written FX(x)=a3x3+19F_X(x)=\dfrac{a}{3}x^3+\dfrac19.

(c) First, P(X>0)=1−FX(0)=1−a3 a3=1−a43=1−19=89.P(X>0)=1-F_X(0)=1-\frac{a}{3}\,a^3=1-\frac{a^4}{3}=1-\frac19=\frac89. For the conditional probability use the definition (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 inclusion {X>a2}⊂{X>0}\{X>\frac a2\}\subset\{X>0\}, which gives {X>a2}∩{X>0}={X>a2}\{X>\frac a2\}\cap\{X>0\}=\{X>\frac a2\}: P(X>a2 ∣ X>0)=P(X>a2, X>0)P(X>0)=P(X>a2)P(X>0).P\Big(X>\frac a2\,\Big|\,X>0\Big)=\frac{P\big(X>\frac a2,\ X>0\big)}{P(X>0)}=\frac{P\big(X>\frac a2\big)}{P(X>0)}. Compute the numerator, noticing that 0<a2<2a0<\frac a2<2a so the middle branch of FXF_X applies: FX(a2)=a3(a38+a3)=a43⋅98=19⋅98=18,P(X>a2)=1−18=78.F_X\Big(\frac a2\Big)=\frac a3\Big(\frac{a^3}{8}+a^3\Big)=\frac{a^4}{3}\cdot\frac98=\frac19\cdot\frac98=\frac18,\qquad P\Big(X>\frac a2\Big)=1-\frac18=\frac78. Therefore P(X>a2 ∣ X>0)=7/88/9=78⋅98=6364.P\Big(X>\frac a2\,\Big|\,X>0\Big)=\frac{7/8}{8/9}=\frac{7}{8}\cdot\frac98=\frac{63}{64}. Remark (error in the official solution). The official solution writes P(X>a2)=1−38a4=79P\big(X>\frac a2\big)=1-\frac38a^4=\frac79. With a4=13a^4=\frac13 one has 1−38⋅13=1−18=781-\frac38\cdot\frac13=1-\frac18=\frac78, not 79\frac79. The final value 6364\frac{63}{64} in the official solution is correct, because it is consistent with 78\frac78 (with 79\frac79 one would get 7/98/9=78\frac{7/9}{8/9}=\frac78 instead).

Typical mistakes: forgetting that the density is zero outside (−a,2a)(-a,2a) and integrating from −∞-\infty; using FX(0)=0F_X(0)=0 by symmetry (the density t2t^2 is symmetric, but the support (−a,2a)(-a,2a) is not, so P(X≤0)=19≠12P(X\le0)=\frac19\neq\frac12); computing P(X>a2∣X>0)P(X>\frac a2\mid X>0) as P(X>a2)P(X>\frac a2) without dividing by P(X>0)P(X>0).

Checks. A script with sympy confirmed a=3−1/4a=3^{-1/4}, the distribution function, and the values 89\frac89, 78\frac78, 6364\frac{63}{64}; a Monte Carlo simulation of XX (inverse of FXF_X applied to uniform samples) gave frequencies 0.8890.889, 0.8750.875 and 0.9840.984.

Self-assessment grid
Exercise Points What must be in the answer for full marks Typical mistakes
1(a) 3 Decomposition A=(A∩B)∪(A∩Bc)A=(A\cap B)\cup(A\cap B^c) into disjoint events, additivity, use of P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B), factorisation P(A)P(Bc)P(A)P(B^c) Saying "it is obvious"; confusing independence with disjointness
1(b) 2 Subadditivity (or monotonicity plus inclusion-exclusion) and P≥0P\ge0 Writing P(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B) without justification
1(c) 3 Definition of conditional probability on each term, cancellation of P(A∩C)P(A\cap C) and P(Ac∩C)P(A^c\cap C), partition B∩C=(B∩C∩A)∪(B∩C∩Ac)B\cap C=(B\cap C\cap A)\cup(B\cap C\cap A^c) and additivity Not stating that the hypotheses make the conditionings defined; dropping CC from the conditioning
2(a) 3 Events A,F,MA,F,M with the right conditional probabilities; law of total probability; 0.00450.0045 Wrong weights; treating 0.4%0.4\% as 0.40.4
2(b) 3 Bayes' rule with P(A)P(A) from (a); 49≃0.444\frac49\simeq0.444 Computing P(A∣M)P(A\mid M) instead of P(M∣A)P(M\mid A)
2(c) 3 X∼Bin(1000;0.005)X\sim\text{Bin}(1000;0.005); 1−∑k=051-\sum_{k=0}^5; λ=5\lambda=5; 1−e−5∑k=055kk!1-e^{-5}\sum_{k=0}^5\frac{5^k}{k!} Sum up to 44; n=2000n=2000; λ=0.005\lambda=0.005
3(a) 3 Y∼Bin(2,47)Y\sim\text{Bin}(2,\frac47), X=3Y−2X=3Y-2, the three values with probabilities 949,2449,1649\frac9{49},\frac{24}{49},\frac{16}{49} Draws treated as without replacement; missing the factor 22 for one black ball
3(b) 3 E(X)=107E(X)=\frac{10}7 and Var(X)=21649\text{Var}(X)=\frac{216}{49} with the affine rules Var(3Y−2)=3Var(Y)−2\text{Var}(3Y-2)=3\text{Var}(Y)-2
4(a) 3 a>0a>0; 3a4=13a^4=1; a=3−1/4a=3^{-1/4} Integrating the wrong interval; arithmetic slip in ∫−a2at2dt=3a3\int_{-a}^{2a}t^2dt=3a^3
4(b) 2 Three branches, with a3(x3+a3)\frac a3(x^3+a^3) in the middle and consistency at the ends Missing the branches 00 and 11; wrong lower limit −a-a
4(c) 3 P(X>0)=89P(X>0)=\frac89; definition of conditional probability with the inclusion; 78/89=6364\frac78\big/\frac89=\frac{63}{64} Not dividing by P(X>0)P(X>0); assuming symmetry of the density