• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:15
CET 15:15
KST 23:15
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Team Liquid Map Contest #2312[ASL22] Finals Preview: Sweet Victory!12[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11
Community News
Serral wins 2026 RSL Season Finals0Weekly Cups (Nov 16-22): MaxPax doubles, Dark heats up0BSL 2v2 ProLeague Season 43Weekly Cups (Nov 9-15): Clem and herO take over6Dark completes military service, returns to SC217
StarCraft 2
General
Serral wins 2026 RSL Season Finals Weekly Cups (Nov 16-22): MaxPax doubles, Dark heats up Weekly Cups (Nov 9-15): Clem and herO take over SC4ALL: II Indiegogo Campaign Announcement No more SC2 streamers on team liquid?
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 ISSL:Premier#2 Announcement soO & FanTaSy return! SC2 Kevin Scrim 4v4 (Nov 16) Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond)
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps Starcraft 2 Advance [D] the control group Simple Questions/Answers
External Content
Mutation # 553 Undermined The PondCast: SC2 News & Results Mutation # 552 Secret Storm Mutation # 551 Robotic Revival
Brood War
General
Fantasy returning? Shield Battery Server New Patch Map hacking defeated 28 years later Potentially helpful Shield Battery feedback. screpdb: new Starcraft reporting tool
Tourneys
$3,000 Sijosae Tier 2,3,4 Cup (Nov 23-24 2026) BSL 2v2 ProLeague Season 4 2v2v2v2 Tournament Stage 2: Players [BSL23] Ro16 Group B - Saturday 21:00 CET
Strategy
Request - 3-factory/fast timings as Terran Pluto's TvP 5Marine 2Medic Push Simple Questions, Simple Answers Infested Terran strategies in 2026
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread The PlayStation 5 Warcraft III: The Frozen Throne Free Space RTS Game, optimised f. Phone/Tablet etc
Dota 2
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Artificial Intelligence Thread The Chess Thread Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
Fan Club Resource Thread Reynor Fan Club The Flash Fan Club
Media & Entertainment
Anime Discussion Thread Movie Discussion!
Sports
Football (Soccer) Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
[Kickstarter] The Roman E…
LUCKY_NOOB
On Parallel Lives in Fascis…
p4NDemik
The time I organised my…
AssyrianKing
Why I built Repalyzer (1.1.…
BlueStar
Innovate or Game Over?
TrAiDoS
ShieldBattery on Mac
Kraekkling
Can Bots Beat Pros?? Starcr…
namkraft
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 15391 users

[Translation] Applying TrueSkill to HotS

Forum Index > SC2 General
Post a Reply
sihyunie
Profile Joined June 2008
United States108 Posts
January 21 2014 16:34 GMT
#1
This is an interesting post I saw on PGR.
I'm not too familiar with a lot of programming terms, so there may be some information not translated appropriately, but overall post is informative.
Original Post: http://pgr21.com/pb/pb.php?id=free2&no=53290

First I took all the games since HotS launch on TLPD and saved as JSON (TLPD Link)
Source Code: http://ideone.com/8txBxh

There are total 22300 games.

When I sorted all the tournaments by game number (link), all the major tournaments are at the top, but there are some I've never heard of before. I thought about it for a while and decided to include all the games because smaller tournaments impact the result only slightly due to small game numbers and it's not clear which tournaments to exclude.

Also, I didn't separate Koreans and non-Koreans. It's part my laziness and part technical difficulties. So if a player dodges all the Koreans and just slaughter non-Koreans, that player's score will be high. Also, because of WCS region lock, this phenomenon will be more easily observed.

Little bit of background on TrueSkill. It's a Bayesian rating system developed by Microsoft. In essence it ranks players. You are probably familiar with ELO rating system. ELO system calculates win chance between new player and old player as 50% if their rating is the same. Also, it doesn't consider that some players may fluctuate more in skill from game to game.

If you want to know more about the algorithm, you can go to the following links

http://www.moserware.com/2010/03/computing-your-skill.html
https://dl.dropboxusercontent.com/u/1083108/Moserware/Skill/The Math Behind TrueSkill.pdf

Or you can read the research paper

http://research.microsoft.com/pubs/67956/NIPS2006_0688.pdf

In short, TrueSkill doesn't assign one number to represent the player's skill. It has two factors, skill and distribution. Skill is expected average skill of a player, while distribution is how the player's skill varies from game to game, or the uncertainty of the player's skill when s/he has limited number of games.

In ELO rating system, if a player with very high score loses to a new player, there is huge decline in score. But in TrueSkill system, due to the uncertainty factor, there is no big decline in this case. Uncertainty generally declines as number of game increases, but if the result is not what the system expected, it can also increase. Skill and distribution change is calculated by pretty complex Bayesian inference, and since it's developed by smart people, I will just use it as is.

There are many advantages to TrueSkill system compared to ELO system. First, it calculates the player's skill level more quickly. Also, because it was originally developed for Xbox multiplay, it can be applied to team games. Games like League of Legends and many others use ELO system for team games, but it's just tweaking ELO system a little and applying it to team game and has no mathematical merits. TrueSkill uses Factor Graph and explains how a system can be applied to 1 vs 1 and expanded to N vs N.

With all the introduction out of the way, I came up with an idea to apply this team game application to HotS

Couldn't you figure out race balance as well as map balance in SC2?

It goes like this.

Let's say a terran player A and a zerg player B are playing on map M.
For racial balance, you can make a player TvZ and ZvT.
For map balance, you can make M_ZvT and M_TvZ.

Then instead of looking at a game as A vs B, you can view the game as a team game between [A, TvZ, M_TvZ] and [B, ZvT, M_ZvT].

After calculating all 22300 games this way, if you calculate expected win percentage of player TvZ, wouldn't that give expected win percentage of the matchup given equally skilled players on perfectly balanced map?

Or you can calculate which way any map, say Yeonsu, is favored in Protoss vs Terran?

...so I calculated to get the ridiculous result that Terran is expected to win 80% of the time on that map. I thought about the reason for a while and realized that if a terran player wins against zerg player, player TvZ score goes up and player ZvT score goes down, increasing the gap more and more.

In online game, especially in a team game, it's very difficult for all players to play from the beginning to the end of the game. Especially in FPS, there are players entering and leaving in the middle of the game. So TrueSkill calculates for contribution based on the time player is in the game.

So, I applied this tool and applied that each mirrored players (TvZ and ZvT for instance) are only in the game for 50% of the time. Obviously there is really no verified mathematical reasoning behind this, but whatever. This whole exercise was for fun anyway. Can't you just say half the games you played Terran vs Zerg and the other half you played Zerg vs Terran?

When I applied this, the gap we saw before decreased, but TvP and PvT still increase/decreased equally. Base rating is (25, 8.3) and if TvP is (25.3, 8), then PvT is (24.7, 8).

So, if I want to know how balanced Terran vs Protoss is I just have to calculate win probability between TvP and base rating of (25.0, 8.3).

and we get the following

TvZ: 53.33%
PvZ: 52.44%
TvP: 52.19%

But, because it includes all the games since HotS launce, it doesn't reflect the impact of the recent patches. There is also impact of the maps, which you can analyze in depth later.

You can calculate map balance in similar way.

If you look at the ladder and GSL map Daedalus Point,

PvT: 77.83%
ZvP: 69.17%
ZvT: 67.88%

...........

Whoever made this map should go sit in the corner.

Anyway, when there's time, you can get into more detailed analysis. For example, you can take a player and see how his skill changed over time, or how any specific patch impacts the balance, etc. etc. Or you can used more developed TrueSkill through Time algorithm, which could somewhat compensate for the fact that players are separated into different regions. I currently don't have tools to do this. It might even be interesting to see how Classic is fairing after the race switch.

You can even calculate the who is more likely to win on a certain map... I guess people who bet on the game will like this.

Anyway, you can find the calculated result in the following link as a excel file.
https://www.dropbox.com/s/yapbmxchwh97hsa/Sc2Trueskill.xlsx

First worksheet, players only (선수만), doesn't care about map and race, and simply ranks the players assuming that a better player will win.

Second worksheet, maps (맵별), shows how balanced matchups are on each map. Closer to 25, better balanced it is.

Third worksheet, players (선수별), calculates rating knowing all the map and race data.

Fourth worksheet, races (종족별), calculates how each race matchup is balanced given the same map. Again, close to 25, better balanced it is.
azurespace
Profile Joined March 2011
Korea (South)39 Posts
January 21 2014 17:41 GMT
#2
128 views, no post.

I recalculated the win rates by using only the matches after the last balance update. The result is quite interesting. TvP and PvZ are at around half, and the differences between two races are <= 1%. Terran slightly has higher win probability at TvZ(53%) even though widow mines are nerfed. I guess it is because the Zergs who are just below the toppest didn't find how they can deal with Terran buffed mechanical army. However, The top Zerg like Soulkey showed us how to do. I think the gap will disappear soon.
azurespace
Profile Joined March 2011
Korea (South)39 Posts
Last Edited: 2014-01-22 02:37:45
January 22 2014 02:24 GMT
#3
Well, It is surprising to me that there is no comment on this article. Maybe it is because the content of this article is too hard to understand.

You may think that it is strange the way I split a match into three portions: players, map balance, race balance. I think this is like an approximation techniques. Let's consider a function of many variables f(a,b,c, ...).

f(a,b,c,...) = some complex equation with variable a,b,c,...

In engineering, we often split the function into many sub functions of one of the independent variables like

f(a,b,c, ...) ≒ f1(a) + f2(b) + f3(c) + ...
or
f(a,b,c, ...) ≒ f1(a) * f2(b) * f3(c) * ...

This is not strictly correct for math, but it's a useful tool for engineering. I assumed that the coupling among the player's skill, the racial balance, and the map-dependent balance.
Please log in or register to reply.
Live Events Refresh
Kung Fu Cup
20:00
2026 Grand Finals - Day 2
Clem vs Rogue
herO vs Percival
WardiTV473
RotterdaM205
SteadfastSC57
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech136
LamboSC2 105
SteadfastSC 57
SHIN 22
StarCraft: Brood War
Calm 5065
Shuttle 1378
Rain 1058
BeSt 680
EffOrt 595
Mini 530
Rush 466
Light 421
Soma 395
actioN 310
[ Show more ]
firebathero 248
Larva 242
hero 104
Hyun 103
Soulkey 101
Mind 94
910 76
Barracks 41
Mong 35
ToSsGirL 32
Killer 26
sorry 26
Bale 25
JYJ 22
Aegong 21
Hm[arnc] 20
Terrorterran 18
Sharp 17
HiyA 16
zelot 15
Bishop 14
Rock 12
Sacsri 11
scan(afreeca) 8
sOs 8
Dota 2
Gorgc4485
Dendi1260
BananaSlamJamma518
XcaliburYe190
Counter-Strike
zeus465
Other Games
singsing3343
B2W.Neo1127
olofmeister1025
Pyrionflax339
Lowko266
RotterdaM205
PiGStarcraft180
mouzStarbuck166
crisheroes164
Fuzer 122
Livibee120
Mew2King64
ArmadaUGS53
QueenE45
Rex42
Chillindude12
Organizations
StarCraft: Brood War
lovetv 9
[ Show 11 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1755
• TFBlade490
Other Games
• WagamamaTV179
Upcoming Events
KCM Race Survival
19h 45m
Kung Fu Cup
20h 45m
Classic vs SHIN
Percival vs Rogue
OSC
23h 45m
Kung Fu Cup
1d 20h
Clem vs TBD
ByuN vs TBD
Kung Fu Cup
2 days
herO vs Solar
BSL
3 days
Ret vs TerrOr
UltrA vs Bonyth
Kung Fu Cup
3 days
BSL
4 days
Kyrie vs JDConan
Dewalt vs eOnzErG
Replay Cast
4 days
WardiTV Weekly
4 days
[ Show More ]
Sparkling Tuna Cup
5 days
PiGosaur Cup
6 days
Liquipedia Results

Completed

Sijosae Cup
RSL Offline Finals
Underdog Cup 2026 Div 2-3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
International ShieldBattery League
BSL Season 23
IPSL Winter 2026-27
CSL Season 23: Qualifier 1
Sector 591
Kung Fu Cup 2026 Grand Finals
Calamity Cup Div. A Season 8
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
PGL Masters Bucharest 2026
Stake Ranked Episode 5
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3

Upcoming

CSL Season 23: Qualifier 2
YSL S4
SC4ALL II: Brood War
CSL 2026 Winter (S23) - 3v3
CSL 2026 Winter (S23)
NBSL 2026 Xiamen LAN
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
StarCraft2 Weekly Open Tournament 2026 Grand Finals
SC4ALL II: StarCraft II
IEM Kraków 2027
PGL Bucharest 2027
BLAST Bounty Winter 2027
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.