placestats

Expected schooling vs. Median age

Fades after adjusting for income

Across 187 countries, Expected schooling and Median age rise and fall together at r = +0.77 (on a scale from −1 to +1, where 0 means no link). Comparing only countries with similar income (GDP per person) shrinks it to +0.30, which could easily be chance (q = 0.11, allowing for the many pairs tested, and allowing for countries in the same region being alike). So the first figure mostly shows richer countries differing from poorer ones, not a link between these two things.

Comparing countries across the middle half of median age, 21 to 37.8 years, expected schooling is better by 4.13 years at the top of that range than the bottom. Comparing only countries with similar national income, the gap is 1.91 years.

Link before adjusting (r)+0.766p = 2.7e-37 · 187 countries
After adjusting for national income+0.299p = 3.3e-5 · likely range [+0.16, +0.42]
p, allowing for regions0.001standard error 0.052 · 7 regions
Check for luck (q)0.105across 12,497 pairs

How to read these.r runs from −1 (one goes up as the other goes down) to +1 (they rise together), and 0 means no link. Adjusting for national income means comparing countries with the same GDP per person, so differences in wealth can’t explain the link. Income is used in percentage terms, since an extra $1,000 means more to a poor country than to a rich one. p is how likely a link this strong would be if there were really none. Below 0.05 means it is unlikely to be chance. Very small values are written in short form: 1.1e-32 means a decimal point followed by 31 zeros and then 11, so very close to zero. The likely range is where the true figure probably lies, and a range that crosses zero means the link could easily be chance. Countries in the same region tend to resemble each other, so the third figure allows for that, which gives a fairer p. The standard error is the typical size of the error in r. Finally, testing this many pairs means some will look strong by luck alone. A q below 0.05 means this link is unlikely to be one of those.

Expected schooling · yearslink with income +0.81 · proxy
Median age · yearslink with income +0.86 · proxy

Both of these rise and fall closely with national income, so a strong link between them before adjusting was close to certain. Read the adjusted figure, not the first one.

“Link with income” is how closely each measure tracks GDP per person across countries, from −1 to +1.

Every country as a dot

