Problems

Filters
Clear Filters

5 problems found

2011 Paper 2 Q13
D: 1600.0 B: 1500.0

What property of a distribution is measured by its skewness?

  1. One measure of skewness, \(\gamma\), is given by \[ \displaystyle \gamma= \frac{ \E\big((X-\mu)^3\big)}{\sigma^3}\,, \] where \(\mu\) and \(\sigma^2\) are the mean and variance of the random variable \(X\). Show that \[ \gamma = \frac{ \E(X^3) -3\mu \sigma^2 - \mu^3}{\sigma^3}\,. \] The continuous random variable \(X\) has probability density function \(\f\) where \[ \f(x) = \begin{cases} 2x & \text{for } 0\le x\le 1\,, \\[2mm] 0 & \text{otherwise}\,. \end{cases} \] Show that for this distribution \(\gamma= -\dfrac{2\sqrt2}{5}\).
  2. The decile skewness, \(D\), of a distribution is defined by \[D= \frac { {\rm F}^{-1}(\frac9{10}) - 2{\rm F} ^{-1}(\frac12) + {\rm F}^{-1} (\frac1{10}) } {{\rm F}^{-1}(\frac9{10}) - {\rm F} ^{-1} (\frac1{10})}\,, \] where \({\rm F}^{-1}\) is the inverse of the cumulative distribution function. Show that, for the above distribution, \( D= 2 -\sqrt5\,.\) The Pearson skewness, \(P\), of a distribution is defined by \[ P = \frac{3(\mu-M)}{\sigma} \,,\] where \(M\) is the median. Find \(P\) for the above distribution and show that \(D > P > \gamma\,\).


Solution: Skewness is a measure of the symmetry (specifically the lack-thereof) in the distribution. How much mass is there on one side rather than another.

  1. \(\,\) \begin{align*} && \gamma &= \frac{\E \left [ (X - \mu)^3 \right ]}{\sigma^3} \\ &&&= \frac{\E \left [ X^3 - 3\mu X^2 + 3\mu^2 X - \mu^3 \right ]}{\sigma^3} \\ &&&= \frac{\E [ X^3 ]- 3\mu \E[X^2] + 3\mu^2 \E[X] - \mu^3 }{\sigma^3} \\ &&&= \frac{\E [ X^3 ]- 3\mu (\mu^2 + \sigma^2) + 3\mu^2\cdot \mu- \mu^3 }{\sigma^3} \\ &&&= \frac{\E [ X^3 ]- 3\mu \sigma^2 - \mu^3 }{\sigma^3} \\ \end{align*} \begin{align*} && f(x) &= \begin{cases} 2x & \text{for } 0\le x\le 1\,, \\[2mm] 0 & \text{otherwise}\,. \end{cases} \\ && \E[X] &= \int_0^1 2x^2 \d x \\ &&&= \frac23 \\ && \E[X^2] &= \int_0^1 2x^3 \d x \\ &&&= \frac12 \\ && \E[X^3] &= \int_0^1 2x^4 \d x \\ &&&= \frac25 \\ \\ && \mu &= \frac23 \\ && \sigma^2 &= \frac12 - \frac49 = \frac{1}{18} \\ && \gamma &= \frac{\frac25 - 3 \cdot \frac23 \cdot \frac1{18} - \frac8{27}}{\frac{1}{54\sqrt2}} \\ &&&= -\frac{2\sqrt2}{5} \end{align*}
  2. First note that \(\displaystyle F(x) = \int_0^x 2t \d t = x^2\) for \(x \in [0,1]\). In particular, \(F^{-1}(x) = \sqrt{x}\), so \begin{align*} && D &= \frac { {\rm F}^{-1}(\frac9{10}) - 2{\rm F} ^{-1}(\frac12) + {\rm F}^{-1} (\frac1{10}) } {{\rm F}^{-1}(\frac9{10}) - {\rm F} ^{-1} (\frac1{10})} \\ &&&= \frac{\sqrt{\frac9{10}} - 2 \sqrt{\frac5{10}} + \sqrt{\frac1{10}}}{\sqrt{\frac9{10}}-\sqrt{\frac1{10}}} \\ &&&= \frac{3-2\sqrt5+1}{3 - 1} \\ &&&= \frac{4-2\sqrt5}{2} = 2-\sqrt5 \end{align*} \begin{align*} && P &= \frac{3(\mu - M)}{\sigma} \\ &&&= \frac{3(\frac23 - \sqrt{\frac12})}{\frac{1}{3\sqrt2}} \\ &&&= 6 \sqrt2 - 9 \end{align*} First we compare \(P\) and \(D\), \(6\sqrt2-9\) and \(2-\sqrt5\) \begin{align*} && D & > P \\ \Leftrightarrow && 2-\sqrt5 &> 6\sqrt2 - 9 \\ \Leftrightarrow && 11 -6\sqrt2 &> \sqrt 5 \\ \Leftrightarrow && (121 + 72 - 132\sqrt2) & > 5 \\ \Leftrightarrow && 188 & > 132\sqrt2 \\ \Leftrightarrow && 47 & > 33 \sqrt 2\\ \Leftrightarrow && 2209 & > 2178 \end{align*} also \begin{align*} && P &> \gamma \\ \Leftrightarrow && 6\sqrt2 - 9 &> -\frac{2\sqrt2}{5} \\ \Leftrightarrow && 30\sqrt2 - 45 & > -2\sqrt2 \\ \Leftrightarrow && 32 \sqrt 2 &> 45 \\ \Leftrightarrow && 2048 &> 2025 \end{align*}

