Health/Demographic survey (Availability score over 10 years)
Real data: World Bank, Statistical Performance Indicators, indicator SPI.D4.1.7.HLTH, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Health surveys collect information on various aspects of health of populations, such as health expenditure, access, utilization, and outcomes. They typically include Demographic and Health Surveys. It is recommended that health surveys be conducted at least every 3 to 5 years.
The numbers in 2023
In 2023, 195 countries have a value. At the top, 59 countries tie at 1 (e.g. Algeria, Australia, Bangladesh); at the bottom, 30 countries tie at 0 (e.g. Antigua and Barbuda, Azerbaijan, Bahamas, The). The median country value is 0.67.
Highest, 2023
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Algeria | 1 |
| 2 | Australia | 1 |
| 3 | Bangladesh | 1 |
| 4 | Benin | 1 |
| 5 | Burkina Faso | 1 |
| 6 | Cambodia | 1 |
| 7 | Cameroon | 1 |
| 8 | Canada | 1 |
| 9 | Dominican Republic | 1 |
| 10 | Ecuador | 1 |
Lowest, 2023
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Venezuela, RB | 0 |
| 2 | United Arab Emirates | 0 |
| 3 | Syrian Arab Republic | 0 |
| 4 | St. Kitts and Nevis | 0 |
| 5 | South Sudan | 0 |
| 6 | Somalia, Fed. Rep. | 0 |
| 7 | Solomon Islands | 0 |
| 8 | Seychelles | 0 |
| 9 | Russian Federation | 0 |
| 10 | Palau | 0 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 2000s | 195 |
| 2010s | 195 |
| 2020s | 195 |
First rows
health-demographic-survey-availability-score-over-10-years.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2004 | 1 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2005 | 1 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2006 | 1 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2007 | 1 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2008 | 0.67 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2009 | 0.67 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2010 | 1 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 2011 | 0.67 |
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 | Health/Demographic survey (Availability score over 10 years), 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 2023?
There is a tie: 59 countries share the highest value, 1 (for example Algeria, Australia, Bangladesh).
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2023)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2023)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2023
AND value = (SELECT MAX(value) FROM wb WHERE year = 2023);pandas (df = pd.read_csv("health-demographic-survey-availability-score-over-10-years.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: health-demographic-survey-availability-score-over-10-years.csv
How many countries report a value for 2023?
195 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2023)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2023;pandas (df = pd.read_csv("health-demographic-survey-availability-score-over-10-years.csv"))
(df.year == 2023).sum()File: health-demographic-survey-availability-score-over-10-years.csv
What is the median across countries in 2023?
0.67 (median of the 195 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2023))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 = 2023 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2023) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2023));pandas (df = pd.read_csv("health-demographic-survey-availability-score-over-10-years.csv"))
df[df.year == 2023]["value"].median()File: health-demographic-survey-availability-score-over-10-years.csv
Which country rose the most between 2013 and 2023?
New Zealand: from 0 to 1, a rise of 1 (out of 195 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (health-demographic-survey-availability-score-over-10-years-wide.csv): add a column = [2023] - [2013], 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 = 2013 AND b.year = 2023 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("health-demographic-survey-availability-score-over-10-years.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2023] - w[2013]).dropna().nlargest(1)File: health-demographic-survey-availability-score-over-10-years.csv
Which year has the most countries reporting?
2023, with 195 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("health-demographic-survey-availability-score-over-10-years.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: health-demographic-survey-availability-score-over-10-years.csv