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

  • Context: Undergrad 
  • Thread starter Thread starter veritas_1
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary
SUMMARY

The discussion centers on determining the probability distribution of the number of coin flips (N) given a specific number of heads (H) and the probability of heads (P) for a fair coin. The key insights include the necessity of employing Bayesian inference to construct an a priori distribution for N, which is then adjusted based on the observed heads. Additionally, maximum likelihood estimation (MLE) is highlighted as a method to estimate N by maximizing the likelihood of obtaining the observed heads, although it does not provide a full distribution for N.

PREREQUISITES
  • Understanding of Bayesian inference
  • Familiarity with maximum likelihood estimation (MLE)
  • Basic knowledge of probability theory
  • Experience with statistical programming (e.g., Python, R)
NEXT STEPS
  • Research Bayesian inference techniques for probability distributions
  • Explore maximum likelihood estimation (MLE) in depth
  • Learn about constructing a priori distributions in statistics
  • Investigate simulation methods for empirical probability distributions
USEFUL FOR

Statisticians, data scientists, and anyone interested in probability theory and statistical modeling, particularly those working with coin flip experiments and Bayesian methods.

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

  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 41 ·
2
Replies
41
Views
9K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 57 ·
2
Replies
57
Views
7K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K