• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 01:59
CET 07:59
KST 15:59
  • 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
SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2
Community News
Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion6Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)16Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
PhD study /w SC2 - help with a survey! When will we find out if there are more tournament Weekly Cups (Jan 12-18): herO, MaxPax, Solar win I am looking for StarCraft 2 Beta Patch files Stellar Fest "01" Jersey Charity Auction
Tourneys
$70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone
Brood War
General
[ASL21] Potential Map Candidates Gypsy to Korea Video Footage from 2005: The Birth of G2 in Spain BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL21] Non-Korean Championship - Starts Jan 10 Small VOD Thread 2.0 Azhi's Colosseum - Season 2
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Game Theory for Starcraft Current Meta
Other Games
General Games
Battle Aces/David Kim RTS Megathread Nintendo Switch Thread Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026!
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread NASA and the Private Sector Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Navigating the Risks and Rew…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1111 users

Math: Odds of Blogs Sidebar Being Diagonal

Blogs > micronesia
Post a Reply
micronesia
Profile Blog Joined July 2006
United States24752 Posts
August 29 2011 04:28 GMT
#1
Every once in a while I notice the blogs section in the sidebar has an interesting look to it: the usernames of the five most recent posters are arranged in ascending or descending length order. I was just wondering what the odds are of that happening so... here goes!

