A boundary left by an improper prior

A binomial success probability has prior weight w(θ)∝[θ(1−θ)]−1w(\theta)\propto[\theta(1-\theta)]^{-1}. For five trials, determine the posterior kernel and whether it is proper (a) if two trials succeed and (b) if none succeed. Give the posterior mean in the proper case.

For two successes, the kernel is θ2−1(1−θ)3−1\theta^{2-1}(1-\theta)^{3-1}, hence the proper Beta⁡(2,3)\operatorname{Beta}(2,3) posterior has mean 2/(2+3)=0.42/(2+3)=0.4. With no successes, the kernel is θ−1(1−θ)4\theta^{-1}(1-\theta)^4; its integral diverges at zero, so there is no posterior probability distribution.