Government expenditure per student, primary (% of GDP per capita)
Real data: World Bank, World Development Indicators, indicator SE.XPD.PRIM.PC.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Government expenditure per student is the average general government expenditure (current, capital, and transfers) per student in the given level of education, expressed as a percentage of GDP per capita.
The numbers in 2016
In 2016, 82 countries have a value. The highest is Djibouti (37.32); the lowest is Monaco (3.31). The median country value is 16.48. The World Bank's World aggregate for 2013 is 15.56.
Top 10 countries, 2016
% of GDP per capita
Highest, 2016
| # | Country | Value |
|---|---|---|
| 1 | Djibouti | 37.32 |
| 2 | Moldova | 32.55 |
| 3 | Cyprus | 31.88 |
| 4 | Oman | 31.77 |
| 5 | Korea, Rep. | 27.85 |
| 6 | Ukraine | 26.25 |
| 7 | Costa Rica | 24.87 |
| 8 | Switzerland | 24.79 |
| 9 | Latvia | 24.5 |
| 10 | United Kingdom | 24.17 |
Lowest, 2016
| # | Country | Value |
|---|---|---|
| 1 | Monaco | 3.31 |
| 2 | South Sudan | 4.58 |
| 3 | Rwanda | 5.47 |
| 4 | Sierra Leone | 5.66 |
| 5 | Guinea | 6.81 |
| 6 | Romania | 7.83 |
| 7 | Malawi | 8.16 |
| 8 | Brunei Darussalam | 8.87 |
| 9 | Samoa | 8.97 |
| 10 | Mali | 9.34 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 57 |
| 2000s | 92 |
| 2010s | 104 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2013 | 15.56 |
| 2012 | 14.86 |
| 2011 | 15.41 |
| 2010 | 15.17 |
By region, 2016
| World Bank region | Value |
|---|---|
| Europe & Central Asia | 20.55 |
| North America | 19.86 |
| Latin America & Caribbean | 15.22 |
First rows
government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 11.95215 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 12.21159 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2012 | 8.31733 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2013 | 11.17447 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2014 | 11.72219 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2015 | 10.24688 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2016 | 10.34081 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2017 | 10.25174 |
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 | Government expenditure per student, primary (% of GDP per capita), 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 2016?
Djibouti, with 37.32.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2016)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2016)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2016
AND value = (SELECT MAX(value) FROM wb WHERE year = 2016);pandas (df = pd.read_csv("government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv"))
y = df[df.year == 2016]
y[y.value == y.value.max()][["country", "value"]]File: government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv
How many countries report a value for 2016?
82 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2016)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2016;pandas (df = pd.read_csv("government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv"))
(df.year == 2016).sum()File: government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv
What is the median across countries in 2016?
16.48 (median of the 82 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2016))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 = 2016 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2016) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2016));pandas (df = pd.read_csv("government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv"))
df[df.year == 2016]["value"].median()File: government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv
Which country rose the most between 2006 and 2016?
Djibouti: from 21.51 to 37.32, a rise of 15.81 (out of 44 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (government-expenditure-per-student-primary-percent-of-gdp-per-capita-wide.csv): add a column = [2016] - [2006], 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 = 2006 AND b.year = 2016 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2016] - w[2006]).dropna().nlargest(1)File: government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv
Which year has the most countries reporting?
2011, with 104 countries. (Later years are still filling in as countries report.)
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("government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: government-expenditure-per-student-primary-percent-of-gdp-per-capita.csv