Rule of Law - Upper bound of the 90% confidence interval for the governance score
Real data: World Bank, Worldwide Governance Indicators, indicator GOV_WGI_RL.SC_UB, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Rule of Law (RL) captures perceptions of the extent to which agents respect and follow the rules of society, including contract enforcement, property rights, the police, courts, and the likelihood of crime and violence. Upper bound of the 90% confidence interval for the governance score. Confidence intervals are a statistical range of values that likely contain the true value (of what is being estimated).
The numbers in 2025
In 2025, 207 countries have a value. The highest is Finland (95.91); the lowest is Venezuela, RB (26.52). The median country value is 60.89.
Top 10 countries, 2025
value
Highest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Finland | 95.91 |
| 2 | Denmark | 95.89 |
| 3 | Monaco | 95.4 |
| 4 | Norway | 94.81 |
| 5 | Andorra | 94.21 |
| 6 | Liechtenstein | 93.15 |
| 7 | Greenland | 92.31 |
| 8 | Switzerland | 92.26 |
| 9 | San Marino | 92.04 |
| 10 | American Samoa | 91.71 |
Lowest, 2025
| # | Country | Value |
|---|---|---|
| 1 | Venezuela, RB | 26.52 |
| 2 | Somalia, Fed. Rep. | 27.46 |
| 3 | South Sudan | 30.96 |
| 4 | Yemen, Rep. | 31.55 |
| 5 | Sudan | 31.92 |
| 6 | Afghanistan | 32.49 |
| 7 | Syrian Arab Republic | 33.73 |
| 8 | Myanmar | 33.75 |
| 9 | Eritrea | 34.23 |
| 10 | Congo, Dem. Rep. | 35.01 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 197 |
| 2000s | 204 |
| 2010s | 207 |
| 2020s | 207 |
First rows
rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1996 | 37.0918054 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1998 | 37.2314165 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2000 | 37.1856331 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2002 | 34.8620801 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2003 | 34.8598457 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 35.8653348 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 35.2337491 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 33.3970017 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Rule of Law - Upper bound of the 90% confidence interval for the governance score, exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2025?
Finland, with 95.91.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2025)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2025)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2025
AND value = (SELECT MAX(value) FROM wb WHERE year = 2025);pandas (df = pd.read_csv("rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv"))
y = df[df.year == 2025]
y[y.value == y.value.max()][["country", "value"]]File: rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv
How many countries report a value for 2025?
207 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2025)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2025;pandas (df = pd.read_csv("rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv"))
(df.year == 2025).sum()File: rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv
What is the median across countries in 2025?
60.89 (median of the 207 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2025))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2025 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2025) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2025));pandas (df = pd.read_csv("rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv"))
df[df.year == 2025]["value"].median()File: rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv
Which country rose the most between 2015 and 2025?
Micronesia, Fed. Sts.: from 69.93 to 82.44, a rise of 12.52 (out of 205 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score-wide.csv): add a column = [2025] - [2015], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2025] - w[2015]).dropna().nlargest(1)File: rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv
Which year has the most countries reporting?
2025, with 207 countries.
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: rule-of-law-upper-bound-of-the-90-percent-confidence-interval-for-the-governance-score.csv