Given a binomial distribution of, say, unfair coin flips:
1 1 0 1 0 0 1 1 0
I'm trying to determine: given an x% probability of flipping heads, what are the odds of producing this result?
What formula can I use? So the input would be the number of heads, total flips, and heads probability. And the output would be the odds of producing that result given those parameters.
I would be interested in both a discrete formula (finding the odds at a given % probability for heads) and for ALL probabilities of heads 0 to 1 as a normal distribution type thing. Either or both would be much appreciated!
I also intend to use this in a Python project, so I if anyone knows a corresponding function I would love to be alerted to it.