Households and NPISHs Final consumption expenditure (annual % growth)

Source: worldbank.org, 03.09.2025

Year: 2024

Flag Country Value Value change, % Rank
Angola Angola 0.31 -96.7% 93
Albania Albania 3.48 +19.6% 62
Argentina Argentina -4.24 -507% 97
Armenia Armenia 6.8 +21.4% 14
Australia Australia 1.11 -82.5% 87
Benin Benin 5.03 -16.7% 35
Burkina Faso Burkina Faso 5.14 -23.7% 32
Bangladesh Bangladesh 5.99 +202% 19
Bulgaria Bulgaria 4.22 +197% 48
Bahamas Bahamas 3.23 -64.3% 63
Bosnia & Herzegovina Bosnia & Herzegovina 2.06 +85.3% 83
Belarus Belarus 12.4 +53.8% 4
Bermuda Bermuda 3.09 +18.3% 69
Brazil Brazil 4.76 +47% 40
Brunei Brunei 5.95 -46.2% 22
Botswana Botswana 1.87 -66.4% 84
Central African Republic Central African Republic 19.7 -531% 1
Chile Chile 1.05 -121% 89
Côte d’Ivoire Côte d’Ivoire 6.32 +15.5% 17
Cameroon Cameroon 3.91 +10.2% 58
Congo - Kinshasa Congo - Kinshasa 3.1 -11.5% 66
Congo - Brazzaville Congo - Brazzaville 6.5 +32.7% 16
Colombia Colombia 1.58 +317% 85
Comoros Comoros 4.75 +11.8% 41
Cape Verde Cape Verde 5.01 -36.6% 36
Costa Rica Costa Rica 3.95 -20.9% 57
Cyprus Cyprus 3.83 -35.3% 59
Djibouti Djibouti 5.4 +1.99% 28
Dominican Republic Dominican Republic 4.56 +71.8% 43
Ecuador Ecuador -1.29 -131% 95
Egypt Egypt 8.02 +124% 11
Ethiopia Ethiopia 10.1 +40.5% 8
Gabon Gabon 2.56 +20.8% 79
Georgia Georgia 11 +137% 6
Ghana Ghana 4.6 -54.8% 42
Guinea Guinea 4.3 +8.59% 47
Gambia Gambia 4.4 -193% 45
Guinea-Bissau Guinea-Bissau 1.02 -85.8% 91
Equatorial Guinea Equatorial Guinea -2.03 -146% 96
Guatemala Guatemala 5.59 +28.7% 26
Hong Kong SAR China Hong Kong SAR China -0.572 -108% 94
Honduras Honduras 4.34 -5.67% 46
Croatia Croatia 5.61 +84.2% 25
Haiti Haiti -5.17 -6,666% 98
Indonesia Indonesia 5.11 +3.54% 33
India India 7.62 +37.1% 12
Iran Iran 2.55 -38.2% 80
Iraq Iraq 4 +103% 56
Kenya Kenya 4.07 -33.6% 54
Cambodia Cambodia 2.39 -47.7% 81
Libya Libya 2.3 -56.5% 82
Sri Lanka Sri Lanka 4.01 -311% 55
Macao SAR China Macao SAR China 4.9 -63.2% 37
Morocco Morocco 3.63 -6.73% 61
Moldova Moldova 5.16 -745% 31
Madagascar Madagascar 2.6 -42.4% 78
Mexico Mexico 2.83 -33.2% 74
North Macedonia North Macedonia 1.21 +1.85% 86
Mali Mali 4.12 +7.23% 52
Malta Malta 5.72 -53.1% 23
Montenegro Montenegro 8.74 +35.6% 9
Mongolia Mongolia 12.9 +32.3% 3
Mozambique Mozambique -6 -166% 99
Mauritius Mauritius 3.12 -8.94% 65
Malaysia Malaysia 5.11 +9.71% 34
Namibia Namibia 13.3 +182% 2
Niger Niger 3.1 +138% 68
Nicaragua Nicaragua 8.64 +12.6% 10
Nepal Nepal 1.07 +49.2% 88
Pakistan Pakistan 6.32 +141% 18
Peru Peru 2.77 +4,746% 75
Philippines Philippines 4.86 -12.3% 38
Poland Poland 3.01 -1,295% 70
Paraguay Paraguay 5.22 +63.4% 30
Palestinian Territories Palestinian Territories -32.5 +601% 101
Romania Romania 5.99 +101% 20
Russia Russia 5.4 -27.6% 29
Rwanda Rwanda 4.2 -57.3% 49
Saudi Arabia Saudi Arabia 2.71 -64.5% 77
Sudan Sudan -16.2 -43% 100
Senegal Senegal 3 -40.1% 71
Singapore Singapore 4.83 -0.437% 39
Sierra Leone Sierra Leone 4.19 +132% 50
El Salvador El Salvador 3.21 +252% 64
Somalia Somalia 5.95 +30.8% 21
Serbia Serbia 4.18 +728% 51
Seychelles Seychelles 11.6 -11,479% 5
Chad Chad 2.97 -29.6% 73
Togo Togo 5.4 +26.7% 27
Thailand Thailand 4.41 -35.8% 44
Tunisia Tunisia 4.08 -319% 53
Turkey Turkey 3.66 -73.1% 60
Tanzania Tanzania 3.1 +40.9% 67
Uganda Uganda 0.652 -82.4% 92
Ukraine Ukraine 6.68 +54.2% 15
United States United States 2.76 +9.02% 76
Uzbekistan Uzbekistan 7.46 +6.84% 13
Samoa Samoa 10.7 +167% 7
Kosovo Kosovo 5.7 +81.8% 24
South Africa South Africa 1.03 +43% 90
Zimbabwe Zimbabwe 2.98 -3,738% 72

