The random-nation button favors interesting nations

  • We will be taking the forums down for scheduled maintenance on Tuesday, May 22nd 2023 at around 8:00 CDT / 13:00 UTC for up to an hour hour.
  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Thucydides7

Second Lieutenant
35 Badges
Sep 15, 2013
190
178
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Imperator: Rome - Magna Graecia
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings Complete
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis III: Collection
  • Rome: Vae Victis
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
It would appear that the random-nation button slightly favored interesting or more powerful nations over less interesting, less powerful ones. Not only does it subjectively seem so, but statistics over 400 trials agree, with six-sigma confidence.

The number of times the random-nation button was observed to select each nation over about 400 trials at a year 1444 start are as follows.

Independent nations:

1 Aachen
1 Abenaki
3 Aceh
2 Adal
1 Ajuuraan
2 Albania
1 Algiers
1 Alsace
0 Anhalt
0 Ansbach
0 Apache
2 Aq Qoyunlu
4 Aragon
0 Arakan
0 Ashanti
0 Assam
0 Assiniboine
1 Augsburg
2 Austria
3 Ayutthaya
0 Aztec
1 Baden
2 Bahmanis
1 Baluchistan
1 Bastar
2 Bavaria
1 Bengal
0 Benin
0 Blackfoot
1 Bohemia
3 Bosnia
3 Brandenburg
2 Bremen
2 Brittany
5 Brunei
3 Brunswick
5 Burgundy
2 Byzantium
4 Caddo
1 Candar
4 Castile
2 Ceylon
5 Chagatai
3 Champa
0 Cherokee
0 Cheyenne
1 Chickasaw
1 Chimu
0 Chocktaw
3 Cleves
0 Cologne
2 Comanche
3 Connacht
2 Cree
4 Creek
2 Crimea
1 Cyprus
1 Dai Viet
3 Delhi
2 Denmark
1 Dhundhar
0 Dulkadir
0 East Frisia
6 England
3 Ethiopia
0 Ferrara
0 Fox
7 France
1 Frankfurt
3 Friesland
1 Gelre
4 Genoa
3 Georgia
2 Golden Horde
2 Granada
3 Gujarat
0 Gwalior
0 Haasa
3 Hausa
2 Hedjaz
2 Hesse
3 Hungary
1 Huron
0 Illiniwek
1 Inca
1 Iroqoius
3 Jaisalmer
2 Japan
1 Jaunpur
0 Kachar
3 Kanem Bornu
0 Kangra
2 Karaman
2 Kashmir
1 Kathiawar
4 Kazan
1 Kilwa
3 Koch
1 Kochin
3 Kongo
2 Korea
2 Lan Na
2 Lan Xang
1 Leinster
2 Lenape
3 Liege
3 Lithuania
2 Livonian Order
1 Lueneburg
0 Magdeburg
0 Mahican
0 Mainz
3 Majapahit
2 Makassar
3 Malabar
2 Malacca
1 Mali
2 Malindi
0 Malwa
2 Manchu
3 Mantua
3 Marwar
2 Maya
0 Mecklenburg
5 Mewar
1 Mewat
2 Miami
3 Milan
5 Ming
0 Miqmaq
0 Mombasa
2 Morocco
1 Muenster
2 Multan
2 Munster
2 Muscovy
4 Mutapa
5 Najd
3 Navajo
1 Navarra
1 Nepal
1 Nogai
7 Novgorod
2 Oirat
2 Ojibwe
3 Oldenburg
0 Oman
2 Orissa
0 Osage
3 Ottawa
2 Ottomans
1 Oyo
1 Pawnee
5 Pegu
1 Pequot
1 Pima
4 Poland
2 Pomerania
2 Portugal
2 Potawatomi
2 Powhatan
2 Provence
0 Pueblo
5 Qara Qoyunlu
3 Ragusa
1 Ramazan
0 Riga
2 Ryazan
0 Ryukyu
2 Salzburg
2 Savoy
3 Saxe-Lauenburg
1 Saxony
0 Scotland
1 Serbia
1 Shan
3 Shawnee
0 Shoshone
3 Siena
2 Sind
1 Sioux
1 Songhai
0 Susquehannock
0 Switzerland
5 Teutonic Order
1 The Hansa
0 The Knights
8 The Mamluks
0 The Palatinate
5 The Papal State
2 Tibet
7 Timurids
3 Trebizond
3 Trier
4 Tunisia
3 Tuscany
1 Tver
0 Tyrone
1 Ulm
1 Urbino
0 Utrecht
5 Uzbek
2 Venad
3 Venice
1 Vijayanagar
1 Wallachia
3 Wurttemberg
1 Wurzburg
3 Yemen
3 Zapotec