Expected schooling · years →Median age · years →6.2120.814.349Afghanistan: 10.8 years, 16.9 yearsAngola: 12.2 years, 16.5 yearsAlbania: 14.5 years, 36.3 yearsAndorra: 14.5 years, 43.2 yearsUnited Arab Emirates: 15.6 years, 31.2 yearsArgentina: 18.8 years, 32.1 yearsArmenia: 14.4 years, 35.8 yearsAntigua and Barbuda: 15.5 years, 35.5 yearsAustralia: 20.7 years, 37.8 yearsAustria: 16.3 years, 43.1 yearsAzerbaijan: 12.9 years, 32.6 yearsBurundi: 9.83 years, 15.9 yearsBelgium: 19 years, 41.4 yearsBenin: 10.4 years, 17.8 yearsBurkina Faso: 8.73 years, 17.3 yearsBangladesh: 12.3 years, 25.3 yearsBulgaria: 15.3 years, 44.3 yearsBahrain: 15.9 years, 32.9 yearsBahamas, The: 11.9 years, 34.6 yearsBosnia and Herzegovina: 13.2 years, 44.9 yearsBelarus: 13.7 years, 40.5 yearsBelize: 12 years, 25.9 yearsBolivia: 15.6 years, 24.7 yearsBrazil: 15.8 years, 33.9 yearsBarbados: 16.6 years, 38.9 yearsBrunei Darussalam: 13.7 years, 31.8 yearsBhutan: 13.2 years, 29.4 yearsBotswana: 11.4 years, 22.9 yearsCentral African Republic: 7.44 years, 14.3 yearsCanada: 15.9 years, 40.3 yearsSwitzerland: 16.7 years, 42.3 yearsChile: 16.9 years, 36 yearsChina: 15.5 years, 39.1 yearsCote d'Ivoire: 11.4 years, 18.1 yearsCameroon: 10.8 years, 17.8 yearsCongo, Dem. Rep.: 10.9 years, 15.8 yearsCongo, Rep.: 12.7 years, 18.3 yearsColombia: 14.3 years, 31.6 yearsComoros: 13.3 years, 20.3 yearsCabo Verde: 11.4 years, 27.9 yearsCosta Rica: 16.3 years, 34.1 yearsCyprus: 16.2 years, 37.8 yearsCzechia: 16.8 years, 42.7 yearsGermany: 17.3 years, 45.1 yearsDjibouti: 6.21 years, 24.4 yearsDominica: 14.2 years, 35.6 yearsDenmark: 18.7 years, 41.2 yearsDominican Republic: 13.6 years, 27.7 yearsAlgeria: 15.5 years, 28.2 yearsEcuador: 14.9 years, 28.4 yearsEgypt, Arab Rep.: 13.1 years, 24 yearsSpain: 17.8 years, 44.9 yearsEstonia: 16 years, 41.9 yearsEthiopia: 9.22 years, 18.7 yearsFinland: 19.5 years, 42.8 yearsFiji: 13.8 years, 27.7 yearsFrance: 16.1 years, 41.8 yearsMicronesia, Fed. Sts.: 11.5 years, 22.9 yearsGabon: 12.5 years, 21.5 yearsUnited Kingdom: 17.8 years, 39.8 yearsGeorgia: 16.8 years, 36.8 yearsGhana: 11.4 years, 20.9 yearsGuinea: 10.4 years, 18 yearsGambia, The: 8.98 years, 18.2 yearsGuinea-Bissau: 10.6 years, 18.9 yearsEquatorial Guinea: 12.5 years, 21 yearsGreece: 20.8 years, 45.7 yearsGrenada: 16.6 years, 33.4 yearsGuatemala: 10.7 years, 22.6 yearsGuyana: 13 years, 25.6 yearsHong Kong SAR, China: 16.9 years, 46.2 yearsHonduras: 10.2 years, 23.5 yearsCroatia: 16.3 years, 44.8 yearsHaiti: 10.9 years, 23.5 yearsHungary: 15.5 years, 43.3 yearsIndonesia: 13.3 years, 29.8 yearsIndia: 13 years, 28.1 yearsIreland: 19.2 years, 38.4 yearsIran, Islamic Rep.: 14 years, 32.9 yearsIraq: 12.4 years, 20.3 yearsIceland: 18.9 years, 35.8 yearsIsrael: 14.9 years, 29.1 yearsItaly: 16.7 years, 47.5 yearsJamaica: 12.4 years, 31.7 yearsJordan: 13.1 years, 24.3 yearsJapan: 15.5 years, 49 yearsKazakhstan: 14 years, 29.5 yearsKenya: 11.5 years, 19.5 yearsKyrgyz Republic: 12.7 years, 25.1 yearsCambodia: 11.2 years, 25.8 yearsKiribati: 11.9 years, 22.7 yearsSt. Kitts and Nevis: 18.4 years, 35.3 yearsKorea, Rep.: 16.6 years, 44.5 yearsKuwait: 15.9 years, 34.5 yearsLao PDR: 9.61 years, 24.3 yearsLebanon: 11.7 years, 28.3 yearsLiberia: 10.5 years, 18.4 yearsLibya: 12.9 years, 27.2 yearsSt. Lucia: 12.7 years, 33.7 yearsSri Lanka: 13.1 years, 32.8 yearsLesotho: 11 years, 21.4 yearsLithuania: 16.5 years, 42.1 yearsLuxembourg: 14.4 years, 38.9 yearsLatvia: 16.5 years, 43.1 yearsMorocco: 15.1 years, 29.2 yearsMoldova: 14.6 years, 37.8 yearsMadagascar: 9.06 years, 18.9 yearsMaldives: 12.8 years, 31.1 yearsMexico: 14.5 years, 28.9 yearsMarshall Islands: 16.4 years, 20.7 yearsNorth Macedonia: 14.8 years, 40.3 yearsMali: 7.01 years, 15.5 yearsMalta: 15.9 years, 40.3 yearsMyanmar: 11.5 years, 29.5 yearsMontenegro: 15.5 years, 39.3 yearsMongolia: 13.6 years, 26.8 yearsMozambique: 10.8 years, 16.3 yearsMauritania: 7.95 years, 17.1 yearsMauritius: 14.2 years, 36.9 yearsMalawi: 9.9 years, 17.6 yearsMalaysia: 12.7 years, 30.1 yearsNamibia: 11.8 years, 21 yearsNiger: 8.31 years, 15.3 yearsNigeria: 10.5 years, 17.8 yearsNicaragua: 11.5 years, 25.3 yearsNetherlands: 18.6 years, 41.4 yearsNorway: 18.8 years, 39.5 yearsNepal: 13.8 years, 24.7 yearsNaoero: 12.8 years, 20.4 yearsNew Zealand: 19.3 years, 37.3 yearsOman: 13.4 years, 29.3 yearsPakistan: 7.9 years, 20.3 yearsPanama: 13.3 years, 29.6 yearsPeru: 14.9 years, 29.5 yearsPhilippines: 12.8 years, 25.3 yearsPalau: 14.1 years, 37.8 yearsPapua New Guinea: 11.5 years, 22.3 yearsPoland: 16.7 years, 41.3 yearsPortugal: 17.5 years, 46.2 yearsParaguay: 14 years, 26.3 yearsWest Bank and Gaza: 13 years, 19.8 yearsQatar: 13.1 years, 33.2 yearsRomania: 14.1 years, 42.6 yearsRussian Federation: 13.2 years, 39.5 yearsRwanda: 12.6 years, 19.4 yearsSaudi Arabia: 16.9 years, 29.2 yearsSudan: 8.62 years, 18.3 yearsSenegal: 9.14 years, 19.1 yearsSingapore: 16.7 years, 35.1 yearsSolomon Islands: 11.3 years, 20.3 yearsSierra Leone: 9.06 years, 19.3 yearsEl Salvador: 11.1 years, 27 yearsSan Marino: 14.6 years, 47.4 yearsSomalia, Fed. Rep.: 7.49 years, 15.4 yearsSerbia: 15 years, 43.9 yearsSao Tome and Principe: 12.9 years, 19.1 yearsSuriname: 11 years, 28.1 yearsSlovak Republic: 14.9 years, 41.3 yearsSlovenia: 17.5 years, 43.9 yearsSweden: 19 years, 39.9 yearsEswatini: 15.2 years, 22 yearsSeychelles: 18.2 years, 33.7 yearsSyrian Arab Republic: 7.42 years, 22.2 yearsChad: 8.35 years, 15.4 yearsTogo: 13.1 years, 18.1 yearsThailand: 15.4 years, 39.7 yearsTajikistan: 10.8 years, 21.9 yearsTurkmenistan: 13.2 years, 26.2 yearsTimor-Leste: 13.3 years, 21 yearsTonga: 17.8 years, 20.7 yearsTrinidad and Tobago: 14.2 years, 36.7 yearsTunisia: 14.7 years, 32.1 yearsTurkiye: 19.8 years, 32.5 yearsTuvalu: 12.4 years, 24.3 yearsTanzania: 8.59 years, 17.2 yearsUganda: 11.6 years, 16.5 yearsUkraine: 13.3 years, 42 yearsUruguay: 17.5 years, 35.8 yearsUnited States: 15.9 years, 38 yearsUzbekistan: 12.5 years, 26.9 yearsSt. Vincent and the Grenadines: 16.3 years, 33.9 yearsViet Nam: 15.5 years, 32.4 yearsVanuatu: 11.8 years, 20.1 yearsSamoa: 12.4 years, 19.9 yearsSouth Africa: 13.8 years, 28.2 yearsZambia: 11 years, 17.5 yearsZimbabwe: 11.1 years, 17.8 yearsAUSBIHCAFDJIFINGRCMHLMLISMRSOMTONTUR

