16 problems found
Given a random variable \(X\) with mean \(\mu\) and standard deviation \(\sigma\), we define the kurtosis, \(\kappa\), of \(X\) by \[ \kappa = \frac{ \E\big((X-\mu)^4\big)}{\sigma^4} -3 \,. \] Show that the random variable \(X-a\), where \(a\) is a constant, has the same kurtosis as \(X\).
Solution: \begin{align*} &&\kappa_{X-a} &= \frac{\mathbb{E}\left(\left(X-a-(\mu-a)\right)^4\right)}{\sigma_{X-a}^4}-3 \\ &&&= \frac{\mathbb{E}\left(\left(X-\mu\right)^4\right)}{\sigma_X^4}-3\\ &&&= \kappa_X \end{align*}
The random variable \(X\) has probability density function \(f(x)\) (which you may assume is differentiable) and cumulative distribution function \(F(x)\) where \(-\infty < x < \infty \). The random variable \(Y\) is defined by \(Y= \e^X\). You may assume throughout this question that \(X\) and \(Y\) have unique modes.
Solution:
Solution:
A continuous random variable \(X\) has probability density function given by \[ \f(x) = \begin{cases} 0 & \mbox{for } x<0 \\ k\e^{-2 x^2} & \mbox{for } 0\le x< \infty \;,\\ \end{cases} \] where \(k\) is a constant.
Solution:
Fifty times a year, 1024 tourists disembark from a cruise liner at a port. From there they must travel to the city centre either by bus or by taxi. Tourists are equally likely to be directed to the bus station or to the taxi rank. Each bus of the bus company holds 32 passengers, and the company currently runs 15 buses. The company makes a profit of \(\pounds\)1 for each passenger carried. It carries as many passengers as it can, with any excess being (eventually) transported by taxi. Show that the largest annual licence fee, in pounds, that the company should consider paying to be allowed to run an extra bus is approximately \[ 1600 \Phi(2) - \frac{800}{\sqrt{2\pi}}\big(1- \e^{-2}\big)\,, \] where \(\displaystyle \Phi(x) =\dfrac1{\sqrt{2\pi}} \int_{-\infty}^x \e^{-\frac12t^2}\d t\,\). You should not consider continuity corrections.
Solution: The the number of people being directed towards the buses (each cruise) is \(X \sim B(1024, \tfrac12) \approx N(512, 256) \approx 16Z + 512\). Therefore without an extra bus, the expected profit is \(\mathbb{E}[\min(X, 15 \times 32)]\). With the extra bus, the extra profit is \(\mathbb{E}[\min(X, 16 \times 32)]\), therefore the expected extra profit is: \(\mathbb{E}[\min(X, 16 \times 32)]-\mathbb{E}[\min(X, 15 \times 32)] = \mathbb{E}[\min(X, 16 \times 32)-\min(X, 15 \times 32)] \) \begin{align*} \text{Expected extra profit} &= \mathbb{E}[\min(X, 16 \times 32)-\min(X, 15 \times 32)] \\ &= \mathbb{E}[\min(16Z+512, 16 \times 32)-\min(16Z+512, 15 \times 32)] \\ &= 16\mathbb{E}[\min(Z+32, 32)-\min(Z+32, 30)] \\ &=16\int_{-\infty}^{\infty} \left (\min(Z+32, 32)-\min(Z+32, 30) \right)p_Z(z) \d z \\ &= 16 \left ( \int_{-2}^{0} (z+32-30) p_Z(z) \d z + \int_0^\infty (32-30)p_Z(z) \d z \right) \\ &= 16 \left ( \int_{-2}^{0} (z+2) p_Z(z) \d z + \int_0^\infty 2p_Z(z) \d z \right) \\ &= 16 \left ( \int_{-2}^{0} zp_Z(z) \d z + 2\int_{-2}^\infty p_Z(z) \d z \right) \\ &= 16 \left ( \int_{-2}^{0} z \frac{1}{\sqrt{2\pi}} e^{-\frac12 z^2} \d z + 2(1-\Phi(2)) \right) \\ &= 32(1-\Phi(2)) + \frac{16}{\sqrt{2\pi}} \left [ -e^{-\frac12z^2} \right]_{-2}^0 \\ &= 32(1-\Phi(2)) - \frac{16}{\sqrt{2\pi}} \left ( 1-e^{-2}\right) \end{align*} Across \(50\) different runs, this profit is \[ 1600(1-\Phi(2)) - \frac{800}{\sqrt{2\pi}} \left ( 1-e^{-2}\right) \]
The random variable \(X\) has mean \(\mu\) and standard deviation \(\sigma\). The distribution of \(X\) is symmetrical about \(\mu\) and satisfies: \[\P \l X \le \mu + \sigma \r = a \mbox{ and } \P \l X \le \mu + \tfrac{1}{ 2}\sigma \r = b\,,\] where \(a\) and \(b\) are fixed numbers. Do not assume that \(X\) is Normally distributed.
Solution:
The probability density function \(\f(x)\) of the random variable \(X\) is given by $$\f(x) = k\left[{\phi}(x) + {\lambda}\g(x)\right]$$ where \({\phi}(x)\) is the probability density function of a normal variate with mean 0 and variance 1, \(\lambda \) is a positive constant, and \(\g(x)\) is a probability density function defined by \[ \g(x)= \begin{cases} 1/\lambda & \mbox{for \(0 \le x \le {\lambda}\)}\,;\\ 0& \mbox{otherwise} . \end{cases} \] Find \(\mu\), the mean of \(X\), in terms of \(\lambda\), and prove that \(\sigma\), the standard deviation of \(X\), satisfies. $$\sigma^2 = \frac{\lambda^4 +4{\lambda}^3+12{\lambda}+12} {12(1 + \lambda )^2}\;.$$ In the case \(\lambda=2\):
Solution: \begin{align*} && 1 &= \int_{-\infty}^{\infty} f(x) \d x \\ &&&= k[1 + \lambda] \\ \Rightarrow && k &= \frac{1}{1+\lambda} \\ \\ && \mu &= \int_{-\infty}^\infty x f(x) \d x \\ &&&= k \int_{-\infty}^\infty x \phi(x) \d x + k \lambda \int_{-\infty}^{\infty} x g(x) \d x \\ &&&= k \cdot 0 + k \lambda \cdot \frac{\lambda}{2} \\ &&&= \frac{\lambda^2}{2(1+\lambda)} \\ \\ && \E[X^2] &= \int_{-\infty}^\infty x^2 f(x) \d x \\ &&&= k \int_{-\infty}^\infty x^2 \phi(x) \d x + k \lambda \int_{-\infty}^{\infty} x^2 g(x) \d x \\ &&&= k \cdot 1 + k \lambda \int_0^{\lambda} \frac{x^2}{\lambda} \d \lambda \\ &&&= k + \frac{k \lambda^3}{3} \\ &&&= \frac{3+\lambda^3}{3(1+\lambda)} \\ && \var[X] &= \frac{3+\lambda^3}{3(1+\lambda)} - \frac{\lambda^4}{4(1+\lambda)^2} \\ &&& = \frac{(3+\lambda^3)4(1+\lambda) - 3\lambda^4}{12(1+\lambda)^2} \\ &&&= \frac{\lambda^4+4\lambda^3+12\lambda + 12}{12(1+\lambda)^2} \end{align*}
In this question, \(\Phi(z)\) is the cumulative distribution function of a standard normal random variable. A random variable is known to have a Normal distribution with mean \(\mu\) and standard deviation either \(\sigma_0\) or \(\sigma_1\), where \(\sigma_0 < \sigma_1\,\). The mean, \(\overline{X}\), of a random sample of \(n\) values of \(X\) is to be used to test the hypothesis \(\mathrm{H}_0: \sigma = \sigma_0\) against the alternative \(\mathrm{H}_1: \sigma = \sigma_1\,\). Explain carefully why it is appropriate to use a two sided test of the form: accept \(\mathrm{H}_0\) if \(\mu - c < \overline{X} < \mu+c\,\), otherwise accept \(\mathrm{H}_1\). Given that the probability of accepting \(\mathrm{H}_1\) when \(\mathrm{H}_0\) is true is \(\alpha\), determine \(c\) in terms of \(n\), \(\sigma_0\) and \(z_{\alpha}\), where \(z_\alpha \) is defined by \(\displaystyle\Phi(z_{\alpha}) = 1 - \tfrac{1}{2}\alpha\). The probability of accepting \(\mathrm{H}_0\) when \(\mathrm{H}_1\) is true is denoted by \(\beta\). Show that \(\beta\) is independent of \(n\). Given that \(\Phi(1.960)\approx 0.975\) and that \(\Phi(0.063) \approx 0.525\,\), determine, approximately, the minimum value of \(\displaystyle \frac{\sigma_1}{\sigma_0}\) if \(\alpha\) and \(\beta\) are both to be less than \(0.05\,\).
Solution: If \(\sigma\) is smaller we should expect our sample to have a mean closer to the true mean. Therefore we should use a two sided test which accepts \(\mathrm{H}_0\) if the mean is very close to the true mean. Suppose \(\textrm{H}_0\) is true, ie \(\sigma = \sigma_0\), then note that \(X \sim N(\mu, \frac{\sigma_0^2}{n})\) \begin{align*} && 1-\alpha &= \mathbb{P}(\mu - c < X < \mu + c) \\ &&&= \mathbb{P}(\mu - c < \frac{\sigma_0}{\sqrt{n}} Z + \mu < \mu + c) \\ &&&= \mathbb{P}(- \frac{c\sqrt{n}}{\sigma_0} < Z<\frac{\sqrt{n}c}{\sigma_0}) \\ &&&= \mathbb{P}(Z<\frac{\sqrt{n}c}{\sigma_0}) -\mathbb{P}( Z<-\frac{\sqrt{n}c}{\sigma_0}) \\ &&&= \mathbb{P}(Z<\frac{\sqrt{n}c}{\sigma_0}) -(1-\mathbb{P}( Z<\frac{\sqrt{n}c}{\sigma_0})) \\ &&&= 2\mathbb{P}(Z<\frac{\sqrt{n}c}{\sigma_0})-1 \\ \Rightarrow && \Phi(\frac{\sqrt{n}c}{\sigma_0})&=1 - \tfrac12 \alpha \\ \Rightarrow && \frac{\sqrt{n}c}{\sigma_0} &= z_{\alpha} \\ && c &= \frac{\sigma_0 z_{\alpha}}{\sqrt{n}} \end{align*} Under \(\mathrm{H}_1\), \(\sigma = \sigma_1\) so \begin{align*} && \beta &= \mathbb{P}(\mu - c < X < \mu + c) \\ &&&= \mathbb{P}(-\frac{c\sqrt{n}}{\sigma_1} < Z < \frac{\sqrt{n}c}{\sigma_1}) \\ &&&= \mathbb{P}(-\frac{\sigma_0}{\sigma_1} z_{\alpha}< Z < \frac{\sigma_0}{\sigma_1} z_{\alpha}) \\ &&&= 2\Phi(\frac{\sigma_0}{\sigma_1} z_{\alpha})-1 \end{align*} which does not depend on \(n\). Suppose both \(\alpha<0.05\) and \(\beta<0.05\), then \(z_{\alpha} > 1.96\) and \(\Phi(\frac{\sigma_0}{\sigma_1}1.96)<0.525 \Rightarrow \frac{\sigma_0}{\sigma_1}1.96 < 0.063 \Rightarrow \frac{\sigma_1}{\sigma_0} > \frac{1.96}{0.063} = 31.1 \) so the ratio of variances needs to be larger than \(31.1\).
Tabulated values of \({\Phi}(\cdot)\), the cumulative distribution function of a standard normal variable, should not be used in this question. Henry the commuter lives in Cambridge and his working day starts at his office in London at 0900. He catches the 0715 train to King's Cross with probability \(p\), or the 0720 to Liverpool Street with probability \(1-p\). Measured in minutes, journey times for the first train are \(N(55,25)\) and for the second are \(N(65,16)\). Journey times from King's Cross and Liverpool Street to his office are \(N(30,144)\) and \(N(25,9)\), respectively. Show that Henry is more likely to be late for work if he catches the first train. Henry makes \(M\) journeys, where \(M\) is large. Writing \(A\) for \(1-{\Phi}(20/13)\) and \(B\) for \(1-{\Phi}(2)\), find, in terms of \(A\), \(B\), \(M\) and \(p\), the expected number, \(L\), of times that Henry will be late and show that for all possible values of \(p\), $$BM \le L \le AM.$$ Henry noted that in 3/5 of the occasions when he was late, he had caught the King's Cross train. Obtain an estimate of \(p\) in terms of \(A\) and \(B\). [A random variable is said to be \(N\left({{\mu}, {\sigma}^2}\right)\) if it has a normal distribution with mean \({\mu}\) and variance \({\sigma}^2\).]
Solution: If Henry catches the first train, his journey time is \(N(55+30,25+144) = N(85,13^2)\). He is on time if the journey takes less than \(105\) minutes, \(\frac{20}{13}\) std above the mean. If he catches the second train, his journey times is \(N(65+25, 16+9) = N(90, 5^2)\). He is on time if his journey takes less than \(80\) minutes, ie \(\frac{10}{5} = 2\) standard deviations above the mean. This is more likely than from the first train. \(A = 1 - \Phi(20/13)\) is the probability he is late from the first train. \(B = 1 - \Phi(2)\) is the probability he is late from the second train. The expected number of lates is \(L = M \cdot p \cdot A + M \cdot (1-p) \cdot B\), since \(B \leq A\) we must have \(BM \leq L \leq AM\) \begin{align*} && \frac35 &= \frac{pA}{pA + (1-p)B} \\ \Rightarrow && 3(1-p)B &= 2pA \\ \Rightarrow && p(2A+3B) &= 3B \\ \Rightarrow && p &= \frac{3B}{2A+3B} \end{align*}
Solution:
Suppose \(X\) is a random variable with probability density \[ \mathrm{f}(x)=Ax^{2}\exp(-x^{2}/2) \] for \(-\infty < x < \infty.\) Find \(A\). You belong to a group of scientists who believe that the outcome of a certain experiment is a random variable with the probability density just given, while other scientists believe that the probability density is the same except with different mean (i.e. the probability density is \(\mathrm{f}(x-\mu)\) with \(\mu\neq0\)). In each of the following two cases decide whether the result given would shake your faith in your hypothesis, and justify your answer.
Solution: Let \(Z \sim N(0,1)\), with a pdf of \(f(x) = \frac{1}{\sqrt{2\pi}} \exp(-x^2/2)\) \begin{align*} && 1 &= \int_{-\infty}^\infty Ax^2 \exp(-x^2/2) \d x \\ &&&= A\sqrt{2\pi} \int_{-\infty}^\infty x^2 \frac{1}{\sqrt{2\pi}} \exp(-x^2/2) \d x \\ &&&= A\sqrt{2\pi} \E[Z^2] = A\sqrt{2\pi} \\ \Rightarrow && A &= \frac{1}{\sqrt{2\pi}} \end{align*}
The random variables \(X\) and \(Y\) are independently normally distributed with means 0 and variances 1. Show that the joint probability density function for \((X,Y)\) is \[ \mathrm{f}(x,y)=\frac{1}{2\pi}\mathrm{e}^{-\frac{1}{2}(x^{2}+y^{2})}\qquad-\infty < x < \infty,-\infty < y < \infty. \] If \((x,y)\) are the coordinates, referred to rectangular axes, of a point in the plane, explain what is meant by saying that this density is radially symmetrical. The random variables \(U\) and \(V\) have a joint probability density function which is radially symmetrical (in the above sense). By considering the straight line with equation \(U=kV,\) or otherwise, show that \[ \mathrm{P}\left(\frac{U}{V} < k\right)=2\mathrm{P}(U < kV,V > 0). \] Hence, or otherwise, show that the probability density function of \(U/V\) is \[ \mathrm{g}(k)=\frac{1}{\pi(1+k^{2})}\qquad-\infty < k < \infty. \]
The time taken for me to set an acceptable examination question it \(T\) hours. The distribution of \(T\) is a truncated normal distribution with probability density \(\f\) where \[ \mathrm{f}(t)=\begin{cases} \dfrac{1}{k\sigma\sqrt{2\pi}}\exp\left(-\dfrac{1}{2}\left(\dfrac{t-\sigma}{\sigma}\right)^{2}\right) & \mbox{ for }t\geqslant0\\ 0 & \mbox{ for }t<0. \end{cases} \] Sketch the graph of \(\f(t)\). Show that \(k\) is approximately \(0.841\) and obtain the mean of \(T\) as a multiple of \(\sigma\). Over a period of years, I find that the mean setting time is 3 hours.
Let \(X\) be a standard normal random variable. If \(M\) is any real number, the random variable \(X_{M}\) is defined in terms of \(X\) by \[ X_{M}=\begin{cases} X & \mbox{if }X < M,\\ M & \mbox{if }X\geqslant M. \end{cases} \] Show that the expectation of \(X_{M}\) is given by \[ \mathrm{E}(X_{M})=-\phi(M)+M(1-\Phi(M)), \] where \(\phi\) is the probability density function, and \(\Phi\) is the cumulative distribution function of \(X\). Fifty times a year, 1024 tourists disembark from a cruise liner at the port of Slaka. From there they must travel to the capital either by taxi or by bus. Officials of HOGPo are equally likely to direct a tourist to the bus station or to the taxi rank. Each bus of the bus coorperative holds 31 passengers, and the coorperative currently runs 16 buses. The bus coorperative makes a profit of 1 vloska for each passenger carried. It carries all the passengers it can, with any excess being (eventually) transported by taxi. What is the largest annual bribe the bus coorperative should consider paying to HOGPo in order to be allowed to run an extra bus?
Solution: Let \(X \sim N(0,1)\), and $\displaystyle X_{M}=\begin{cases} X & \text{if }X < M,\\ M & \text{if }X\geqslant M. \end{cases} $. Then we can calculate: \begin{align*} \mathbb{E}[X_M] &= \int_{-\infty}^M xf_X(x)\,dx + M\mathbb{P}(X \geq M) \\ &= \int_{-\infty}^M x \frac1{\sqrt{2\pi}}e^{-\frac12x^2}\,dx + M\mathbb{P}(X \geq M) \\ &= \left [ -\frac{1}{\sqrt{2\pi}}e^{-\frac12x^2} \right ]_{-\infty}^M + M (1-\mathbb{P}(X < M)) \\ &= -\phi(M) + M(1-\Phi(M)) \end{align*} Let \(B \sim B\left (1024, \frac12 \right)\) be the number of potential bus passengers. Then \(B \approx N(512, 256) = N(512, 16^2)\) which is a good approximation since both \(np\) and \(nq\) are large. The question is asking us, how much additional profit would the bus company get if they ran an additional bus. Currently each week they is (on average) \(512\) passengers worth of demand, but they can only supply \(496\) seats, so we should expect that there is demand for another bus. The question is how much that demand is worth. Using the first part of the question, we can see that their profit is something like a `capped normal', \(X_M\), except we are scaled and with a different cap. So we are interested in $\displaystyle Y_{M}=\begin{cases} B & \mbox{if }B< M,\\ M & \mbox{if }B\geqslant M. \end{cases}\(, but since \)B \approx N\left (512,16^2\right)$ this is similar to \begin{align*} Y_{M}&=\begin{cases} 16X+512 & \mbox{if }16X+512< M,\\ M & \mbox{if }16X+512\geq M. \end{cases} \\ &= \begin{cases} 16X+512 & \mbox{if }X< \frac{M-512}{16},\\ M & \mbox{if }X \geq \frac{M-512}{16}. \end{cases} \\ &= 16X_{\frac{M-512}{16}} + 512\end{align*} We are interested in \(\mathbb{E}[Y_{16\times31}]\) and \(\mathbb{E}[Y_{17\times31}]\), which are \(16\mathbb{E}[X_{-1}]+512\) and \(16\mathbb{E}[Y_{\frac{15}{16}}]+512\) Since \(\frac{15}{16} \approx 1\), lets look at \(16(\mathbb{E}[X_1] - \mathbb{E}[X_{-1}])\) \begin{align*} \mathbb{E}[X_1] - \mathbb{E}[X_{-1}] &= \left ( -\phi(1) + 1-\Phi(1)\right) - \left ( - \phi(-1) -(1 - \Phi(-1)) \right ) \\ &= -\phi(1) + \phi(-1) + 1-\Phi(1) + 1 - \Phi(-1) \\ &= 1 - \Phi(1) + \Phi(1) \\ &= 1 \end{align*} Therefore the extra \(31\) will fill roughly \(16\) of them. (This is a slight overestimate, which is worth bearing in mind). A better approximation might be that \(\mathbb{E}[X_t] - \mathbb{E}[X_{-1}] = \frac{t +1}{2}\) for \(t \approx 1\), (since we want something increasing). This would give us an approximation of \(15.5\), which is very close to the `true' answer. Therefore, over \(50\) bus runs, we should earn roughly \(800\) vloska extra from an additional bus. (Again an overestimate, and with an uncertain pay-off, they should consider offering maybe \(600\)). Since this is the future, we can quite easily calculate the exact values using the binomial distribution on a computer. This gives the true value as \(15.833\), and so they should pay up to \(791\)