Lesser partners:

0 Modena
0 Naples
6 Norway
0 Sukhothai
3 Sweden
0 Thuringia
0 Tripoli

Vassals:

0 Armagnac
0 Athens
0 Auvergne
0 Bourbonnais
0 Bundelkhand
0 Corfu
0 Date
0 Foix
0 Garjat
0 Gondwana
0 Hatakeyama
0 Holstein
0 Hosokawa
0 Imagawa
0 Jangladesh
0 Khandesh
0 Khmer
0 Lorraine
0 Mazovia
0 Mogadishu
0 Moldavia
1 Mongolia
0 Naxos
0 Orleans
0 Otomo
0 Ouchi
0 Perm
0 Pskov
0 Shiba
0 Shimazu
0 Silesia
0 Sofala
0 Takeda
0 Taungu
0 Uesugi
0 Yamana
0 Yaroslavl

To establish the aforementioned six-sigma confidence, within each of the above three categories, nations were ranked by their initial position on the game's score-comparison ledger. The random-nation button is then found slightly to prefer higher-ranked nations.

If you do not know what this is all about, but have read this far, anyway: There is a random-nation button on Europa Universalis IV's intro screen. The random-nation button steers you gently toward, say, England; away from, say, Pequot. England and Pequot are both possible when you press the random-nation button, but England is apparently the more likely.
 
Last edited:

ahyangyi

General
54 Badges
Jan 25, 2014
2.219
1.354
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Pre-order
  • Cities: Skylines Deluxe Edition
  • Sengoku
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Impire
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Dharma
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings III
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Victoria 2
Maybe it's done by randomly choosing a province, rerolling as long as it's uncolonized, then showing you the country owning that province. It's definitely one of the easier ways to write code for this.
 

Wizzington

Game Director (Victoria 3)
Paradox Staff
41 Badges
Nov 15, 2007
12.513
137.626
  • Hearts of Iron II: Armageddon
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sengoku
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • March of the Eagles
  • Majesty 2
  • Magicka
  • Heir to the Throne
  • Arsenal of Democracy
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Deus Vult
  • East India Company
  • Europa Universalis III
  • Divine Wind
  • For The Glory
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Prison Architect
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
The random button weights for size and tech speed, so yeah it's not totally random.
 

Thucydides7

Second Lieutenant
35 Badges
Sep 15, 2013
190
178
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Imperator: Rome - Magna Graecia
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings Complete
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis III: Collection
  • Rome: Vae Victis
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
The random button weights for size and tech speed, so yeah it's not totally random.
This seems a good idea. Consider for example the several North American Indian tribes, all of which are interesting but most of which play pretty similarly. There are several tribes, but only one England. England plays like no other nation.

Under the circumstance, for gameplay variety and for other reasons, one would prefer that the random-nation button select England more often than it selects any particular North American Indian tribe. It does this, which is good.
 

Fishman786

Maharaja
90 Badges
Aug 17, 2009
3.747
2.256
  • Europa Universalis IV: Third Rome
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris: Synthetic Dawn
  • For the Motherland
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Tyranny: Archon Edition
  • Cities: Skylines - Snowfall
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • Island Bound
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
You conducted 400 trials on this?


How did you come up with the initial hypothesis?
 

Thucydides7

Second Lieutenant
35 Badges
Sep 15, 2013
190
178
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Imperator: Rome - Magna Graecia
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings Complete
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis III: Collection
  • Rome: Vae Victis
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
How did you come up with the initial hypothesis?
Not knowing which nations the random-nation button might favor, I conjectured something vaguely plausible, as earlier detailed. Along with the trials, this was all that was needed to establish, statistically, that the random-nation button used something other than a flat distribution, which is what I had wished to prove.

Formally I suppose, the hypothesis was that the distribution had indeed been flat. Formally, the statistics disproved the hypothesis.
 

Thucydides7