best-fit line line after adjusting

Four ways to measure the link

MethodrpCountries
Standard (Pearson), not adjusted+0.7662.7e-37187
By rank (Spearman), not adjusted+0.8041.1e-43187
Standard (Pearson), adjusted for national income+0.2993.3e-5187
By rank (Spearman), adjusted for national income+0.3421.8e-6187

The rank version uses only each country’s place in line, from lowest to highest, so a few extreme countries count for less. The adjusted and unadjusted versions use the same 187 countries: those that report both measures and GDP per person. So the gap between them comes from the adjustment, not from a change in which countries are counted. Drop in the size of r after adjusting: +0.466 (a minus sign means it grew).

How solid is it?

Leaving out one country at a time, r ranges from +0.271 (without GUY) to +0.322 (without TON). The bar above shows that range on a scale from −1 to +1, with the solid line at the full result. The single country that moves r most: GUY (-0.028).

Within each region

Countries are not separate, unrelated cases, and neighbors share a lot. A link that holds inside each region is far more believable than one that shows up only when comparing regions.

nr
East Asia & Pacific30+0.11
Europe & Central Asia50+0.07
Latin America & Caribbean31+0.55
Middle East, North Africa, Afghanistan & Pakistan22+0.24
Sub-Saharan Africa46+0.37

