19 problems found
Solution:
Each of the independent random variables \(X_1, X_2, \ldots, X_n\) has the probability density function \(\mathrm{f}(x) = \frac{1}{2}\sin x\) for \(0 \leqslant x \leqslant \pi\) (and zero otherwise). Let \(Y\) be the random variable whose value is the maximum of the values of \(X_1, X_2, \ldots, X_n\).
The random variable \(X\) has probability density function \[\mathrm{f}(x) = \begin{cases} kx^n(1-x) & 0 \leqslant x \leqslant 1\,,\\ 0 & \text{otherwise}\,,\end{cases}\] where \(n\) is an integer greater than 1.
Solution:
The random variable \(X\) has the probability density function on the interval \([0, 1]\): $$f(x) = \begin{cases} nx^{n-1} & 0 \leq x \leq 1, \\ 0 & \text{elsewhere}, \end{cases}$$ where \(n\) is an integer greater than 1.
Solution:
A continuous random variable \(X\) has a triangular distribution, which means that it has a probability density function of the form \[ \f(x) = \begin{cases} \g(x) & \text{for \(a< x \le c\)} \\ \h(x) & \text{for \(c\le x < b\)} \\ 0 & \text{otherwise,} \end{cases} \] where \(\g(x)\) is an increasing linear function with \(\g(a)=0\), \(\h(x)\) is a decreasing linear function with \(\h(b) =0\), and \(\g(c)=\h(c)\). Show that \(\g(x) = \dfrac{2(x-a)}{(b-a)(c-a)}\) and find a similar expression for \(\h(x)\).
Solution: Since \(\int f(x) \, dx = 1\), and \(f(x)\) is a triangle with base \(b-a\), it must have height \(\frac{2}{b-a}\) in order to have the desired area. Since \(g(a) = 0, g(c) = \frac{2}{b-a}\), \(g(x) = A(x-a)\) and \(\frac{2}{b-a} = A (c-a) \Rightarrow g(x) = \frac{2(x-a)}{(b-a)(c-a)}\) as required. Similarly, \(h(x) = B(x-b)\) and \(\frac{2}{b-a} = B(c-b) \Rightarrow h(x) = \frac{2(b-x)}{(b-a)(b-c)}\) The mean of the distribution will be: \begin{align*} \int_a^b xf(x) \, dx &= \int_a^c xg(x) \, dx + \int_c^b xh(x) \, dx \\ &= \frac{2}{(b-a)(c-a)} \int_a^c x(x-a) dx + \frac{2}{(b-a)(b-c)} \int_c^b x(b-x) \, dx \\ &= \frac{2}{(b-a)} \l \frac{1}{c-a} \left [ \frac{x^3}{3} - a\frac{x^2}{2} \right ]_a^c + \frac{1}{b-c} \left [ b\frac{x^2}{2} - \frac{x^3}{3} \right ]_c^b\r \\ &= \frac{2}{(b-a)} \l \frac{1}{c-a} \l \frac{c^3}{3} - a\frac{c^2}{2} - \frac{a^3}{3} + \frac{a^3}{2} \r + \frac{1}{b-c} \l \frac{b^3}{2} - \frac{b^3}{3} - \frac{bc^2}{2} + \frac{c^3}{3} \r \r \\ &= \frac{2}{(b-a)} \l \l \frac{c^2+ac+a^2}{3} - \frac{a(a+c)}{2} \r +\l \frac{b(b+c)}{2} - \frac{b^2+bc+c^2}{3} \r\r \\ &= \frac{2}{(b-a)} \l \frac{2c^2+2ac+2a^2}{6} - \frac{3a^2+3ac}{6} + \frac{3b^2+3bc}{6} - \frac{2b^2+2bc+2c^2}{6} \r \\ &= \frac{2}{(b-a)} \l \frac{-a^2+b^2-ac+bc}{6} \r \\ &= \frac{a+b+c}{3} \\ \end{align*} The median \(M\) satisfies: \begin{align*} && \int_a^M f(x) \, dx &= \frac12 \\ \end{align*} The left hand triangle will have area: \(\frac{c-a}{b-a}\) which will be \(\geq \frac12\) if \(c \geq \frac{a+b}{2}\). In this case we need \begin{align*} && \frac{(M-a)^2}{(b-a)(c-a)} &= \frac12 \\ \Rightarrow && M &= a + \sqrt{\frac12 (b-a)(c-a)} \end{align*} Otherwise, we need: \begin{align*} && \frac{(b-M)^2}{(b-a)(b-c)} &= \frac12 \\ \Rightarrow && M &= b - \sqrt{\frac12 (b-a)(b-c)} \end{align*} These are consistent, if \(c = \frac{b+a}{2}\)
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:
What property of a distribution is measured by its skewness?
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.
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\).
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*}
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:
In this question, you may use without proof the results: \[ \sum_{r=1}^n r = \tfrac12 n(n+1) \qquad\text{and}\qquad \sum_{r=1}^n r^2 = \tfrac1 6 n(n+1)(2n+1)\,. \] The independent random variables \(X_1\) and \(X_2\) each take values \(1\), \(2\), \(\ldots\), \(N\), each value being equally likely. The random variable \(X\) is defined by \[ X= \begin{cases} X_1 & \text { if } X_1\ge X_2\\ X_2 & \text { if } X_2\ge X_1\;. \end{cases} \]
Solution: \begin{align*} \P(X = r) &= \P(X_1 = r, X_2 \leq r) + \P(X_2 = r, X_1 < r) \\ &= \P(X_1 = r) \P(X_2 \leq r) + \P(X_2 = r)\P( X_1 < r) \\ &= \frac{1}{N} \frac{r}{N} + \frac{1}{N} \frac{r-1}{N} \\ &= \frac{2r-1}{N^2} \end{align*} \begin{align*} \E(X) &= \sum_{r=1}^N r \P(X = r) \\ &= \sum_{r=1}^N \frac{2r^2 - r}{N^2} \\ &= \frac{1}{N^2} \l \frac{N(N+1)(2N+1)}{3} - \frac{N(N+1)}{2} \r \\ &= \frac{N+1}{N} \l \frac{4N-1}{6} \r \end{align*} When \(N = 100\), this is equal to \(\frac{101 \cdot 399}{6 \cdot 100} = \frac{101 \cdot 133}{200} = 67.165\) \begin{align*} &&\frac12 &\leq \P(X \leq m) \\ &&&=\sum_{r=1}^m \P(X=r) \\ &&&=\sum_{r=1}^m \frac{2r-1}{N^2} \\ &&&= \frac{1}{N^2} \l m(m+1) - m \r \\ &&&= \frac{m^2}{N^2} \\ \Rightarrow && m^2 &\geq \frac{N^2}{2} \\ \Rightarrow && m &\geq \frac{N}{\sqrt{2}} \\ \Rightarrow && m &= \left \lceil \frac{N}{\sqrt{2}} \right \rceil \end{align*} When \(N = 100\), \(100/\sqrt{2} = \sqrt{2}50\). \(\sqrt{2} > 1.4 \Rightarrow 50\sqrt{2} > 70\) \(\sqrt{2} < 1.42 \Rightarrow 50 \sqrt{2} < 71\), therefore \(\displaystyle \left \lceil \frac{100}{\sqrt{2}} \right \rceil = 71\) \begin{align*} \lim_{N \to \infty} \frac{\frac{(N+1)(4N-1)}{6N}}{ \left \lceil\frac{N}{\sqrt{2}} \right \rceil} &= \lim_{N \to \infty} \frac{\sqrt{2}}{3}\l \frac{4N^2 +3N - 1}{2N^2} \r \tag{since the floor will be irrelevant}\\ &= \lim_{N \to \infty} \frac{\sqrt{2}}{3}\l 2 + \frac{3}{2N} - \frac{1}{N^2} \r \\ &= \lim_{N \to \infty} \frac{2\sqrt{2}}{3} \end{align*}
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.
Solution:
The random variable \(X\) can take the value \(X=-1\), and also any value in the range \(0\le X <\infty\,\). The distribution of \(X\) is given by \[ \P(X=-1) =m \,, \ \ \ \ \ \ \ \P(0\le X\le x) = k(1-\e^{-x})\,, \] for any non-negative number \(x\), where \(k\) and \(m\) are constants, and \(m <\frac12\,\).
Solution:
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\)
Sketch the graph, for \(x \ge 0\,\), of $$ y = kx\e^{-ax^2} \;, $$ where \(a\) and \(k\) are positive constants. The random variable \(X\) has probability density function \(\f(x)\) given by \begin{equation*} \f(x)= \begin{cases} kx\e^{-ax^2} & \text{for \(0 \le x \le 1\)}\\[3pt] 0 & \text{otherwise}. \end{cases} \end{equation*} Show that \(\displaystyle k=\frac{2a}{1-\e^{-a}}\) and find the mode \(m\) in terms of \(a\,\), distinguishing between the cases \(a < \frac12\) and \(a > \frac12\,\). Find the median \(h\) in terms of \(a\), and show that \(h > m\) if \(a > -\ln\left(2\e^{-1/2} - 1\right).\) Show that, \(-\ln\left(2\e^{-1/2}-1\right)> \frac12 \,\). Show also that, if \(a > -\ln\left(2\e^{-1/2} - 1\right) \,\), then $$ P(X > m \;\vert\; X < h) = {{2\e^{-1/2}-\e^{-a}-1} \over 1-\e^{-a}}\;. $$
Solution:
A continuous random variable is said to have an exponential distribution with parameter \(\lambda\) if its density function is \(\f(t) = \lambda \e ^{- \lambda t} \; \l 0 \le t < \infty \r\,\). If \(X_1\) and \(X_2\), which are independent random variables, have exponential distributions with parameters \(\lambda_1\) and \(\lambda_2\) respectively, find an expression for the probability that either \(X_1\) or \(X_2\) (or both) is less than \(x\). Prove that if \(X\) is the random variable whose value is the lesser of the values of \(X_1\) and \(X_2\), then \(X\) also has an exponential distribution. Route A and Route B buses run from my house to my college. The time between buses on each route has an exponential distribution and the mean time between buses is 15 minutes for Route A and 30 minutes for Route B. The timings of the buses on the two routes are independent. If I emerge from my house one day to see a Route A bus and a Route B bus just leaving the stop, show that the median wait for the next bus to my college will be approximately 7 minutes.