$$ \require{cancel} \newcommand{\given}{ \,|\, } \renewcommand{\vec}[1]{\mathbf{#1}} \newcommand{\vecg}[1]{\boldsymbol{#1}} \newcommand{\mat}[1]{\mathbf{#1}} \newcommand{\bbone}{\unicode{x1D7D9}} $$

Tutorial 5, Week 10

Download as PDF

Q1

In an example in lectures we showed showed how to inverse transform sample from a standard Cauchy distribution, and used these samples to rejection sample from a standard Normal distribution. We will try another approach to sample standard Normals here.

  1. The standard Laplace distribution (sometimes called the double exponential distribution) has pdf: \[\tilde{f}(x) = \frac{1}{2} \exp(-|x|) \quad \forall\,x \in \mathbb{R}\] Derive an inverse transform sampling scheme to generate simulations from this distribution.

  2. If \(f(x)\) is the pdf of a standard Normal distribution, show \(\exists \ c < \infty\) such that \[f(x) \le c \tilde{f}(x) \ \forall\ x\in\mathbb{R}\] and find the smallest such \(c\).

  3. Write down the steps to produce a rejection sampled simulation from a standard Normal distribution via an inverse transform sampled standard Laplace simulation.

  4. In lectures, the standard Cauchy distribution had \(c \approx 1.521\) when used to rejection sample standard Normals. In light of your analysis, would you favour simulation via the standard Cauchy or standard Laplace and why? How much better is your choice than the alternative.

Q2

Let \(X\) be a random variable on \(\mathbb{R}\) with cdf \(F(\cdot)\). The so-called truncated version of a random variable arises when we restrict the support of \(X\) to some range \(X \in [a,b] \subset \mathbb{R}\). In other words, it is the random variable \((X \given a \le X \le b)\)

  1. Prove that the cdf of the truncated random variable is: \[ \mathbb{P}(X \le x \given a \le X \le b) = \begin{cases} 0 & \text{if } x < a \\[5pt] \displaystyle \frac{F(x) - F(a)}{F(b)- F(a)} & \text{if } a \le x \le b \\[5pt] 1 & \text{if } x > b \end{cases} \]

  2. Hence or otherwise, find an inverse transform sampler for any truncated distribution in terms of \(F(\cdot)\).

  3. Write down an inverse sampler for an Exponential distribution truncated to \([1, \infty)\)

  4. Does the result in (c) confirm any properties of the Exponential distribution?