Skip to content

I made my own Power Ranking System with Math

xayahs bich··7 votes·2,437 views

First off here is a picture of the equation http://imgur.com/AT0EfZ6 I used the top 6 teams in the NA LCS and used their results from the regular season to calculate their rank using this equation. I only used the top 6 because it takes about an hour to calculate a single teams result. What I got was... TSM- 5.80 Cloud 9- 4.66 CLG- 4.65 TiP- 4.45 Liquid- 4.44 Gravity- 4.43 As you can see the results are pretty tight in some cases and then there is TSM. TSM is the result of having several outlier games of just demolishing teams and having no games in which they themselves got demolished. The equation isn't perfect but it is a pretty accurate placement of the teams and I think it could be used as an alternative to the "voting by a panel of experts". Reasoning for parts of the equation: The (5(114xtime)) is to get rid of all gold earned passively (not including passive gold on items) by players and counts only earned gold. The reasoning for the +1s by (Team KDA/100) and (team deaths/team kills) is to be a stablizer and prevent punishing teams for having a worse KDA but being rewarding teams with negative KDAs.

22 Comments

delonix1 votes

Dumb question, but is there a way for me to rotate the image here or at imgur without having to make a copy on my computer and rotate it?

The advantage that the panel of experts has is that it can take into account things like variable opponent strength and weird team drama stuff like KEITH and Piglet switching back and forth. Your formula would have been a decent predictor of the playoffs, but it obviously underestimates Liquid, which beat both TiP at 0.01 advantage and CLG at 0.21 advantage.

There's probably also some analysis that can't be done by math. The playoffs are best of 5 instead of best of 1, which might favor certain teams. Some play styles might beat others.

I'd be interested to see the results of the rest of the teams or the EU LCS top 6 or both to see if there are any outliers.

xayahs bich1 votes

{quoted}

Dumb question, but is there a way for me to rotate the image here or at imgur without having to make a copy on my computer and rotate it?

The advantage that the panel of experts has is that it can take into account things like variable opponent strength and weird team drama stuff like KEITH and Piglet switching back and forth. Your formula would have been a decent predictor of the playoffs, but it obviously underestimates Liquid, which beat both TiP at 0.01 advantage and CLG at 0.21 advantage.

There's probably also some analysis that can't be done by math. The playoffs are best of 5 instead of best of 1, which might favor certain teams. Some play styles might beat others.

I'd be interested to see the results of the rest of the teams or the EU LCS top 6 or both to see if there are any outliers.

I understand the idea of there being a panel of experts who can see the drama and all of that jargon but the benefit of math is that it DOESNT look at factors like drama. The equation is the equation regardless of everything else other than the hard facts. I like the idea of possibly having a better formula and then LoLesports.com using both it and the panel to show how the each compare to one another. It would be interesting to see the panel go one way and the equation go another.

As for flipping the image I'm sorry I couldn't deliver on that. I really should have done that myself and I apologize.

xayahs bich1 votes

Here is the flipped picture for all those who can't read sideways

http://imgur.com/LMNSD10

MasterSeth20251 votes

This would be pretty cool for each individual region as a season summary, however the panel of experts can notice changes in teams faster and adjust them accordingly where the math would take more games to put out similar results. However we could never use this for the international rankings because the teams come from different regions and thus have different competition to gain statistics against. For example, if you compared SKT1 with Fnatic, the numbers could be similar, however the teams have very different skill levels (I actually thought Fnatic did pretty good though). But this is pretty cool, and it does reflect the teams pretty accurately.

xayahs bich1 votes

{quoted}

This would be pretty cool for each individual region as a season summary, however the panel of experts can notice changes in teams faster and adjust them accordingly where the math would take more games to put out similar results. However we could never use this for the international rankings because the teams come from different regions and thus have different competition to gain statistics against. For example, if you compared SKT1 with Fnatic, the numbers could be similar, however the teams have very different skill levels (I actually thought Fnatic did pretty good though). But this is pretty cool, and it does reflect the teams pretty accurately.

I do see the issue with international play. It doesn't take regional strength into account so it would probably only be able to be used for regional rankings but I still think it's pretty cool and it would be awesome to see it adapted. There could be both types of ranking side by side and then people could debate over each one. It took a while to come up with a formula that was able to get close enough results that accurately portrayed the gap in skill level.

ratminer1 votes

why 114?

passive gold over a game is

(5(475+(total time-90)1.9))

5 for all players 475 for starting gold total time measured in seconds -90 because you dont generate gold until 1:30 1.9 because passive gold generation is 19g/10s

xayahs bich1 votes

{quoted}

why 114?

passive gold over a game is

(5(475+(total time-90)1.9))

5 for all players 475 for starting gold total time measured in seconds -90 because you dont generate gold until 1:30 1.9 because passive gold generation is 19g/10s

You are using gold per 10 second but matches are used in minutes so you generate 114 gold per 1 minute. But you're right I forgot about the starting gold and the fact you don't start generating gold until 1:30

ratminer1 votes

how are you measuring KDA (Kills + Assists) / Deaths ?

xayahs bich1 votes

{quoted}

how are you measuring KDA (Kills + Assists) / Deaths ?

KDA is the team's total KDA so it is (everyone's kills+everyone's assists) / (everyone's death)

Not an average of everyone's KDA

Delioth1 votes

KK, to try and make your job easier I wrote a program to do this. I'm getting awkward answers due to my lack of actual stats- where are you getting stats from? I can probably give you a working thing if I can make sure that it gives proper answers. I don't think there's an error in it, pretty sure it's due to random numbers being used.

EDIT: I'm also kinda wondering on each of your figures- are you counting damage as total, or as thousands? Same with gold. I'm getting big numbers, but they come down into reasonable numbers when I divide made-up average numbers by 1000. And are these numbers averages or totals?

