Sheet 2
Sheet 2
Dr. A. Alpers
Tutorial in Week 2
Exercise 5. Let X1 , . . . , Xn be exponentially distributed random variables (i.e., their pdfs are
fXi (t) = λe−λt ) with λ = 0.2. Using matlabs exprnd command draw nTrials = 104 samples of
each Xi and plot a histogram of
(a) X1 and
√
(b) n · n1 ni=1 Xi − µ for n = 1, 5, and 30.
P
How do your plots compare with the results predicted by the central limit theorem?
Exercise 6. Let X be a standard Cauchy random variable, i.e., X has the pdf
1
fX (x) = , x ∈ R.
π(1 + x2 )
Exercise 7. Consider the random variable Y := e−X , where X is a random variable uniformly
distributed on the interval (0, 1). Give precise values of E[Y ] and var(Y ).
(b) Approximate the integral via direct Monte Carlo. Give plots of µ̂n and the (theoretical)
RMSE as a function of n.
Page 1 of 1