- A random variable has the following mixed distribution (ie: A distribution that is both discrete and continuous):
$P_{X}=\frac{1}{3}E(1)+\frac{2}{3}B(\frac{1}{2})$,
where $E(1)$ is the exponential distribution with $\lambda=1$ and $B(1/2)$ is the Bernoulli distribution with p=1/2. What is the density function for $P_{X}$?
I'd also like to know what $\textbf{E}X$ and $\operatorname{Var}(X)$ is, as well as the Characteristic function.
Here is the answer done with Maple. $$ with(Statistics): E := RandomVariable(Exponential(1)): B := RandomVariable(BernoulliDistribution(1/2)): Z := (1/3)*E+(2/3)*B:$$ Its PDF is found by $$PDF(Z, t) $$ which outputs
$$\cases{0&$t<0$\cr 3/2\,{{\rm e}^{-3\,t}}&$t<2/3$\cr 3/2\,{{\rm e}^{-3\,t}}+3/2\,{{\rm e}^{-3\,t+2}}&$2/3\leq t$\cr}. $$ Then $$ Mean(Z)$$ $$ \frac 2 3$$ $$ Variance(Z)$$ $$ \frac 2 9$$ and $$CharacteristicFunction(Z, omega) $$ outputs $$-3/2\,{\frac {1+{{\rm e}^{2/3\,i\omega}}}{i\omega-3}} .$$ See Statistics for more info.