City Population Annual Timeseries (UN Statistics Division)
- Rows
- 31,557
- Columns
- 11
- Data range
- 1970-01-01 to 2026-01-01
- Auto-refresh
- Re-checks its source every 30 days
- Last refreshed with new data
- 2026-10-22
UN city population annual time-series data, both sexes. Large demographic-economic related dataset from UN Statistics Division.
AI analysis
Dataset Analysis: UN City Population Annual Timeseries
1. Dataset Overview and Correlation Potential
This dataset, sourced from the UN Statistics Division via [datahub.io](https://datahub.io/core/population-city/r/-/data/unsd-citypopulation-year-both.csv), represents one of the most comprehensive longitudinal records of urban population at the city level available in the public domain. Spanning 1970 through 2025 across 218 countries and 5,234 distinct cities, it offers a rich foundation for studying urbanization trends, demographic shifts, and their economic correlates. The UN provenance signals high institutional credibility, though the breadth of contributing national statistical offices introduces heterogeneity in methodology. With 47 distinct year-values across ~55 calendar years, coverage is periodic rather than truly annual for most cities — an important caveat for time-series modeling. The dataset's scale (30,762 rows) and global scope make it exceptionally well-suited for cross-sectional and longitudinal correlation studies linking urban growth to economic, environmental, or infrastructure indicators.
---
2. Data Quality Observations
Overall data quality is moderate, with the most significant concern being the 23,482 null cells across 11 columns, representing roughly 6.9% of the total cell space (30,762 rows × 11 columns = 338,382 cells). The distribution of nulls is highly uneven:
- Value Footnotes: 21,795 nulls (70.9%) — This column is effectively sparse by design; footnote codes are only populated when caveats apply, so the nulls are structurally expected rather than indicative of data loss. However, the 141 distinct footnote values among the non-null rows suggest meaningful methodological variation worth filtering on. - Value: 1,687 nulls (5.5%) — This is the core population figure, making these missing records analytically dead weight. At 5.5%, the impact is non-trivial and warrants investigation into whether missingness clusters around specific countries, time periods, or city types before imputation or exclusion.
The Sex and Area columns each have only 1 distinct value, suggesting they are either pre-filtered (e.g., "Both Sexes" only) or effectively constant in this extract — rendering them useless for within-dataset segmentation but confirming the dataset's scope. No duplicate row count was available (Phase D pending), which is a gap; given the multi-key structure (Year + Country + City + Sex), duplicates from overlapping source years could silently inflate population figures. The 187 outliers in Source Year and 3,367 outliers in Value also deserve auditing before analysis.
---
3. Key Column Distributions
The Value column (city population) is the analytical core and exhibits extreme right skew:
| Stat | Value | |------|-------| | Min | 0 | | Max | ~23,019,200 | | Mean | 437,445 | | Median | 194,839 | | Q1 | 126,994 | | Q3 | 367,010 | | Skewness | 9.74 | | Outliers | 3,367 |
The mean being 2.24× the median confirms heavy right-skew driven by megacities (likely entries such as Tokyo, Mumbai, or São Paulo near the 23M ceiling). The interquartile range (126K–367K) suggests the bulk of cities are mid-sized urban centers, while the 3,367 statistical outliers — roughly 11% of rows — represent the megacity tail. Any correlation analysis should apply log-transformation to normalize this distribution before computing Pearson correlations.
The Source Year column (mean=2013.5, σ=6.96, range 1972–2025) reveals that most population estimates cluster in the 2008–2019 window (IQR), with slight left skew (-0.294), indicating older observations are somewhat underrepresented. The 44 distinct source years versus 47 distinct Year (join key) values suggests minor misalignment between when data was collected and the reference year it describes — a classic issue in cross-national demographic datasets.
---
4. Recommended Join Key Columns
For cross-dataset correlation, the following columns form the most reliable composite join keys:
| Priority | Column(s) | Notes | |----------|-----------|-------| | Primary | Country or Area + Year | Broadest compatibility; country-year is the most common grain in economic datasets | | Secondary | City + Country or Area + Year | Higher resolution but requires fuzzy matching due to transliteration inconsistencies across 5,234 city names | | Caution | City alone | High collision risk; 5,234 names across 218 countries will have duplicates (e.g., multiple "Springfield"-equivalents) |
Standardizing Country or Area against ISO 3166-1 alpha-3 codes before joining is strongly recommended, as UN country naming conventions frequently diverge from World Bank, IMF, and OECD schemas (e.g., "United States of America" vs. "United States").
---
5. Recommended Paired Datasets for Correlation Discovery
| Dataset / Topic | Correlation Hypothesis | Join Key | |----------------|----------------------|----------| | World Bank GDP per capita (country-year) | Does urban population growth precede or lag GDP growth? | Country + Year | | UN World Urbanization Prospects | Validate city-level figures; correlate urban share with population density | Country + City + Year | | Global Air Quality Index (PM2.5/AQI) | Do larger cities exhibit worse air quality, and at what population threshold? | City + Country + Year | | Infrastructure investment data (e.g., OECD, ADB) | Does infrastructure spending predict faster urban growth? | Country + Year | | Housing price indices (e.g., BIS, Numbeo) | Do population-dense cities show faster real estate appreciation? | City + Country + Year | | Climate/temperature anomaly data (NOAA, ERA5) | Urban heat island effect as a function of city size | City + Year (lat/lon enrichment needed) | | Employment/labor force data (ILO) | Urban population as a predictor of formal employment rates | Country + Year |
The most analytically compelling pairing would be GDP per capita × city population growth rate, as it directly tests whether urban concentration drives or merely correlates with economic development — a central debate in urban economics. A log-log regression on Value against GDP per capita, controlling for region and decade fixed effects, would be a natural first analysis given the skewness profile of this dataset.
Columns
- Year (date)
- Country or Area (string)
- City (string)
- Sex (string)
- Area (string)
- City type (string)
- Record Type (string)
- Reliability (string)
- Source Year (integer)
- Value (integer)
- Value Footnotes (integer)