Probability Theory - Mock Exam 3
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 course in Italian (Calcolo delle Probabilità, Information Engineering, UniPD, academic year 2025-26): six exercises with the same points as the full exam of 24 June 2026 (5+4+7+6+6+4 = 32 points), the same mix of computations and short proofs, in the same order of topics. It is a simulation, not an exam given by the course. The exam sheets do not state the duration, so 2 hours is proposed here. Use it with no notes and no calculator: where the text says so, leave fractions, powers and values of (the distribution function of the standard normal ) unevaluated. Compare with the results only at the end, then read the solutions and the grid.
Two differences from the model exam, because of the topics available in the notes of this course: the stochastic process of Exercise 5 is a stationary AR(1) process (the notes do not cover Poisson processes or Markov chains), and the conditional law in Exercise 3 is obtained from independence of jointly gaussian variables (the notes do not state the general conditional-gaussian formula).
Exercise 1 (points 5 = 2+3)
An urn contains 15 balls: 6 red, 4 green and 5 yellow. Four balls are drawn at random without replacement. Let be the number of red balls among the four drawn.
(a) Determine the discrete density of .
(b) Compute and the probability that all three colours appear among the four balls drawn.
Leave the results as fractions, without doing the numerical divisions.
Show the result
(a) and , that is
(b) ; .
Show the full solution
(a) Drawing 4 balls without replacement and without caring about the order means choosing a subset of 4 balls out of 15, all subsets being equally likely (see 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 → and Empirical and Equiprobable MeasuresProbability 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 number of possible samples is The sample has exactly red balls when we choose of the 6 red ones and of the non-red ones (green or yellow together): by the multiplication rule of 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 → there are such samples. Hence, for (this is the hypergeometric density of 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 →):
| number of samples | ||
|---|---|---|
| 0 | ||
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Check: , so the probabilities add up to 1. Typical error: using . The four draws are not independent (the composition of the urn changes after each draw), and the binomial would give .
(b) Write , where if the -th ball drawn is red and otherwise. By symmetry every position has the same probability of being red, (the first ball is red with probability , and in the same way the -th: nothing distinguishes the positions). By linearity of the expected value (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 →), which does not need independence, As a check, the definition gives .
For the colours: we draw 4 balls and there are 3 colours, so all colours appear exactly when one colour appears twice and the other two once each. Three disjoint cases:
- two red, one green, one yellow: ;
- two green, one red, one yellow: ;
- two yellow, one red, one green: .
The total is , hence Typical errors: forgetting one of the three cases; counting ordered sequences in the numerator but unordered samples in the denominator.
Exercise 2 (points 4 = 2+2)
Let and .
(a) Determine the distribution function and the density of , and compute .
(b) Compute and .
Show the result
(a) for and for ; ; .
(b) , .
Show the full solution
(a) We use the method of the distribution function (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 →). Since , we have for . For , the function is strictly increasing, so Differentiating, with and the chain rule, The event is , so . Typical error: forgetting the factor coming from the derivative of , or the factor .
(b) It is much simpler to use 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 → than to integrate : Complete the square in the exponent: . Then because the last integrand is the density of , whose integral is 1. In the same way, and , so . By the formula 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 →, Typical error: writing . In general .
Exercise 3 (points 7 = 2+2+3)
Let be a gaussian random vector with mean and covariance matrix (a) Write the joint density of and compute the correlation coefficient .
(b) Determine the law of and compute .
(c) Show that and are independent. Using this, determine the conditional law of given and compute .
Leave the values of unevaluated.
Show the result
(a) with , ; .
(b) ; .
(c) , so and are independent. and .
Show the full solution
(a) From 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 →: the density exists because is invertible. Here and (Swap the diagonal entries, change the sign of the off-diagonal ones, divide by the determinant.) With , the density is The correlation coefficient (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 →) is Typical error: putting instead of in the exponent, or forgetting that the normalizing constant uses , not .
(b) A linear combination of the components of a gaussian vector is gaussian (affine transformations, 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 →), so is gaussian and we only need its mean and variance (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 →): So . Standardizing, with and standard deviation , Typical error: forgetting the covariance term, or using the variance instead of the standard deviation when standardizing.
(c) The covariance is The vector is a linear transformation of , hence it is a gaussian vector; its components are uncorrelated, therefore they are independent (equivalence of uncorrelation and independence for gaussian vectors, in 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 →). Warning: this needs to be jointly gaussian, not only each of them gaussian.
Now . Fix . Since is independent of , conditioning on does not change the law of (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 → and 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 →); hence, given , In particular (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 →), and the conditional variance is smaller than , because knowing gives information on . For the conditional law is with standard deviation 2, so Typical error: answering , which ignores the information ; and are correlated, not independent.
Exercise 4 (points 6 = 2+2+2)
Let be a random number uniformly distributed in (that is, the sample space is with the length as probability) and, for , let (a) Show that in probability and in distribution.
(b) Show that almost surely, that is, for every outside a set of probability .
(c) Compute and . Does converge to in ? And in ?
Show the result
(a) For every : (for ), so , hence also .
(b) for every , and : almost sure convergence to .
(c) and : no convergence in , no convergence in .
Show the full solution
(a) Since , for and : because is uniform on and the threshold lies in (for ). Now since . Therefore for all , i.e. . Convergence in probability implies convergence in distribution (here, to the constant ): the distribution functions satisfy for and, for , ; this is the distribution function of the constant at every point , its continuity points.
(b) Fix . If , for all . If , the ratio of consecutive terms is so from some on the sequence decreases at least geometrically and tends to (equivalently, the exponential beats the polynomial ). The only point where convergence fails is , where ; but . Hence almost surely. A numerical illustration for : is , , , , for : it first grows and then collapses.
(c) By the fundamental theorem for the expected value (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 →), If in we would have (convergence in implies convergence of the means); but . So there is no convergence in , and therefore none in either (since ; indeed ). Conclusion: almost sure convergence (and convergence in probability) does not imply convergence in the mean. The mass of does not disappear: it is concentrated on the shrinking set where is close to , but there is huge. Typical error: concluding because "".
Exercise 5 (points 6 = 2+2+2)
Let be white gaussian noise of intensity , i.e. independent random variables , and let be independent of . Define the process (a) For which value of is weakly stationary? For that value, compute the mean and the autocorrelation function .
(b) With the value of found in (a), determine the law of and compute .
(c) Write the covariance matrix of . Show that and are independent and determine the law of .
Leave the values of unevaluated.
Show the result
(a) ; then and , i.e. , , .
(b) ; .
(c) ; and is gaussian, so independent; .
Show the full solution
(a) This is the AR(1) process of Basic Discrete-Time Processesfour standard discrete time second order processes built from white Gaussian noise (white noise itself, the Gaussian random walk, the moving average MA(1) and the autoregressive AR(1)) with their mean, autocorrelation and stationarity, followed by the effect of LTI filtering.Basic Discrete-Time Processes → with and . By induction is a linear combination of , which all have zero mean, so for all . Also is independent of and of the future noise. Squaring the recursion, The constant solution satisfies , i.e. . Subtracting, , so If , then depends on and the process is not weakly stationary (Weakly Stationary Processesa second order process is weakly stationary when its mean is constant and its autocorrelation depends only on the time difference; this note gives the equivalent conditions, consequences, symmetry of the autocorrelation, an example and the Toeplitz structure of covariance matrices.Weakly Stationary Processes →: must be constant). If , the mean is constant, the variance is constant, and the lemma of the notes gives which does not depend on : the process is weakly stationary. Explicitly and . Typical error: using without checking , or writing instead of for negative lags.
(b) The vector is a linear function of the independent gaussians , so it is a gaussian vector and is gaussian with mean and, using stationarity, Hence and, with standard deviation 2, Check: with independent of , so . Typical error: forgetting the term , i.e. treating and as independent.
(c) For equally spaced times the covariance matrix of a weakly stationary process is Toeplitz, (see Weakly Stationary Processesa second order process is weakly stationary when its mean is constant and its autocorrelation depends only on the time difference; this note gives the equivalent conditions, consequences, symmetry of the autocorrelation, an example and the Toeplitz structure of covariance matrices.Weakly Stationary Processes →), and : The covariance of and is The pair is a linear transformation of the gaussian vector , so it is gaussian; being uncorrelated, and are independent. The law of : gaussian with mean and So . This is no accident: is the noise, and the recursion says that the new noise is independent of the past.
Exercise 6 (points 4 = 2+2)
(a) Let be a random variable with density and . Prove that (b) Let be a random variable with for all . Using (a), compute and, applying (a) to , also and .
Show the result
(a) Proof: write , exchange the order of integration (non-negative integrand).
(b) , , .
Show the full solution
(a) Since , for and Write and substitute: The exchange of the two integrals is allowed because the integrand is non-negative (Tonelli's theorem; the order of integration of a non-negative function can be changed). Finally , which gives the formula. (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 → for the definition used in the first line.) Typical error: exchanging the integrals without changing the limits: for the inner integral over runs from to , not from .
(b) By (a), The variable is also non-negative, and for . Applying (a) to and substituting (), where we wrote . Then, by the formula of 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 →, Check with the density: , and , . Typical error: computing as or as .
Self-assessment grid
| Exercise | Points | What must be there for full marks | Typical errors |
|---|---|---|---|
| 1 | 5 | (a) 2: count of samples and , five probabilities that add to 1. (b) 3: (indicators or the sum), three cases for all colours, | Binomial instead of hypergeometric; ordered vs unordered counting; missing one of the three colour cases |
| 2 | 4 | (a) 2: for , density with , . (b) 2: LOTUS and completing the square, , | Factor or lost; |
| 3 | 7 | (a) 2: , , density with , . (b) 2: , . (c) 3: and jointly gaussian so independent (1); (1); (1) | in place of ; covariance term forgotten; variance instead of standard deviation; uncorrelated without joint gaussianity; instead of the conditional one |
| 4 | 6 | (a) 2: , and why distribution follows. (b) 2: pointwise limit on and the null set . (c) 2: , , no and no with the right argument | Thinking that forces ; forgetting the exceptional point |
| 5 | 6 | (a) 2: recursion for the variance, , why other values fail, . (b) 2: gaussian, variance with the covariance term, . (c) 2: Toeplitz matrix; with joint gaussianity; | instead of ; forgetting ; no check of the stationarity condition |
| 6 | 4 | (a) 2: , exchange of integrals justified by non-negativity, correct limits. (b) 2: , via , | Wrong limits after the exchange; computed with |