Assignment - Module 6

06 August 2021

Group 23: Aman Jindal | Yuhang Jiang | Daniel Gabriel Tan | Qining Liu


Q1.Show that sum of two independent binomial distributions is also binomial, i.e. X ∼ Bin(n, p), Y ∼ Bin(m, p) then X + Y ∼ Bin(n + m, p). Hint: You might want to use the Vandermonde’s identity.

Answer 1:

For, any value $a$ for random variables $X$ and $Y$, such that, $0\le{a}\le{n+m}$, we have:

$$P(X+Y = a) = \sum_{i=0}^{a} {P(X = i, Y = a-i)} \qquad \text{where,} \,\, 0\le{a}\le{n+m}$$


As the Binomial experiments are independent, we have:

$$\therefore P(X+Y = a) = \sum_{i=0}^{a} {P(X = i) P(Y = a-i)}$$


$$\implies P(X+Y = a) = \sum_{i=0}^{a} {[^nC_ip^i(1-p)^{n-i}}]\,[^mC_{a-i}p^{a-i}(1-p)^{m-a+i}]$$


$$\implies P(X+Y = a) = \sum_{i=0}^{a} {^nC_{i}\,^mC_{a-i}\,p^a(1-p)^{n+m-a}}$$


$$\implies P(X+Y = a) = p^a(1-p)^{n+m-a}\sum_{i=0}^{a} {^nC_{i}\,^mC_{a-i}\,}$$


Now, Vandermonde's identity states that: $\quad^{m+n}C_{r} = \sum_{k=0}^{r} {^mC_{k}\,^nC_{r-k}\,}$

$$\therefore P(X+Y = a) =\,^{m+n}C_{a}\, p^a(1-p)^{n+m-a}$$


$$\implies X+Y \sim Bin(n+m, p) $$


Q.E.D.



Q2. Say X ∼ Pois(3) and Y ∼ Pois(2) are two independent poisson distributions. Compute the probability that X + Y = 5. Additionally, compute the probability that X = 4, Y = 1 given X + Y = 5. Hint: Sum of two poisson distributions is also a poisson distribution. For the second part, independence assumption is key!

Answer 2:

i. Probability that $X + Y = 5$

For a poisson distribution, if $X_i \sim Pois(\lambda_i) \quad \text{for}\, i= 1,2,....,n \;$; then:

$$\sum_{i=1}^n X_i \sim Pois\left(\sum_{i=1}^{n}\right)\lambda_{i}$$


Thus, $$X+Y \sim Pois(5)$$

Therefore,

$$P(X+Y = 5) = \frac{\lambda^{k}e^{-\lambda}}{k!}, \quad \text{where} \; \lambda=5,\: k = 5; $$


$$P(X+Y = 5) = 0.1755 $$


ii. Probability that $X = 4, Y = 1, \; given \; X + Y = 5$

$X + Y = 5,$ can result from the following $(X,Y)$ combinations $(0,5), (1,4), (2,3), (3,2), (4,1), and\; (5,0).$

Therefore, Probability that $X = 4, Y = 1, \; given \; X + Y = 5$ is:

$$P(X=4, Y=1 | X+Y = 5) = \frac{P(X=4)*P(Y=1)}{P (X+Y=5)}$$


$$P(X=4, Y=1 | X+Y = 5) = 0.2592$$



Q3. The arrival of buses at the bus stop can be modeled as a poisson process. Say buses arrive at a rate of 5 per hour (λ = 5). You just arrived at the bus stop. What is the probability that the next bus will arrive at the stop in the next 10 minutes. Additionally, find the probability that there will be a bus arriving in the next 5 minutes if there was no bus in the last 10 minutes.

Answer 3:

i. Probability of the next bus arriving in next 10 minutes

Therefore,

$$P(Bus_{\ge0,\,10\,mins}) = 1 - P(Bus_{0,\,10\,mins})$$


$$\implies P(Bus_{\ge0,\,10\,mins}) = 1 - \frac{\lambda^{k}e^{-\lambda}}{k!}, \quad \text{where} \; \lambda=5/6,\: k = 0;$$


$$\implies P(Bus_{\ge0,\,10\,mins}) = 0.5654$$


ii. Probability of a bus arriving in the next 5 minutes if there was no bus in the last 10 minutes.

$$P(T>t+s|T>s)=P(T>t)$$


Therefore,

$$P(Bus_{\ge0,\,5\,mins}) = 1 - P(Bus_{0,\,5\,mins})$$


$$\implies P(Bus_{\ge0,\,5\,mins}) = 1 - \frac{\lambda^{k}e^{-\lambda}}{k!}, \quad \text{where} \; \lambda=5/12,\: k = 0;$$


$$\implies P(Bus_{\ge0,\,5\,mins}) = 0.3408$$



Q4. Suppose you are given the PMF function of a random variable X such that P (X = −2) = P (X = 2) = 1/8, P (X = −1) = P (X = 1) = 1/8, P (X = 0) = 1/2. Lets define $Y = X^2$. Compute the PMF and the CDF of the random variable Y.

Answer 4:

$$ \mathrm{P}_X(k) = \begin{cases} 1/8 & \text{if } k = -2,2 \\ % & is your "\tab"-like command (it's a tab alignment character) 1/8 & \text{if } k = -1,1 \\ 1/2 & \text{if } k = 0 \\ 0 & \text{otherwise} \end{cases} $$


$$\therefore \{Y=4\} = \{X=2\} \cup \{X=-2\}$$


Thus, solving similarly for $Y = 0, 1$; we get the PMF of Y as:

$$ \mathrm {P}_Y(k) = \begin{cases} 1/2 & \text{if } k = 0 \\ 1/4 & \text{if } k = 1 \\ 1/4 & \text{if } k = 4 \\ 0 & \text{otherwise} \end{cases} $$


CDF of Y is:

$$ \mathrm{P}_{Y\le k}(k) = \begin{cases} 1/2 & \text{if } 0\le k \lt 1 \\ 3/4 & \text{if } 1\le k \lt 4 \\ 1 & \text{if } k \ge 4 \\ 0 & \text{otherwise} \end{cases} $$



The End.