In the first slot we need either the shortest or longest name (let's assume no two names are the same length). This means we have 2 out of 5 odds. The next slot has to be the next longest (or shortest) name, so the odds are 1 in 4. The next slot has odds of 1 in 3, then the next 1 in 2. The last doesn't matter.

So the odds are:

+ Show Spoiler +
2/5 * 1/4 * 1/3 * 1/2 = 2/120 = 1/60.


Not too difficult, but seems like a reasonable answer given the fact that I notice this phenomenon from time to time, but not often.

Another interesting thing that came up... when I first did this a minute ago I typed it into MS calculator and got an answer of 0.01666...

I recognized that that was probably a fraction but couldn't figure out how to convert it offhand without using a calculator's answer->fraction function. According to someone I just spoke to:

In general, if a decimal eventually repeats with period n, you can multiply by 10^n-1 to get a terminating one.


So 9*0.01666... = 0.15 = 15/100. So 0.0166666 = 15/900 = 1/60.

An interesting trick/rule I had no idea about.

****
ModeratorThere are animal crackers for people and there are people crackers for animals.
Ingenol
Profile Blog Joined November 2008
United States1328 Posts
August 29 2011 04:32 GMT
#2
Hmmmm that's a pretty neat trick.
infinitestory
Profile Blog Joined April 2010
United States4053 Posts
August 29 2011 04:32 GMT
#3
Alternatively, you could replace the usernames by their ordinal length (i.e. numbers 1-5, based on length). Then, the only arrangements that will look "diagonal" are 12345 and 54321, so 2/(5!) = 1/60.
Translator:3
micronesia
Profile Blog Joined July 2006
United States24752 Posts
August 29 2011 04:34 GMT
#4
Yeah that's the shortcut infinitestory :p

ty for pointing it out
ModeratorThere are animal crackers for people and there are people crackers for animals.
JeeJee
Profile Blog Joined July 2003
Canada5652 Posts
August 29 2011 04:53 GMT
#5
re: the whole repeating decimal thing
another way to look at it:

how to create any repeating decimal you want:
let's say you're pro and you wanna repeat 31337
so 0.313373133731337....

x=0.3133731337...
100000x = 31337.31337....
subtract the 2
99999x = 31337

so the fraction that makes the original x is 31337/99999 (which is sadly irreducible. sometimes you get cool fractions though).

same for the 0.0166...

x=0.0166..
100x=1.66...
1000x=16.66....
900x = 15

it's pretty cute
(\o/)  If you want it, you find a way. Otherwise you find excuses. No exceptions.
 /_\   aka Shinbi (requesting a name change since 27/05/09 ☺)
nitdkim
Profile Blog Joined March 2010
1264 Posts
August 29 2011 04:54 GMT
#6
Short thread title attract eyes of mods. Those threads are usually instalocked.
PM me if you want random korean images translated.
Ingenol
Profile Blog Joined November 2008
United States1328 Posts
August 29 2011 04:59 GMT
#7
On August 29 2011 13:53 JeeJee wrote:
re: the whole repeating decimal thing
another way to look at it:

how to create any repeating decimal you want:
let's say you're pro and you wanna repeat 31337
so 0.313373133731337....

x=0.3133731337...
100000x = 31337.31337....
subtract the 2
99999x = 31337

so the fraction that makes the original x is 31337/99999 (which is sadly irreducible. sometimes you get cool fractions though).

same for the 0.0166...

x=0.0166..
100x=1.66...
1000x=16.66....
900x = 15

it's pretty cute

Ah yes, that reminds me of learning 0.99999999...=1. That blew my mind in 9th grade.
Clerseri
Profile Joined June 2010
Australia150 Posts
August 29 2011 05:07 GMT
#8
If you wanted to be picky, there's a chance that names are of equal length. Which means one of three thigns -

either equal names are always unacceptable, in which case diagonal becomes significantly less likely.

Or they are always acceptable, in which case it becomes much MORE likely, because you now have two chances to hit the right name at that point.

Or they are sometimes acceptable (two names of equal length still makes it look diagonal, but 5 names of equal length don't) in which case you're on your own
Fantasy will be the next big thing in SC2.
micronesia
Profile Blog Joined July 2006
United States24752 Posts
August 29 2011 05:13 GMT
#9
On August 29 2011 14:07 Clerseri wrote:
If you wanted to be picky, there's a chance that names are of equal length. Which means one of three thigns -

either equal names are always unacceptable, in which case diagonal becomes significantly less likely.

Or they are always acceptable, in which case it becomes much MORE likely, because you now have two chances to hit the right name at that point.

Or they are sometimes acceptable (two names of equal length still makes it look diagonal, but 5 names of equal length don't) in which case you're on your own

Yeah. The cases I can think of I think there were none of equal length amazingly!
ModeratorThere are animal crackers for people and there are people crackers for animals.
Yurie
Profile Blog Joined August 2010
12005 Posts
August 29 2011 05:17 GMT
#10
I thought this thread would have used the database over blog posters to get length of posters nicks and the frequency of them posting to calculate it. This is nice as well though.
Primadog
Profile Blog Joined April 2010
United States4411 Posts
August 29 2011 05:47 GMT
#11
On August 29 2011 14:17 Yurie wrote:
I thought this thread would have used the database over blog posters to get length of posters nicks and the frequency of them posting to calculate it. This is nice as well though.


This is an interesting question. I wonder how hard is it to pull TL username length distribution from the database?

If we have the probability curve (actually a histogram), we can use an analysis similar to above, multiply by the probability that none of the five recent blog names have the same length, to get an even more precise answer.

And if we want to take it one step further, we can dig the database for the probability curve for TL bloggers only, skimmed using the full set of blog and blog counts.

Thank God and gunrun.
micronesia
Profile Blog Joined July 2006
United States24752 Posts
August 29 2011 05:55 GMT
#12
On August 29 2011 14:47 Primadog wrote:
Show nested quote +
On August 29 2011 14:17 Yurie wrote:
I thought this thread would have used the database over blog posters to get length of posters nicks and the frequency of them posting to calculate it. This is nice as well though.


This is an interesting question. I wonder how hard is it to pull TL username length distribution from the database?

If we have the probability curve (actually a histogram), we can use an analysis similar to above, multiply by the probability that none of the five recent blog names have the same length, to get an even more precise answer.

And if we want to take it one step further, we can dig the database for the probability curve for TL bloggers only, skimmed using the full set of blog and blog counts.


There's 10 pages of bloggers (slightly less than 800 total bloggers); putting the data into a spreadsheet is actually pretty easy. The tricky part is accounting for active vs inactive bloggers :p
ModeratorThere are animal crackers for people and there are people crackers for animals.
Primadog
Profile Blog Joined April 2010
United States4411 Posts
Last Edited: 2011-08-29 08:17:17
August 29 2011 06:00 GMT
#13
Oh ya, we can use the blogger ladder to estimate that data set, good thinking.

Here's what I got so far:

Let's suppose
Pn = the probability the next blogger post's username is length n
ie P1 + P2 + P3.... = 1 (anyone know what's the length limit for TL usernames?)

For an arbitrary set of 5 recent blog posts, let the username lengths be:
a, b, c, d, e

then the probability that none of the usernames have equal length for this set are
1(1-Pa)(1-Pa-Pb)(1-Pa-Pb-Pc)(1-Pa-Pb-Pc-Pd)

then we apply the magic of combinatrix in this step, but this where I got stuck.
Thank God and gunrun.
slmw
Profile Blog Joined October 2010
Finland233 Posts
Last Edited: 2011-08-29 08:54:38
August 29 2011 08:37 GMT
#14
I had a little spare time at work, so here it goes.

First, let's parse the poster names from blogs written in August:
Perl:
+ Show Spoiler +

#!/usr/bin/perl -w
require LWP::UserAgent;
my $net = LWP::UserAgent->new;
$net->agent("Mozilla");
$url="http://www.teamliquid.net/forum/index.php?viewdays=30&show_part=18&currentpage=";
for($i=34;$i>=1;$i--) {
$_=$net->get("$url"."$i");
$_=$_->content;
while(s/href="\/blogs[^>]+>([^<]+)<[^\n]+\n<td [^>]+>([^<]+)<//) {
$lengths[length($2)]++;
}
}
for($i=1;$i<20;$i++) {
print $i.": ".$lengths[$i]."\n";
}


The program outputs the following results:
+ Show Spoiler +

1: 0
2: 13
3: 28
4: 68
5: 103
6: 188
7: 131
8: 179
9: 115
10: 121
11: 77
12: 64
13: 46
14: 28
15: 25
16: 4
17: 0
18: 0
19: 0


By using these results, we can count the number of ways of getting a strictly monotonically increasing set of 5 posters. I used a simple dynamic programming algorithm.
C++:
+ Show Spoiler +

#include<iostream>
#include "stdint.h"
using namespace std;
int64_t counts[] = {13,28,68,103,188,131,179,115,121,77,64,46,28,25,4};
int64_t ways[5][15];

int64_t num_of_ways(int pos, int num) {
if(pos==0) return counts[num];
if(ways[pos][num]>=0) return ways[pos][num];
int64_t sum=0;
for(int i=0;i<num;i++) sum+=num_of_ways(pos-1,i);
sum*=counts[num];
ways[pos][num] = sum;
return sum;
}

int main() {
for(int i=0;i<5;i++) for(int j=0;j<15;j++) {
ways[i][j]=-1;
}
int64_t ans=0;
for(int i=0;i<15;i++) {
ans+=num_of_ways(4,i);
}
cout<<ans<<endl;

}

The output is 6385086626728.

We can select the set of 5 posters in 2366359177588560 different ways [sum*(sum-1)*..(sum-4)], but only 2*6385086626728 of them are strictly monotonic.

2*6385086626728/2366359177588560 = 0.00539654899999984538

The probability of a diagonal list is then 0.54%.

+ Show Spoiler +
I have no idea if this is correct, but I just wasted 20 minutes of my life doing this.



Edit: Fixed an error in the number of all sets. The results appears to be approximately the same as in a monte carlo simulation, so this is probably correct. Hurray.
Primadog
Profile Blog Joined April 2010
United States4411 Posts
Last Edited: 2011-08-29 09:32:26
August 29 2011 09:27 GMT
#15
Programmers ruin the fun and games with probability The answer is lower than the probability by micronesia, so it passes the smell test and feels in the ball park.

edit: great work, btw.

editedit: who is the 2 letter name guy? 3 letter name guy? Can't think of a regular blogger with such a short name.
Thank God and gunrun.
slmw
Profile Blog Joined October 2010
Finland233 Posts
August 29 2011 09:49 GMT
#16
User NB made several blog posts in August.
The other bloggers of length 2-3 are:
+ Show Spoiler +

BG1
ckw
cz
DNB
DnX
giX
GTR
hnQ
JFO
Jh
JWD
LML
MiB
Noe
PH
qxc
Qzy
rei
Ryo
VIB
W2
Yew


See.Blue
Profile Blog Joined October 2008
United States2673 Posts
August 29 2011 15:07 GMT
#17
Was about to post what infinitestory said. Cool blog!
Khenra
Profile Blog Joined January 2009
Netherlands885 Posts
Last Edited: 2011-08-29 15:50:50
August 29 2011 15:47 GMT
#18
EDIT: Nevermind, I misinterpreted. I thought you wanted every next username to be longer/shorter (> or <), while you meant same size or longer/shorter (>= or <=).

---

You missed one thing: the probability of two names being the same length.

So the odds are smaller than what you suggested, since you have to take out all the cases in which two names are the same length. However, there is no way to calculate these odds exactly.
This signature is ruining eSports.
XXGeneration
Profile Blog Joined November 2010
United States625 Posts
August 29 2011 15:49 GMT
#19
We also have to realize that more characters does not necessarily represent a longer name.

Example from the above list:

W2
rei

"I was so surprised when I first played StarCraft 2. I couldn't believe that such an easy game exists... I guess the best way to attract people these days is to make things easy and simple." -Midas
Zona
Profile Blog Joined May 2007
40426 Posts
September 01 2011 04:08 GMT
#20
On August 29 2011 14:55 micronesia wrote:
Show nested quote +
On August 29 2011 14:47 Primadog wrote:
On August 29 2011 14:17 Yurie wrote:
I thought this thread would have used the database over blog posters to get length of posters nicks and the frequency of them posting to calculate it. This is nice as well though.


This is an interesting question. I wonder how hard is it to pull TL username length distribution from the database?

If we have the probability curve (actually a histogram), we can use an analysis similar to above, multiply by the probability that none of the five recent blog names have the same length, to get an even more precise answer.

And if we want to take it one step further, we can dig the database for the probability curve for TL bloggers only, skimmed using the full set of blog and blog counts.


There's 10 pages of bloggers (slightly less than 800 total bloggers); putting the data into a spreadsheet is actually pretty easy. The tricky part is accounting for active vs inactive bloggers :p

There's probably way more than 800 bloggers - your blog drops off the list if you haven't posted a new blog in awhile. The inactive bloggers are already culled from the list.
"If you try responding to those absurd posts every day, you become more damaged. So I pay no attention to them at all." Jung Myung Hoon (aka Fantasy), as translated by Kimoleon
Please log in or register to reply.
Live Events Refresh
Next event in 4h 1m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft381
SortOf 124
StarCraft: Brood War
Stork 2274
GuemChi 939
Aegong 373
ggaemo 327
Shine 116
Noble 104
Hm[arnc] 84
soO 78
ajuk12(nOOB) 68
ZergMaN 66
[ Show more ]
Larva 61
Sharp 53
Shuttle 52
ToSsGirL 46
EffOrt 33
GoRush 23
Sacsri 18
Nal_rA 14
NaDa 12
Bale 12
Icarus 9
Dota 2
NeuroSwarm123
febbydoto61
League of Legends
JimRising 709
C9.Mang0567
Other Games
summit1g5521
XaKoH 188
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Laughngamez YouTube
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 39
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1755
• Rush1302
• Stunt433
• HappyZerGling101
Upcoming Events
OSC
4h 1m
Shameless vs MaNa
Nicoract vs Percival
Krystianer vs TBD
Cure vs SHIN
PiGosaur Monday
18h 1m
The PondCast
1d 3h
OSC
1d 4h
Big Brain Bouts
3 days
Serral vs TBD
BSL 21
4 days
BSL 21
5 days
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

IPSL Winter 2025-26
SC2 All-Star Inv. 2025
NA Kuram Kup

Ongoing

C-Race Season 1
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
OSC Championship Season 13
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
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.