1. Two dice are thrown and the numbers they show are represented by a pair $(i, j)$. Suppose that the 36 possible outcomes in $Ω = \{(i, j) : 1 ≤ i, j ≤ 6\}$ are all equally likely. Let $A = \{\text{the first die shows }3\}, B = \{\text{the second die shows an even number}\}$ and $C =\{\text{the sum is even}\}$.
    (a) Show that $A$ and $B$ are independent.
    (b) Show that $B$ and $C$ are independent.
    (c) Show that $A$ and $C$ are independent.
    (d) Are $A$, $B$ and $C$ independent?
    Solution.
    (a) $A=\{(3,1),(3,2),\cdots,(3,6)\}$⇒$\mathbb P(A)=\frac16$.
    $B=\{(1,2),(1,4),\cdots,(6,6)\}$⇒$\mathbb P(B)=\frac12$.
    $A\cap B=\{(3,2),(3,4),(3,6)\}$⇒$\mathbb P(A\cap B)=\frac1{12}$.
    $\mathbb P(A\cap B)=\mathbb P(A)\mathbb P(B)$⇒$A$ and $B$ are independent.
    (b) $C=\{(1,1),(1,3),\cdots,(6,6)\}$⇒$\mathbb P(C)=\frac12$.
    $B\cap C=\{(2,2),(2,4),\cdots,(6,6)\}$⇒$\mathbb P(C)=\frac14$.
    $\mathbb P(B\cap C)=\mathbb P(B)\mathbb P(C)$⇒$B$ and $C$ are independent.
    (c) $A\cap C=\{(3,1),(3,3),(3,5)\}$⇒$\mathbb P(A\cap C)=\frac1{12}$.
    $\mathbb P(A\cap C)=\mathbb P(A)\mathbb P(C)$⇒$B$ and $C$ are independent.
    (d) $A\cap B\cap C=\emptyset$⇒$\mathbb P(A\cap B\cap C)=0$⇒$A,B$ and $C$ are not independent.
  2. An urn contains $m$ red balls and $n$ blue balls. Two balls are drawn uniformly at random from the urn, without replacement.
    (a) What is the probability that the first ball drawn is red?
    (b) What is the probability that the second ball drawn is red?
    (c) What is the probability that the first is red given that the second is red?
    Solution.
    (a) $\frac m{m+n}$.
    (b) $\frac m{m+n}\frac{m-1}{m+n-1}+\frac n{m+n}\frac m{m+n-1}=\frac{m}{m+n}$.
    (c) $\frac{\frac m{m+n}\frac{m-1}{m+n-1}}{\frac{m}{m+n}}=\frac{m-1}{m+n-1}$.
  3. Parliament contains a proportion $p$ of Conservative members, who never update their views about anything, and a proportion $1-p$ of Labour members, who change their minds at random (with probability $r$) between successive votes on the same issue. A randomly chosen member is noticed to have voted twice in succession in the same way. What is the probability that this member will vote the same way next time?
    Solution.
    $\frac{p+(1-r)^2(1-p)}{p+(1-r)(1-p)}$
  4. (a) A fair coin is tossed 26 times. Write down an expression for the probability of seeing exactly 13 heads and 13 tails.
    (b) A pack of 52 cards (containing 26 red and 26 black cards) is shuffled, and then 26 cards are dealt. Write down an expression for the probability that exactly 13 red and 13 black cards are dealt.
    Without calculating, which of the answers in (a) and (b) do you think will be bigger?
    Stirling’s formula gives $n ! \approx \sqrt{2 \pi} e^{-n} n^{n+1 / 2}$. Check your intuition by using this formula to approximate the two probabilities.
    Solution.
    (a) ${\binom{26}{13}\over2^{26}}={26!\over(13!)^22^{26}}$.
    (b) ${\binom{26}{13}^2\over\binom{52}{26}}={(26!)^4\over(13!)^452!}$.
    ${26!\over(13!)^22^{26}}\approx{26^{26.5}\over\sqrt{2\pi}13^{27}2^{26}}=\frac1{\sqrt{13π}}$.
    ${(26!)^4\over(13!)^452!}\approx{26^{106}\over\sqrt{2\pi}13^{54}52^{52.5}}=\frac{\sqrt2}{\sqrt{13π}}$.
  5. Suppose we have the following rates:
    • a prevalence of Covid infection in the population of 1.25%;
    • for lateral flow tests (LFTs), a false positive rate of 0.07% and a false negative rate of 45%;
    • for PCR tests, a false positive rate of 0.05% and a false negative rate of 7%.
    (Of course it’s hard to pin down such rates with any confidence. Most notably, it’s not particularly appropriate to give a single number for the false negative rates – the chance of a positive result for an infected person is very much influenced by the time since their infection, for example, and by numerous other factors. But we will work with these figures for the purpose of this question.)
    (a) A randomly chosen individual takes an LFT and receives a positive result. Given the test result, what is the conditional probability that they are infected?
    (b) The individual then takes a PCR test, and receives a negative result. What is now the conditional probability that they are infected?
    Mention any further assumptions you need to make in carrying out your calculations.
    Solution.
    (a)$\frac{1.25\%\cdot55\%}{1.25\%\cdot55\%+98.75\%\cdot0.07\%}$=90.864%
    (b)$\frac{1.25\%\cdot55\%\cdot7\%}{1.25\%\cdot55\%\cdot7\%+98.75\%\cdot0.07\%\cdot99.95\%}$=0.69%
    Assumption: two tests are independent events.
  6. (Euler’s formula for the Riemann zeta function). For real numbers $s > 1$, the Riemann zeta function is defined by $\zeta(s)=\sum_{n=1}^{\infty} \frac{1}{n^{s}}$
    Fix $s > 1$ and consider a positive integer-valued random variable $X$ with probability mass function given by$$p_{X}(n)=\mathbb{P}(X=n)=\frac{1}{n^{s}} \frac{1}{\zeta(s)}, \quad n \geq 1$$(a) Let $k≥2$ be an integer. What is the probability that $X$ is divisible by $k$?
    (b) Let $D_k$ be the event that $X$ is divisible by $k$. Show that the events $\{D_p : p\text{ prime}\}$ are independent.
    (c) Recall from lectures that if the family $\{A_i, i ∈ I\}$ of events is independent, then so is the family $\{A^c_i, i ∈ I\}$. Use (b) to prove Euler’s formula: for every $s > 1$,$$\zeta(s)=\prod_{p \text { prime }}\left(1-\frac{1}{p^{s}}\right)^{-1}$$where the product is over all prime numbers (one is not included as a prime).
    Hint: you may assume that for independent events $A_1,A_2,…,$ we have $\mathbb P(\bigcap^∞_{i=1}A_i)=\prod^∞_{i=1}\mathbb P(A_i)$. Note that this does not follow directly from the definition of independence (proving it requires a slightly tricky argument using the countable additivity axiom).
    Solution.
    (a) $\sum_{i=1}^\infty\frac{1}{(ki)^{s}} \frac{1}{\zeta(s)}=\frac1{k^s}\frac{1}{\zeta(s)}\sum_{i=1}^\infty\frac{1}{i^{s}}=\frac1{k^s}\frac{1}{\zeta(s)}\zeta(s)=\frac1{k^s}$.
    (b) For any finite subset $D$ of $D_p$. By (a), the probability of $X$ divisible by all primes in $D$ is $\frac1{(\prod_{p\in D}p)^s}=\prod_{p\in D}\frac1{p^s}$, which is product of probability of $X$ divible by every prime in $D$, so the events $D_p$ are independent.
    (c) $\prod_{p \text { prime }}\left(1-\frac{1}{p^{s}}\right)=\mathbb P(\text{$X$ is not divisible by any prime})=\mathbb P(X=1)=\frac1{\zeta(s)}$.