I have a question that requires to prove if the following function whether is it a PMF with poisson random variable. The function is as follows...
$f(x) = \pi \frac {\lambda_1^x}{x!} e^{-\lambda_1} + (1-\pi) \frac {\lambda_2^x}{x!}e^{-\lambda_2} $
where $x\epsilon \mathrm X = \{0,1,...\}, \pi \epsilon (0,1), \lambda_1, \lambda_2 > 0, \lambda_1 \neq \lambda_2$
Can I split $f(x)$ into 2 function $\sum_{x=0}^{\infty}\pi \frac {\lambda_1^x}{x!} e^{-\lambda_1}$ and $\sum_{x=0}^{\infty} (1-\pi) \frac {\lambda_2^x}{x!}e^{-\lambda_2}$ to prove that it is a PMF and hence continue with calculating it's expectation and variance using this 2 sub-function?
I've found out the expectation of $f(x)$, which is $\mathbb E[X] = \mathbb E[X_1] + \mathbb E[X_2];$ where, $\mathbb E[X_1] = \sum_{x=0}^{\infty}x\pi \frac{\lambda_1^x}{x!}e^{-\lambda_1} = \pi\lambda_1$
$\mathbb E[X_2]=\sum_{x=0}^{\infty} x(1-\pi)\frac{\lambda_2^x}{x!}e^{-\lambda_2} = (1-\pi)\lambda_2$
Now my question is how am I suppose to carry to find out what is the variance as the variance i've got is different from the expectation I got above. For a Poisson random variable, the expectation should be the same as variance. Am I right? I have also tried using moment generating function. For the 1st differential, I got the same result as my expectation. But I couldn't further differentiate the 2nd time to get my variance as all the remaining terms are constant terms. Could I have some suggestion of how should I carry on from where?