2
$\begingroup$

Suppose I have a biased coin (heads with probability p), and I keep flipping it until I get t tails. So I had to flip n times in total to get t tails. How do I find a (frequentist) confidence interval for the probability of heads p?

$\endgroup$
2

1 Answer 1

3
$\begingroup$

If you are looking for ML estimation (which may or may not be what you want) please check the fitdistr function in the MASSlibrary in R. This function can estimate the unknown parameters using ML estimation. But please be careful about the parametrization of the negative binomial distribution of MASS. Apart from estimating the unknown parameters, it gives the confidence intervals for the estimates.

HTH S.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.