STEP 2 · 20 marks

STEP 2 2014 · Q13

Probability & statistics

A random number generator prints out a sequence of integers I1,I2,I3,… I_1,I_2,I_3,\ldots\,. Each integer is independently equally likely to be any one of 1,2,…,n1,2,\ldots,n, where nn is fixed. The random variable XX takes the value rr, where IrI_r is the first integer which is a repeat of some earlier integer.

Write down an expression for P(X=4)\mathrm{P}(X=4).

  1. Find an expression for P(X=r)\mathrm{P}(X=r), where 2⩽r⩽n+12\leqslant r\leqslant n+1. Hence show that, for any positive integer nn,

    1n+(1−1n)2n+(1−1n)(1−2n)3n+⋯=1 . \frac1n+\left(1-\frac1n\right)\frac2n+\left(1-\frac1n\right)\left(1-\frac2n\right)\frac3n+\cdots=1\,.
  2. Write down an expression for E(X)\mathrm{E}(X). (You do not need to simplify it.)
  3. Write down an expression for P(X⩾k)\mathrm{P}(X\geqslant k).
  4. Show that, for any discrete random variable YY taking the values 1,2,…,N1,2,\ldots,N,

    E(Y)=∑k=1NP(Y⩾k) . \mathrm{E}(Y)=\sum_{k=1}^{N}\mathrm{P}(Y\geqslant k)\,.

    Hence show that, for any positive integer nn,

    (1−12n)+(1−1n)(1−22n)+(1−1n)(1−2n)(1−32n)+⋯=0 . \left(1-\frac{1^2}{n}\right)+\left(1-\frac1n\right)\left(1-\frac{2^2}{n}\right)+\left(1-\frac1n\right)\left(1-\frac2n\right)\left(1-\frac{3^2}{n}\right)+\cdots=0\,.

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