2019 Paper 3 Q11

Year: 2019
Paper: 3
Question Number: 11

Course: UFM Statistics
Section: Poisson Distribution

Difficulty: 1500.0 Banger: 1500.0

Problem

The number of customers arriving at a builders' merchants each day follows a Poisson distribution with mean \(\lambda\). Each customer is offered some free sand. The probability of any given customer taking the free sand is \(p\).
  1. Show that the number of customers each day who take sand follows a Poisson distribution with mean \(p\lambda\).
  2. The merchant has a mass \(S\) of sand at the beginning of the day. Each customer who takes the free sand gets a proportion \(k\) of the remaining sand, where \(0 \leq k < 1\). Show that by the end of the day the expected mass of sand taken is $$\left(1 - e^{-kp\lambda}\right)S.$$
  3. At the beginning of the day, the merchant's bag of sand contains a large number of grains, exactly one of which is made from solid gold. At the end of the day, the merchant's assistant takes a proportion \(k\) of the remaining sand. Find the probability that the assistant takes the golden grain. Comment on the case \(k = 0\) and on the limit \(k \to 1\). In the case \(p\lambda > 1\) find the value of \(k\) which maximises the probability that the assistant takes the golden grain.

Solution

  1. Let \(X\) be the number of people arriving on a given day, and \(Y\) be the number taking sand, then \begin{align*} && \mathbb{P}(Y = k) &= \sum_{x=k}^{\infty} \mathbb{P}(x \text{ arrive and }k\text{ of them take sand}) \\ &&&= \sum_{x=k}^{\infty} \mathbb{P}(X=x)\mathbb{P}(k \text{ out of }x\text{ of them take sand})\\ &&&= \sum_{x=k}^{\infty} e^{-\lambda} \frac{\lambda^x}{x!}\binom{x}{k}p^k(1-p)^{x-k}\\ &&&= e^{-\lambda} \left ( \frac{p}{1-p} \right)^k \sum_{x=k}^{\infty} \frac{((1-p)\lambda)^x}{k!(x-k)!} \\ &&&= e^{-\lambda} \left ( \frac{p}{1-p} \right)^k \frac{((1-p)\lambda)^k}{k!} \sum_{x=0}^{\infty} \frac{((1-p)\lambda)^x}{x!} \\ &&&= e^{-\lambda} \left ( \frac{p}{1-p} \right)^k \frac{((1-p)\lambda)^k}{k!}e^{(1-p)\lambda)} \\ &&&= e^{-p\lambda} \frac{(p\lambda)^k}{k!} \end{align*} which is precisely a Poisson with parameter \(p\lambda\). Alternatively, \(Y = B_1 + B_2 + \cdots + B_X\) where \(B_i \sim Bernoulli(p)\) so \(G_Y(t) = G_X(G_B(t)) = G_X(1-p+pt) = e^{-\lambda(1-(1-p+pt))} = e^{-p\lambda(1-t)}\) so \(Y \sim Po(\lambda)\) Alternatively, alternatively, let \(Z\) be the number of people not taking sand, so \begin{align*} && \mathbb{P}(Y = y, Z= z) &= \mathbb{P}(X=y+z) \cdot \binom{y+z}{y} p^y(1-p)^z \\ &&&= e^{-\lambda} \frac{\lambda^{y+z}}{(y+z)!} \frac{(y+z)!}{y!z!} p^y(1-p)^z \\ &&&=\left ( e^{-p\lambda} \frac{(p\lambda)^y}{y!} \right) \cdot \left ( e^{-(1-p)\lambda} \frac{((1-p)\lambda)^z}{z!}\right) \end{align*} So clearly \(Y\) and \(Z\) are both (independent!) Poisson with parameters \(p\lambda \) and \((1-p)\lambda\)
  2. The amount taken is \(Sk + S(1-k)k + \cdots +Sk(1-k)^{Y-1} = Sk\cdot \frac{1-(1-k)^Y}{k} = S(1-(1-k)^Y)\) so \begin{align*} \E[\text{taken sand}] &= \E \left [ S(1-(1-k)^Y)\right] \\ &= S-S\E\left [(1-k)^Y \right] \\ &= S - SG_Y(1-k)\\ &=S - Se^{-p\lambda(1-(1-k))} \tag{pgf for Poisson} \\ &= S\left (1-e^{-kp\lambda} \right) \end{align*}
  3. The fraction of grains the assistant takes home is: \((1-k)^Yk\), which has expected value \(ke^{-kp\lambda}\). This the the probability he takes home the golden grain. When \(k = 0\) the probability is \(0\) which makes sense (no-one takes home any sand, including the merchant's assistant). As \(k \to 1\) we get \(e^{-p\lambda}\) which is the probability that no-one gets any sand other than him. \begin{align*} && \frac{\d }{\d k} \left ( ke^{-kp\lambda} \right) &= e^{-kp\lambda} - (p\lambda)ke^{-kp\lambda} \\ &&&= e^{-kp\lambda}(1 - (p\lambda)k) \end{align*} Therefore maximised at \(k = \frac{1}{p\lambda}\). (Clearly this is a maximum just by sketching the function)
Examiner's report
— 2019 STEP 3, Question 11
Mean: ~4.8 / 20 (inferred) 20% attempted 'just under one quarter marks' → 5 − 0.2 = 4.8; least successful question overall; 'a fifth' → 20%

The least successful question with a mean score of just under one quarter marks, it was attempted by a fifth of the candidates. Many candidates assumed for (i) that the number of customers taking sand would follow a Poisson distribution without giving a proof and some thought that checking the mean equalled the variance was sufficient. For (ii), some assumed E(f(x)) = f(E(X)) which may have been with an eye to the 'show that' so e.g. 'Y~Po(λp), e = Ee'. For (iii), a minority used the law of total probability and were generally successful. A popular approach was to spot that P(assistant gets sand) = E(proportion of sand they take), however few were able to express this as a correct probabilistic statement. In particular, some treated the amount of sand taken/remaining as a deterministic constant equal to its mean. Many candidates struggled to differentiate ke^{-k} with respect to k, and few gave a valid justification why the stationary point was a maximum.

There was a significant rise in the total entry this year with an increase of nearly 8.5% on 2018. One question was attempted by over 90%, two others were very popular, and three further questions were attempted by 60% or more. No question was generally avoided and even the least popular attracted more than 10% of the candidates. 88% restricted themselves to attempting no more than 7 questions, and only a handful, but not the very best, scored strongly attempting more than 7 questions.

Source: Cambridge STEP 2019 Examiner's Report · 2019-p3.pdf
Rating Information

Difficulty Rating: 1500.0

Difficulty Comparisons: 0

Banger Rating: 1500.0

Banger Comparisons: 0

Show LaTeX source
Problem source
The number of customers arriving at a builders' merchants each day follows a Poisson distribution with mean $\lambda$. Each customer is offered some free sand. The probability of any given customer taking the free sand is $p$.
\begin{questionparts}
\item Show that the number of customers each day who take sand follows a Poisson distribution with mean $p\lambda$.
\item The merchant has a mass $S$ of sand at the beginning of the day. Each customer who takes the free sand gets a proportion $k$ of the remaining sand, where $0 \leq k < 1$. Show that by the end of the day the expected mass of sand taken is
$$\left(1 - e^{-kp\lambda}\right)S.$$
\item At the beginning of the day, the merchant's bag of sand contains a large number of grains, exactly one of which is made from solid gold. At the end of the day, the merchant's assistant takes a proportion $k$ of the remaining sand. Find the probability that the assistant takes the golden grain. Comment on the case $k = 0$ and on the limit $k \to 1$.
In the case $p\lambda > 1$ find the value of $k$ which maximises the probability that the assistant takes the golden grain.
\end{questionparts}
Solution source
\begin{questionparts}

\item Let $X$ be the number of people arriving on a given day, and $Y$ be the number taking sand, then \begin{align*}
&& \mathbb{P}(Y = k) &= \sum_{x=k}^{\infty} \mathbb{P}(x \text{ arrive and }k\text{ of them take sand}) \\
&&&= \sum_{x=k}^{\infty} \mathbb{P}(X=x)\mathbb{P}(k \text{ out of }x\text{ of them take sand})\\
&&&=  \sum_{x=k}^{\infty} e^{-\lambda} \frac{\lambda^x}{x!}\binom{x}{k}p^k(1-p)^{x-k}\\
&&&= e^{-\lambda} \left ( \frac{p}{1-p} \right)^k \sum_{x=k}^{\infty} \frac{((1-p)\lambda)^x}{k!(x-k)!} \\
&&&= e^{-\lambda} \left ( \frac{p}{1-p} \right)^k \frac{((1-p)\lambda)^k}{k!} \sum_{x=0}^{\infty} \frac{((1-p)\lambda)^x}{x!} \\
&&&= e^{-\lambda} \left ( \frac{p}{1-p} \right)^k \frac{((1-p)\lambda)^k}{k!}e^{(1-p)\lambda)} \\
&&&= e^{-p\lambda} \frac{(p\lambda)^k}{k!}
\end{align*}

