I am trying the prove the following:
Show that an exponential random variable such that the inverse of the parameter is gamma-distributed is Pareto-distributed. More precisely, show that if $$X | M = m \sim \mathrm{Exp}(m)$$ with $M^{−1} \sim \Gamma(p, a)$, then $X$ has a (translated) Pareto distribution.
I found a very similar problem proved already on stackexchange here: compound of gamma and exponential distribution
Except in my problem the pdf of the inverse gamma distributed variable $X$ is given by
$$f_X(x) = \frac {\beta^{\alpha}}{\Gamma (\alpha)} x^{-\alpha -1} e^{\frac{-\beta} {x}}$$
and the pdf of the compound exponential variable $Y$ is given by
$$f_{Y|X}(y|x) = Xe^{-Xy}$$
and thus
$$f_Y(y) = \int_{x=0}^\infty f_{Y \mid X}(y \mid x) f_X(x) \, \mathsf dx$$
I tried to follow analogous steps to the other problem, but the algebra just doesn't seem to work out. I can't seem to manipulate the integral to factor out the translated Pareto distribution and form the kernel of a known distribution within the integrand. Any help would be greatly appreciated.