Introduction to Probability & Statistics

Assignment 1, 2025/26

Instructions

Submit your answers to all questions marked Hand-in. You should upload your solutions to the VLE as a single pdf file. Marks will be awarded for clear, logical explanations, as well as for correctness of solutions.
Solutions to questions marked have been released at the same time as this assignment, in case you want to check your answers or need a hint.
You should also look at the other questions in preparation for your Week 3 seminar.

Starters

These questions should help you to gain confidence with the basics.

S1. A bag contains six balls numbered 1–6. Two balls are pulled out of the bag (without replacement), and the outcome is recorded as \((i,j)\) if ball \(i\) is drawn first, and ball \(j\) drawn second. How many possible outcomes are there?
Now suppose that balls numbered 1–4 are white, and the other two are black. How many outcomes are there in which the following occur?

  1. both balls are white;
  2. both balls have the same colour;
  3. at least one of the balls is white?
Answer

Since we are sampling without replacement there are \(6\times 5 = 30\) different possible outcomes: \(\{(1,2),(1,3),(1,4),\dots, (2,1),(2,3),\dots,(6,5)\}\).

  1. Here we need to choose a white ball followed by another white ball: \(4\times 3 = 12\);
  2. As in part (a), the number of ways in which two black balls can be chosen is \(2\times 1 = 2\). Hence the total number of outcomes for which both balls have the same colour is \(12+2 = 14\).
  3. Here we need either both balls to be white (which we’ve already counted), or exactly one to be white. There are \(4\times 2 = 8\) ways for the first ball to be white and the second black, and another \(2\times 4 = 8\) ways for the balls to come out in the opposite order; so there are \(16+12 = 28\) possible outcomes altogether. (Alternatively, we know from part (b) that there are only two outcomes where both balls are black, and since there are 30 possible outcomes in total, 28 of these must include at least one white ball.)

S2. Hand-in
A bag contains ten balls numbered 1–10. Three balls are pulled out of the bag (without replacement), and the outcome is recorded as \((i,j,k)\) if ball \(i\) is drawn first, ball \(j\) second, and ball \(k\) third. By Theorem 1.5, there are \(P^{10}_3 = 10!/7! = 10\times 9\times 8 = 720\) possible outcomes in total. In how many of these outcomes do the following occur:

  1. all three chosen balls are even-numbered?
  2. at least one of the chosen balls shows a number which is a multiple of 5?
Answer
  1. We need to count the number of ordered lists of length three, which can be formed from the set of five even-numbered balls. By Theorem 1.5, this is \(P^5_3 = 5!/2! = 60\). [2 marks]
  2. There are eight balls with numbers which are not a multiple of 5, so there are \(P^8_3 = 8 \times 7 \times 6 = 336\) outcomes in which all of the balls show numbers which are not a multiple of 5. This means that there are \(720 - 336 = 384\) outcomes in which at least one of the balls is a multiple of 5. [3 marks]

S3. Hand-in
Two rugby union teams, each with 15 players, shake hands at the end of a match: every player on Team A shakes hands with every player on Team B. How many handshakes will there be?
How many will there be if every player shakes hands with every other player (including those on their own team)?

Answer

Each player from Team A has to shake hands with 15 players from Team B. So there are \(15^2 = 225\) handshakes in total. [2 marks]

If everyone shakes hands with everyone else, then we need to count the number of ways of choosing two players out of 30: \(C^{30}_2 = 435\). [3 marks]

(Alternatively, we could count how many handshakes take place between two members of the same team, and add this to the 225 that we obtained above. With 15 people in Team A, there are \(C^{15}_2 = 105\) pairs of players to shake hands, and then there’s the same number of handshakes between members of Team B. This gives 210 extra handshakes.)

S4. 30 sweets are to be divided amongst five children. In how many ways can this be done? What if every child must be given at least two sweets each?

Answer

