STEP 2 · 20 marks

STEP 2 2022 · Q11

Probability & statistics

A batch of NN USB sticks is to be used on a network. Each stick has the same unknown probability pp of being infected with a virus. Each stick is infected, or not, independently of the others.

The network manager decides on an integer value of TT with 0⩽T<N0\leqslant T<N. If T=0T=0 no testing takes place and the NN sticks are used on the network, but if T>0T>0, the batch is subject to the following procedure.

  • Each of TT sticks, chosen at random from the batch, undergoes a test during which it is destroyed.
  • If any of these TT sticks is infected, all the remaining N−TN-T sticks are destroyed.
  • If none of the TT sticks is infected, the remaining N−TN-T sticks are used on the network.

If any stick used on the network is infected, the network has to be disinfected at a cost of £DD, where D>0D>0. If no stick used on the network is infected, there is a gain of £11 for each of the N−TN-T sticks. There is no cost to testing or destroying a stick.

  1. Find an expression in terms of NN, TT, DD and qq, where q=1−pq=1-p, for the expected net loss.
  2. Let α=DTN(N−T+D)\alpha=\dfrac{DT}{N(N-T+D)}. Show that 0⩽α<10\leqslant\alpha<1.

    Show that, for fixed values of NN, DD and TT, the greatest value of the expected net loss occurs when qq satisfies the equation qN−T=αq^{N-T}=\alpha.

    Show further that this greatest value is £D(N−T) αkN\dfrac{D(N-T)\,\alpha^k}{N}, where k=TN−Tk=\dfrac{T}{N-T}.

  3. For fixed values of NN and DD, show that there is some β>0\beta>0 so that for all p<βp<\beta, the expression for the expected loss found in part (i) is an increasing function of TT. Deduce that, for small enough values of pp, testing no sticks minimises the expected net loss.

Read the questions freely. Sign in to check your answer, see the model answer and save your progress.