Learn R Programming

RKelly (version 1.0)

chance_to_win_n_games: Calculate win chance after multiple matches

Description

Chance of a player winning the majority of n matches. Draws count not as a win

Usage

chance_to_win_n_games(p, n)

Arguments

p

probability for player to win a single match

n

number of total matches playes

Value

The decimal chance of winning a game

Examples

Run this code
# NOT RUN {
chance_to_win_n_games(0.55,5) # Chance for player with p=0.55 to win best of 5 matches
# }

Run the code above in your browser using DataLab