Households and Non-Profit Institutions Serving Households (NPISHs) Final Consumption Expenditure is a critical economic indicator that measures the annual percentage growth in total spending by households and non-profit organizations on goods and services. This expenditure directly reflects consumer confidence and purchasing power and serves as a vital gauge of overall economic health. In essence, it provides insights into the relative prosperity of households and highlights trends in consumer behavior that can affect macroeconomic policies.

The importance of monitoring this indicator cannot be overstated. An increase in final consumption expenditure typically indicates a growing economy, as consumers feel secure enough to spend rather than save. Conversely, a decline can signal economic distress, where households are cutting back on spending due to dwindling incomes or rising unemployment rates. Understanding these trends helps governments and businesses tailor their strategies to better meet the needs of their communities and consumers. For instance, policymakers might decide to stimulate the economy by promoting job growth or providing financial incentives to encourage spending.

This indicator is closely related to other significant economic metrics like Gross Domestic Product (GDP), the unemployment rate, and consumer confidence indices. A rise in consumer spending often correlates with a robust GDP growth rate, as consumption forms a significant portion of GDP. Additionally, the unemployment rate can influence spending patterns; lower unemployment generally leads to higher household disposable incomes and spending. Conversely, stagnant or rising unemployment can depress household expenditure, illustrating the interconnectedness of various economic indicators.

Several factors can influence households and NPISHs final consumption expenditure. Economic conditions, such as inflation, availability of credit, and interest rates, play crucial roles. For instance, elevated inflation can reduce purchasing power, causing households to restrain their spending. Similarly, interest rates significantly impact consumer credit; lower rates typically promote borrowing, leading to increased expenditure, whereas higher rates may deter consumers from making large purchases like homes or vehicles.

Moreover, cultural and demographic factors can shape consumer behavior and spending patterns. In regions where tradition and family ties are strong, spending might prioritize family-oriented purchases, such as education or healthcare. Similarly, in younger populations or urban areas, trends toward technology might drive consumption in digital products and services.

Strategically, stakeholders can utilize insights from this indicator to enhance economic stability and growth. Governments can initiate stimulus packages to encourage spending, providing financial aid or tax cuts to households. Businesses may choose to innovate or market towards specific consumer demographics that show significant expenditure growth patterns. Moreover, in addressing regional disparities in consumption expenditure, local governments can tailor policies to uplift economically distressed areas, enhancing overall national economic performance.

Despite its utility, this indicator is not without its flaws. The statistics can be skewed by extreme outliers, such as the drastic reductions noted in the bottom-performing regions in 2023, which included Sudan (-18.0%), Madagascar (-12.32%), and Marshall Islands (-9.12%). These figures highlight economic turmoil due to factors such as political instability, natural disasters, or poor governance, which can disproportionately affect household spending. Furthermore, reliance solely on this indicator without considering quality of life or household welfare may overlook essential aspects of economic health, such as income distribution and poverty levels.

The world values spanning from 1971 to 2023 reveal a historical trajectory of consumption expenditure growth, showcasing fluctuations influenced by global events. From 1971, where the value stood at 4.58%, through economic crises such as in 2008, where it dropped to 1.83%, and turning negative in 2009, these figures reflect the economic responses to external shocks and domestic challenges. The rebound in 2021 at 7.31% illustrates a significant recovery phase following the global downturn induced by the COVID-19 pandemic, culminating in a 2023 rate of 2.68%, grounding into a more moderate but stable growth trajectory.

This year, the global median value reported is 3.12%, which serves as a threshold that can guide expectations for national economies. The top five areas demonstrate robust consumer expenditure growth, with the United Arab Emirates leading at an impressive 14.11%, indicating a vibrant economic climate. Similarly, Turkey at 13.63% and Macao SAR China at 13.31% reflect strong consumer confidence and effective economic policies, demonstrating how strategic investments can yield positive results in household expenditures. In stark contrast, the bottom five areas underscore the perilous economic conditions affecting household spending, where drastic declines such as -18.0% in Sudan mark significant challenges that require immediate intervention.

In conclusion, understanding Households and NPISHs Final Consumption Expenditure not only reflects current economic conditions but also shapes future policies and business strategies. By analyzing this indicator in conjunction with related economic metrics and understanding the factors influencing its variations, stakeholders can better navigate the complexities of modern economies, making informed decisions that promote growth and stability.

                    
# Install missing packages
import sys
import subprocess