There are \(C^{30+5-1}_{5-1} = 46,376\) ways of dividing the sweets (allowing for the possibility of some children receiving none). If every child must be given two sweets, then if we do this first of all there are 20 sweets left to be divided: there are \(C^{20+5-1}_{5-1} = 10,626\) ways of doing this.

S5. Consider two events \(A\) and \(B\). Let \(C\) be the event that “\(A\) or \(B\) occurs, but not both”. Express \(C\) in terms of \(A\) and \(B\), using only the basic operations “union”, “intersection”, and “complement”.

Answer

There are many possible answers. Here are three: \[ \begin{split} C &= (A\cup B)\cap (A \cap B)^c\\ &= (A\cup B)\cap (A^c \cup B^c)\\ &=(A \cap B^c ) \cup (B \cap A^c ). \end{split} \]

S6. Hand-in
Let \(E\), \(F\) and \(G\) be three events. Find expressions for these events:

  1. Only \(F\) occurs;
  2. \(F\) and \(G\) occur;
  3. \(E\) or \(F\) occurs, but not \(G\);
  4. At least two of the events occur.
Answer
  1. \(F\cap E^c\cap G^c\); [1 mark]
  2. \(F\cap G\); [1 mark]
  3. \((E\cup F) \cap G^c\); [1 mark]
  4. \((E\cap F) \cup (E \cap G) \cup (F\cap G)\). [2 marks]

(You may have slightly different answers to the above, but if so then you should be able to prove that your versions are equivalent to mine!)

S7. Two dice are thrown. Let \(A\) be the event that the sum of the dice is even; let \(B\) be the event that the first die shows a higher number than the second; and let \(C\) be the event that the sum of the two dice is 6. List all the outcomes belonging to the events \(A\cap B\), \(A\cup C\), \(A\cap C^c\), \(A^c\cap C\), \(A\cap B\cap C\).

Answer

Writing \((i,j)\) for the outcome of the two dice, where \(i\) is the score on the first die and \(j\) the score on the second, we have: \[ \begin{split} A \cap B &= \{(3,1),(4,2),(5,1),(5,3),(6,2),(6,4)\} \,; \\ A\cup C &= A = \{(1,1),(1,3),(1,5),(2,2),(2,4),(2,6),(3,1),(3,3),(3,5),(4,2),(4,4), \\ &\qquad\qquad (4,6),(5,1),(5,3),(5,5),(6,2),(6,4),(6,6)\} \,; \\ A\cap C^c &= \{(1,1),(1,3),(2,2),(2,6),(3,1),(3,5),(4,4),(4,6),(5,3),(5,5),\\ &\qquad\qquad (6,2),(6,4),(6,6)\} \,; \\ A^c\cap C &= \emptyset \,; \\ A\cap B \cap C &= \{(4,2),(5,1)\} \,. \end{split} \]

Mains

These are a bit harder: you should aim to be able to do all of these by the end of the course.

M1. Hand-in
In how many ways can four men and four women (all distinguishable!) be seated in a row if

  1. there are no restrictions on the order?
  2. no members of the same sex can sit next to one another?
  3. there are four married couples, and each couple must sit together?
Answer
  1. With no restrictions there are \(8! = 40,320\) ways. [1 mark]
  2. There are \(4!=24\) ways of arranging the men, and 24 ways of arranging the women: this gives \(24\times 24 = 576\) arrangements. However, for every ordering of the men and women, we can choose whether to put a man or a woman in the first position – this means that the required number of arrangements is 1,152. [2 marks]
  3. There are \(4! = 24\) ways of arranging the four couples in order. But each married couple can be arranged in \(2!=2\) ways, and so there is a total of \(4!2!2!2!2! = 384\) arrangements. [2 marks]

M2. A student has 1 bookshelf, 10 novels (among which 3 titles appear twice each), 4 textbooks on probability theory and 6 knitting books. In how many ways can he put the books on the shelf such that books in the same category (novels, textbooks, knitting books) are next to each other? Possibilities where the doubles are switched are considered to be the same and are not counted separately.