2010 Paper 2 Q12
D: 1600.0 B: 1486.8

The continuous random variable \(X\) has probability density function \(\f(x)\), where \[ \f(x) = \begin{cases} a & \text {for } 0\le x < k \\ b & \text{for } k \le x \le 1\\ 0 & \text{otherwise}, \end{cases} \] where \(a > b > 0\) and \(0 < k < 1\). Show that \(a > 1\) and \(b < 1\).

  1. Show that \[ \E(X) = \frac{1-2b+ab}{2(a-b)}\,. \]
  2. Show that the median, \(M\), of \(X\) is given by \(\displaystyle M=\frac 1 {2a}\) if \(a+b\ge 2ab\) and obtain an expression for the median if \(a+b\le 2ab\).
  3. Show that \(M < \E(X)\,\).


Solution: \begin{align*} && 1 &= \int_0^1 f(x) \d x \\ &&&= ak + b(1-k) \\ &&&= b + (a-b)k \\ \Rightarrow && k &= \frac{1-b}{a-b} \\ \Rightarrow && b & < 1 \tag{\(0 < k, \,a > b\)} \\ && k &> 1 \\ \Rightarrow && a-b & > 1-b \\ \Rightarrow && a > 1 \end{align*}

  1. \(\,\) \begin{align*} && \E[X] &= \int_0^1 x \cdot f(x) \d x \\ &&&= \int_0^k ax \d x + \int_k^1 b x \d x \\ &&&= a \frac{k^2}{2} + b \frac{1-k^2}{2} \\ &&&= \frac12b + (a-b) \frac{(1-b)^2}{2(a-b)^2} \\ &&&= \frac{(1-b)^2+b(a-b)}{2(a-b)} \\ &&&= \frac{1-2b+ab}{2(a-b)} \end{align*}
  2. \(\,\) The median \(M\) satisfies \[\frac12 = \int_0^M f(x) \d x \] If \(ka = \frac{a-ab}{a-b} \leq \frac12 \Leftrightarrow 2a-2ab \leq a-b \Leftrightarrow a+b \leq 2ab\) then \(M > k\) otherwise \(M < k\). In the latter case: \begin{align*} && \frac12 &= Ma \\ \Rightarrow && M &= \frac{1}{2M} \end{align*} In the former case \begin{align*} && \frac12 &= ka + (M-k)b \\ &&&= k(a-b) + Mb \\ &&&= 1-b + M b \\ \Rightarrow && M &= 1-\frac1{2b} \end{align*}

2007 Paper 2 Q14
D: 1600.0 B: 1484.0

The random variable \(X\) has a continuous probability density function \(\f(x)\) given by \begin{equation*} \f(x) = \begin{cases} 0 & \text{for } x \le 1 \\ \ln x & \text{for } 1\le x \le k\\ \ln k & \text{for } k\le x \le 2k\\ a-bx & \text{for } 2k \le x \le 4k \\ 0 & \text{for } x\ge 4k \end{cases} \end{equation*} where \(k\), \(a\) and \(b\) are constants.

  1. Sketch the graph of \(y=\f(x)\).
  2. Determine \(a\) and \(b\) in terms of \(k\) and find the numerical values of \(k\), \(a\) and \(b\).
  3. Find the median value of \(X\).


