Independent random variables and the inclusion exclusion principle : Exercises

Introduction

The problems below get you to think about pair of random variables and what it means when we say that random variables are independent. Remember two random variables are independent if: $$ P(X=x \wedge Y=y) = P(X=x)P(Y=y) \qquad \forall \quad x,y $$ You will also need to use the inclusion-exclusion principle which tells you that: $$ P(X=x \vee Y=y ) = P(X=x) + P(Y=y) - P(X=x \wedge Y=y) $$

Example problems

Click on the problems to reveal the solution

Problem 1

$P(A \wedge B)$ is maximal when $P(A|B)=1$. That is to say the probability is maximal if A happens whenever B happens, i.e. when event A is concurrent with event B. If we insert this requirement into the definition of conditional probability we find that: $$ \begin{aligned} P(A|B) & = \frac{P(A \wedge B)}{P(B)} \\ \rightarrow \qquad 1 & = \frac{P(A \wedge B)}{1/3} \qquad \rightarrow \qquad P(A \wedge B) &= \frac{1}{3} \end{aligned} $$ Notice that $P(B|A) \lt 1$ as $P(A) \gt P(B)$. That is to say that event B cannot be concurrent with event A.

Having maximised $P(A \wedge B)$ we we need to minimise $P(A \wedge B)$ in order to find the other limit on this probability. If $P(A)+P(B) \lt 0$ this would be easy - we would just set $P(A \wedge B)=0$. However, in this case $P(A)+P(B)>1$ and as such $P(A \wedge B)>0$. We can calculate the value of $P(A \wedge B)$ using the inclusion exclusion principle as follows: $$ P(A \vee B) = P(A) + P(B) - P(A \wedge B) $$ We know that $P(A \wedge B)$ will be minimised when $P(A \vee B)=1$. Substituting this and everything else we know into the above gives: $$ 1 = \frac{3}{4} + \frac{1}{3} - P(A \wedge B) = \frac{13}{12} - P(A \wedge B) \qquad \rightarrow \qquad P(A \wedge B) = \frac{1}{12} $$ We thus have that: $$ \frac{1}{12} \le P(A \wedge B) \le \frac{1}{3} $$

Problem 2

Method 1 ( enumerate sample space ) There are 27 possible combinations of occupants and floors. 6 of these combinations have the three occupants on different floors. The probability is thus $\frac{6}{27} = \frac{2}{9}$

Method 2 ( conditional probabilities ) My preferred method
  • The probability the second person gets off at a different floor to the first person is $\frac{2}{3}$
  • The probability the third person gets off at a different floor to the first two people is $\frac{1}{3}$
  • The probability that they all get off at different floors is thus $\left( \frac{2}{3} \right) \left(\frac{1}{3} \right) = \frac{2}{9}$

Contact Details

School of Mathematics and Physics,
Queen's University Belfast,
Belfast,
BT7 1NN

Email: g.tribello@qub.ac.uk
Website: mywebsite