Probability of number of flips given number of heads and P?

  • Thread starter Thread starter veritas_1
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
To determine the expected number of coin flips given a certain number of heads, one must consider the probability distribution over all possible flips. While one can calculate the probability of obtaining a specific number of heads for a given number of flips, the reverse—finding the number of flips given a specific number of heads—requires a different approach. Bayesian inference can be used to construct an a priori distribution for the number of flips and then adjust it based on the observed heads. Alternatively, maximum likelihood estimation (MLE) can provide a single estimate for the number of flips that maximizes the likelihood of obtaining the observed heads. Both methods highlight the complexity of deriving a distribution for the number of flips based on the number of heads observed.
veritas_1
Messages
2
Reaction score
0
Hi forum, I'm new here, and have a burning question, that I can't seem to figure out or find on the internet.


If, for example, I've been told that I have a fair coin, and have 4 heads, what is the expected number of coin flips? of course, I assume it's 8 tosses, BUT what I really need to know is how to build the probability distribution over all number of flips N.

That is, in general, given H heads, and coin with probability of heads P, what is the probability distribution over N flips?

thx you for your time,
veritas
 
Physics news on Phys.org
There's no general answer to that. For any given N flips, you can say what the probability of 4 heads is, but that is different from the probability of N flips given 4 heads. Look up Bayesian inference. You need to construct an a priori distribution for N, then modify it based on the information that there were four heads.
There is another approach - maximum likelihood estimation, or MLE. You simply pick that N which maximises the likelihood of 4 heads. This doesn't give you a distribution for N, just a single estimate (and I regard it as simply hiding the a priori assumption - it's still there).
 
hmm...yea I guess I see your point.

was hoping to avoid making a bunch of emperically defined loops, but iguess this isn't really that much code, just not as elegant I guess as I wished.

good feedback though, thanks man!
 

Similar threads

Back
Top