I'm uncertain whether I should be able to intuit the answer to my question from a question that has already been asked but I can't, so I am asking the question anyway. Thus, I am looking for a clear easy to understand answer. A recent newspaper article reported that on average couples were able to conceive a child after 104 reproductive acts. Assuming indpendant binomial trials, that means for each act there was a 1/104 probability of success. I can do a quick simulation to show myself what the quantiles for this distribution look like, e.g. in R:
NSIM <- 10000
trialsuntilsuccess <- function(N=10000,Pr=1/104)
{
return(min(seq(1:N)[rbinom(N,1,Pr)==1]))
}
res <- rep(NA,NSIM)
for (i in 1:NSIM)
{
res[i] <- trialsuntilsuccess()
if (i %% 10 == 0) {cat(i,"\r"); flush.console()}
}
quantile(res,c(.025,.975))
But it seems like there should be some simple equation or approximation that could be applied, perhaps a probit or poisson? Any advice on how to get the quantiles without running a simulation? Bonus points for providing a way to do the relevant calculations in R.