Across 184 countries, where education spending is higher, rule of law tends to be higher. Before adjusting for anything, the link is weak (r = +0.34).
It holds when only countries with similar income are compared: a moderate link (r = +0.45). So it is not just rich and poor countries differing.
It points the same way inside every one of the 5 world regions with enough countries.
Within each country over time (1996-2025), the two show no clear link.
This shows that the two go together, not that either one changes the other.
Across 184 countries, where education spending is higher, rule of law tends to be higher (r = +0.34, on a scale from −1 to +1, where 0 means no link). It holds up almost unchanged when only countries with similar income (GDP per person) are compared (r = +0.45, q = 0.040, allowing for the many pairs tested).
Comparing countries across the middle half of education spending, 3.09% to 5.28% of GDP, rule of law is better by 0.343 points at the top of that range than the bottom. Comparing only countries with similar national income, the gap is 0.323 points.
Before and after adjusting for income
Before adjusting +0.34
Comparing countries with similar income +0.45
−1 opposite0 no link+1 in step
Each dot is the link on a scale from −1 to +1. The closer a dot sits to the middle line, the weaker the link. The shaded band is the likely range. A band that crosses the middle line means the link could easily be chance.
Every country as a dot
best-fit line line after adjusting
One dot for each country. The dashed line is the straight line that best fits the dots. The solid line is the link after adjusting for national income. A dot far from the lines is a country that does not follow the pattern.
The figures
Link before adjusting (r)+0.338p = 2.7e-6 · 184 countries
After adjusting for national income+0.451p = 1.4e-10 · likely range [+0.33, +0.56]
p, allowing for regions0.004standard error 0.097 · 7 regions
Check for luck (q)0.040across 18,622 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.
Education spending · % of GDPlink with income +0.12 · independent
Rule of law · index (approx. -2.5 to 2.5)link with income +0.72 · high
“Link with income” is how closely each measure tracks GDP per person across countries, from −1 to +1.
Four ways to measure the link
Method
r
p
Countries
Standard (Pearson), not adjusted
+0.338
2.7e-6
184
By rank (Spearman), not adjusted
+0.353
8.7e-7
184
Standard (Pearson), adjusted for national income
+0.451
1.4e-10
184
By rank (Spearman), adjusted for national income
+0.383
9.0e-8
184
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 184 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.113 (a minus sign means it grew).
How solid is it?
Leaving out one country at a time, r ranges from +0.415 (without TUV) to +0.473 (without BOL). 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: TUV (-0.037).
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.
n
r
East Asia & Pacific
31
+0.73
Europe & Central Asia
48
+0.42
Latin America & Caribbean
34
+0.13
Middle East, North Africa, Afghanistan & Pakistan
18
+0.25
Sub-Saharan Africa
44
+0.47
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.
n
r
Poorest third
62
+0.69
Middle third
61
+0.19
Richest third
61
+0.42
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.
n
r
Christians
107
+0.48
Muslims
44
+0.17
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.
n
r
France
24
+0.42
Never a European colony
21
-0.08
Spain
19
+0.70
United Kingdom
59
+0.63
By official ideology
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.
n
r
Nationalist
24
+0.22
No strong official ideology
111
+0.37
By party system
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.
n
r
A few parties banned
22
+0.04
No parties banned
119
+0.40
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 5 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 30 years. 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.035, 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 education spending moved did not tend to see their rule of law move with it.
Across countries (adjusted)+0.451for comparison
Within countries+0.036each country vs itself
…and vs the same year elsewhere+0.035q = 0.517 · 186 countries
Year-on-year changes+0.028q = 0.332
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.
3,339 country-years (one country in one year), 186 countries, 1996–2025, about 18 years each on average. Share of the variation that happens within countries over time: 20% for Education spending, 4% for Rule of law. 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
Same year (lag 0): +0.035. 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
% of GDP
index (approx. -2.5 to 2.5)
Years
Kiribati KIR
16.4%
0.871
2023, 2025
Tuvalu TUV
12.8%
1.35
2023, 2025
Micronesia, Fed. Sts. FSM
11.6%
0.971
2020, 2025
Namibia NAM
9.08%
0.376
2024, 2025
Algeria DZA
8.98%
-0.652
2024, 2025
Solomon Islands SLB
8.29%
0.179
2023, 2025
Botswana BWA
8.06%
0.281
2020, 2025
Marshall Islands MHL
7.7%
0.953
2022, 2025
Vanuatu VUT
7.64%
0.529
2024, 2025
Mauritania MRT
7.61%
-0.808
2024, 2025
Bolivia BOL
7.54%
-1.35
2024, 2025
Sweden SWE
7.32%
1.74
2022, 2025
Iceland ISL
7.31%
1.61
2022, 2025
Kyrgyz Republic KGZ
6.83%
-0.931
2023, 2025
Tunisia TUN
6.73%
-0.391
2023, 2025
World Bank, World Development Indicators Kaufmann, D. and A. Kraay, Worldwide Governance Indicators, World Bank
Data used: most recent value in 2010-2025; values come from 2013–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 18,622 pairs at once, using the Benjamini–Hochberg method. Underlying data last updated V-Dem v16; V-Party v2. How the country data works · explore Education spending and Rule of law
This page shows that two measures go together. It does not show that Education spending changes Rule of law, or the reverse. These figures also describe countries, not individual people. See the ecological fallacy.
Share or cite this
Put this chart on your site
Paste this code into a web page to show the chart, with a credit and a link back here. See what it looks like.
Cite this page
PlaceStats. (2026). Education spending vs Rule of law by Country. Data: UNESCO Institute for Statistics; World Bank. https://placestats.org/correlates/education-spending-vs-rule-of-law/ (accessed 2 December 2026).