
NATFLAGS :
========

Data about nations and their flags, 200 rows, 30 cols. This has been
collated from several sources, including the Bartholomew Mini World
Factfile (1993), Whittaker's Almanack (2010), Wikipedia and the UN
data website (data.un.org).

It allows scope for ingenuity, e.g. in predicting a nation's official
religion from the colours &/or designs on its flag. This sort of problem
is quite good for testing how well a learning system can perform by
integrating a number of weak correlations.

Variables:

name		name of the country concerned
area		area in thousands of square km, rounded
pop2013		population in 2013, in round thousands
pop1992		population in 1992, in round thousands
life1992	average life expectancy at birth, 1992 estimate
			[69.5 entered for missing data, only 1 case.]
life2007	average life expectancy at birth, 2007 estimate
language	(first listed) official language, coded numerically:
			1.  English
			2.  Spanish
			3.	French
			4.  German
			5.	Slavic
			6.  other Indo-European
			7.  Finno-Ugric, Japanese, Korean, Mongol, Turkic
			8.  Arabic
			9.  Chinese
			10. other
			[I admit this is indefensibly Eurocentric, but in fact more than
			half the world's population live in a country whose (main?) official
			language is listed as Indo-European. English at number 1 is my
			non-pecuniary recompense for the effort of data-collection!]
religion	first (presumably predominant or official) listed religion, coded as:
			0.  Catholic
			1.  other Christian
			2.	Muslim
			3.  Buddhist
			4.  Hindu
			5.  Ethnic/traditional
			6.  Sikh (never in fact used!)
			7.  others
landmass	continent (in which capital city is located), coded as:
			1.  North America
			2.  South America
			3.  Europe
			4.  Africa
			5.  Asia
			6.  Oceania
peak		height of highest point in the country above mean sea level,
            to nearest metre
northing	Degrees (rounded) north of equator of capital city
easting		Degrees (rounded) east of Greenwich meridian of capital city
red			1 if colour red present in flag, else 0
green		1 if colour green present in flag, else 0
blue		1 if colour blue (or purple) present in flag, else 0
gold		1 if colour gold (or yellow) present in flag, else 0
white		1 if colour white present in flag, else 0
black		1 if black present in flag, else 0
orange		1 if colour orange (or brown) present in flag, else 0
crescent	1 if any crescent moon symbol present, else 0
ellipse		1 if any circles or ovals present, else 0
triangle	1 if any triangles present, else 0
icon		1 if any inanimate image present, else 0
animate		1 if any images of animals or vegetation present, else 0
text		1 if any writing present on the flag, else 0
saltire		1 if a saltire (diagonal cross) present, else 0
bars		Number of vertical bars on the flag
stripes		Number of horizontal stripes on the flag
crosses		Number of upright crosses on the flag
sunstars	Number of sun or star symbols on the flag

Note:

Although gathering this information was more laborious than I intended,
and included a fair amount of data checking, I wouldn't want to claim
that it is authoritative. Even so, it forms an interesting testbed
containing a realistic level of "noise" arising more from such things
as inevitable over-simplifications and arbitrary decisions in borderline
cases than from well-defined statistical variability.

Most of these data could be challenged in some respect:
	I could have made a good old-fashioned mistake in data entry;
	My judgement about the flags may not agree with everyone's;
	My published sources could have been in error;
	Some of the imposed categories are questionable;
	Such things as population and life expectancies are notoriously
		hard to estimate accurately;
	& so on.

It is easy to fall into believing that, in a time of GPS satellite
location systems, the heights of prominent mountains above mean
sea level (for example) constitute "hard data". What could be harder
than billions of tonnes of solid rock? Yet I have an atlas that quotes
the height of Puncak Jaya in Indonesia as 5030 metres, although Wikipedia
says that figure is "obsolete" and gives it an altitude of 4884 m.
Actually it used to be covered by a glacier, so was slightly higher
in the 19th century -- though not by 146 metres. Even the elevation
of Everest, probably the most intensively surveyed mountain in the world,
varies by several metres in different reference works. (Incidentally,
it is still growing, albeit more slowly than sea-level is rising,
like Mount Logan in Canada and many others, while some are shrinking
due to erosion.) Still, there is something satisfying in accepting that
the widely agreed datum expressing the height of the highest peak
in geographic Oceania, actually part of Asia politically, is in figures
a near-anagram of the height of Mount Everest (4884 versus 8848 metres).

Then there is the touchy polical matter of definitions and boundary
revision. For instance, I can well imagine indignant questions like
"Why should Portugese be coded as 'other Indo-European' while German
has a code to itself?!", "Why have you included, e.g., Eritrea & Palau
but not, for example, Abkhazia or South Sudan?!", "What do you mean
by coding Russia in Asia, when its capital city is in Europe?!",
"Are you saying that all Belgians speak French?!" et cetera.

Welcome to the real world of dirty data! Compiling this has been
an interesting exercise: it reminded me that many of our cherished
category schemes rest on shaky foundations. Our dynamic planet and
its shifting populations will always resist capture by a 2-dimensional
data grid. This dataset is no more dodgy than most that you will have
to analyze. In case you are particularly incensed by some aspect
of this data that seems to be either incorrect or conceptually dubious,
a spreadsheet version is also provided so that you can amend & improve it.
Enjoy....

[R.Forsyth, August, 2016.]