By income third

If the link shows up only in the richest third of countries, it is a feature of rich countries, not a general pattern.

nr
Poorest third63+0.17
Middle third62+0.23
Richest third62+0.32

By largest religious group

Countries grouped by a label they share, such as main religion, rather than by a number. Groups of fewer than twelve countries are not shown. These groups differ in income, region and history all at once. So a gap between them is a place to start asking questions, not an answer.

nr
Christians108+0.30
Muslims49+0.28

By last european coloniser

Countries grouped by a label they share, such as main religion, rather than by a number. Groups of fewer than twelve countries are not shown. These groups differ in income, region and history all at once. So a gap between them is a place to start asking questions, not an answer.

nr
France25+0.30
Never a European colony21+0.21
Spain20+0.61
United Kingdom63+0.41

Without outliers (countries far outside the middle half of countries on either measure, by more than one and a half times the width of that middle half): r = +0.299 after dropping 0 countries.

Two series, one country

Both measures over the years for one country you pick. The two charts are stacked so they share only the years along the bottom.

Loading…

Over time, within countries

Everything above compares countries with each other at one moment. This section compares each country only with itself over 34years. So a link here can’t come from anything about a country that stays the same, such as its history, geography, institutions or culture.

Within countries over time, there is no link that is clearly more than chance (r = -0.020, comparing each country only with itself over the years, and each year only with the same year elsewhere). Whatever the cross-country picture shows, countries whose expected schooling moved did not tend to see their median age move with it.

Across countries (adjusted)+0.299for comparison
Within countries+0.682each country vs itself
…and vs the same year elsewhere-0.020q = 0.854 · 194 countries
Year-on-year changes+0.018q = 0.702
Read with care.
  • Almost all of this indicator's variation is between countries, not within them, so the within-country estimate rests on a small part of the data.
  • Much of the within-country association disappears once shared global year effects are removed, which points to a common worldwide trend rather than a country-level relationship.

6,308 country-years (one country in one year), 194 countries, 1990–2023, about 33 years each on average. Share of the variation that happens within countries over time: 9% for Expected schooling, 20% for Median age. The margins of error allow for each country appearing many times, and for each year’s value being close to the year before.

Year-to-year changes are a cautious test, not a final answer. Looking only at changes from one year to the next removes each country’s own trends. But it also makes measurement mistakes louder, which pulls the results toward zero. A near-zero result here is weak evidence of no link, not proof.

