2.6 Random Sum
Example. Addition of multiple independent Exponential random variables
$ \mathbf{X}_{1},\mathbf{X}_{2},\cdots $ are $ i.i.d. $ Exponentail random variables with parameter $ \lambda $ and $ \mathbf{N} $ is Geometric random variable with parameter $ p $ . Find the distribution of $ \mathbf{S}_{\mathbf{N}}=\sum_{i=1}^{\mathbf{N}}\mathbf{X}_{i} $ .
Solution
The probability generating function of Geometric random variable is
$ P_{\mathbf{N}}\left(z\right)=E\left[z^{\mathbf{N}}\right]=\sum_{k=1}^{\infty}z^{k}\cdot q^{k-1}p=\frac{p}{q}\sum_{k=1}^{\infty}\left(z\cdot q\right)^{k}=\frac{p}{q}\cdot\frac{z\cdot q}{1-z\cdot q}=\frac{z\cdot p}{1-\cdot z\cdot q} $.
The moment generating function of Exponentail random variable is
$ \phi_{\mathbf{X}}\left(s\right)=E\left[e^{s\mathbf{X}}\right]=\int_{0}^{\infty}e^{sx}\cdot\lambda e^{-\lambda x}dx=\lambda\int_{0}^{\infty}e^{x\left(s-\lambda\right)}dx=\frac{\lambda}{s-\lambda}e^{x\left(s-\lambda\right)}\biggl|_{0}^{\infty}=\frac{\lambda}{\lambda-s}. $
Now we can get,
$ \phi_{\mathbf{S}_{\mathbf{N}}}\left(s\right)=\frac{z\cdot p}{1-\cdot z\cdot q}\biggl|_{z=\frac{\lambda}{\lambda-s}}=\frac{\frac{\lambda}{\lambda-s}\cdot p}{1-\frac{\lambda}{\lambda-s}\cdot q}=\frac{\lambda p}{\lambda-s-\lambda\left(1-p\right)}=\frac{\lambda p}{\lambda p-s}. $
This is the moment generating function of Exponential random variable with parameter $ \lambda p $ . Thus, $ f_{\mathbf{S}_{N}}\left(t\right)=p\lambda e^{-p\lambda t}. $