A flat density in induces . Since , the absolute Jacobian determinant is . Therefore
This is the Haldane prior, an improper prior with formal beta parameters .
Multiplying the likelihood in part (d) by the Haldane prior gives . Consequently
For at least one hospital, , this posterior is proper exactly when . If every count is zero, the kernel diverges at and does not define a posterior distribution; the improper prior cannot then be used for the subsequent expectation.
For and , a scale-invariant prior induces the Haldane prior on . Integrating out each local mean gives . Thus for . The gamma full conditional distribution has mean , so the tower property gives , equal to the displayed partial pooling formula. For , the posterior is improper and this expectation is undefined.