43 problems found
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*}
A candidate finishes examination questions in time \(T\), where \(T\) has probability density function \[ \mathrm{f}(t)=t\mathrm{e}^{-t}\qquad t\geqslant0, \] the probabilities for the various questions being independent. Find the moment generating function of \(T\) and hence find the moment generating function for the total time \(U\) taken to finish two such questions. Show that the probability density function for \(U\) is \[ \mathrm{g}(u)=\frac{1}{6}u^{3}\mathrm{e}^{-u}\qquad u\geqslant0. \] Find the probability density function for the total time taken to answer \(n\) such questions.
Solution: \begin{align*} && M_T(x) &= \mathbb{E}[e^{xT}] \\ &&&= \int_0^{\infty} e^{xt}te^{-t} \d t \\ &&&= \int_0^{\infty}te^{(x-1)t} \d t \\ &&&= \left [ \frac{t}{x-1} e^{(x-1)t} \right]_0^{\infty} - \int_0^\infty \frac{e^{(x-1)t}}{x-1} \d t \\ &&&= \left [ \frac{e^{(x-1)t}}{(x-1)^2} \right]_0^{\infty} \\ &&&= \frac{1}{(x-1)^2} \\ \\ && M_U(x) &= M_{T_1+T_2}(x) \\ &&&= \frac1{(x-1)^4} \\ \\ && I_n &= \int_0^{\infty} t^ne^{(x-1)t} \d t \\ &&&= \left[ \frac{1}{(x-1)}t^ne^{(x-1)t} \right]_0^{\infty} - \frac{n}{(x-1)} \int_0^{\infty}t^{n-1}e^{(x-1)t} \d t \\ &&&= -\frac{n}{(x-1)}I_{n-1} \\ \Rightarrow && I_n &= \frac{n!}{(1-x)^{n+1}} \\ \\ \Rightarrow && \int_0^{\infty} e^{xt} \frac16u^3e^{-u} \d u &= \int_0^{\infty} \frac16u^3e^{(x-1)u} \d u \\ &&&= \frac{1}{(1-x)^4} \\ \Rightarrow && f_U(u) &= \frac16u^3e^{-u} \\ \\ && M_{X_1+\cdots+X_n}(x) &= \frac{1}{(x-1)^{2n}} \\ \Rightarrow && f_{X_1+\cdots+X_n}(t) &= \frac1{(2n-1)!} t^{2n-1}e^{-t} \end{align*} (NB: This is the gamma distribution)
During his performance a trapeze artist is supported by two identical ropes, either of which can bear his weight. Each rope is such that the time, in hours of performance, before it fails is exponentially distributed, independently of the other, with probability density function \(\lambda\exp(-\lambda t)\) for \(t\geqslant0\) (and 0 for \(t < 0\)), for some \(\lambda > 0.\) A particular rope has already been in use for \(t_{0}\) hours of performance. Find the distribution for the length of time the artist can continue to use it before it fails. Interpret and comment upon your result. Before going on tour the artist insists that the management purchase two new ropes of the above type. Show that the probability density function of the time until both ropes fail is \[ \mathrm{f}(t)=\begin{cases} 2\lambda\mathrm{e}^{-\lambda t}(1-\mathrm{e}^{-\lambda t}) & \text{ if }t\geqslant0,\\ 0 & \text{ otherwise.} \end{cases} \] If each performance lasts for \(h\) hours, find the probability that both ropes fail during the \(n\)th performance. Show that the probability that both ropes fail during the same performance is \(\tanh(\lambda h/2)\).
Solution: This is the memoryless property of the exponential distribution so it has the same distribution as when \(t = 0\). Let \(T\) be the time the rope fails, then \begin{align*} && \mathbb{P}(T > t | T > t_0) &= \frac{\mathbb{P}(T > t)}{\mathbb{P}(T > t_0)} \\ &&&= \frac{e^{-\lambda t}}{e^{-\lambda t_0}} \\ &&&= e^{-\lambda(t-t_0)} \end{align*} This means that each rope (as long as it hasn't broken) can be considered "as good as new". Suppose \(T_1, T_2 \sim Exp(\lambda)\) are the time to failures for each rope, then \begin{align*} && \mathbb{P}(\max(T_1, T_2) < t) &= \mathbb{P}(T_1 < t, T_2 < t) \\ &&&= (1-e^{-\lambda t})^2 \\ \Rightarrow && f(t) &= 2(1-e^{-\lambda t}) \cdot (\lambda e^{-\lambda t}) \\ &&&= 2\lambda e^{-\lambda t}(1-e^{-\lambda t}) \end{align*} Therefore \(\max(T_1, T_2) \sim Exp(2\lambda)\) and the pdf is as described. \begin{align*} && \mathbb{P}(\text{both fail during the }n\text{th}) &= \left ( \int_{(n-1)h}^{nh} \lambda e^{-\lambda t} \d t \right)^2 \\ &&&=\left (\left [ -e^{-\lambda t}\right]_{(n-1)h}^{nh} \right)^2 \\ &&&= \left ( e^{-\lambda (n-1)h}( 1-e^{-\lambda h}) \right)^2 \\ &&&= e^{-2(n-1)h\lambda}(e^{-\lambda h}-1)^2 \\ \\ && \mathbb{P}(\text{both fail in same performance}) &= \sum_{n=1}^{\infty} \mathbb{P}(\text{both fail during the }n\text{th}) \\ &&&= \sum_{n=1}^{\infty}e^{-2(n-1)h\lambda}(e^{-\lambda h}-1)^2 \\ &&&= (e^{-\lambda h}-1)^2 \frac{1}{1-e^{-2h\lambda}} \\ &&&= \frac{e^{-\lambda h}-1}{1+e^{-h\lambda}} \\ &&&= \tanh(\lambda h/2) \end{align*}
When he sets out on a drive Mr Toad selects a speed \(V\) kilometres per minute where \(V\) is a random variable with probability density \[ \alpha v^{-2}\mathrm{e}^{-\alpha v^{-1}} \] and \(\alpha\) is a strictly positive constant. He then drives at constant speed, regardless of other drivers, road conditions and the Highway Code. The traffic lights at the Wild Wood cross-roads change from red to green when Mr Toad is exactly 1 kilometre away in his journey towards them. If the traffic light is green for \(g\) minutes, then red for \(r\) minutes, then green for \(g\) minutes, and so on, show that the probability that he passes them after \(n(g+r)\) minutes but before \(n(g+r)+g\) minutes, where \(n\) is a positive integer, is \[ \mathrm{e}^{-\alpha n(g+r)}-\mathrm{e}^{-\alpha\left(n(g+r)\right)+g}. \] Find the probability \(\mathrm{P}(\alpha)\) that he passes the traffic lights when they are green. Show that \(\mathrm{P}(\alpha)\rightarrow1\) as \(\alpha\rightarrow\infty\) and, by noting that \((\mathrm{e}^{x}-1)/x\rightarrow1\) as \(x\rightarrow0\), or otherwise, show that \[ \mathrm{P}(\alpha)\rightarrow\frac{g}{r+g}\quad\mbox{ as }\alpha\rightarrow0. \] {[}NB: the traffic light show only green and red - not amber.{]}
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.
A goat \(G\) lies in a square field \(OABC\) of side \(a\). It wanders randomly round its field, so that at any time the probability of its being in any given region is proportional to the area of this region. Write down the probability that its distance, \(R\), from \(O\) is less than \(r\) if \(0 < r\leqslant a,\) and show that if \(r\geqslant a\) the probability is \[ \left(\frac{r^{2}}{a^{2}}-1\right)^{\frac{1}{2}}+\frac{\pi r^{2}}{4a^{2}}-\frac{r^{2}}{a^{2}}\cos^{-1}\left(\frac{a}{r}\right). \] Find the median of \(R\) and probability density function of \(R\). The goat is then tethered to the corner \(O\) by a chain of length \(a\). Find the conditional probability that its distance from the fence \(OC\) is more than \(a/2\).
A bus is supposed to stop outside my house every hour on the hour. From long observation I know that a bus will always arrive some time between 10 minutes before and ten minutes after the hour. The probability it arrives at a given instant increases linearly (from zero at 10 minutes before the hour) up to a maximum value at the hour, and then decreases linearly at the same rate after the hour. Obtain the probability density function of \(T\), the time in minutes after the scheduled time at which a bus arrives. If I get up when my alarm clock goes off, I arrive at the bus stop at 7.55am. However, with probability 0.5, I doze for 3 minutes before it rings again. In that case with probability 0.8 I get up then and reach the bus stop at 7.58am, or, with probability 0.2, I sleep a little longer, not reaching the stop until 8.02am. What is the probability that I catch a bus by 8.10am? I buy a louder alarm clock which ensures that I reach the stop at exactly the same time each morning. This clock keeps perfect time, but may be set to an incorrect time. If it is correct, the alarm goes off so that I should reach the stop at 7.55am. After 100 mornings I find that I have had to wait for a bus until after 9am (according to the new clock) on 5 occasions. Is this evidence that the new clock is incorrectly set? {[}The time of arrival of different buses are independent of each other.{]}
Solution: The probability density function will look like a triangle with base \(20\) minutes and therefore height \(\frac{1}{10}\) per minute, ie: \begin{align*} f_T(t) &= \begin{cases} \frac{1}{100}(t+10) & \text{if } -10 \leq t \leq 0 \\ \frac{1}{100}(10-t) & \text{if } 0 \leq t \leq 10 \\ 0 & \text{otherwise} \end{cases} \end{align*} \begin{align*} \mathbb{P}(\text{catch bus}) &=0.5 \mathbb{P}(\text{bus arrives after 7:55})+0.4 \mathbb{P}(\text{bus arrives after 7:58}) + 0.1 \mathbb{P}(\text{bus arrives after 8:02}) \\ &= \frac12 \cdot \left (1 - \frac18 \right) + \frac{2}{5} \cdot \left ( 1 - \frac{4^2}{5^2} \cdot \frac{1}{2} \right) + \frac{1}{10} \cdot \frac{4^2}{5^2} \cdot \frac12 \\ &= \frac{1\,483}{2\,000} \\ &\approx 74\% \end{align*} \begin{align*} \mathbb{P}(\text{catch bus}) &= \mathbb{P}(\text{bus arrives after 7:55}) \mathbb{P}(\text{catch next bus by 9:00}) \\ &= \frac78 + \frac18 \cdot \frac12 \\ &= \frac{15}{16} \end{align*} He should expect to miss \(6.25\) buses, so missing \(5\) seems about right. (Using a binomial calculation, seeing 5 or fewer buses is ~\(40\%\) which isn't suspicious).
A target consists of a disc of unit radius and centre \(O\). A certain marksman never misses the target, and the probability of any given shot hitting the target within a distance \(t\) from \(O\) it \(t^{2}\), where \(0\leqslant t\leqslant1\). The marksman fires \(n\) shots independently. The random variable \(Y\) is the radius of the smallest circle, with centre \(O\), which encloses all the shots. Show that the probability density function of \(Y\) is \(2ny^{2n-1}\) and find the expected area of the circle. The shot which is furthest from \(O\) is rejected. Show that the expected area of the smallest circle, with centre \(O\), which encloses the remaining \((n-1)\) shots is \[ \left(\frac{n-1}{n+1}\right)\pi. \]
Solution: Another way to describe \(Y\) is the maximum distance of any shot from \(O\). Let \(X_i\), \(1 \leq i \leq n\) be the \(n\) shots then, \begin{align*} F_Y(y) &= \mathbb{P}(Y \leq y) \\ &= \mathbb{P}(X_i \leq y \text{ for all } i) \\ &= \prod_{i=1}^n \mathbb{P}(X_i \leq y) \tag{each shot independent}\\ &= \prod_{i=1}^n y^2\\ &= y^{2n} \end{align*} Therefore \(f_Y(y) = \frac{\d}{\d y} (y^{2n}) = 2n y^{2n-1}\). \begin{align*} \mathbb{E}(\pi Y^2) &= \int_0^1\pi y^2 \f_Y(y) \d y \\ &=\pi \int_0^1 2n y^{2n+1} \d y \\ &=\left ( \frac{n}{n+1} \right )\pi \end{align*}. Let \(Z\) be the distance of the second furthest shot, then: \begin{align*} && F_Z(z) &= \mathbb{P}(Z \leq z) \\ &&&= \mathbb{P}(X_i \leq z \text{ for at least } n - 1\text{ different } i) \\ &&&= n\mathbb{P}(X_i \leq z \text{ for all but 1}) + \mathbb{P}(X_i \leq z \text{ for all } i) \\ &&&= n \left ( \prod_{i=1}^{n-1} \mathbb{P}(X_i \leq z) \right) \mathbb{P}(X_n > z) + z^{2n} \\ &&&= nz^{2n-2}(1-z^2) + z^{2n} \\ &&&= nz^{2n-2} -(n-1)z^{2n} \\ \Rightarrow && f_Z(z) &= n(2n-2)z^{2n-3}-2n(n-1)z^{2n-1} \\ \Rightarrow && \mathbb{E}(\pi Z^2) &= \int_0^1 \pi z^2 \left (n(2n-2)z^{2n-3}-2n(n-1)z^{2n-1} \right) \d z \\ &&&= \pi \left ( \frac{n(2n-2)}{2n} - \frac{2n(n-1)}{2n+2}\right) \\ &&&= \left ( \frac{n-1}{n+1} \right) \pi \end{align*}
The prevailing winds blow in a constant southerly direction from an enchanted castle. Each year, according to an ancient tradition, a princess releases 96 magic seeds from the castle, which are carried south by the wind before falling to rest. South of the castle lies one league of grassy parkland, then one league of lake, then one league of farmland, and finally the sea. If a seed falls on land it will immediately grow into a fever tree. (Fever trees do not grow in water). Seeds are blown independently of each other. The random variable \(L\) is the distance in leagues south of the castle at which a seed falls to rest (either on land or water). It is known that the probability density function \(\mathrm{f}\) of \(L\) is given by \[ \mathrm{f}(x)=\begin{cases} \frac{1}{2}-\frac{1}{8}x & \mbox{ for }0\leqslant x\leqslant4,\\ 0 & \mbox{ otherwise.} \end{cases} \] What is the mean number of fever trees which begin to grow each year?
Solution: \begin{align*} \mathbb{P}(\text{fever tree grows}) &= \mathbb{P}(0 \leq L \leq 1) + \mathbb{P}(2 \leq L \leq 3) \\ &= \int_0^1 \frac12 -\frac18 x \d x + \int_2^3 \frac12 - \frac18 x \d x \\ &= \left [\frac12 x - \frac1{16}x^2 \right]_0^1+ \left [\frac12 x - \frac1{16}x^2 \right]_2^3 \\ &= \frac12 - \frac1{16}+\frac32-\frac9{16} - 1 + \frac{4}{16} \\ &= \frac58 \end{align*} The expected number of fever trees is just \(96 \cdot \frac58 = 60\).
Two points are chosen independently at random on the perimeter (including the diameter) of a semicircle of unit radius. What is the probability that exactly one of them lies on the diameter? Let the area of the triangle formed by the two points and the midpoint of the diameter be denoted by the random variable \(A\).
Solution:
The continuous random variable \(X\) is uniformly distributed over the interval \([-c,c].\) Write down expressions for the probabilities that:
Solution:
Wondergoo is applied to all new cars. It protects them completely against rust for three years, but thereafter the probability density of the time of onset of rust is proportional to \(t^{2}/(1+t^{2})^{2}\) for a car of age \(3+t\) years \((t\geqslant0)\). Find the probability that a car becomes rusty before it is \(3+t\) years old. Every car is tested for rust annually on the anniversary of its manufacture. If a car is not rusty, it will certainly pass; if it is rusty, it will pass with probability \(\frac{1}{2}.\) Cars which do not pass are immediately taken off the road and destroyed. What is the probability that a randomly selected new car subsequently fails a test taken on the fifth anniversary of its manufacture? Find also the probability that a car which was destroyed immediately after its fifth anniversary test was rusty when it passed its fourth anniversary test.
Solution: Given the probability density after \(3\) years is proportional to \(\frac{t^2}{(1+t^2)^2}\) then we must have that: \begin{align*} && 1 &= A \int_0^{\infty} \frac{t^2}{(1+t^2)^2} \, \d t \\ &&&= A \left [ -\frac12 \frac{t}{1+t^2} \right]_0^{\infty} + \frac{A}2 \int_0^{\infty} \frac{1}{1+t^2} \d t \\ &&&= \frac{A}{2} \frac{\pi}{2} \\ \Rightarrow && A &= \frac{4}{\pi} \end{align*} In order to fail a test on the fifth anniversary, there are two possibilities for when we went faulty. We could have gone faulty before \(4\) years, got lucky once and then failed the second test, or gone faulty in the next year and then failed the first test. \begin{align*} \P(\text{rusty before } 4 \text{ years}) &=\frac{4}{\pi} \int_0^1 \frac{t^2}{(1+t^2)^2} \d t \\ &= \frac{4}{\pi} \left [ -\frac12 \frac{t}{1+t^2} \right]_0^{1} + \frac{2}{\pi} \int_0^{1} \frac{1}{1+t^2} \d t \\ &= -\frac{1}{\pi} + \frac{2}{\pi} \frac{\pi}{4} \\ &= \frac12 - \frac{1}{\pi} \\ &\approx 0.181690\cdots \\ \\ \P(\text{rusty before } 5 \text{ years}) &=\frac{4}{\pi} \int_0^1 \frac{t^2}{(1+t^2)^2} \d t \\ &= \frac{4}{\pi} \left [ -\frac12 \frac{t}{1+t^2} \right]_0^{2} + \frac{2}{\pi} \int_0^{2} \frac{1}{1+t^2} \d t \\ &= -\frac{4}{5\pi} + \frac{2}{\pi} \tan^{-1} 2 \\ &\approx 0.450184\cdots \\ \end{align*} Therefore: \begin{align*} \P(\text{fails 5th anniversary}) &= \P(\text{rusty before } 4 \text{ years}) \P(\text{pass one, fail other}) + \\ & \quad \quad + \P(\text{rusty between 4 and 5 years}) \P(\text{fail}) \\ &= 0.181690\cdots \cdot \frac{1}{4} + \frac{1}{2} ( 0.450184\cdots- 0.181690\cdots) \\ &= \frac{1}{2} 0.450184\cdots - \frac{1}{4} 0.181690\cdots \\ &= 0.1796688\cdots \\ &= 18.0\%\,\, (3\text{ s.f.}) \end{align*} We also must have that: \begin{align*} \P(\text{rusty at 4 years}|\text{destroyed at 5}) &= \frac{\P(\text{rusty at 4 years and destroyed at 5})}{\P(\text{destroyed at 5})} \\ &= \frac{0.181690\cdots \cdot \frac{1}{4}}{\frac{1}{2} 0.450184\cdots - \frac{1}{4} 0.181690\cdots} \\ &= 0.252811\cdots \\ &= 25.3\%\,\,(3\text{ s.f.}) \end{align*}