which is precisely a Poisson with parameter $p\lambda$.

Alternatively, $Y = B_1 + B_2 + \cdots + B_X$ where $B_i \sim Bernoulli(p)$ so $G_Y(t) = G_X(G_B(t)) = G_X(1-p+pt) = e^{-\lambda(1-(1-p+pt))} = e^{-p\lambda(1-t)}$ so $Y \sim Po(\lambda)$


Alternatively, alternatively, let $Z$ be the number of people not taking sand, so \begin{align*}
&& \mathbb{P}(Y = y, Z= z) &= \mathbb{P}(X=y+z) \cdot \binom{y+z}{y} p^y(1-p)^z \\
&&&= e^{-\lambda} \frac{\lambda^{y+z}}{(y+z)!} \frac{(y+z)!}{y!z!} p^y(1-p)^z \\
&&&=\left ( e^{-p\lambda} \frac{(p\lambda)^y}{y!} \right) \cdot \left ( e^{-(1-p)\lambda} \frac{((1-p)\lambda)^z}{z!}\right)
\end{align*}

So clearly $Y$ and $Z$ are both (independent!) Poisson with parameters $p\lambda $ and $(1-p)\lambda$

\item The amount taken is $Sk + S(1-k)k  + \cdots +Sk(1-k)^{Y-1} = Sk\cdot \frac{1-(1-k)^Y}{k} = S(1-(1-k)^Y)$ so

\begin{align*}
\E[\text{taken sand}] &= \E \left [ S(1-(1-k)^Y)\right] \\
&= S-S\E\left [(1-k)^Y \right] \\
&= S - SG_Y(1-k)\\
&=S - Se^{-p\lambda(1-(1-k))} \tag{pgf for Poisson} \\
&= S\left (1-e^{-kp\lambda} \right)
\end{align*}

\item The fraction of grains the assistant takes home is:

$(1-k)^Yk$, which has expected value $ke^{-kp\lambda}$. This the the probability he takes home the golden grain.

When $k = 0$ the probability is $0$ which makes sense (no-one takes home any sand, including the merchant's assistant).

As $k \to 1$ we get $e^{-p\lambda}$ which is the probability that no-one gets any sand other than him.

\begin{align*}
&& \frac{\d }{\d k} \left ( ke^{-kp\lambda} \right) &= e^{-kp\lambda} - (p\lambda)ke^{-kp\lambda} \\
&&&= e^{-kp\lambda}(1 - (p\lambda)k) 
\end{align*}

Therefore maximised at $k = \frac{1}{p\lambda}$. (Clearly this is a maximum just by sketching the function)

\end{questionparts}