In my probability class I got a problem about conditional distributions to solve.
Let $\lambda, a, b >0$. Random variable $N$ has Poisson distribution ($Po(\lambda) $). Conditioning on $N$, random variable $T$ has distribution $Exp(an+b)$. I need to calculate unconditional distribution of random variable $T$ and conditional distribution of random variable $N$ given $T$.
If $N$ is Poisson distributed, then $P(N=n)= \frac{\lambda^n e^{-\lambda}}{n!}$ for $n=0,1,2,...$ and exponential distribution has density $f(t)= \lambda e^{-\lambda t} $ for $t>0,$ and $0$ otherwise.
I started like this: let $0 \leq c \leq d $, then $P(c < T < d)= \sum_{n=0}^{\infty} P(N=n) P(c < T <d | N=n)= \sum_{n=0}^{\infty} \frac{\lambda^n e^{-\lambda}}{n!}(an+b) \int_{c}^d e^{-(an+b)t} dt $.
I know I can exchange the integral and the sum but I don't know how to calculate this sum anyway.
If someone has some idea of how to sum this, I would be really thankful.
Work with densities instead. Let $f_T$ be the density function of $T$ and $f_{T\mid N}$ be the density of $T\mid N$. The latter is naturally the density of an exponential r.v. Let $\Omega$ be the probability space. To get the unconditional density of $T$, use that
$$ f_T(t) = \int_\Omega f_{T\mid N}(t\mid n) \,\mathrm dP(N = n) $$ where the integral is a Riemann-Stieltjes integral, i.e. \begin{align*} f_T(t) &= \sum_{n = 0}^\infty f_{T\mid N}(t\mid n) P(N = n) \\&= \sum_{n = 0}^\infty (an+b)e^{-(an+b)t} \frac{\lambda^n e^{-\lambda}}{n!}. \end{align*} By expanding a bit and pulling constants out of the sum we see that the sums are power series of the exponential function. Hence, \begin{align*} f_T(t) &= e^{-(\lambda+bt)} \biggl(a\sum_{n = 0}^\infty \frac{\lambda^n e^{-ant}}{(n-1)!} + b\sum_{n = 0}^\infty \frac{\lambda^ne^{-ant}}{n!} \biggr) \\&= e^{-(\lambda+bt)} \left(a\, e^{-at+\lambda \exp\{-at\}}+ be^{\lambda \exp\{-at\}}\right) \end{align*}
To find $N\mid T$, use Baye's theorem, $$ P( N = n\mid T\leq t) = \frac{P(T\leq t \mid N = n)P(N = n)}{P(T\leq t)} $$