With one measure years behind the other

0.20−0.2-100+10years Median age trails Expected schooling →lag -10: r = -0.108 (n = 4,592)lag -9: r = -0.096 (n = 4,766)lag -8: r = -0.082 (n = 4,939)lag -7: r = -0.070 (n = 5,112)lag -6: r = -0.059 (n = 5,285)lag -5: r = -0.049 (n = 5,458)lag -4: r = -0.041 (n = 5,628)lag -3: r = -0.032 (n = 5,798)lag -2: r = -0.027 (n = 5,968)lag -1: r = -0.023 (n = 6,138)lag +0: r = -0.020 (n = 6,308)lag +1: r = -0.015 (n = 6,114)lag +2: r = -0.012 (n = 5,920)lag +3: r = -0.007 (n = 5,726)lag +4: r = -0.001 (n = 5,532)lag +5: r = 0.006 (n = 5,338)lag +6: r = 0.011 (n = 5,144)lag +7: r = 0.017 (n = 4,950)lag +8: r = 0.023 (n = 4,756)lag +9: r = 0.029 (n = 4,562)lag +10: r = 0.037 (n = 4,356)

Same year (lag 0): -0.020. A peak away from zero does not show which comes first. These series change slowly — this year’s value is close to last year’s. That makes the curve smooth and nearly symmetric, whatever produced the data. Even a sharp peak at one lag (a gap of some years) would not prove that one measure changes the other.

This curve peaks at the edge of the window (lag -10), so it is still drifting where the search stops. That pattern usually reflects a slow trend left over in the data, not a link with real timing. The peak value should not be read as the “true” link at the right lag.

The data


years

years
Years
Greece GRC20.845.72023
Australia AUS20.737.82023
Turkiye TUR19.832.52023
Finland FIN19.542.82023
New Zealand NZL19.337.32023
Ireland IRL19.238.42023
Belgium BEL1941.42023
Sweden SWE1939.92023
Iceland ISL18.935.82023
Argentina ARG18.832.12023
Norway NOR18.839.52023
Denmark DNK18.741.22023
Netherlands NLD18.641.42023
St. Kitts and Nevis KNA18.435.32023
Seychelles SYC18.233.72023

United Nations Development Programme, Human Development Report 2025
United Nations, Department of Economic and Social Affairs, Population Division: World Population Prospects 2024 and Estimates and Projections of Women of Reproductive Age Who Are Married or in a Union

Sources

Expected schooling

Expected years of schooling

United Nations Development Programme, Human Development Report Office · via Our World in Data · CC BY 3.0 IGO · updated annual

The years a child starting school today can expect to spend in it, if current enrolment rates hold. It is a forecast built from the same UNESCO enrolment figures the site already has, so it moves with them.

Median age

Median age of the population

United Nations Department of Economic and Social Affairs, Population Division · via Our World in Data · CC BY 3.0 IGO · updated biennial

The age that splits a population in half: half are older and half are younger. The shares aged under 15 and over 65 are already on the site. All three are treated as measuring the same thing. They are readings of the same age pyramid, so they are bound to match, and their agreement is not a finding. No "better" direction is set.

How this was computed

Data used: most recent value in 2010-2025; values come from 2023. To adjust for income, each measure is first predicted from GDP per person (in percentage terms, on a log scale) with a straight-line fit. Only what is left over is then compared. This is called a partial correlation. The line is drawn the standard way (ordinary least squares), which picks the line that comes closest to all the countries at once. The error margins allow for countries in the same region resembling each other, using 7 World Bank regions. The q-value corrects for testing all 12,497 pairs at once, using the Benjamini–Hochberg method. Underlying data last updated DYB 2024. How the country data works · explore Expected schooling and Median age

This page shows that two measures go together. It does not show that Expected schooling changes Median age, or the reverse. These figures also describe countries, not individual people. See the ecological fallacy.

More links with Expected schooling or Median age