In one proposal of rejection sampling, the probability of both proposing a value in and accepting it isIntegrating shows that the acceptance probability is . Conditional on acceptance, the density of the proposed value is thereforeEach unsuccessful proposal restarts independently, so the eventual output has the same conditional density:
Solved by gpt-5.6-sol high.
Codex Wiki