placestats

Gini index vs. HIV prevalence

Fades after adjusting for income

Across 130 countries, Gini index and HIV prevalence rise and fall together at r = +0.58 (on a scale from −1 to +1, where 0 means no link). Comparing only countries with similar income (GDP per person) leaves r = +0.56, which could easily be chance (q = 0.34, allowing for the many pairs tested, and allowing for countries in the same region being alike). Caution: correlation moves sharply once outliers are trimmed.

Comparing countries across the middle half of gini index, 31.2 to 40.4 points, hiv prevalence is worse by 2.64% of adults aged 15-49 at the top of that range than the bottom. Comparing only countries with similar national income, the gap is 2.55% of adults aged 15-49.

Link before adjusting (r)+0.585p = 2.7e-13 · 130 countries
After adjusting for national income+0.557p = 7.3e-12 · likely range [+0.42, +0.67]
p, allowing for regions0.150standard error 0.337 · 7 regions
Check for luck (q)0.343across 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.

Gini index · index (0-100)link with income -0.34 · moderate
HIV prevalence · % of adults aged 15-49link with income -0.40 · moderate

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

Every country as a dot

Gini index · index (0-100) →HIV prevalence · % of adults aged 15-49 →23.859.10.1%23.4%Angola: 51.3 index (0-100), 1.6% of adults aged 15-49Albania: 29.4 index (0-100), 0.1% of adults aged 15-49United Arab Emirates: 26.4 index (0-100), 0.1% of adults aged 15-49Argentina: 42.4 index (0-100), 0.4% of adults aged 15-49Armenia: 27.4 index (0-100), 0.4% of adults aged 15-49Australia: 33.8 index (0-100), 0.1% of adults aged 15-49Burundi: 37.5 index (0-100), 0.8% of adults aged 15-49Belgium: 26.8 index (0-100), 0.2% of adults aged 15-49Benin: 34.4 index (0-100), 0.7% of adults aged 15-49Burkina Faso: 37.4 index (0-100), 0.5% of adults aged 15-49Bangladesh: 30.9 index (0-100), 0.1% of adults aged 15-49Bulgaria: 39.5 index (0-100), 0.1% of adults aged 15-49Belize: 39.9 index (0-100), 1.2% of adults aged 15-49Bolivia: 40.9 index (0-100), 0.4% of adults aged 15-49Brazil: 50.3 index (0-100), 0.7% of adults aged 15-49Barbados: 34.1 index (0-100), 1% of adults aged 15-49Bhutan: 28.5 index (0-100), 0.2% of adults aged 15-49Botswana: 54.9 index (0-100), 15.7% of adults aged 15-49Central African Republic: 43 index (0-100), 2.4% of adults aged 15-49Canada: 31.5 index (0-100), 0.1% of adults aged 15-49Switzerland: 33.8 index (0-100), 0.2% of adults aged 15-49Chile: 43 index (0-100), 0.7% of adults aged 15-49Cote d'Ivoire: 35.3 index (0-100), 1.7% of adults aged 15-49Cameroon: 42.2 index (0-100), 2.5% of adults aged 15-49Congo, Dem. Rep.: 44.7 index (0-100), 0.7% of adults aged 15-49Congo, Rep.: 48.9 index (0-100), 3.2% of adults aged 15-49Colombia: 54.4 index (0-100), 0.6% of adults aged 15-49Comoros: 30.3 index (0-100), 0.1% of adults aged 15-49Cabo Verde: 42.4 index (0-100), 0.9% of adults aged 15-49Costa Rica: 45.5 index (0-100), 0.6% of adults aged 15-49Germany: 33.7 index (0-100), 0.2% of adults aged 15-49Djibouti: 41.6 index (0-100), 0.9% of adults aged 15-49Denmark: 29.9 index (0-100), 0.1% of adults aged 15-49Dominican Republic: 39 index (0-100), 1% of adults aged 15-49Algeria: 27.6 index (0-100), 0.1% of adults aged 15-49Ecuador: 45.9 index (0-100), 0.4% of adults aged 15-49Egypt, Arab Rep.: 28.5 index (0-100), 0.1% of adults aged 15-49Spain: 33.4 index (0-100), 0.3% of adults aged 15-49Estonia: 30.7 index (0-100), 0.7% of adults aged 15-49Ethiopia: 31.1 index (0-100), 0.7% of adults aged 15-49Fiji: 30.7 index (0-100), 1% of adults aged 15-49France: 31.8 index (0-100), 0.3% of adults aged 15-49Gabon: 38 index (0-100), 2.8% of adults aged 15-49United Kingdom: 32.4 index (0-100), 0.2% of adults aged 15-49Georgia: 33.9 index (0-100), 0.4% of adults aged 15-49Ghana: 43.5 index (0-100), 1.5% of adults aged 15-49Guinea: 29.6 index (0-100), 1.3% of adults aged 15-49Gambia, The: 38.8 index (0-100), 1.3% of adults aged 15-49Guinea-Bissau: 33.4 index (0-100), 2.2% of adults aged 15-49Greece: 33.4 index (0-100), 0.3% of adults aged 15-49Guatemala: 45.2 index (0-100), 0.2% of adults aged 15-49Honduras: 45.7 index (0-100), 0.2% of adults aged 15-49Croatia: 30.1 index (0-100), 0.1% of adults aged 15-49Haiti: 41.1 index (0-100), 1.6% of adults aged 15-49Indonesia: 34.4 index (0-100), 0.4% of adults aged 15-49India: 25.5 index (0-100), 0.2% of adults aged 15-49Ireland: 29 index (0-100), 0.2% of adults aged 15-49Iraq: 29.8 index (0-100), 0.1% of adults aged 15-49Iceland: 26.8 index (0-100), 0.1% of adults aged 15-49Italy: 34.3 index (0-100), 0.3% of adults aged 15-49Jamaica: 39.9 index (0-100), 1.1% of adults aged 15-49Jordan: 33.7 index (0-100), 0.1% of adults aged 15-49Kazakhstan: 29.2 index (0-100), 0.3% of adults aged 15-49Kenya: 38.5 index (0-100), 3% of adults aged 15-49Kyrgyz Republic: 27.5 index (0-100), 0.3% of adults aged 15-49Lao PDR: 34.7 index (0-100), 0.4% of adults aged 15-49Lebanon: 35.5 index (0-100), 0.1% of adults aged 15-49Liberia: 35.3 index (0-100), 0.9% of adults aged 15-49St. Lucia: 43.7 index (0-100), 0.4% of adults aged 15-49Sri Lanka: 37.7 index (0-100), 0.1% of adults aged 15-49Lesotho: 44.9 index (0-100), 17.1% of adults aged 15-49Lithuania: 36 index (0-100), 0.2% of adults aged 15-49Luxembourg: 33.6 index (0-100), 0.3% of adults aged 15-49Latvia: 34 index (0-100), 0.5% of adults aged 15-49Morocco: 39.5 index (0-100), 0.1% of adults aged 15-49Moldova: 26.8 index (0-100), 0.9% of adults aged 15-49Madagascar: 36.8 index (0-100), 0.5% of adults aged 15-49Maldives: 29.3 index (0-100), 0.1% of adults aged 15-49Mexico: 42.6 index (0-100), 0.5% of adults aged 15-49North Macedonia: 33.5 index (0-100), 0.1% of adults aged 15-49Mali: 35.7 index (0-100), 0.8% of adults aged 15-49Malta: 31.8 index (0-100), 0.3% of adults aged 15-49Myanmar: 30.7 index (0-100), 0.9% of adults aged 15-49Montenegro: 34.3 index (0-100), 0.1% of adults aged 15-49Mongolia: 31.4 index (0-100), 0.1% of adults aged 15-49Mozambique: 49.6 index (0-100), 11.5% of adults aged 15-49Mauritania: 32 index (0-100), 0.1% of adults aged 15-49Malawi: 38.5 index (0-100), 6.2% of adults aged 15-49Malaysia: 40.7 index (0-100), 0.3% of adults aged 15-49Namibia: 59.1 index (0-100), 9% of adults aged 15-49Niger: 32.9 index (0-100), 0.2% of adults aged 15-49Nigeria: 33.9 index (0-100), 1.2% of adults aged 15-49Netherlands: 25.7 index (0-100), 0.1% of adults aged 15-49Norway: 26.5 index (0-100), 0.1% of adults aged 15-49Nepal: 30 index (0-100), 0.1% of adults aged 15-49Pakistan: 33.5 index (0-100), 0.2% of adults aged 15-49Panama: 49.7 index (0-100), 1.1% of adults aged 15-49Peru: 40.1 index (0-100), 0.4% of adults aged 15-49Philippines: 39.3 index (0-100), 0.3% of adults aged 15-49Portugal: 33.9 index (0-100), 0.5% of adults aged 15-49Paraguay: 44.2 index (0-100), 0.5% of adults aged 15-49Qatar: 35.1 index (0-100), 0.1% of adults aged 15-49Romania: 29.8 index (0-100), 0.2% of adults aged 15-49Rwanda: 39.4 index (0-100), 2% of adults aged 15-49Sudan: 34.2 index (0-100), 0.2% of adults aged 15-49Senegal: 36.2 index (0-100), 0.3% of adults aged 15-49Solomon Islands: 37.1 index (0-100), 0.1% of adults aged 15-49Sierra Leone: 35.7 index (0-100), 1.4% of adults aged 15-49El Salvador: 39.8 index (0-100), 0.4% of adults aged 15-49Serbia: 32.8 index (0-100), 0.1% of adults aged 15-49Suriname: 39.2 index (0-100), 1.6% of adults aged 15-49Slovak Republic: 23.8 index (0-100), 0.1% of adults aged 15-49Slovenia: 24.7 index (0-100), 0.1% of adults aged 15-49Sweden: 29.3 index (0-100), 0.1% of adults aged 15-49Eswatini: 54.6 index (0-100), 23.4% of adults aged 15-49Syrian Arab Republic: 26.4 index (0-100), 0.1% of adults aged 15-49Chad: 37.4 index (0-100), 0.9% of adults aged 15-49Togo: 37.9 index (0-100), 1.6% of adults aged 15-49Thailand: 33.3 index (0-100), 1% of adults aged 15-49Tajikistan: 36.1 index (0-100), 0.2% of adults aged 15-49Timor-Leste: 28.7 index (0-100), 0.2% of adults aged 15-49Tunisia: 33.7 index (0-100), 0.1% of adults aged 15-49Tuvalu: 39.1 index (0-100), 0.4% of adults aged 15-49Tanzania: 40.5 index (0-100), 3.5% of adults aged 15-49Uganda: 42.7 index (0-100), 4.9% of adults aged 15-49Viet Nam: 36.1 index (0-100), 0.4% of adults aged 15-49Vanuatu: 32.3 index (0-100), 0.1% of adults aged 15-49South Africa: 54.1 index (0-100), 17.2% of adults aged 15-49Zambia: 51.5 index (0-100), 9.4% of adults aged 15-49Zimbabwe: 50.3 index (0-100), 9.8% of adults aged 15-49AGOBRABWACOLLSONLDSVKSVNSWZZAF