def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])

# Required packages
for package in ['wbdata', 'country_converter']:
try:
__import__(package)
except ImportError:
install(package)

# Import libraries
import wbdata
import country_converter as coco
from datetime import datetime

# Define World Bank indicator code
dataset_code = 'NE.CON.PRVT.KD.ZG'

# Download data from World Bank API
data = wbdata.get_dataframe({dataset_code: 'value'},
date=(datetime(1960, 1, 1), datetime.today()),
parse_dates=True,
keep_levels=True).reset_index()

# Extract year
data['year'] = data['date'].dt.year

# Convert country names to ISO codes using country_converter
cc = coco.CountryConverter()
data['iso2c'] = cc.convert(names=data['country'], to='ISO2', not_found=None)
data['iso3c'] = cc.convert(names=data['country'], to='ISO3', not_found=None)

# Filter out rows where ISO codes could not be matched — likely not real countries
data = data[data['iso2c'].notna() & data['iso3c'].notna()]

# Sort for calculation
data = data.sort_values(['iso3c', 'year'])

# Calculate YoY absolute and percent change
data['value_change'] = data.groupby('iso3c')['value'].diff()
data['value_change_percent'] = data.groupby('iso3c')['value'].pct_change() * 100

# Calculate ranks (higher GDP per capita = better rank)
data['rank'] = data.groupby('year')['value'].rank(ascending=False, method='dense')

# Calculate rank change from previous year
data['rank_change'] = data.groupby('iso3c')['rank'].diff()

# Select desired columns
final_df = data[['country', 'iso2c', 'iso3c', 'year', 'value',
'value_change', 'value_change_percent', 'rank', 'rank_change']].copy()

# Optional: Add labels as metadata (could be useful for export or UI)
column_labels = {
'country': 'Country name',
'iso2c': 'ISO 2-letter country code',
'iso3c': 'ISO 3-letter country code',
'year': 'Year',
'value': 'GDP per capita (current US$)',
'value_change': 'Year-over-Year change in value',
'value_change_percent': 'Year-over-Year percent change in value',
'rank': 'Country rank by GDP per capita (higher = richer)',
'rank_change': 'Change in rank from previous year'
}

# Display first few rows
print(final_df.head(10))

# Optional: Save to CSV
#final_df.to_csv("gdp_per_capita_cleaned.csv", index=False)
                    
                
                    
# Check and install required packages
required_packages <- c("WDI", "countrycode", "dplyr")

for (pkg in required_packages) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    install.packages(pkg)
  }
}

# Load the necessary libraries
library(WDI)
library(dplyr)
library(countrycode)

# Define the dataset code (World Bank indicator code)
dataset_code <- 'NE.CON.PRVT.KD.ZG'

# Download data using WDI package
dat <- WDI(indicator = dataset_code)

# Filter only countries using 'is_country' from countrycode
# This uses iso2c to identify whether the entry is a recognized country
dat <- dat %>%
  filter(countrycode(iso2c, origin = 'iso2c', destination = 'country.name', warn = FALSE) %in%
           countrycode::codelist$country.name.en)

# Ensure dataset is ordered by country and year
dat <- dat %>%
  arrange(iso3c, year)

# Rename the dataset_code column to "value" for easier manipulation
dat <- dat %>%
  rename(value = !!dataset_code)

# Calculate year-over-year (YoY) change and percentage change
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(
    value_change = value - lag(value),                              # Absolute change from previous year
    value_change_percent = 100 * (value - lag(value)) / lag(value) # Percent change from previous year
  ) %>%
  ungroup()

# Calculate rank by year (higher value => higher rank)
dat <- dat %>%
  group_by(year) %>%
  mutate(rank = dense_rank(desc(value))) %>% # Rank countries by descending value
  ungroup()

# Calculate rank change (positive = moved up, negative = moved down)
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(rank_change = rank - lag(rank)) %>% # Change in rank compared to previous year
  ungroup()

# Select and reorder final columns
final_data <- dat %>%
  select(
    country,
    iso2c,
    iso3c,
    year,
    value,
    value_change,
    value_change_percent,
    rank,
    rank_change
  )

# Add labels (variable descriptions)
attr(final_data$country, "label") <- "Country name"
attr(final_data$iso2c, "label") <- "ISO 2-letter country code"
attr(final_data$iso3c, "label") <- "ISO 3-letter country code"
attr(final_data$year, "label") <- "Year"
attr(final_data$value, "label") <- "GDP per capita (current US$)"
attr(final_data$value_change, "label") <- "Year-over-Year change in value"
attr(final_data$value_change_percent, "label") <- "Year-over-Year percent change in value"
attr(final_data$rank, "label") <- "Country rank by GDP per capita (higher = richer)"
attr(final_data$rank_change, "label") <- "Change in rank from previous year"

# Print the first few rows of the final dataset
print(head(final_data, 10))