Let \(\lambda > 0\). The independent random variables \(X_1, X_2, \ldots, X_n\) all have probability density function
$$f(t) = \begin{cases} \lambda e^{-\lambda t} & t \geq 0 \\ 0 & t < 0 \end{cases}$$
and cumulative distribution function \(F(x)\).
The value of random variable \(Y\) is the largest of the values \(X_1, X_2, \ldots, X_n\).
Show that the cumulative distribution function of \(Y\) is given, for \(y \geq 0\), by
$$G(y) = (1 - e^{-\lambda y})^n$$
The values \(L(\alpha)\) and \(U(\alpha)\), where \(0 < \alpha \leq \frac{1}{2}\), are such that
$$P(Y < L(\alpha)) = \alpha \text{ and } P(Y > U(\alpha)) = \alpha$$
Show that
$$L(\alpha) = -\frac{1}{\lambda}\ln(1 - \alpha^{1/n})$$
and write down a similar expression for \(U(\alpha)\).
Use the approximation \(e^t \approx 1 + t\), for \(|t|\) small, to show that, for sufficiently large \(n\),
$$\lambda L(\alpha) \approx \ln(n) - \ln\left(\ln\left(\frac{1}{\alpha}\right)\right)$$
Hence show that the median of \(Y\) tends to infinity as \(n\) increases, but that the width of the interval \(U(\alpha) - L(\alpha)\) tends to a value which is independent of \(n\).
You are given that, for \(|t|\) small, \(\ln(1 + t) \approx t\) and that \(e^3 \approx 20\).
Show that, for sufficiently large \(n\), there is an interval of width approximately \(4\lambda^{-1}\) in which \(Y\) lies with probability \(0.9\).
Solution:
Note that \(\displaystyle F(y) = \mathbb{P}(X_i < y) = \int_0^y \lambda e^{-\lambda t} \d t = 1-e^{-\lambda y}\).
Notice also that
\begin{align*}
G(y) &= \mathbb{P}(Y < y) \\
&= \mathbb{P}(\max_i(X_i) < y) \\
&= \mathbb{P}(X_i < y \text{ for all }i) \\
&= \prod_{i=1}^n \mathbb{P}(X_i < y) \\
&= \prod_{i=1}^n (1-e^{-\lambda y})\\
&= (1-e^{-\lambda y})^n
\end{align*}
as required.
In a game, I toss a coin repeatedly. The probability, \(p\), that the coin shows Heads on any given toss is given by
\[ p= \frac N{N+1} \,, \]
where \(N\) is a positive integer. The outcomes of any two tosses are independent.
The game has two versions. In each version, I can choose to stop playing after any number of tosses, in which case I win £\(H\), where \(H\) is the number of Heads I have tossed. However, the game may end before that, in which case I win nothing.
In version 1, the game ends when the coin first shows Tails (if I haven't stopped playing before that).
I decide from the start to toss the coin until a total of \(h\) Heads have been shown, unless the game ends before then. Find, in terms of \(h\) and \(p\), an expression for my expected winnings and show that I can maximise my expected winnings by choosing \(h=N\).
In version 2, the game ends when the coin shows Tails on two consecutive tosses (if I haven't stopped playing before that).
I decide from the start to toss the coin until a total of \(h\) Heads have been shown, unless the game ends before then. Show that my expected winnings are
\[ \frac{ hN^h (N+2)^h}{(N+1)^{2h}} \,.\]
In the case \(N=2\,\), use the approximation \(\log_3 2 \approx 0.63\) to show that the maximum value of my expected winnings is approximately £3.
Solution:
Since we either win \(h\) or \(0\), to calculate the expected winnings we just need to calculate the probability that we get \(h\) consecutive heads, therefore:
\begin{align*}
&& \mathbb{E}(\text{winnings}) &= E_h \\
&&&= h \cdot \left ( \frac{N}{N+1} \right)^h \\
&& \frac{E_{h+1}}{E_h} &= \frac{h+1}{h }\left ( \frac{N}{N+1} \right)
\end{align*}
Therefore \(E_h\) is increasing if \(h \leq N\), so we can maximise our winnings by taking \(h = N\). (In fact, we could take \(h = N\) or \(h = N+1\), but arguably \(h = N\) is better as we have the same expected value but lower variance).
We can have up to \(h\) tails appearing (if we imagine slots for tails of the form \(\underbrace{\_H\_H\_H\_\cdots\_H}_{h\text{ spaces and }h\, H}\) so, we have
\begin{align*}
&& \mathbb{P}(\text{wins}) &= \sum_{t = 0}^h \mathbb{P}(\text{wins and } t\text{ tails}) \\
&&&= \sum_{t = 0}^h\binom{h}{t} \left ( \frac{N}{N+1} \right)^h\left ( \frac{1}{N+1} \right)^t \\
&&&= \left ( \frac{N}{N+1} \right)^h \sum_{t = 0}^h\binom{h}{t}\left ( \frac{1}{N+1} \right)^t \cdot 1^{h-t} \\
&&&= \left ( \frac{N}{N+1} \right)^h \left ( 1 + \left ( \frac{1}{N+1} \right) \right)^h \\
&&&= \left ( \frac{N}{N+1} \right)^h \left ( \frac{N+2}{N+1}\right)^h \\
&&&= \frac{N^h(N+2)^h}{(N+1)^{2h}} \\
\Rightarrow && \E(\text{winnings}) &= h \cdot \frac{N^h(N+2)^h}{(N+1)^{2h}}
\end{align*}
If \(N = 2\), we have
\begin{align*}
&& \E(\text{winnings}) &= E_h \\
&&&= h \cdot \frac{2^h\cdot2^{2h}}{3^{2h}}\\
&&&= h \cdot \frac{2^{3h}}{3^{2h}} \\
\Rightarrow && \frac{E_{h+1}}{E_h} &= \frac{h+1}{h} \frac{8}{9} \\
\end{align*}
Therefore to maximise the winnings we should take \(h = 8\), and the expected winnings will be:
\begin{align*}
&& E_8 &= 8 \cdot \frac{2^{24}}{3^{16}} \\
\Rightarrow && \log_3 E_8 &= 27 \log_3 2 - 16 \\
&&&\approx 24 \cdot 0.63 - 16 \\
&&&\approx 17 - 16 \\
&&&\approx 1 \\
\Rightarrow && E_8 &\approx 3
\end{align*}
In this question, you may assume that \(\ln (1+x) \approx x -\frac12 x^2\) when \(\vert x \vert \) is small.
The height of the water in a tank at time \(t\) is \(h\).
The initial height of the water is \(H\) and water flows into the tank at a constant rate. The cross-sectional area of the tank is constant.
Suppose that water leaks out at a rate proportional to the height of the water in the tank, and that when the height reaches \(\alpha^2 H\), where \(\alpha\) is a constant greater than 1, the height remains constant.
Show that
\[
\frac {\d h}{\d t } = k( \alpha^2 H -h)\,,
\]
for some positive constant \(k\). Deduce
that the time \(T\) taken for the water to reach height \(\alpha H\) is given by
\[
kT = \ln \left(1+\frac1\alpha\right)\,,
\]
and that \(kT\approx \alpha^{-1}\) for large values of \(\alpha\).
Suppose that the rate at which water leaks out of the tank is proportional to \(\sqrt h\) (instead of \(h\)), and that when the height reaches \(\alpha^2 H\), where \(\alpha\) is a constant greater than 1, the height remains constant.
Show that the time \(T'\) taken for the water to reach height \(\alpha H\) is given by
\[
cT'=2\sqrt H \left( 1 - \sqrt\alpha +\alpha \ln
\left(1+\frac1 {\sqrt\alpha} \right)\right)\,
\]
for some positive constant \(c\), and that \(cT'\approx \sqrt H\) for large values of \(\alpha\).
Solution:
\begin{align*}
\frac{\d h}{\d t} &= \underbrace{c}_{\text{flow in}} - \underbrace{kh}_{\text{flow out}}
\end{align*}.
We also know that when \(h = \alpha^2 H\), \(\frac{\d h}{\d t} = 0\), ie \(c - k \alpha^2 H = 0\) therefore:
\[ \frac{\d h}{\d t} = k(\alpha^2 H - h) \]
\begin{align*}
&& \frac{\d h}{\d t} &= k(\alpha^2 H - h) \\
&& \int \frac{1}{\alpha^2 H - h} \d h &= \int k \d t \\
&& - \ln |\alpha^2H -h| &= kt + C \\
t = 0, h = H: && -\ln |(1-\alpha^2 )H| &= C \\
\Rightarrow && kt &= \ln \left | \frac{(\alpha^2-1)H}{h-\alpha^2 H }\right | \\
&& kT &= \ln \frac{(\alpha^2-1)H}{\alpha H - \alpha^2 H} \\
&&&= \ln \frac{1+\alpha}{\alpha} \\
&&&= \ln \left (1 + \frac1{\alpha} \right) \\
&&&\approx \frac1{\alpha} - \frac12 \frac1{\alpha^2}\\
&&&\approx \alpha^{-1}
\end{align*}
A train consists of an engine and \(n\) trucks.
It is travelling along a straight
horizontal section of track. The mass of the engine and of each
truck is \(M\). The resistance to motion
of the engine and of each
truck is \(R\), which is constant.
The maximum power at which the engine can work
is \(P\).
Obtain an expression for the acceleration of the train
when its speed is \(v\) and the engine is working at maximum power.
The train starts from rest with the engine working at
maximum power. Obtain an expression for the
time \(T\) taken to reach a given speed \(V\), and
show that this speed is only achievable if
\[
P>(n+1)RV\,.
\]
In the case when \((n+1) RV/P\) is small, use the approximation
\(\ln (1-x) \approx -x -\frac12 x^2\) (valid for small \( x \))
to obtain the approximation
\[
PT\approx \tfrac 12 (n+1) MV^2\,
\]
and interpret this result.
In the general case, the distance moved from rest in time \(T\) is \(X\).
{\em Write down}, with explanation,
an equation relating \(P\), \(T\), \(X\), \(M\), \(V\), \(R\) and \(n\) and hence
show that
\[
X= \frac{2PT - (n+1)MV^2}{2(n+1)R}
\,.
\]