placestats

Pupil-teacher ratio vs. Slum share of urban population

Fades after adjusting for income

Across 169 countries, Pupil-teacher ratio and Slum share of urban population rise and fall together at r = +0.71 (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.12, 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 pupil-teacher ratio, 14.2 to 30.1 pupils per teacher, slum share of urban population is worse by 21.8% of urban population at the top of that range than the bottom. Comparing only countries with similar national income, the gap is 10.4% of urban population.

Link before adjusting (r)+0.708p = 5.0e-27 · 169 countries
After adjusting for national income+0.301p = 7.6e-5 · likely range [+0.16, +0.43]
p, allowing for regions0.024standard error 0.100 · 7 regions
Check for luck (q)0.119across 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.

Pupil-teacher ratio · pupils per teacherlink with income -0.83 · proxy
Slum share of urban population · % of urban populationlink with income -0.78 · high

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

Pupil-teacher ratio · pupils per teacher →Slum share of urban population · % of urban population →8.383.40%92.5%Aruba: 14.8 pupils per teacher, 0% of urban populationAfghanistan: 48.8 pupils per teacher, 71.6% of urban populationAngola: 50 pupils per teacher, 62.7% of urban populationAlbania: 17.6 pupils per teacher, 2.7% of urban populationAndorra: 10.5 pupils per teacher, 0% of urban populationUnited Arab Emirates: 24.5 pupils per teacher, 0.113% of urban populationArmenia: 15.4 pupils per teacher, 8.39% of urban populationAntigua and Barbuda: 12.4 pupils per teacher, 2.65% of urban populationAustria: 10 pupils per teacher, 0.0466% of urban populationAzerbaijan: 15.4 pupils per teacher, 26.9% of urban populationBurundi: 42.5 pupils per teacher, 36.8% of urban populationBelgium: 11.3 pupils per teacher, 0% of urban populationBenin: 39.2 pupils per teacher, 64% of urban populationBurkina Faso: 39.7 pupils per teacher, 87.9% of urban populationBangladesh: 30.1 pupils per teacher, 51.5% of urban populationBulgaria: 15.2 pupils per teacher, 0.197% of urban populationBahrain: 11.9 pupils per teacher, 0% of urban populationBosnia and Herzegovina: 16.9 pupils per teacher, 0.313% of urban populationBelarus: 19.2 pupils per teacher, 0.004% of urban populationBelize: 19.8 pupils per teacher, 15.7% of urban populationBermuda: 10.4 pupils per teacher, 0.0776% of urban populationBolivia: 17.8 pupils per teacher, 46.6% of urban populationBrazil: 20.2 pupils per teacher, 14.9% of urban populationBrunei Darussalam: 9.9 pupils per teacher, 21.6% of urban populationBhutan: 34.7 pupils per teacher, 44.7% of urban populationBotswana: 23.7 pupils per teacher, 39.6% of urban populationCentral African Republic: 83.4 pupils per teacher, 68.9% of urban populationSwitzerland: 9.93 pupils per teacher, 0% of urban populationChile: 17.8 pupils per teacher, 7.32% of urban populationChina: 16.4 pupils per teacher, 26.3% of urban populationCote d'Ivoire: 41.8 pupils per teacher, 48.3% of urban populationCameroon: 44.8 pupils per teacher, 32.7% of urban populationCongo, Dem. Rep.: 33.2 pupils per teacher, 78.4% of urban populationCongo, Rep.: 44.4 pupils per teacher, 75.3% of urban populationColombia: 23.3 pupils per teacher, 9.7% of urban populationComoros: 28.1 pupils per teacher, 48.5% of urban populationCabo Verde: 21.1 pupils per teacher, 46.4% of urban populationCosta Rica: 12.2 pupils per teacher, 3.55% of urban populationCayman Islands: 15.7 pupils per teacher, 5.48% of urban populationCyprus: 12 pupils per teacher, 0.272% of urban populationCzechia: 18.9 pupils per teacher, 0.0273% of urban populationGermany: 12.3 pupils per teacher, 0% of urban populationDjibouti: 29.4 pupils per teacher, 48.7% of urban populationDenmark: 10.7 pupils per teacher, 0% of urban populationDominican Republic: 18.9 pupils per teacher, 11.2% of urban populationAlgeria: 24.3 pupils per teacher, 13.2% of urban populationEcuador: 24.3 pupils per teacher, 57.8% of urban populationEgypt, Arab Rep.: 23.7 pupils per teacher, 3.84% of urban populationSpain: 13.1 pupils per teacher, 0.046% of urban populationEstonia: 11.3 pupils per teacher, 0.345% of urban populationEthiopia: 55.1 pupils per teacher, 64.3% of urban populationFinland: 13.7 pupils per teacher, 0% of urban populationFiji: 28 pupils per teacher, 9.4% of urban populationFrance: 18.2 pupils per teacher, 0% of urban populationGabon: 24.5 pupils per teacher, 38.8% of urban populationUnited Kingdom: 15.1 pupils per teacher, 0.163% of urban populationGeorgia: 8.98 pupils per teacher, 7.08% of urban populationGhana: 27 pupils per teacher, 33.5% of urban populationGuinea: 47.1 pupils per teacher, 44% of urban populationGambia, The: 36.1 pupils per teacher, 37.1% of urban populationGuinea-Bissau: 51.9 pupils per teacher, 59% of urban populationEquatorial Guinea: 23.2 pupils per teacher, 64.7% of urban populationGreece: 9.38 pupils per teacher, 0.05% of urban populationGuatemala: 20.3 pupils per teacher, 37.6% of urban populationGuyana: 23.2 pupils per teacher, 11.3% of urban populationHonduras: 25.6 pupils per teacher, 31.5% of urban populationCroatia: 13.5 pupils per teacher, 0.527% of urban populationHungary: 10.8 pupils per teacher, 7.2% of urban populationIndonesia: 17 pupils per teacher, 19.4% of urban populationIndia: 32.7 pupils per teacher, 5.41% of urban populationIreland: 16.1 pupils per teacher, 8.5% of urban populationIran, Islamic Rep.: 28.5 pupils per teacher, 44.7% of urban populationIceland: 10.1 pupils per teacher, 0% of urban populationItaly: 11.5 pupils per teacher, 0.02% of urban populationJamaica: 24.8 pupils per teacher, 0.883% of urban populationJordan: 18.5 pupils per teacher, 23.4% of urban populationJapan: 15.7 pupils per teacher, 2% of urban populationKazakhstan: 17.2 pupils per teacher, 0.794% of urban populationKenya: 30.7 pupils per teacher, 40.5% of urban populationKyrgyz Republic: 25 pupils per teacher, 2.44% of urban populationCambodia: 41.7 pupils per teacher, 42.3% of urban populationKiribati: 25.5 pupils per teacher, 5.93% of urban populationKorea, Rep.: 16.3 pupils per teacher, 4.5% of urban populationKuwait: 8.88 pupils per teacher, 0% of urban populationLao PDR: 22.3 pupils per teacher, 54.8% of urban populationLebanon: 12.5 pupils per teacher, 4.53% of urban populationLiberia: 22.3 pupils per teacher, 60.5% of urban populationSt. Lucia: 14.7 pupils per teacher, 0.441% of urban populationSri Lanka: 21.7 pupils per teacher, 44.7% of urban populationLesotho: 32.9 pupils per teacher, 25.6% of urban populationLithuania: 13.5 pupils per teacher, 0.509% of urban populationLuxembourg: 8.3 pupils per teacher, 0.0173% of urban populationLatvia: 11.5 pupils per teacher, 0.593% of urban populationMorocco: 26.8 pupils per teacher, 10.9% of urban populationMoldova: 17.9 pupils per teacher, 6.5% of urban populationMadagascar: 39.8 pupils per teacher, 65.7% of urban populationMaldives: 10.2 pupils per teacher, 34.8% of urban populationMexico: 26.6 pupils per teacher, 17.6% of urban populationNorth Macedonia: 14.9 pupils per teacher, 0.278% of urban populationMali: 37.8 pupils per teacher, 92.5% of urban populationMalta: 12.9 pupils per teacher, 0.0375% of urban populationMyanmar: 24.4 pupils per teacher, 58.3% of urban populationMongolia: 30.4 pupils per teacher, 17.9% of urban populationMozambique: 55.3 pupils per teacher, 55% of urban populationMauritania: 34.3 pupils per teacher, 58.6% of urban populationMauritius: 16.2 pupils per teacher, 48.7% of urban populationMalawi: 58.7 pupils per teacher, 38% of urban populationMalaysia: 11.7 pupils per teacher, 0.2% of urban populationNamibia: 25.1 pupils per teacher, 41.4% of urban populationNiger: 36.3 pupils per teacher, 70.4% of urban populationNigeria: 37.6 pupils per teacher, 48.5% of urban populationNicaragua: 30.2 pupils per teacher, 5.52% of urban populationNetherlands: 11.8 pupils per teacher, 0% of urban populationNorway: 8.59 pupils per teacher, 0% of urban populationNepal: 19.7 pupils per teacher, 40.1% of urban populationNaoero: 40.2 pupils per teacher, 0.597% of urban populationNew Zealand: 14.9 pupils per teacher, 0% of urban populationOman: 9.67 pupils per teacher, 0% of urban populationPakistan: 44.1 pupils per teacher, 56% of urban populationPanama: 22 pupils per teacher, 16.3% of urban populationPeru: 17.4 pupils per teacher, 45.1% of urban populationPhilippines: 29.1 pupils per teacher, 35.9% of urban populationPapua New Guinea: 35.5 pupils per teacher, 22.3% of urban populationPoland: 10.2 pupils per teacher, 4.22% of urban populationPortugal: 12.4 pupils per teacher, 0.059% of urban populationParaguay: 24.2 pupils per teacher, 15.1% of urban populationWest Bank and Gaza: 24.5 pupils per teacher, 19.5% of urban populationQatar: 12.2 pupils per teacher, 0% of urban populationRomania: 19.3 pupils per teacher, 2.52% of urban populationRussian Federation: 21.3 pupils per teacher, 2.62% of urban populationRwanda: 59.5 pupils per teacher, 38.3% of urban populationSaudi Arabia: 13.8 pupils per teacher, 0.55% of urban populationSenegal: 36.3 pupils per teacher, 46.4% of urban populationSingapore: 14.7 pupils per teacher, 0% of urban populationSolomon Islands: 25.4 pupils per teacher, 1.95% of urban populationSierra Leone: 27.5 pupils per teacher, 49.3% of urban populationEl Salvador: 26.9 pupils per teacher, 16.5% of urban populationSerbia: 14.3 pupils per teacher, 1.42% of urban populationSao Tome and Principe: 31.2 pupils per teacher, 82.4% of urban populationSuriname: 13.4 pupils per teacher, 15.8% of urban populationSlovak Republic: 15.5 pupils per teacher, 0.066% of urban populationSlovenia: 13.8 pupils per teacher, 0.527% of urban populationSweden: 12.2 pupils per teacher, 0.336% of urban populationEswatini: 26.6 pupils per teacher, 17% of urban populationSint Maarten (Dutch part): 11.3 pupils per teacher, 2.89% of urban populationSeychelles: 14.5 pupils per teacher, 48.7% of urban populationTurks and Caicos Islands: 17.7 pupils per teacher, 0.631% of urban populationChad: 56.9 pupils per teacher, 82% of urban populationTogo: 40.1 pupils per teacher, 38.5% of urban populationThailand: 16.6 pupils per teacher, 2% of urban populationTajikistan: 22.3 pupils per teacher, 0.05% of urban populationTimor-Leste: 26.9 pupils per teacher, 33.9% of urban populationTonga: 21.6 pupils per teacher, 0.308% of urban populationTunisia: 16.9 pupils per teacher, 7.64% of urban populationTurkiye: 17 pupils per teacher, 14.1% of urban populationTuvalu: 15.6 pupils per teacher, 50.9% of urban populationTanzania: 50.6 pupils per teacher, 70.1% of urban populationUganda: 42.7 pupils per teacher, 52.7% of urban populationUkraine: 13 pupils per teacher, 1.1% of urban populationUruguay: 11 pupils per teacher, 1.3% of urban populationUnited States: 14.2 pupils per teacher, 0.0932% of urban populationUzbekistan: 21.5 pupils per teacher, 7.1% of urban populationSt. Vincent and the Grenadines: 14.4 pupils per teacher, 2.76% of urban populationViet Nam: 20.3 pupils per teacher, 32.5% of urban populationVanuatu: 26.6 pupils per teacher, 3.06% of urban populationSamoa: 30.2 pupils per teacher, 34.6% of urban populationSouth Africa: 30.3 pupils per teacher, 24.2% of urban populationZambia: 42.1 pupils per teacher, 48.3% of urban populationZimbabwe: 36.4 pupils per teacher, 54.9% of urban populationCAFETHKWTLUXNORNRURWASTPSYCTCDTUV

best-fit line line after adjusting

Four ways to measure the link

MethodrpCountries
Standard (Pearson), not adjusted+0.7085.0e-27169
By rank (Spearman), not adjusted+0.7491.1e-31169
Standard (Pearson), adjusted for national income+0.3017.6e-5169
By rank (Spearman), adjusted for national income+0.2820.000169

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 169 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.408 (a minus sign means it grew).

How solid is it?

Leaving out one country at a time, r ranges from +0.276 (without SLB) to +0.323 (without NRU). 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: SLB (-0.024).

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 & Pacific25-0.01
Europe & Central Asia47+0.03
Latin America & Caribbean27+0.09
Middle East, North Africa, Afghanistan & Pakistan18+0.73
Sub-Saharan Africa44+0.07

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 third57+0.36
Middle third56+0.09
Richest third56+0.28

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
Christians99+0.33
Muslims43+0.51

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
France23+0.11
Never a European colony20+0.47
Spain18-0.16
United Kingdom50+0.22

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.343 after dropping 6 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 19years. So a link here can’t come from anything about a country that stays the same, such as its history, geography, institutions or culture.

The link shows up within countries over time (r = +0.182) but mostly disappears in year-to-year changes (r = —). That points to slow trends particular to each country, not the two measures moving together from year to year.

Across countries (adjusted)+0.301for comparison
Within countries+0.441each country vs itself
…and vs the same year elsewhere+0.182q = 0.002 · 123 countries
Year-on-year changes—q = —
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.

994 country-years (one country in one year), 123 countries, 2000–2018, about 8 years each on average. Share of the variation that happens within countries over time: 5% for Pupil-teacher ratio, 7% for Slum share of urban population. 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.30−0.3-100+10years Slum share of urban population trails Pupil-teacher ratio →lag -10: r = 0.082 (n = 205)lag -9: r = 0.201 (n = 303)lag -8: r = 0.173 (n = 434)lag -7: r = 0.135 (n = 493)lag -6: r = 0.201 (n = 565)lag -5: r = 0.154 (n = 643)lag -4: r = 0.133 (n = 742)lag -3: r = 0.141 (n = 780)lag -2: r = 0.192 (n = 863)lag -1: r = 0.161 (n = 911)lag +0: r = 0.182 (n = 994)lag +1: r = 0.098 (n = 1,054)lag +2: r = 0.150 (n = 1,108)lag +3: r = 0.107 (n = 1,164)lag +4: r = 0.094 (n = 1,209)lag +5: r = 0.058 (n = 1,261)lag +6: r = 0.004 (n = 1,239)lag +7: r = -0.004 (n = 1,234)lag +8: r = -0.040 (n = 1,235)lag +9: r = -0.070 (n = 1,249)lag +10: r = -0.097 (n = 1,196)

Same year (lag 0): +0.182. 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.

The data


pupils per teacher

% of urban population
Years
Central African Republic CAF83.468.9%2016, 2022
Rwanda RWA59.538.3%2018, 2022
Malawi MWI58.738%2018, 2022
Chad TCD56.982%2016, 2022
Mozambique MOZ55.355%2018, 2022
Ethiopia ETH55.164.3%2011, 2022
Guinea-Bissau GNB51.959%2010, 2022
Tanzania TZA50.670.1%2018, 2022
Angola AGO5062.7%2015, 2022
Afghanistan AFG48.871.6%2018, 2022
Guinea GIN47.144%2016, 2022
Cameroon CMR44.832.7%2018, 2022
Congo, Rep. COG44.475.3%2012, 2022
Pakistan PAK44.156%2018, 2022
Uganda UGA42.752.7%2017, 2022

World Bank, World Development Indicators
World Bank, World Development Indicators

Sources

Pupil-teacher ratio

Pupil-teacher ratio, primary

UNESCO Institute for Statistics · CC BY 4.0 · updated quarterly

The World Bank's copy stops at 2019.

Slum share of urban population

Population living in slums (% of urban population)

UN-Habitat · CC BY 4.0 · updated quarterly

How this was computed

Data used: most recent value in 2010-2025; values come from 2010–2022. 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 Pupil-teacher ratio and Slum share of urban population

This page shows that two measures go together. It does not show that Pupil-teacher ratio changes Slum share of urban population, or the reverse. These figures also describe countries, not individual people. See the ecological fallacy.

More links with Pupil-teacher ratio or Slum share of urban population