Betabinomial and importance sampling

This seems sensible to me, but I must say I haven’t given this enough thought. It’d be nice if you could implement this approach and verify whether it gives sensible answers.