Government expense vs. Pre-trial detainee share
Holds up after adjusting for income
Across 135 countries, Government expense and Pre-trial detainee share rise and fall together at r = -0.32 (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.29, q = 0.016, allowing for the many pairs tested).
Comparing countries across the middle half of pre-trial detainee share, 19.8% to 42.4% of prisoners, government expense is 5.64% of GDP lower at the top of that range than the bottom. Comparing only countries with similar national income, the gap is 5.08% of GDP.
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.
“Link with income” is how closely each measure tracks GDP per person across countries, from −1 to +1.
Every country as a dot
best-fit line line after adjusting
Four ways to measure the link
| Method | r | p | Countries |
|---|---|---|---|
| Standard (Pearson), not adjusted | -0.324 | 0.000 | 135 |
| By rank (Spearman), not adjusted | -0.358 | 2.1e-5 | 135 |
| Standard (Pearson), adjusted for national income | -0.294 | 0.001 | 135 |
| By rank (Spearman), adjusted for national income | -0.313 | 0.000 | 135 |
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 135 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.030 (a minus sign means it grew).
How solid is it?
Leaving out one country at a time, r ranges from -0.348 (without NRU) to -0.252 (without KIR). 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: NRU (-0.053).
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 | 21 | -0.15 | |
| Europe & Central Asia | 43 | -0.10 | |
| Latin America & Caribbean | 24 | -0.23 | |
| Middle East, North Africa, Afghanistan & Pakistan | 12 | -0.24 | |
| Sub-Saharan Africa | 28 | -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 | 45 | -0.46 | |
| Middle third | 45 | -0.21 | |
| Richest third | 45 | -0.10 |
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 | 92 | -0.44 | |
| Muslims | 23 | -0.27 |
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 | ||
|---|---|---|---|
| Never a European colony | 13 | -0.30 | |
| Spain | 17 | -0.52 | |
| United Kingdom | 46 | -0.23 |
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.337 after dropping 3 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 21years. 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.034, 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 government expense moved did not tend to see their pre-trial detainee share move with it.
1,604 country-years (one country in one year), 110 countries, 2003–2023, about 15 years each on average. Share of the variation that happens within countries over time: 21% for Government expense, 11% for Pre-trial detainee share. 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.034. 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
% of GDP | % of prisoners | Years | |
|---|---|---|---|
| Naoero NRU | 104% | 34.2% | 2020, 2023 |
| Kiribati KIR | 83.7% | 5.4% | 2023, 2016 |
| Ukraine UKR | 65.6% | 34.9% | 2023, 2024 |
| Timor-Leste TLS | 52.5% | 23.8% | 2022, 2017 |
| Greece GRC | 47.3% | 25.5% | 2023, 2024 |
| Italy ITA | 47.3% | 16.9% | 2023, 2024 |
| France FRA | 47.3% | 25.8% | 2023, 2024 |
| Austria AUT | 46% | 19.6% | 2023, 2024 |
| Finland FIN | 44.9% | 27.4% | 2023, 2024 |
| Slovenia SVN | 42.9% | 39.8% | 2023, 2024 |
| Hungary HUN | 42.4% | 20.7% | 2022, 2024 |
| Luxembourg LUX | 42.2% | 48.3% | 2023, 2024 |
| Lesotho LSO | 40.2% | 19.5% | 2022, 2016 |
| Netherlands NLD | 40% | 27.1% | 2023, 2024 |
| Slovak Republic SVK | 39.8% | 13% | 2022, 2024 |
World Bank, World Development Indicators
United Nations Global SDG Indicators Database; series compiled by the International Labour Organization (8.3.1) and the UN Office on Drugs and Crime (16.3.2)
Sources
Government expense
Government expense (% of GDP)
World Bank · CC BY 4.0 · updated quarterly
Total central government spending, as a share of GDP: buying, payments to people, subsidies and interest together. From the IMF's Government Finance Statistics. It is the fuller measure of government size, but it covers fewer countries. It counts central government only, so a country with large state and local budgets looks low. About forty fewer countries report it than report government consumption. No "better" direction is set.
Pre-trial detainee share
Unsentenced detainees as a share of the prison population
United Nations Office on Drugs and Crime · via Our World in Data · CC BY 3.0 IGO · updated annual
Prisoners who have not been sentenced, as a share of everyone held. It measures how long justice takes, not how much crime there is. A country can imprison few people and hold most of them for years without trial. The site has no prison population rate, because the only series that compares countries is a private collection, not UN data.
How this was computed
Data used: most recent value in 2010-2025; values come from 2012–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 Government expense and Pre-trial detainee share
This page shows that two measures go together. It does not show that Government expense changes Pre-trial detainee share, or the reverse. These figures also describe countries, not individual people. See the ecological fallacy.
More links with Government expense or Pre-trial detainee share
- Government expense vs Old-age spending before +0.68 → after adjusting +0.69
- Government expense vs Public social spending before +0.58 → after adjusting +0.64
- Government expense vs Redistribution before +0.58 → after adjusting +0.63
- Government expense vs Retirement age, men before -0.60 → after adjusting -0.58
- Government expense vs Health spending before +0.60 → after adjusting +0.57
- Government expense vs Government spending per capita before +0.26 → after adjusting +0.56
- Education spending vs Government expense before +0.51 → after adjusting +0.53
- Government expense vs Tax revenue before +0.55 → after adjusting +0.50