Rating Table Tennis Players An application of Bayesian inference.

31
Rating Table Tennis Players An application of Bayesian inference

Transcript of Rating Table Tennis Players An application of Bayesian inference.

Page 1: Rating Table Tennis Players An application of Bayesian inference.

Rating Table Tennis Players

An application of Bayesian inference

Page 2: Rating Table Tennis Players An application of Bayesian inference.

Ratings

• The USATT rates all members

• A rating is an integer between 0 and 3000

Page 3: Rating Table Tennis Players An application of Bayesian inference.

Fan Yi Yong 2774

Page 4: Rating Table Tennis Players An application of Bayesian inference.

Example

Lee Bahlman 2045

Dell Sweeris 2080

Todd Sweeris

Page 5: Rating Table Tennis Players An application of Bayesian inference.

Old System

Rating Difference Expected Result Upset0-12 8 8

13-37 7 1038-62 6 1363-87 5 1688-112 4 20

113-137 3 25138-162 2 30163-187 2 35188-212 1 40213-237 1 45

238- 0 50

Page 6: Rating Table Tennis Players An application of Bayesian inference.

Example

Difference Expected Upset0-12 8 813-37 7 1038-62 6 1363-87 5 16

88-112 4 20113-137 3 25138-162 2 30163-187 2 35188-212 1 40213-237 1 45

238- 0 50

Lee Bahlman (2045)Dell Sweeris (2080)

If Lee winsBahlman (2055)Sweeris (2070)

If Dell winsBahlman (2038)Sweeris (2087)

Page 7: Rating Table Tennis Players An application of Bayesian inference.

Complications

• Unrated Players

• Underrated or Overrated Players

Page 8: Rating Table Tennis Players An application of Bayesian inference.

Processing a Tournament

• First Pass - Assign Initial Ratings– Rate unrated players

• Second Pass - Adjust Ratings– The “fifty point change” rule

• Third Pass - Compute Final Ratings– Using the table of points

Page 9: Rating Table Tennis Players An application of Bayesian inference.

Problems

Arbitrary Numbers (table of points, fifty-point rule)

Rating Difference Expected Result Upset0-12 8 8

13-37 7 1038-62 6 1363-87 5 1688-112 4 20

113-137 3 25138-162 2 30163-187 2 35188-212 1 40213-237 1 45

238- 0 50

Page 10: Rating Table Tennis Players An application of Bayesian inference.

Problems

Arbitrary Numbers (table of points, fifty-point rule)

Human Intervention Necessary

Manipulable

Page 11: Rating Table Tennis Players An application of Bayesian inference.

A New Rating System?

• USATT commissioned a study

• David Marcus (Ph.D., MIT, Statistics) developed a new method

• Under review by USATT • May or may not be adopted

Page 12: Rating Table Tennis Players An application of Bayesian inference.

Proposed New Method

Based on three mathematical ideas– Either player may win a match (probability)– Ratings have some uncertainty (probability)– Tournaments are data to update ratings (statistics)

Page 13: Rating Table Tennis Players An application of Bayesian inference.

11

( ) ce

rating difference between A and B

( ) probability of win for A

0.0148540595817432c

Page 14: Rating Table Tennis Players An application of Bayesian inference.

Player A rating

Player B rating

( )c

c c

e

e e

Page 15: Rating Table Tennis Players An application of Bayesian inference.

-200 -100 100 200

0.2

0.4

0.6

0.8

Page 16: Rating Table Tennis Players An application of Bayesian inference.

What is a rating?

• Classical statistical model –– a rating is a parameter that is possibly unknown– We need to estimate the parameter

• Bayesian model -− our uncertainty about the parameter is reflected

in a probability distribution, the probability is subjective probability

Page 17: Rating Table Tennis Players An application of Bayesian inference.

What is a rating?

• A rating is a probability distribution

• The distributions used are discrete versions of the normal distribution

• The mass function is nonzero on ratings 0, 10, 20, … , 3590, 3600

Page 18: Rating Table Tennis Players An application of Bayesian inference.

Dell Sweeris 2096 (84)

0.000

0.010

0.020

0.030

0.040

0.050

1800 1900 2000 2100 2200 2300 2400

Rating

Pro

babili

ty

Page 19: Rating Table Tennis Players An application of Bayesian inference.

Dell and Lee

0.00

0.01

0.02

0.03

0.04

0.05

0.06

1700 1800 1900 2000 2100 2200 2300 2400

Rating

Pro

bab

ilit

y

Lee

Dell

Page 20: Rating Table Tennis Players An application of Bayesian inference.

Unrated Players

Page 21: Rating Table Tennis Players An application of Bayesian inference.

0

0.005

0.01

0.015

0.02

0.025

0.03

0.035

0.04

0.045

0.05

200 700 1200 1700 2200 2700

Rating

Pro

babili

ty

Unrated

Dell

Unrated Players 1400 (450)

Page 22: Rating Table Tennis Players An application of Bayesian inference.

Rating Change with Time

0

0.005

0.01

0.015

0.02

0.025

0.03

0.035

0.04

0.045

0.05

1760 1860 1960 2060 2160 2260 2360

Dell in a year

Dell now

Page 23: Rating Table Tennis Players An application of Bayesian inference.

Updating RatingsDell and Lee

0

0.1

0.2

0.3

0.4

0.5

0.6

2000 2050 2100 2150 2200

Rating

Pro

bab

ilit

y

Lee

Dell

Page 24: Rating Table Tennis Players An application of Bayesian inference.

Lee's Outcomes

Win 20006%

Win 205018%

Win 210013%

Lose 200019%

Lose 205031%

Lose 210013%

Page 25: Rating Table Tennis Players An application of Bayesian inference.

Example

.5 (.25 .32 .5 .67 .25 .90)

Probability that Lee is rated 2050 and loses

Lee Rated 2050 Dell Rated 2000

Probability Lee loses if rated 2050 and Dell rated 2000

Page 26: Rating Table Tennis Players An application of Bayesian inference.

Lee's Outcomes

Win 20006%

Win 205018%

Win 210013%

Lose 200019%

Lose 205031%

Lose 210013%

Page 27: Rating Table Tennis Players An application of Bayesian inference.

Lee Wins

Loss63%

Win 200016%

Win 210035%

Win 205049%

Win36%

Page 28: Rating Table Tennis Players An application of Bayesian inference.

Lee’s Rating

Before After

2000 .25 .16

2050 .50 .49

2100

Average

.25

2050

.35

2059

Page 29: Rating Table Tennis Players An application of Bayesian inference.

Dell’s Rating

Before After

2000 .25 .46

2100 .50 .46

2200

Average

.25

2100

.08

2062

Page 30: Rating Table Tennis Players An application of Bayesian inference.

Bayes’ Theorem

1 2

1

Given probabilities of events , ,...,

and event with conditional probabilities ( | )

the probabilities of events given are

( and ) ( and )( | )

( ) ( | ) ... (

k

i

i

i ii

prior B B B

E P E B

posterior B E

P B E P B EP B E

P E P E B P E

| )kB

Page 31: Rating Table Tennis Players An application of Bayesian inference.

Updating Ratings

• Each player has an initial rating

• The results of the tournament are the data

• Bayes Theorem is used to update the ratings

• Computationally intense - hundreds of players and hundreds of possible ratings per player