xayahs bich1 votes

{quoted}

KK, to try and make your job easier I wrote a program to do this. I'm getting awkward answers due to my lack of actual stats- where are you getting stats from? I can probably give you a working thing if I can make sure that it gives proper answers. I don't think there's an error in it, pretty sure it's due to random numbers being used.

EDIT: I'm also kinda wondering on each of your figures- are you counting damage as total, or as thousands? Same with gold. I'm getting big numbers, but they come down into reasonable numbers when I divide made-up average numbers by 1000. And are these numbers averages or totals?

Damage I'm counting in thousands so 56,800 would be 56.8

Gold is in ones so 43,600 is 43,600.

I get my stats from the match history of the regular season games- here is an example: http://matchhistory.na.leagueoflegends.com/en/#match-details/TRLH1/1001080182?gameHash=33c18a702d5155ad

Delioth1 votes

I see. I'll include functionality to add figures together so you don't have to add them up yourself and then add them together (So you should be able to just go through like.. C9's games and plug in one game stats, go to the next and repeat, until you get through as many samples as you want- and then it'll pop out the stat.

Might have it done later tonight.

xayahs bich1 votes

{quoted}

I see. I'll include functionality to add figures together so you don't have to add them up yourself and then add them together (So you should be able to just go through like.. C9's games and plug in one game stats, go to the next and repeat, until you get through as many samples as you want- and then it'll pop out the stat.

Might have it done later tonight.

I do each game as an individual equation and then average all 18 games as a final score if that's what you are doing

Delioth1 votes

Ah! It works! At least for one game- but it should theoretically get the right average over all the games. (Honestly I can't find more of those match histories, I'm probably looking in the wrong place.)

Working on converting the Python source into an executable, will put it up somewhere with a link to either this post or in a reply to a comment.

EDIT: You can get that executable here: http://s000.tinyupload.com/index.php?file_id=56597967039119220321 Just unzip it anywhere and run the teamPower in there.

xayahs bich1 votes

{quoted}

Ah! It works! At least for one game- but it should theoretically get the right average over all the games. (Honestly I can't find more of those match histories, I'm probably looking in the wrong place.)

Working on converting the Python source into an executable, will put it up somewhere with a link to either this post or in a reply to a comment.

EDIT: You can get that executable here: http://s000.tinyupload.com/index.php?file_id=56597967039119220321 Just unzip it anywhere and run the teamPower in there.

I ran the program and I'm coming up with different results with your program than when I did it by hand. So did you change anything from the original equation that I should know about?

Delioth1 votes

Unless I misinterpreted something in the equation, it's all the same. Oh, except I used the proper, accurate gold gains from Ratminer in there (Don't worry, it converts to seconds for that step). That could be a source of differences in there.

I don't want to say your issue is human error, but there are a lot of calculations and numbers to mess up one digit in to get a different error. There are also a lot of floating points where a rounding error could give you a slight decimal off. I'm looking over it again right now and it looks good.

xayahs bich1 votes

{quoted}

Unless I misinterpreted something in the equation, it's all the same. Oh, except I used the proper, accurate gold gains from Ratminer in there (Don't worry, it converts to seconds for that step). That could be a source of differences in there.

I don't want to say your issue is human error, but there are a lot of calculations and numbers to mess up one digit in to get a different error. There are also a lot of floating points where a rounding error could give you a slight decimal off. I'm looking over it again right now and it looks good.

So you corrected the 475 starting gold and the 90 seconds of no gold gain but use 1.9 gold per second

Delioth1 votes

Correct.

xayahs bich1 votes

{quoted}

Correct.

Ok im redoing my TSM calculations and they are all lower which is to be expected but a game where I calculated by hand I got 25.78 (It was a 1 kill game so their KDA was 55) But now with your program it only came up as 4.78 so im still wondering if there is something up with on of the KDA ratios. In the one on the left I count assists and the one on the right I dont and the one on the right its Deaths over Kills not kills over deaths. IDK Im just spitballing but Im just curious since they were soooo diferent.

EDIT: also for the "win" do i put a 1 for yes and 0 for no?"

Delioth1 votes

Unless you're doing something weird with your KDA, it shouldn't effect the answer much- a KDA of 55 makes the first term 1.55, which would multiply by the other side by half again. Did you change something to get a different multiplier sometime? That's a massive difference to be one little thing. The equation does follow regular rules of order of operations, right? (1x2)+3+4?

xayahs bich1 votes

{quoted}

Unless you're doing something weird with your KDA, it shouldn't effect the answer much- a KDA of 55 makes the first term 1.55, which would multiply by the other side by half again. Did you change something to get a different multiplier sometime? That's a massive difference to be one little thing. The equation does follow regular rules of order of operations, right? (1x2)+3+4?

A big KDA makes a HUGE differnce. TSM had 13 kills and 1 death. that shoots up the middle number.

Teams total damage/ time/ 5/ (1+(Deaths/Kills))

You get 13.9. Then multiplying that by 1.55 is 21.545 so having that low Kill to death ratio makes a huge impact. especially with only 1 death

EDIT: Ok I know what happened. I used the wrong sheet when i calculated it the first time. It didnt have the +1 on the (Deaths/Kills)

Delioth1 votes

But that's at the bottom of a long chain of division? If I just use 60k damage and 40 minutes of time, that ends up getting 0.27 60 / 40 / 5 / (1+ (1/13=0.07~)) 1.5 / 5 = .3 / 1.07 = 0.27

Unless you start at the bottom or something (Like damage / ( time / (5 / (1+D/K))))... that gives 4.53. Is that how you're running it? Because if that's so, that'd be why the program gives a widely different number.

EDIT: Nevermind, that makes sense as well.

More from Esports

More by xayahs bich