I have a black-box function which returns true with probability $ P(A) $, that I don't know how to calculate.
I receive evidence B, and I want to create a function which returns true with probability $ P(A|B) $. According to Bayes' theorem $ P(A|B) = P(A) \frac{P(B|A)}{P(B)} $.
I can calculate $P(B|A)$ and $P(B)$, so I can calculate $\alpha=\frac{P(B|A)}{P(B)}$, and I need to create a function which returns true with probability $\alpha P(A)$. I know how to do that for $\alpha\le1$ - just create an independent event $C$ with $P(C) = \alpha$ and check $A \land C$.
Is there a way to do that for $\alpha > 1$? And if there is, what would be the minimal number of evaluations of the function to do that? If there isn't any efficient exact method, I'm also interested in efficient approximations.
EDIT:
I think I know how to prove it can't be done with only a single call:
Assuming a fixed $\alpha > 1$, there must be some event, $B$, where $A$ is false, but the function returns true. Since the function is a black-box, those cases are independent of the function, and have a constant non-zero probability $x=P(B)$. That means that even if you make $P(A)$ arbitrarily small the probability of outputting true would be at least $x$, which is impossible if the probability of outputting true is $\alpha P(A)$