Answer

The 3 categories can be placed in \(3!=6\) ways. The 4 textbooks can be placed in \(4!=24\) ways, and the 6 knitting books in \(6!=720\). For the novels, by Proposition 1.4 there are \(10!/(2!2!2!)\) ways of arranging them. This gives a total of \(3!4!6!\frac{10!}{2!2!2!} = 47,029,248,000\) ways to order all books.

M3. Prove, by expanding in terms of factorials, that

\[ {n\choose r} = {{n-1}\choose{r-1}} + {{n-1}\choose r}, \qquad 1\leq r\leq n \,. \]

Answer

\[ \begin{split} {{n-1}\choose{r-1}} + {{n-1}\choose r} &= \frac{(n-1)!}{(n-r)!(r-1)!} + \frac{(n-1)!}{(n-1-r)!r!} \\ &= \frac{(n-1)!}{(n-r)!r!}(r + (n-r)) \\ &= \frac{n!}{(n-r)!r!} = {n\choose r} \,. \end{split} \]

M4. Consider a group of \(n\) objects, labelled \(1,\dots,n\). How many (unordered) sets of size \(r\) are there that contain object 1? How many are there that don’t contain object 1? Use these observations to re-prove the identity in the previous question.

Answer

There are \({{n-1}\choose{r-1}}\) sets of size \(r\) that contain object 1. (First put object 1 in the set, and then choose another \(r-1\) objects from the remaining \(n-1\) objects available.) There are \({{n-1}\choose r}\) sets that don’t contain object 1. There are a total of \({n\choose r}\) unordered sets of size \(r\) possible with \(n\) objects, and since all of these must either contain object 1 or not contain it, we see that \[ {n\choose r} = {{n-1}\choose{r-1}} + {{n-1}\choose r}, \qquad 1\leq r\leq n \,.\]

M5. Prove that, for sets \(E\) and \(F\):

  1. \(E\cap F \subseteq E \subseteq E\cup F\)
  2. if \(E\subseteq F\) then \(F^c\subseteq E^c\)
  3. \(E = (E\cap F)\cup (E\cap F^c)\), and show that this union is disjoint.
Answer
  1. If \(\omega \in E\cap F\), then \(\omega\in E\) (and \(\omega \in F\)), and so \(E\cap F\subseteq E\). Similarly for \(E\subseteq E\cup F\).

  2. Let \(\omega \in F^c\), and suppose that \(\omega\in E\) also. Then, since \(E\subseteq F\), we would have \(\omega\in F\). But this would imply that \(\omega\in F\) and \(\omega \in F^c\), i.e. that \(\omega \in F\cap F^c = \emptyset\), which is a contradiction. Thus \(\omega\notin E\), i.e. \(F^c\subseteq E^c\).

  3. We can write \[ (E\cap F)\cup (E\cap F^c) = E\cap (F\cup F^c) = E\cap \Omega = E \,. \] Furthermore, we know that \(F\cap F^c = \emptyset\), and so \((E\cap F)\cap (E\cap F^c) = E\cap (F\cap F^c) = \emptyset\) (by part (a)). Thus the union is certainly disjoint.

M6. Prove the second of De Morgan’s laws: for sets \(E_1,\dots, E_n\): \[ \left(\bigcap_{i=1}^n E_i\right)^c = \bigcup_{i=1}^n E_i^c \,.\]

Answer

As usual, we need to show that any element \(\omega\) belonging to the first set belongs to the second, and vice versa.

