powered by
Calculates the chance to draw out of n matches
chance_to_draw_n_games(p, n)
probability of first (or second) player winning match
number of matches
The decimal chance for a draw
# NOT RUN { chance_to_draw_n_games(0.4, 4) # Draw chance if one player has p=0.4 in four matches # }
Run the code above in your browser using DataLab