the mathematics of ranking schemes should utah be ranked ...keener/lectures/rankings.pdf · the...

36
University of Utah Mathematical Biology the Imagine Possibilities The Mathematics of Ranking Schemes or Should Utah Be Ranked in the Top 25? J. P. Keener Mathematics Department University of Utah The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.1/19

Upload: others

Post on 18-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

The Mathematics of Ranking Schemesor

Should Utah Be Ranked in the Top 25?

J. P. Keener

Mathematics Department

University of Utah

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.1/19

Page 2: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Introduction

Problem: How to rank sports teams?

The Challenge:

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.2/19

Page 3: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Introduction

Problem: How to rank sports teams?

The Challenge:

• Uneven paired competition (not all teams play each other)

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.2/19

Page 4: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Introduction

Problem: How to rank sports teams?

The Challenge:

• Uneven paired competition (not all teams play each other)

• The data are sparse. (Each team plays 10 games and there

are over 100 teams)

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.2/19

Page 5: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Introduction

Problem: How to rank sports teams?

The Challenge:

• Uneven paired competition (not all teams play each other)

• The data are sparse. (Each team plays 10 games and there

are over 100 teams)

• There is no well-ordering (Team A beats Team B who beats

Team C who beats team A).

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.2/19

Page 6: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Simple Idea

• Suppose team i has Wi wins and Li losses, let

ri =Wi

Wi + Li

=Wi

Ni

.

Call r = (ri) the ranking vector.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.3/19

Page 7: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Simple Idea

• Suppose team i has Wi wins and Li losses, let

ri =Wi

Wi + Li

=Wi

Ni

.

Call r = (ri) the ranking vector.

• Alternate representation: Set A = (aij) where aij = 1

Niif

team i beat team j, aij = 0 otherwise. Then

r = Ar0, r0 = 1.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.3/19

Page 8: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Basic Idea

• First modification: To get an indication of strength of

schedule, let

r = A(Ar0) = A2r0.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.4/19

Page 9: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Basic Idea

• First modification: To get an indication of strength of

schedule, let

r = A(Ar0) = A2r0.

• Obvious generalization:

r =Anr0

|Anr0|

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.4/19

Page 10: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Basic Idea

• First modification: To get an indication of strength of

schedule, let

r = A(Ar0) = A2r0.

• Obvious generalization:

r =Anr0

|Anr0|

• Question: What if we let n → ∞?

• Answer: Define r to be eigenvector of A

Ar = λr

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.4/19

Page 11: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 1:The Eigenvector Method

Suppose that team i has rank ri, and aij is a measure of the

result of the game between team i and team j where

• 0 ≤ aij ≤ 1, aij = 0 if teams i and j have not played,

• aij + aji = 1 if teams i and j have played each other.

Assign a score si to team i

si =1

Ni

j

aijrj

and then define r so that

λri = si or Ar = λr

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.5/19

Page 12: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 1:Existence Question

Do solutions of this eigenvalue problem exist?

The Perron Frobenius Theorem:

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.6/19

Page 13: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 1:Existence Question

Do solutions of this eigenvalue problem exist?

The Perron Frobenius Theorem:

• If A has nonnegative entries, then there exists nonnegative

solution of Ar = λr.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.6/19

Page 14: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 1:Existence Question

Do solutions of this eigenvalue problem exist?

The Perron Frobenius Theorem:

• If A has nonnegative entries, then there exists nonnegative

solution of Ar = λr.

• If A is irreducible, then r is strictly positive and unique, and λ

is simple and maximal.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.6/19

Page 15: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 1:Existence Question

Do solutions of this eigenvalue problem exist?

The Perron Frobenius Theorem:

• If A has nonnegative entries, then there exists nonnegative

solution of Ar = λr.

• If A is irreducible, then r is strictly positive and unique, and λ

is simple and maximal.

• r can be calculated using the power method:

r = limn→∞

Anr0

|Anr0|, r0 = 1

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.6/19

Page 16: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Choosing aij

Ways to specify aij :

• aij = 1 if team i beat team j. (W-L record)

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.7/19

Page 17: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Choosing aij

Ways to specify aij :

• aij = 1 if team i beat team j. (W-L record)

• aij =Sij

Sij+Sji, with Sij = points earned by team i vs team j.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.7/19

Page 18: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Choosing aij

Ways to specify aij :

• aij = 1 if team i beat team j. (W-L record)

• aij =Sij

Sij+Sji, with Sij = points earned by team i vs team j.

• aij =Sij+1

Sij+Sji+2.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.7/19

Page 19: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Choosing aij

Ways to specify aij :

• aij = 1 if team i beat team j. (W-L record)

• aij =Sij

Sij+Sji, with Sij = points earned by team i vs team j.

• aij =Sij+1

Sij+Sji+2.

• aij = h(

Sij+1

Sij+Sji+2

)

.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

h(x)

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.7/19

Page 20: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities Method 2:The Nonlinear Fixed Point

Method

Suppose f(x) is positive, increasing, concave for 0 ≤ x < ∞.

Define r as solution of

ri = Fi(r) =1

Ni

j

f(aijrj)

where

f(x) =.05x + x2

2 + .05x + x2

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 50

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

x

f(x)

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.8/19

Page 21: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 2:Finding r

Suppose F (x) : Rn → Rn is continuous,

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.9/19

Page 22: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 2:Finding r

Suppose F (x) : Rn → Rn is continuous,

• positive: F (p) > 0 for all p > 0,

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.9/19

Page 23: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 2:Finding r

Suppose F (x) : Rn → Rn is continuous,

• positive: F (p) > 0 for all p > 0,

