Let $X_i,...,X_n$ be iid $Poisson(\theta)$ with $Gamma(a, \frac 1 b)$ prior and a posterior $Gamma\left(a+n\bar x,\frac{1+nb}{b}\right)$. Derive the Bayes estimator under the loss $L(\theta,\delta)=\frac{(\theta-\delta)^2}{\theta^k}$ for some $k>0$, also assume $a-k>0$.
I think it has to do with finding a function $\delta*$ that minimizes $E\left(\frac{(\theta-\delta)^2}{\theta^k}\right)$, but not sure how to go about it. Is $\delta$ distributed as the posterior Gamma, or are those separate things?
I know the Bayes estimator when the loss is $L(\theta,\delta)=(\theta-\delta)^2$ is the mean of the posterior distribution. But I don't know what to do when it's divided by $\theta^k$.