Social, Economic, and Political Change in the United Kingdom

Overview · Analyses · Live site


UK since 2007

The overview combines eight source-backed indicators, including official statistics, charity administrative counts and a constructed tuition-fee series. It uses 2007 as the common framing; each panel uses its own available baseline and latest year. It is not a composite index or an exhaustive measure of UK performance. Colours describe the selected direction of change between endpoints, not the latest annual trend. The overview uses year-only labels: financial and academic years use their starting year; pooled trust surveys and CSEW periods use their ending year. Monthly waiting-list and company counts use the latest available snapshot in each year. These periods are not interchangeable annual observations.

Eight source-backed indicators showing change in the UK since 2007

The GDP comparison uses constant-price purchasing-power parity (PPP), not market-exchange-rate dollars.

Explore the evidence

Economy and living standards: GDP and incomes, stock markets, sterling, trade, London's economy, and purchasing power parity. Government debt and borrowing costs distinguish the UK public-debt stock relative to GDP from market yields on government bonds. Unemployment and youth unemployment compare the UK with EU and US reference rates in separate charts, with explicit age bands, labour-force denominators and reference periods.

Public services and infrastructure: austerity, NHS performance, and rail performance. Infrastructure investment, research funding and defence compare five distinct spending measures as shares of GDP, with source limitations explicit.

Household pressure: tax, tuition, and food-bank use.

Population and institutions: migration, ageing, crime, and institutional trust.

Automatic updates

The enabled Update site workflow is scheduled for Monday at 06:37 UTC on master. It runs every source group in scripts/refresh_data.py, including household and industrial energy prices, polling, and all income and inflation comparison variants. It regenerates the overview, hover-data sidecars and page-background copies as well.

Every retained original PNG and its sidecar must be regenerated before the complete-refresh date advances. Source failures, lost required coverage or stale figures stop publication. A partial --only run does not claim a complete refresh. The workflow tests and builds the result before pushing refreshed inputs.

Source JSON, HTML, spreadsheet and streamed downloads share bounded transient-error retries: at most five attempts, cache revalidation on retry, and immediate failure for permanent HTTP errors. World Bank indicator endpoints also recover boundedly from intermittent HTTP 400 rejections of valid queries; structured API errors still fail immediately. These rejections include bounded response diagnostics and trigger the existing atomic country/year partition recovery. Rate-limit and service-unavailable Retry-After delays are honoured up to 60 seconds. Existing host checks, download limits and Northern Ireland request pacing remain enforced; interrupted streams restart from zero. Failure-injection tests cover production transport entry points and prevent source modules from bypassing the shared Python HTTP policy. The Bank of England retains its separately bounded curl transport for provider compatibility. Trade, crime and stock-market refreshes also reject lost historical observations, duplicate keys and nonfinite values before replacing their published CSVs. Their complete source CSVs are tracked so these checks retain the previous successful history on a fresh GitHub runner, not just on a developer's machine.

Full refreshes first download the official WDI database-2 and WGI database-3 CSV archives from databankfiles.worldbank.org, independently of the indicator API. Selected indicators are shared between source subprocesses in a new temporary directory for that refresh only. The directory is deleted afterward and never restored from a previous run. GDP, markets, trade, broad age structure and governance and military expenditure retain their existing definitions, countries and years. Missing year columns, country profiles, duplicate records or nonfinite values reject the bulk query; an unavailable or invalid archive tries the live API, never saved observations.

If PIP's country-list or targeted survey endpoint exhausts transient-error retries, income refreshes request fresh all-country PIP surveys and filter locally. Both paths retain the 2021 PPP vintage, national observed surveys and original welfare definitions; failure of both requests still blocks publication.

All World Bank clients use the same pooled HTTP helper, including trade, homicide, age structure and population pyramids. Requests revalidate cached responses from the first attempt and retry network/HTTP failures up to five times with backoff. Retries preserve the country, year, indicator, source database and pagination parameters. Persistent upstream failures still stop publication; saved data is not substituted for a successful live refresh. GDP, stock-market, trade, age-structure, population-pyramid and governance queries split transiently failing country/year ranges into smaller equivalent live queries. Pages are buffered until complete, so restarting a query cannot duplicate partial results; an indivisible query still has at most five attempts and must succeed. Population-pyramid counts explicitly request their existing World Bank database 16; governance estimates retain database 3. Tuition/BLS JSON requests share the central revalidation policy while still retrying only transient failures. Pyramid counts prefer the official, freshly downloaded HNP database-16 CSV archive on the World Bank's separate download host, avoiding hundreds of fragile API calls. Every requested country/year/age/sex cell must be present and valid; an unavailable or invalid archive retries the same live database through the API, never saved data. The offline suite blocks external HTTP so incomplete mocks cannot turn validation into an accidental, flaky live-source check; loopback test servers remain allowed.

Tuesday-Sunday runs at the same scheduled time check all live sources, tests and the site build without committing or deploying. Manual source_check_only runs do the same on any branch; refresh_data on a non-master branch also checks without publishing. Only master may publish, and check-only takes precedence when both inputs are enabled. Pending runs queue instead of replacing one another.

The live host, hanshanley/margin_of_error, independently checks out the latest master and is scheduled to republish at 09:20 and 21:20 UTC each day. This picks up weekly refresh commits without relying on a workflow-authored push to trigger another workflow. GitHub can delay scheduled runs; these are scheduled times, not exact publication guarantees.

The host fingerprints the staged UK downloads and verifies their live bytes after deployment. A green Pages API response alone is not sufficient. Stale content or a failed deployment gets one delayed, deployment-only retry; an unverified retry fails without rerunning the data refresh.

Regression tests check that every public analysis has a refresh command and that the default energy command fetches both household and industrial data and renders every energy chart registered on the website.