I have a weighted coin with an unknown $p$ value and some success/failure criteria.
An experiment consists of:
$\text{Pr}($heads$)$ = $p$, $\text{Pr}($tails $)$= $(1 - p)$
The success event is having $3$ heads with less than $4$ tails
The failure event is having $4$ tails with less than $3$ heads.
I would like to maintain an $80\%$ success rate regardless of the number of experiments I carry out.
How do I calculate $p$?
I have tried using a cumulative binomial probability and come up with a $p$ value of $0.41$ but want to confirm that this is the correct method and the figure holds true for any number of experiments.
My assumptions are these:
- There is a maximum number of coin tosses, $6$, before an automatic failure. As soon as $3$ heads have been observed before $4$ tails, the experiment is a success.
$n = 6$ and $k < 4$
$P(x = 0) + P(x = 1) + P(x = 2) + P(x = 3) = 0.8$
Using the binomial probability model $p \approx 0.41$