• increasing: F (p) > F (q) whenever p > q,

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.9/19

Page 24: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 2:Finding r

Suppose F (x) : Rn → Rn is continuous,

• positive: F (p) > 0 for all p > 0,

• increasing: F (p) > F (q) whenever p > q,

• concave: F (tp) > tF (p) for 0 < t < 1, p > 0

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.9/19

Page 25: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 2:Finding r

Suppose F (x) : Rn → Rn is continuous,

• positive: F (p) > 0 for all p > 0,

• increasing: F (p) > F (q) whenever p > q,

• concave: F (tp) > tF (p) for 0 < t < 1, p > 0

then the sequence of vectors rk = F (rk−1), with r0 = 1 is a

monotone decreasing sequence with limn→∞ rn = r where

r = F (r)

Remark: This is a generalization of the Perron Frobenius

Theorem.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.9/19

Page 26: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 3:The Probability Method

Suppose the probability that team i beats team j is

πij =ri

ri + rj

≈Sij

Sij + Sji

.

Then

Sijrj ≈ Sjiri.

Thus, let r minimize

i,j

(Sjiri − Sijrj)2 subject to

r2

i = 1

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.10/19

Page 27: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 3:Finding r

Use Lagrange multipliers and minimize

i,j

(Sjiri − Sijrj)2 − µ(

i

r2

i − 1)

equivalently, find r where

Br = µr

where

B = (bij), bii =∑

k

S2

ik, bij = −SijSji for i 6= j

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.11/19

Page 28: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 3:Finding r

Pick λ0 so that B + λ0I is diagonally dominant. Then,

(B + λ0I)−1 is a positive matrix.

From the Perron Frobenius theorem,

limn→∞

(B + λ0I)−nr0

|(B + λ0I)−nr0|= r

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.12/19

Page 29: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

"Linear Models"

Remark: This model is one of a class of models called linear

models for which

πij = h(ri − rj)

For example, h could be a Gaussian (bell-shaped) or an

exponential function.

The choice πij = ri

ri+rjis exponential, since with r = ev

πij =evi

evi + evj=

evi−vj

1 + evi−vj.

This is the model (purportedly) used for national tennis, squash,

etc. rankings.The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19

Page 30: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 4:Maximum Likelihood

Suppose the outcome of a game is a Bernoulli trail with πij the

probability that team i beats team j. If aij represents the

outcome of games, then the probability of observing that

outcome is

P = Πi<j

aij + aji

aij

πaij

ij πaji

ji

With πij = ri

ri+rj, this is

P (r) =∏

i<j

aij + aji

aij

(

ri

ri + rj

)aij(

rj

ri + rj

)aji

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.14/19

Page 31: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 4:Maximum Likelihood

Equivalently, maximize

ln FA(r) = ln Πi<j

(

ri

ri + rj

)aij(

rj

ri + rj

)aji

=∑

i<j

(aij (ln ri − ln(ri + rj)) + aji (ln rj − ln(ri + rj)))

Consequently, require

∇r(ln FA(r)) =αk

rk

−∑

j

Ajk

rj + rk

= 0

where αk =∑

j ajk, Ajk = ajk + akj .

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.15/19

Page 32: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 4:How to find r

Integrate the differential equation

drk

dt=

αk

rk

−∑

j

Ajk

rj + rk

This always converges because

• It is a gradient system

• ln FA(r) is nondecreasing along trajectories

• The Hessian is negative definite (proof uses the Perron

Frobenius Theorem)

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.16/19

Page 33: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 4:Remarks

• This method is usually referred to as the Bradley-Terry

model.

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.17/19

Page 34: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Method 4:Remarks

• This method is usually referred to as the Bradley-Terry

model.

• There is no reason to keep aij = 0 or 1. A better choice is

aij =Sij

Sij + Sji

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.17/19

Page 35: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Results

Week 9: 2003 Football SeasonTeam W-L M1 M2 M3 M4 AP ESPN

Oklahoma 7-0 2 1 1 2 1 1

USC 6-1 1 2 9 6 5 4

Georgia 6-1 9 3 3 1 4 5

Miami 7-1 16 4 4 5 2 2

Virginia Tech 6-0 33 5 2 12 3 3

Florida State 6-1 27 6 12 4 6 7

Washington State 6-1 8 7 19 14 6 6

Nebraska 6-1 10 8 6 7 14 11

Kansas State 5-2 6 9 8 10 - -

Purdue 5-1 31 10 10 25 10 10

Minnesota 6-2 46 11 15 16 - 24

Ohio State 6-1 11 12 24 15 8 8

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.18/19

Page 36: The Mathematics of Ranking Schemes Should Utah Be Ranked ...keener/lectures/rankings.pdf · The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.13/19. University

University of UtahMathematical Biology

theImagine Possibilities

Results

Team W-L M1 M2 M3 M4 AP ESPN

Michigan 5-3 15 13 26 9 13 15

LSU 6-1 22 14 5 3 9 9

Michigan State 6-1 34 15 13 21 11 12

Oklahoma State 6-1 24 16 17 18 18 19

Miami(Oh) 6-1 19 17 61 27 - -

Utah 6-1 3 18 20 23 24 23

TCU 7-0 42 19 29 19 15 13

Iowa 5-2 13 20 31 8 16 16

Texas Tech 5-2 28 21 25 31 - -

Florida 5-3 21 22 16 11 25 25

Boise State 6-1 39 23 34 44 - -

Alabama 3-5 43 24 7 13 - -

Texas 5-2 25 25 23 17 19 18

The Mathematics of Ranking SchemesorShould Utah Be Ranked in the Top 25? – p.19/19