The Math Bit

A, B Players

p = Probability that A wins.

n = number of games played
w = number of games won by A

P(w wins in n games) = pw(1-p)(n-w)

Maximum Likelihood: If p is unknown, it can be estimated by maximizing the equation above:

p=w/m