placestats

Basic sanitation vs. Infrastructure score

Holds up after adjusting for income

Across 196 countries, Basic sanitation and Infrastructure score rise and fall together at r = +0.84 (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.48 (q = 0.010, allowing for the many pairs tested). Much of the first figure is that both measures rise with national income, but a moderate positive link remains.

Comparing countries across the middle half of basic sanitation, 70.3% to 99% of population, infrastructure score is better by 0.623 typical gaps at the top of that range than the bottom. Comparing only countries with similar national income, the gap is 0.244 typical gaps.

Link before adjusting (r)+0.836p = 2.2e-52 · 196 countries
After adjusting for national income+0.481p = 1.0e-12 · likely range [+0.37, +0.58]
p, allowing for regions0.000standard error 0.064 · 7 regions
Check for luck (q)0.010across 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.

Basic sanitation · % of populationlink with income +0.79 · high
Infrastructure score · typical gaps (standard deviations)link with income +0.90 · 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

Basic sanitation · % of population →Infrastructure score · typical gaps (standard deviations) →10.4%100%-1.011.78Aruba: 98.8% of population, 0.917 typical gaps (standard deviations)Afghanistan: 54.5% of population, 0.116 typical gaps (standard deviations)Angola: 50.3% of population, -0.152 typical gaps (standard deviations)Albania: 99.3% of population, 1.14 typical gaps (standard deviations)Andorra: 100% of population, 1.78 typical gaps (standard deviations)United Arab Emirates: 99.1% of population, 1.61 typical gaps (standard deviations)Argentina: 94.8% of population, 1.25 typical gaps (standard deviations)Armenia: 93.7% of population, 1.09 typical gaps (standard deviations)Antigua and Barbuda: 99.6% of population, 0.859 typical gaps (standard deviations)Australia: 100% of population, 1.5 typical gaps (standard deviations)Austria: 100% of population, 1.37 typical gaps (standard deviations)Azerbaijan: 99% of population, 1.19 typical gaps (standard deviations)Burundi: 44.6% of population, -0.835 typical gaps (standard deviations)Belgium: 99.5% of population, 1.64 typical gaps (standard deviations)Benin: 22.2% of population, 0.00537 typical gaps (standard deviations)Burkina Faso: 31.8% of population, -0.245 typical gaps (standard deviations)Bangladesh: 67.6% of population, 0.649 typical gaps (standard deviations)Bulgaria: 86.1% of population, 1.25 typical gaps (standard deviations)Bahrain: 100% of population, 1.17 typical gaps (standard deviations)Bahamas, The: 93.7% of population, 1.25 typical gaps (standard deviations)Bosnia and Herzegovina: 95.4% of population, 1.29 typical gaps (standard deviations)Belarus: 99.7% of population, 1.48 typical gaps (standard deviations)Belize: 84.3% of population, 0.573 typical gaps (standard deviations)Bermuda: 99.9% of population, 1.68 typical gaps (standard deviations)Bolivia: 71.6% of population, 0.886 typical gaps (standard deviations)Brazil: 92.4% of population, 1.18 typical gaps (standard deviations)Barbados: 98.1% of population, 1.31 typical gaps (standard deviations)Brunei Darussalam: 100% of population, 1.22 typical gaps (standard deviations)Bhutan: 86.8% of population, 0.847 typical gaps (standard deviations)Botswana: 72.1% of population, 0.5 typical gaps (standard deviations)Central African Republic: 14% of population, -1.01 typical gaps (standard deviations)Canada: 98.6% of population, 1.56 typical gaps (standard deviations)Switzerland: 99.9% of population, 1.7 typical gaps (standard deviations)Chile: 100% of population, 1.25 typical gaps (standard deviations)China: 97.3% of population, 1.66 typical gaps (standard deviations)Cote d'Ivoire: 40.4% of population, 0.207 typical gaps (standard deviations)Cameroon: 47.1% of population, 0.557 typical gaps (standard deviations)Congo, Dem. Rep.: 16.3% of population, -0.672 typical gaps (standard deviations)Congo, Rep.: 20.6% of population, 0.312 typical gaps (standard deviations)Colombia: 96.6% of population, 1.01 typical gaps (standard deviations)Comoros: 57.2% of population, 0.259 typical gaps (standard deviations)Cabo Verde: 83.1% of population, 0.806 typical gaps (standard deviations)Costa Rica: 98.8% of population, 1.19 typical gaps (standard deviations)Curacao: 99.2% of population, 1.18 typical gaps (standard deviations)Cayman Islands: 83.2% of population, 1.58 typical gaps (standard deviations)Cyprus: 99.5% of population, 1.47 typical gaps (standard deviations)Czechia: 99.1% of population, 1.48 typical gaps (standard deviations)Germany: 99.2% of population, 1.65 typical gaps (standard deviations)Djibouti: 67% of population, 0.0105 typical gaps (standard deviations)Dominica: 80.4% of population, 1.01 typical gaps (standard deviations)Denmark: 99.6% of population, 1.65 typical gaps (standard deviations)Dominican Republic: 90.1% of population, 0.956 typical gaps (standard deviations)Algeria: 85.9% of population, 0.932 typical gaps (standard deviations)Ecuador: 91.2% of population, 0.989 typical gaps (standard deviations)Egypt, Arab Rep.: 97.1% of population, 0.864 typical gaps (standard deviations)Spain: 99.9% of population, 1.55 typical gaps (standard deviations)Estonia: 99% of population, 1.45 typical gaps (standard deviations)Ethiopia: 10.4% of population, -0.309 typical gaps (standard deviations)Finland: 99.4% of population, 1.48 typical gaps (standard deviations)Fiji: 92.8% of population, 0.665 typical gaps (standard deviations)France: 98.6% of population, 1.7 typical gaps (standard deviations)Faroe Islands: 90.9% of population, 1.3 typical gaps (standard deviations)Micronesia, Fed. Sts.: 90.5% of population, -0.101 typical gaps (standard deviations)Gabon: 57.4% of population, 0.665 typical gaps (standard deviations)United Kingdom: 99.1% of population, 1.6 typical gaps (standard deviations)Georgia: 90.7% of population, 1.29 typical gaps (standard deviations)Ghana: 31.6% of population, 0.59 typical gaps (standard deviations)Guinea: 32.6% of population, 0.156 typical gaps (standard deviations)Gambia, The: 48.2% of population, 0.215 typical gaps (standard deviations)Guinea-Bissau: 28.9% of population, -0.158 typical gaps (standard deviations)Equatorial Guinea: 66.3% of population, -0.269 typical gaps (standard deviations)Greece: 99% of population, 1.57 typical gaps (standard deviations)Grenada: 92.6% of population, 1.09 typical gaps (standard deviations)Greenland: 62.5% of population, 1.24 typical gaps (standard deviations)Guatemala: 71.2% of population, 0.576 typical gaps (standard deviations)Guyana: 91.3% of population, 0.809 typical gaps (standard deviations)Hong Kong SAR, China: 94.8% of population, 1.57 typical gaps (standard deviations)Honduras: 87.7% of population, 0.417 typical gaps (standard deviations)Croatia: 95.8% of population, 1.28 typical gaps (standard deviations)Haiti: 29.1% of population, -0.312 typical gaps (standard deviations)Hungary: 98% of population, 1.5 typical gaps (standard deviations)Indonesia: 88.2% of population, 0.742 typical gaps (standard deviations)India: 83.4% of population, 0.527 typical gaps (standard deviations)Ireland: 89.7% of population, 1.43 typical gaps (standard deviations)Iran, Islamic Rep.: 90.5% of population, 0.97 typical gaps (standard deviations)Iraq: 98.5% of population, 1.04 typical gaps (standard deviations)Iceland: 98.8% of population, 1.53 typical gaps (standard deviations)Israel: 99.9% of population, 1.31 typical gaps (standard deviations)Italy: 99.9% of population, 1.36 typical gaps (standard deviations)Jamaica: 91.6% of population, 1.06 typical gaps (standard deviations)Jordan: 96.4% of population, 0.776 typical gaps (standard deviations)Japan: 99.9% of population, 1.45 typical gaps (standard deviations)Kazakhstan: 97.9% of population, 1.09 typical gaps (standard deviations)Kenya: 40.9% of population, 0.22 typical gaps (standard deviations)Kyrgyz Republic: 98.5% of population, 0.943 typical gaps (standard deviations)Cambodia: 83.3% of population, 0.689 typical gaps (standard deviations)Kiribati: 45.2% of population, 0.485 typical gaps (standard deviations)St. Kitts and Nevis: 95% of population, 1.19 typical gaps (standard deviations)Korea, Rep.: 99.7% of population, 1.72 typical gaps (standard deviations)Kuwait: 100% of population, 0.878 typical gaps (standard deviations)Lao PDR: 88.7% of population, 0.399 typical gaps (standard deviations)Lebanon: 99.2% of population, 0.731 typical gaps (standard deviations)Liberia: 23.3% of population, -0.767 typical gaps (standard deviations)Libya: 88.5% of population, 0.512 typical gaps (standard deviations)St. Lucia: 83.4% of population, 0.881 typical gaps (standard deviations)Sri Lanka: 95.4% of population, 0.669 typical gaps (standard deviations)Lesotho: 47.9% of population, -0.0187 typical gaps (standard deviations)Lithuania: 96.4% of population, 1.29 typical gaps (standard deviations)Luxembourg: 97.6% of population, 1.59 typical gaps (standard deviations)Latvia: 92.5% of population, 1.28 typical gaps (standard deviations)Macao SAR, China: 100% of population, 1.33 typical gaps (standard deviations)Morocco: 87.8% of population, 0.928 typical gaps (standard deviations)Moldova: 86.9% of population, 1.23 typical gaps (standard deviations)Madagascar: 15.4% of population, -0.434 typical gaps (standard deviations)Maldives: 99.7% of population, 1.11 typical gaps (standard deviations)Mexico: 93% of population, 1.13 typical gaps (standard deviations)Marshall Islands: 79% of population, 0.406 typical gaps (standard deviations)North Macedonia: 99% of population, 1.36 typical gaps (standard deviations)Mali: 47.8% of population, -0.495 typical gaps (standard deviations)Malta: 100% of population, 1.63 typical gaps (standard deviations)Myanmar: 74.2% of population, 0.298 typical gaps (standard deviations)Montenegro: 97.8% of population, 1.37 typical gaps (standard deviations)Mongolia: 74.3% of population, 1.03 typical gaps (standard deviations)Mozambique: 38.6% of population, -0.592 typical gaps (standard deviations)Mauritania: 58.7% of population, 0.0018 typical gaps (standard deviations)Mauritius: 97.4% of population, 1.17 typical gaps (standard deviations)Malawi: 49.2% of population, -0.672 typical gaps (standard deviations)Malaysia: 96% of population, 1.09 typical gaps (standard deviations)Namibia: 38.7% of population, 0.203 typical gaps (standard deviations)Niger: 16.3% of population, -0.7 typical gaps (standard deviations)Nigeria: 47.9% of population, -0.0861 typical gaps (standard deviations)Netherlands: 97.7% of population, 1.63 typical gaps (standard deviations)Norway: 98% of population, 1.68 typical gaps (standard deviations)Nepal: 86% of population, 0.616 typical gaps (standard deviations)Naoero: 71.3% of population, 0.872 typical gaps (standard deviations)New Zealand: 100% of population, 1.51 typical gaps (standard deviations)Oman: 99.3% of population, 1.03 typical gaps (standard deviations)Pakistan: 71.9% of population, 0.386 typical gaps (standard deviations)Panama: 89.1% of population, 0.927 typical gaps (standard deviations)Peru: 78.8% of population, 0.907 typical gaps (standard deviations)Philippines: 87.2% of population, 0.696 typical gaps (standard deviations)Palau: 99% of population, 0.865 typical gaps (standard deviations)Papua New Guinea: 23.6% of population, -0.611 typical gaps (standard deviations)Poland: 99% of population, 1.24 typical gaps (standard deviations)Puerto Rico (US): 100% of population, 1.14 typical gaps (standard deviations)Portugal: 99.7% of population, 1.6 typical gaps (standard deviations)Paraguay: 95.9% of population, 0.928 typical gaps (standard deviations)West Bank and Gaza: 99.4% of population, 0.774 typical gaps (standard deviations)Qatar: 99.9% of population, 1.06 typical gaps (standard deviations)Romania: 90.5% of population, 1.45 typical gaps (standard deviations)Russian Federation: 92.2% of population, 1.32 typical gaps (standard deviations)Rwanda: 81.3% of population, 0.0662 typical gaps (standard deviations)Saudi Arabia: 97.6% of population, 1.67 typical gaps (standard deviations)Sudan: 65.7% of population, -0.572 typical gaps (standard deviations)Senegal: 62.5% of population, 0.482 typical gaps (standard deviations)Singapore: 100% of population, 1.33 typical gaps (standard deviations)Solomon Islands: 34.6% of population, 0.0941 typical gaps (standard deviations)Sierra Leone: 24.9% of population, -0.336 typical gaps (standard deviations)El Salvador: 88% of population, 0.822 typical gaps (standard deviations)San Marino: 100% of population, 1.5 typical gaps (standard deviations)Somalia, Fed. Rep.: 44.5% of population, -0.395 typical gaps (standard deviations)Serbia: 97.9% of population, 1.38 typical gaps (standard deviations)Sao Tome and Principe: 48.7% of population, 0.187 typical gaps (standard deviations)Suriname: 90% of population, 0.901 typical gaps (standard deviations)Slovak Republic: 97.5% of population, 1.4 typical gaps (standard deviations)Slovenia: 98.3% of population, 1.42 typical gaps (standard deviations)Sweden: 98.7% of population, 1.57 typical gaps (standard deviations)Eswatini: 64.5% of population, 0.534 typical gaps (standard deviations)Sint Maarten (Dutch part): 98.8% of population, 1.04 typical gaps (standard deviations)Seychelles: 99.7% of population, 1.35 typical gaps (standard deviations)Syrian Arab Republic: 95.6% of population, 0.27 typical gaps (standard deviations)Chad: 13.1% of population, -0.72 typical gaps (standard deviations)Togo: 25.2% of population, -0.0274 typical gaps (standard deviations)Thailand: 99.4% of population, 1.06 typical gaps (standard deviations)Tajikistan: 96% of population, 0.389 typical gaps (standard deviations)Turkmenistan: 99.7% of population, 0.294 typical gaps (standard deviations)Timor-Leste: 72.9% of population, 0.389 typical gaps (standard deviations)Tonga: 93.9% of population, 0.595 typical gaps (standard deviations)Trinidad and Tobago: 94.2% of population, 1.22 typical gaps (standard deviations)Tunisia: 98.5% of population, 0.956 typical gaps (standard deviations)Turkiye: 99.3% of population, 1.19 typical gaps (standard deviations)Tuvalu: 89.7% of population, 0.208 typical gaps (standard deviations)Tanzania: 37.2% of population, -0.0741 typical gaps (standard deviations)Uganda: 23.9% of population, -0.319 typical gaps (standard deviations)Ukraine: 97.7% of population, 0.97 typical gaps (standard deviations)Uruguay: 99.2% of population, 1.41 typical gaps (standard deviations)United States: 99.6% of population, 1.53 typical gaps (standard deviations)Uzbekistan: 96.5% of population, 1.42 typical gaps (standard deviations)St. Vincent and the Grenadines: 89.7% of population, 1.22 typical gaps (standard deviations)Virgin Islands (U.S.): 99.3% of population, 0.721 typical gaps (standard deviations)Viet Nam: 95.4% of population, 1.17 typical gaps (standard deviations)Vanuatu: 47.8% of population, -0.0444 typical gaps (standard deviations)Samoa: 97.1% of population, 0.0591 typical gaps (standard deviations)South Africa: 77.4% of population, 0.709 typical gaps (standard deviations)Zambia: 37.5% of population, -0.161 typical gaps (standard deviations)Zimbabwe: 34.6% of population, 0.0863 typical gaps (standard deviations)ANDCAFCHECOGFSMGHAGRLKORNERTCDTKMWSM

best-fit line line after adjusting

Four ways to measure the link

MethodrpCountries
Standard (Pearson), not adjusted+0.8362.2e-52196
By rank (Spearman), not adjusted+0.7838.3e-42196
Standard (Pearson), adjusted for national income+0.4811.0e-12196
By rank (Spearman), adjusted for national income+0.2640.000196

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

How solid is it?

Leaving out one country at a time, r ranges from +0.464 (without PSE) to +0.501 (without WSM). 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: WSM (+0.019).

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 & Pacific31+0.23
Europe & Central Asia52+0.26
Latin America & Caribbean36+0.49
Middle East, North Africa, Afghanistan & Pakistan22+0.41
Sub-Saharan Africa46+0.28

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 third66+0.47
Middle third65+0.43
Richest third65+0.19

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
Christians111+0.41
Muslims49+0.62

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.37
Never a European colony21+0.47
Spain19+0.53
United Kingdom63+0.42

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

Not enough history inside each country to look at this over time. That needs countries measured for several years in a row, and at least one of these measures is measured too rarely.

The data


% of population

typical gaps (standard deviations)
Years
San Marino SMR100%1.52024, 2022
Singapore SGP100%1.332024
Puerto Rico (US) PRI100%1.142024
New Zealand NZL100%1.512024
Malta MLT100%1.632024
Macao SAR, China MAC100%1.332024
Kuwait KWT100%0.8782024, 2023
Brunei Darussalam BRN100%1.222024
Bahrain BHR100%1.172024
Australia AUS100%1.52024
Andorra AND100%1.782024
Chile CHL100%1.252024
Austria AUT100%1.372024
Japan JPN99.9%1.452024, 2023
Bermuda BMU99.9%1.682024

World Bank, World Development Indicators
wdi

Sources

Basic sanitation

People using at least basic sanitation services (% of population)

World Bank · CC BY 4.0 · updated quarterly

Infrastructure score

Infrastructure score

PlaceStats · via PlaceStats · Derived work; each member keeps its own licence · updated recomputed with the panel

The average of 5 measures from 1 publisher. Each measure is first put on a common scale: 0 is the average country in an average year, and 1 is a typical gap between countries (a standard deviation). Each is turned so that higher is better. Measures are averaged within each publisher first, so a publisher with many measures does not count for more. Members: Electricity access, Slum share of urban population, Mobile subscriptions, Fixed broadband, Internet users.

How this was computed

Data used: most recent value in 2010-2025; values come from 2015–2024. 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 Basic sanitation and Infrastructure score

This page shows that two measures go together. It does not show that Basic sanitation changes Infrastructure score, or the reverse. These figures also describe countries, not individual people. See the ecological fallacy.

More links with Basic sanitation or Infrastructure score