You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And now we need to find the conditional density of $X_1$ and $X_1+X_2=t$ , which $0\le x\le t$.
Solution
We can set the joint density$f(x,y)$ of $X,Y$ first, and then we can have the joint density$f_{X,X+Y}(x,t)$ of $X,X+Y$, which $f_{X,X+Y}(x,t)=f(x,t-x)=f_{X_1|X_1+X_2}(x|t)$
In this step, we need to confirm that $X_1$ must be independent.
So we can derive the formula:
$$\begin{array}{lcl}
f_{X_1|X_1+X_2}(x|t) &=& \frac{f_{X_1}\cdot f_{X_2}(t-x)}{f_{X_1+X_2}(t)} \\
\\
&=& \frac{\mu_1 e^{-\mu_1x}\cdot\mu_2 e^{-\mu_2x}}{f_{X_1+X_2}(t)} , 0\le x\le t \\
\\
&=& C \cdot e^{-(\mu_1-\mu_2)x} , 0\le x\le t
\end{array}
$$
After the derivation, we can pack some variables into $C = \frac{\mu_1 \mu_2 \cdot e^{-\mu_2 t}}{f_{X_1+X_2}(t)}$
And then we can discuss the following two scenarios:
The Expectation of the sum of a Random Number of Random Variables
Now we calculate the expectation of compound random variables. Consider the case: we have a random number of accidents in each day, and each accident will cost some money which also use a random variable to represent.