Solution:

  1. TikZ diagram
  2. Since \(f(x)\) is continuous, \(a -bx\) joins \((2k, \ln k)\) and \((4k ,0)\). ie it has a gradient of \(\frac{-\ln k}{2k}\) and is zero at \(4k\), hence \(\displaystyle b = -\frac{\ln k}{2k}, a = 2\ln k\). The \(3\) sections have areas \(\int_1^k \ln x \d x = k \ln k -k +1\), \(k \ln k, k \ln k\). Therefore \begin{align*} &&1&= 3k\ln k - k +1 \\ \Rightarrow &&0 &= k(3\ln k - 1) \\ \Rightarrow &&\ln k &= \frac13 \\ \Rightarrow &&k &= e^{1/3} \\ && a &= \frac23 \\ && b&= -\frac16e^{-1/3} \end{align*}
  3. Clearly \(1 > k \ln k > \frac{1}{3}\), therefore the median must lie between \(k\) and \(2k\). So we need, \(\frac12\) to be the area of the rectangle + the triangle, ie: \begin{align*} && \frac12 &= k \ln k + (2k-M) \ln k \\ &&&= \frac13 k + \frac13 (2k - M) \\ \Rightarrow && M &= 3k - \frac32 \\ \Rightarrow && M &= 3e^{1/3} - \frac32 \end{align*}

2005 Paper 3 Q14
D: 1700.0 B: 1484.0

In this question, you may use the result \[ \displaystyle \int_0^\infty \frac{t^m}{(t+k)^{n+2}} \; \mathrm{d}t =\frac{m!\, (n-m)!}{(n+1)! \, k^{n-m+1}}\;, \] where \(m\) and \(n\) are positive integers with \(n\ge m\,\), and where \(k>0\,\). The random variable \(V\) has density function \[ \f(x) = \frac{C \, k^{a+1} \, x^a}{(x+k)^{2a+2}} \quad \quad (0 \le x < \infty) \;, \] where \(a\) is a positive integer. Show that \(\displaystyle C = \frac{(2a+1)!}{a! \, a!}\;\). Show, by means of a suitable substitution, that \[ \int_0^v \frac{x^a}{(x+k)^{2a+2}} \; \mathrm{d}x = \int_{\frac{k^2}{v}}^\infty \frac{u^a}{(u+k)^{2a+2}} \; \mathrm{d}u \] and deduce that the median value of \(V\) is \(k\). Find the expected value of \(V\). The random variable \(V\) represents the speed of a randomly chosen gas molecule. The time taken for such a particle to travel a fixed distance \(s\) is given by the random variable \(\ds T=\frac{s}{V}\). Show that \begin{equation} \mathbb{P}( T < t) = \ds \int_{\frac{s}{t}}^\infty \frac{C \, k^{a+1} \, x^a}{(x+k)^{2a+2}}\; \mathrm{d}x \tag{\( *\)} \end{equation} and hence find the density function of \(T\). You may find it helpful to make the substitution \(\ds u = \frac{s}{x}\) in the integral \((*)\). Hence show that the product of the median time and the median speed is equal to the distance \(s\), but that the product of the expected time and the expected speed is greater than \(s\).


Solution: \begin{align*} && f(x) &= \frac{C \, k^{a+1} \, x^a}{(x+k)^{2a+2}} \\ \Rightarrow && 1 &= \int_0^{\infty} f(x) \d x \\ &&&= \int_0^{\infty} \frac{C \, k^{a+1} \, x^a}{(x+k)^{2a+2}} \d x \\ &&&= Ck^{a+1} \int_0^{\infty} \frac{x^a}{(x+k)^{2a+2} }\d x \\ &&&= Ck^{a+1} \frac{a!(2a-a)!}{(2a+1)!k^{2a-a+1}} \\ &&&= C \frac{a!a!}{(2a+1)!} \\ \Rightarrow && C &= \frac{(2a+1)!}{a!a!} \end{align*} \begin{align*} && I &= \int_0^v \frac{x^a}{(x+k)^{2a+2}} \d x\\ u = k^2/x, \d x = -k^2u^{-2} \d u: &&&= \int_{u = +\infty}^{u = k^2/v} \frac{k^{2a}u^{-a}}{(k^2u^{-1} +k)^{2a+2}}(-k^2u^{-2}) \d u \\ &&&= \int_{u = +\infty}^{u = k^2/v} \frac{k^{2a-2a-2}u^{2a+2-a}}{(k +u)^{2a+2}}(-k^2u^{-2}) \d u \\ &&&= \int_{ k^2/v}^{\infty} \frac{u^{a}}{(k +u)^{2a+2}} \d u \\ \end{align*} At the median we want a value \(M\) such that \(M = k^2/M\) ie \(M = k\) \begin{align*} && \mathbb{E}(V) &= \int_0^{\infty} x f(x) \d x \\ &&&= \frac{(2a+1)!k^{a+1}}{a!a!} \int_0^{\infty} \frac{x^{a+1}}{(x+k)^{2a+2}} \d x \\ &&&= \frac{(2a+1)!k^{a+1}}{a!a!} \frac{(a+1)!(2a-(a+1))!}{(2a+1)!k^{2a-(a+1)+1}}\\ &&&= \frac{k^{a+1}}{a!} \frac{(a+1)(a-1)!}{k^{a}} \\ &&&= \frac{k(a+1)}{a} = \frac{a+1}a k \end{align*} \begin{align*} && \mathbb{P}(T < t) &= \mathbb{P}(\frac{s}{V} < t) \\ &&&= \mathbb{P}(V > \frac{s}{t}) \\ &&&= \int_{s/t}^{\infty} f(x) \d x \\ &&&= \int_{s/t}^{\infty} \frac{C \, k^{a+1} \, x^a}{(x+k)^{2a+2}} \d x \\ \\ \Rightarrow && f_T(t) &= \frac{\d}{\d t} \left ( \mathbb{P}(T < t)\right) \\ &&&= \frac{\d}{\d t} \left ( \int_{s/t}^{\infty} \frac{C \, k^{a+1} \, x^a}{(x+k)^{2a+2}} \d x \right) \\ &&&= - \frac{C \, k^{a+1} \, \left ( \frac{s}{t} \right)^a}{(\frac{s}{t}+k)^{2a+2}} \cdot \left (-\frac{s}{t^2} \right) \\ &&&= \frac{Ck^{a+1}s^{a+1}t^{2a+2}}{t^{a+2}(s+kt)^{2a+2}} \\ &&&= \frac{C(ks)^{a+1}t^a}{(s+kt)^{2a+2}} \\ &&&= \frac{C(\frac{s}{k})^{a+1}t^a}{(\frac{s}{k}+t)^{2a+2}} \end{align*} Therefore \(T\) follows the same distribution, but with parameter \(s/k\) rather than \(k\). In particular it has median \(s/k\) (and the product of the medians is \(s\)). However, the product of the expected time and expected speed is \(\frac{a+1}{a} k \frac{a+1}{a} \frac{s}{k} = \left ( \frac{a+1}{a} \right)^2s > s\)