best-fit line line after adjusting

Four ways to measure the link

MethodrpCountries
Standard (Pearson), not adjusted+0.5852.7e-13130
By rank (Spearman), not adjusted+0.6318.7e-16130
Standard (Pearson), adjusted for national income+0.5577.3e-12130
By rank (Spearman), adjusted for national income+0.5691.9e-12130

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

How solid is it?

Leaving out one country at a time, r ranges from +0.519 (without BWA) to +0.577 (without COL). 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: BWA (-0.038).

Fragile: this link may not hold up.
  • correlation moves sharply once outliers are trimmed
  • direction is not consistent across regions

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 & Pacific14-0.27
Europe & Central Asia34+0.01
Latin America & Caribbean21-0.29
Middle East, North Africa, Afghanistan & Pakistan13+0.55
Sub-Saharan Africa41+0.70

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 third44+0.64
Middle third43+0.60
Richest third43+0.61

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
Christians85+0.53
Muslims34+0.23

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
France24+0.74
Spain16+0.11
United Kingdom38+0.78

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 17 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 35years. 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.038, 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 gini index moved did not tend to see their hiv prevalence move with it.

Across countries (adjusted)+0.557for comparison
Within countries+0.046each country vs itself
…and vs the same year elsewhere+0.038q = 0.660 · 97 countries
Year-on-year changes+0.019q = 0.736
Read with care.
  • Almost all of the second indicator's variation is between countries, so the within-country estimate rests on a small part of the data.

