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 . The probability that a component comes from is , from is and from is . The probabilities that a component is defective, conditional on the supplier, are respectively 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 "the first component is defective" and "the second component is defective" are independent.
Leave the fractions indicated without carrying out the calculations.
Show the result
(a) .
(b) , , and : the events are not independent.
Show the full solution
Set-up. The supplier is chosen first (probabilities ), then the two components come from that same supplier. Write , , 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 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 →: where "exactly one of the two is defective". Given supplier , 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 , success probability , so exactly one defective has probability (two positions for the defective one: the factor 2 is the classic thing to forget). Hence Simplify each term: The common denominator is : , , , and
(b) Independence of means (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: . By symmetry as well (the second component has the same law as the first).
Joint: given the supplier, the two defects are independent, so , and so on:
Comparison: , while . They differ, so are not independent; in fact . Intuition: finding a defective component makes it more likely that the supplier is a bad one (, say), which raises the chance that the second component is defective too.
Typical mistakes. Writing "because the components are independent" (they are independent only conditionally on the supplier); forgetting the factor 2 in (a); computing as a plain average of the three probabilities instead of weighting with .
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 be the random variable describing the winnings (or loss).
(a) (2 points) Determine the discrete density of .
(b) (2 points) Compute the expected value and the variance of .
Show the result
(a) Alphabet with , , .
(b) , .
Show the full solution
(a) Let be the number of black balls in the 2 draws. The draws are with replacement, hence independent, and each draw is black with probability . So (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 blacks there are whites, so the winnings are gives (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 →): Check: .
(b) For the binomial, and . 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 →): and (the constant does not change the spread, and enters squared): Direct check with the density: and , so .
Typical mistakes. Treating the draws as without replacement (hypergeometric); writing or instead of .
Exercise 3 (points 7)
Let and be independent random variables with geometric distribution .
(a) (2 points) Compute the probability of the event .
(b) (2 points) Compute the expected value of the random variable .
(c) (3 points) Let . Determine the alphabet of and its discrete density.
Show the result
(a) and .
(b) .
(c) Alphabet and for .
Show the full solution
Geometric convention (the one of the course): counts the trial of the first success, alphabet and (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 , so .
(a) The mean of a geometric is . The tail is for integer (the first trials are all failures). Hence Direct check: . (Do not confuse with .)
(b) with , 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 →) : (Combine the two powers: .) This is a geometric series with ratio , so it converges, and starting at : Equivalently . Trap: ; in general unless is affine.
(c) Alphabet. are integers, so takes every integer value , and the value is attained (e.g. , ). Alphabet: .
Density. For split according to the value of ( with , and then forces ). By total probability on the partition (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 →): where the last step uses the independence of and (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 does not change the law of . Insert : The terms do not depend on , so the sum is just equal terms. Check that it is a density: (using , which equals for ). Typical mistakes. Letting run from or up to (the geometric has no mass at ); using the other geometric convention (support from ), which would shift the alphabet.
Exercise 4 (points 6)
Let be a random variable with density Define also .
(a) (2 points) Determine the constant and the distribution function .
(b) (2 points) Compute the expected value and the characteristic function of .
(c) (2 points) Determine the density of and compute .
Show the result
(a) and
(b) ; for , , and .
(c) and .
Show the full solution
(a) A density must integrate to (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): (Also on , as required.) The distribution function is . For it is ; for for it is .
(b) Expected value: 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 for the imaginary unit, here as on the exam sheet): . For the integrand is and , as always. For we need two integrals: and, by parts (derivative of , antiderivative of ), Adding up and multiplying by gives the stated formula. It can be simplified, using : Consistency checks (done by script): the limit as is , and , as the moment property of the CF requires.
(c) takes values in , so 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 , since is increasing on , with for and for . Differentiating (chain rule): and elsewhere. (Check: .) For the probability, The same value from : .
Typical mistakes. Forgetting the Jacobian factor in ; computing (that is the density of , not of ); leaving the integral from to of without the by-parts boundary term.
Exercise 5 (points 6)
Let be a Gaussian random vector with mean and covariance matrix (a) (2 points) Write the joint density of .
(b) (2 points) Determine the law of and compute .
(c) (2 points) Compute and the correlation coefficient .
Show the result
(a) with , .
(b) and .
(c) and .
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 with invertible has density
(a) , so is invertible and the density exists, with . The inverse of a matrix swaps the diagonal entries and changes the sign of the off-diagonal ones, dividing by the determinant: With , the quadratic form is (the cross term appears twice: ). Therefore
(b) 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 →): (The cross term is .) So , standard deviation . Standardize with : (The exam leaves the answer as ; 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 .)
(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 →): Hence : and are uncorrelated. Remark beyond what is asked: since is itself a Gaussian vector (a linear image of ), uncorrelated here does imply independent. This holds only for jointly Gaussian variables.
Typical mistakes. Forgetting the square on the coefficient (); using and in the wrong positions of ; writing the density with missing or with instead of in the exponent; dividing by the variance instead of the standard deviation when standardizing.
Exercise 6 (points 4)
Let be a sequence of random variables such that, for every , (a) (2 points) Study the convergence in distribution and in probability of .
(b) (2 points) Study the convergence in mean, that is in , and in mean square, that is in .
Show the result
(a) in probability, hence also in distribution.
(b) in (since ), but does not converge in (since for every ).
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 .
(a) In probability. The natural candidate is the constant , because with probability . Fix . If then , so and (For the probability is at most , which does not matter for the limit.) Hence . In distribution: convergence in probability implies convergence in distribution, so . Directly: the distribution function of is for , for and for ; for every fixed , once we get , while for ; this is the distribution function of the constant at every (also at the jump point , where ).
(b) If converged in or to some , then it would also converge in probability to (by the implications), and limits in probability are almost surely unique, so a.s. It is therefore enough to test convergence to : So does not converge in to , hence (by the uniqueness argument) to nothing. This sequence is the standard example showing that convergence in does not imply convergence in , and convergence in probability does not imply convergence in : the rare, large value is enough to keep the second moment at . Convergence in 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 →): .
Typical mistakes. Claiming that does not converge in "because it does not converge to " without computing ; concluding convergence from convergence in probability; stopping at "" without noting that the limit must be (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 , result . (b) , with conditional independence given the supplier, and the comparison with concluding "not independent". | Using for the joint probability; missing factor 2; unweighted average of the defect rates. |
| 2 | 4 | (a) with and the three values with probabilities . (b) , . | Draws without replacement; . |
| 3 | 7 | (a) , . (b) LOTUS, geometric series of ratio , . (c) Alphabet and with the sum over justified by independence. | confused with ; ; wrong range of the index in the convolution. |
| 4 | 6 | (a) and the three-piece . (b) ; CF by two integrals (one by parts), for . (c) on via , and . | Missing Jacobian ; without the pieces and ; by-parts boundary term lost. |
| 5 | 6 | (a) , , density with prefactor and centred variables. (b) justified by Gaussianity of linear combinations, . (c) and . | or ; instead of in the exponent; wrong standardization. |
| 6 | 4 | (a) , so convergence to in probability, hence in distribution. (b) ( yes) and ( no), with the remark that the only possible limit is . | Believing that convergence in probability implies ; omitting the identification of the limit. |