1996 Paper 2 Q12
D: 1600.0 B: 1500.0

  1. Let \(X_{1}, X_{2}, \dots, X_{n}\) be independent random variables each of which is uniformly distributed on \([0,1]\). Let \(Y\) be the largest of \(X_{1}, X_{2}, \dots, X_{n}\). By using the fact that \(Y<\lambda\) if and only if \(X_{j}<\lambda\) for \(1\leqslant j\leqslant n\), find the probability density function of \(Y\). Show that the variance of \(Y\) is \[\frac{n}{(n+2)(n+1)^{2}}.\]
  2. The probability that a neon light switched on at time \(0\) will have failed by a time \(t>0\) is \(1-\mathrm{e}^{-t/\lambda}\) where \(\lambda>0\). I switch on \(n\) independent neon lights at time zero. Show that the expected time until the first failure is \(\lambda/n\).


Solution:

  1. \(\,\) \begin{align*} && F_Y(\lambda) &= \mathbb{P}(Y < \lambda) \\ &&&= \prod_i \mathbb{P}(X_i < \lambda) \\ &&&= \lambda^n \\ \Rightarrow && f_Y(\lambda) &= \begin{cases} n \lambda^{n-1} & \text{if } 0 \leq \lambda \leq 1 \\ 0 & \text{otherwise} \end{cases} \\ \\ && \E[Y] &= \int_0^1 \lambda f_Y(\lambda) \d \lambda \\ &&&= \int_0^1 n \lambda^n \d \lambda \\ &&&= \frac{n}{n+1} \\ && \E[Y^2] &= \int_0^1 \lambda^2 f_Y(\lambda) \d \lambda \\ &&&= \int_0^1 n \lambda^{n+1} \d \lambda \\ &&&= \frac{n}{n+2} \\ \Rightarrow && \var[Y] &= \E[Y^2]-(\E[Y])^2 \\ &&&= \frac{n}{n+2} - \frac{n^2}{(n+1)^2} \\ &&&= \frac{(n+1)^2n-n^2(n+2)}{(n+2)(n+1)^2} \\ &&&= \frac{n[(n^2+2n+1)-(n^2+2n)]}{(n+2)(n+1)^2} \\ &&&= \frac{n}{(n+2)(n+1)^2} \end{align*}
  2. Using the same reasoning, we can see that \begin{align*} && 1-F_Z(t) &= \mathbb{P}(\text{all lights still on after t}) \\ &&&= \prod_i e^{-t/\lambda} \\ &&&= e^{-nt/\lambda} \\ \\ \Rightarrow && F_Z(t) &= 1-e^{-nt/\lambda} \end{align*} Therefore \(Z \sim Exp(\frac{n}{\lambda})\) and the time to first failure is \(\lambda/n\)