1,608 country-years (one country in one year), 97 countries, 1990–2024, about 17 years each on average. Share of the variation that happens within countries over time: 14% for Gini index, 7% for HIV prevalence. 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 HIV prevalence trails Gini index →lag -10: r = 0.046 (n = 1,260)lag -9: r = 0.034 (n = 1,300)lag -8: r = 0.036 (n = 1,348)lag -7: r = -0.012 (n = 1,385)lag -6: r = -0.010 (n = 1,430)lag -5: r = 0.002 (n = 1,466)lag -4: r = 0.009 (n = 1,493)lag -3: r = 0.030 (n = 1,520)lag -2: r = 0.030 (n = 1,555)lag -1: r = 0.019 (n = 1,587)lag +0: r = 0.038 (n = 1,608)lag +1: r = 0.058 (n = 1,586)lag +2: r = 0.070 (n = 1,540)lag +3: r = 0.089 (n = 1,479)lag +4: r = 0.101 (n = 1,406)lag +5: r = 0.107 (n = 1,349)lag +6: r = 0.066 (n = 1,288)lag +7: r = 0.092 (n = 1,210)lag +8: r = 0.090 (n = 1,161)lag +9: r = 0.096 (n = 1,097)lag +10: r = 0.089 (n = 1,031)

Same year (lag 0): +0.038. 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 largest value on this curve (+0.11 at lag +5) is higher than the same-year one by 0.07. That gap is not a finding. It is the largest of 21 closely related estimates, and picking the biggest of many tests always makes it look bigger. That is exactly why nothing on this site is ranked or chosen by lag.

