Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Odds between two players flipping a coin M and N times

by ferrency (Deacon)
on May 15, 2002 at 16:44 UTC ( [id://166781]=note: print w/replies, xml ) Need Help??


in reply to Odds between two players flipping a coin M and N times

Thank you very much, Tye :)

For the record, a friend who's much better at stats than I am gave me the following equation for the probability that A wins. It's generalized for the case where "probability of rolling heads" is something other than 1/2, and may be different for each player.

the sum over(y=0 to M){
 (M choose y)* probb^y * (1-probb)^(M-y) * 
 the sum over(k=y to N) {
  (N choose k)*proba^k*(1-proba)^(N-k)
 }
}

(Where "proba" is the probability for player a to get a "head", and "probb" is the probability for player b to get a "head")

Thanks again :)

Alan

  • Comment on Re: Odds between two players flipping a coin M and N times

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://166781]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found