Learn R Programming

welo (version 0.1.4)

tennis_prob: Probability of winning

Description

Calculates the probability that player \(i\) wins over player \(j\) for match at time \(t+1\) using the WElo or Elo rates at time \(t\). Formally: $$\hat{p}_{i,j}(t+1) = \frac{1}{1+10^{\left(E_j(t)-E_i(t)\right)/400}},$$ where \(E_{i}(t)\) and \(E_j(t)\) are the WElo or Elo rates at time \(t\).

Usage

tennis_prob(i, j)

Value

Probability that player \(i\) wins the match against player \(j\)

Arguments

i

WElo or Elo rates for player \(i\)

j

WElo or Elo rates for player \(j\)

Examples

Run this code
tennis_prob(2000,2000) 
tennis_prob(2500,2000)

Run the code above in your browser using DataLab