The data


index (0-100)

% of adults aged 15-49
Years
Namibia NAM59.19%2015, 2024
Botswana BWA54.915.7%2015, 2024
Eswatini SWZ54.623.4%2016, 2024
Colombia COL54.40.6%2024
South Africa ZAF54.117.2%2022, 2024
Zambia ZMB51.59.4%2022, 2024
Angola AGO51.31.6%2018, 2024
Zimbabwe ZWE50.39.8%2019, 2024
Brazil BRA50.30.7%2024
Panama PAN49.71.1%2024
Mozambique MOZ49.611.5%2022, 2024
Congo, Rep. COG48.93.2%2011, 2024
Ecuador ECU45.90.4%2025, 2024
Honduras HND45.70.2%2024
Costa Rica CRI45.50.6%2025, 2024

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

Sources

Gini index

Gini index

World Bank · CC BY 4.0 · updated quarterly

Sparse and uneven: most countries report only every few years, and coverage is thinnest where inequality is highest. Be wary of comparisons that match Gini with other measures year by year.

HIV prevalence

Prevalence of HIV, total (% of population ages 15-49)

UNAIDS · CC BY 4.0 · updated quarterly

Estimates from a statistical model. Very lopsided: a few southern African countries sit about ten times higher than everyone else. So a link with this is largely a link with them, and the "leave one out" check on each pair page shows by how much.

How this was computed

Data used: most recent value in 2010-2025; values come from 2010–2025. 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 Gini index and HIV prevalence

This page shows that two measures go together. It does not show that Gini index changes HIV prevalence, or the reverse. These figures also describe countries, not individual people. See the ecological fallacy.

More links with Gini index or HIV prevalence