Suppose first that \(\omega\in\left(\bigcap_{i=1}^n E_i\right)^c\). Then \(\omega\) does not belong to of the sets \(E_i\), and so there must be at least one set, say \(E_j\), with \(\omega \notin E_j\) (i.e. with \(\omega \in E_j^c\)). But this implies that \(\omega \in \bigcup_{i=1}^n E_i'\).

Working in the other direction, suppose that \(\omega\) belongs to the set on the RHS. Then there is at least one set \(E_k\) with \(\omega\in E_k^c\). Thus \(\omega\notin \bigcap_{i=1}^n E_i\), since \[ E_k^c \cap \left(\bigcap_{i=1}^n E_i\right) \subseteq (E_k^c\cap E_k)= \emptyset \,. \]

Therefore \(\omega \in\left(\bigcap_{i=1}^n E_i\right)^c\), as required.

M7. Let \(\mathbb P\) be a probability function and \(A\) and \(B\) events. Show that \[ \mathbb{P}\left(A^c\cap B^c\right) = 1-\mathbb{P}\left(A\right)-\mathbb{P}\left(B\right) + \mathbb{P}\left(A \cap B\right). \]

Answer

\[ \begin{split} \mathbb{P}\left(A^c\cap B^c\right) &= \mathbb{P}\left((A\cup B)^c\right) \qquad\text{ by De Morgan's law}\\ &=1 - \mathbb{P}\left(A\cup B\right) \qquad\text{ by (P4)}\\ &=1- \mathbb{P}\left(A\right) - \mathbb{P}\left(B\right) + \mathbb{P}\left(A\cap B\right) \qquad\text{ by (P6)}. \end{split} \]

M8. Show that if \(B\) is an event such that \(\mathbb{P}\left(B\right) =1\), then for all events \(A\), \(\mathbb{P}\left(A\cap B\right)=\mathbb{P}\left(A\right)\). (Hint: your answer should not assume that \(B=\Omega\)! It’s certainly possible to have \(\mathbb{P}\left(B\right) =1\) for a set \(B\neq\Omega\).)

Answer

Since \(A\cup B\supseteq B\) for any event \(A\), it holds that \(\mathbb{P}\left(A\cup B\right)\geq \mathbb{P}\left(B\right)=1\). Hence, \(\mathbb{P}\left(A\cup B\right)=1\) by axiom (P1) and \[ \begin{split} \mathbb{P}\left(A\cap B\right) &= \mathbb{P}\left(A\right)+\mathbb{P}\left(B\right)-\mathbb{P}\left(A\cup B\right) \text{ by property (P6)}\\ &=\mathbb{P}\left(A\right)+1-1 =\mathbb{P}\left(A\right). \end{split} \]

M9. Consider events \(A\), \(B\), and \(C\), which can occur in some experiment. Show that the probability that only \(A\) occurs (and not \(B\) or \(C\)) is equal to \(\mathbb{P}\left(A \cup B \cup C\right) - \mathbb{P}\left(B\right) - \mathbb{P}\left(C\right) + \mathbb{P}\left(B \cap C\right)\).

Answer

The event “only \(A\) occurs and not \(B\) or \(C\)” is the event \(A \cap (B \cup C)^c\). The trick in the calculation below is a common one: any event \(D\) can be split into two disjoint components by choosing an arbitrary other event \(A\) and writing \[ D=\Omega\cap D=(A\cap D)\cup(A^c\cap D)\,. \]

We use this below with the choice \(D=(B\cup C)^c\): \[ \begin{split} \mathbb{P}\left(A \cap (B \cup C)^c\right) &= \mathbb{P}\left((B\cup C)^c\right)-\mathbb{P}\left(A^c\cap(B\cup C)^c\right)\\ &= \mathbb{P}\left((B\cup C)^c\right)-\mathbb{P}\left((A\cup B\cup C)^c\right) \text{ by De Morgan's law}\\ &=1-\mathbb{P}\left(B\cup C\right)-1+\mathbb{P}\left(A\cup B\cup C\right) \text{ by (P4)}. \end{split} \]

We cancel the ones and use that \(\mathbb{P}\left(B\cup C\right)=\mathbb{P}\left(B\right)+\mathbb{P}\left(C\right)-\mathbb{P}\left(B\cap C\right)\) according to (P6) to obtain the desired result.

Desserts

Still hungry for more? Try these if you want to push yourself further. (These are mostly harder than I’d expect you to answer in an exam, or involve non-examinable material.)

D1. Show that for \(n>0\), \[ \sum_{i=0}^n (-1)^i{n \choose i} = 0 \,.\]

Answer

We know from the binomial theorem that for \(a,b\in \mathbb{R}\) and \(n\in\mathbb{N}\), \[ (a+b)^n = \sum_{i=0}^n {n\choose i}a^i b^{n-i} \,.\]

Substituting \(a=-1\) and \(b=1\) gives the required result.

D2. The famous Birthday Problem. If there are \(n\) people in a room, what is the probability that at least two people have a common birthday? (Ignore leap years for simplicity!)

Answer

As with many problems of this sort, it is easier to calculate the probability of the complementary event: that is, the probability that everybody has a distinct birthday. With \(n\) people and 365 days in the year, there is a total of \(365^n\) possible outcomes, \(|\Omega| = 365^n\). All outcomes have equal probability. How many of these have all \(n\) birthdays distinct? There are \[ 365\cdot 364\cdot\cdots\cdot(365-n+1)=\frac{365!}{(365-n)!}\] outcomes of this kind because we have 365 possible choices for the first person, then 364 for the second, and so on, and \(365-(n-1)\) choices for the \(n\)-th person. Thus the probability that at least two people have a common birthday is given by \[1-\frac{365!}{(365-n)!}\frac{1}{365^n} \,. \]

D3. Let \(k\) be a non-negative integer. How many distinct integer-valued vectors \((n_1,n_2,\ldots, n_r)\) are there which satisfy both of the following constraints?

  1. \(n_j \geq k\) for all \(j=1,2,\ldots, r\)
  2. \(n_1+n_2+\dots+ n_r = n\).
Answer

Let \(m_j = n_j-(k-1) \geq 1\). The number of solutions of

\[ n_1+n_2+\dots + n_r = n, \quad\text{with $n_j\geq k$ for all $j$} \]

is equal to the number of solutions to \[ m_1+m_2+\dots + m_r = n - r(k-1), \quad\text{with $m_j\geq 1$ for all $j$.} \]

The number of such solutions is given by \[ C^{n-r(k-1)-1}_{r-1}= {{n-r(k-1)-1}\choose{r-1}} \,.\] Alternatively, this problem is equivalent to having to divide \(n\) sweets among \(r\) children, such that each child gets at least \(k\) sweets each. We can do this by first of all giving each child \(k\) sweets, meaning that there are now \(n-rk\) sweets left to divide (where we are allowed to give some children zero extra sweets). The number of ways of doing this is \[ C^{(n-rk)+r-1}_{r-1}= {{n-r(k-1)-1}\choose{r-1}} \,.\]

D4. Calculating combinations for large integers can get a bit messy, but Stirling’s Approximation can sometimes be very useful: this says that as \(n\) gets large, \(n!\) can be well-approximated by \[ \sqrt{2\pi n}\left(\frac{n}{e}\right)^n\,. \] Use Stirling’s approximation to show that, for large \(n\), the number of ways of choosing \(n\) out of \(2n\) distinct items is approximately \[ \frac{4^n}{\sqrt{\pi n}} \,. \]

Answer

The number of ways of choosing \(n\) out of \(2n\) items is \({2n\choose n} = (2n)!/(n!n!)\). Replacing the factorials by Stirling’s approximation shows that for large \(n\), this number is well-approximated as follows: \[ {2n\choose n} = \frac{(2n)!}{n!n!} \approx \frac{\sqrt{2\pi 2n}\left(\frac{2n}{e}\right)^{2n}}{\sqrt{2\pi n}\left(\frac{n}{e}\right)^n\, \sqrt{2\pi n}\left(\frac{n}{e}\right)^n} = \frac{4^n}{\sqrt{\pi n}}\,. \]