Second Lieutenant
35 Badges
Sep 15, 2013
190
178
  • Europa Universalis III
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Imperator: Rome - Magna Graecia
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings Complete
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis III: Collection
  • Rome: Vae Victis
  • Europa Universalis IV
  • Europa Universalis IV: Third Rome
  • Crusader Kings II
Since a developer has confirmed, further discussion of analytical technique is merely of academic interest. So, for academics:

I considered withholding my data, since it is bulky; but had I withheld it, readers would rightly have disbelieved that I had in fact gathered it. So I posted it.

Statistical pedantry is fairly useless in cases like this, since it does not really matter whether Student's T (or whatever) or just a Gaussian distribution is used over 400 samples; but skepticism is good. I certainly do not claim to be a master statistician. Skeptics could either (a) analyze my data as they like or (b) gather their own data. Skeptics could even adopt alternate, plausible definitions of interesting. Regardless, skeptics who take the trouble to complete the exercise can hardly but find what I did; namely, that the random-nation button favors interesting nations.

As to the statistics themselves: Ranking the independent nations 1 through 210 as earlier explained, for a flat distribution, the average rank returned by the random-nation button ought to have been 105.5. The average rank was observed however to be 86.3. Of course, one must complete enough trials to make such an average statistically significant, which I did. I used a population deviation sqrt(N) rather than a sample deviation sqrt(N-1), and I used it on a Gaussian distribution, since specialized distributions are not very relevant over 400 samples. The rms deviation per sample from the mean was supposed to be 210/(2*sqrt(3)), which is right for a continuous flat distribution, though of course is only an estimate for the unknown distribution in question. I did not adjust my deviation per sample to the observed mean, but you can do that if you like; it won't matter much. And if you do not know what this is all about, that's all right. I am no master statistician, either. But for readers who are master statisticians, why, they now have my data and a basic explanation of my technique, so they can do the math, themselves, if they wish.

None of this is important, of course. We are talking about a video game, after all. I had a question, though, Google found no answer, I was curious, and I knew just enough about the science of statistics to carry out an experiment, so that is what I did. Next time someone is curious about the random-nation button and interesting nations in Europa Universalis IV, Google can find this answer for them.

Update: Since it came up, in case anyone cares, adjusting to the observed mean changes the confidence interval from 6.3 to 6.4 sigma. And if someone wants yet more refined statistics, why, they have my data and can calculate whatever statistics they like, themselves. They can apply a nonheuristical ranking, use Student's T, analyze variance, whatever they like. (My guess is that no one will, but they can, if they like.) The conclusion though is not likely to change, though: the random-nation button indeed favors interesting nations.

Since this is not an academic journal but a video-game forum, and since I am not an academic, I had better leave it there.
 
Last edited:

unmerged(783218)

Captain
5 Badges
Aug 11, 2013
345
4
  • Crusader Kings II
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Heir to the Throne
Are you ignoring the fact that a dev confirmed his conclusion?

No. But I was expecting a bit more rigorous treatment of datas before coming up with any conclusions.
Statiscal treatment could have proven that being a vassal/under a PU doesn't interfere, and show a correlation between tech, size and occurence.
But that was a mere grumpy scientist's observation to say that you should not come up with conclusions without any statistical treatments.

Also, the dev said there is a weighting, but not to wich extand. We could hypothesize a formula and test it with the datas :laugh:
 

Thrake

Inveterate Piggy Stabber
21 Badges
Jul 13, 2012
4.389
1.622
  • Crusader Kings II
  • Europa Universalis: Rome
  • Victoria 2: A House Divided
  • Supreme Ruler: Cold War
  • Sword of the Stars II
  • King Arthur II
  • Hearts of Iron III
  • Europa Universalis IV
  • Age of Wonders: Planetfall Sign Up
  • Imperator: Rome Sign Up
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Jade Dragon
  • Stellaris Sign-up
  • 500k Club
  • Warlock 2: The Exiled
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis III Complete
No. But I was expecting a bit more rigorous treatment of datas before coming up with any conclusions.
Statiscal treatment could have proven that being a vassal/under a PU doesn't interfere, and show a correlation between tech, size and occurence.
But that was a mere grumpy scientist's observation to say that you should not come up with conclusions without any statistical treatments.

Also, the dev said there is a weighting, but not to wich extand. We could hypothesize a formula and test it with the datas :laugh:

Well, please prove me that being a vassal or a PU doesn't interfere.