Epure Works

Model v0.2

Variables and bounds

What the model tracks for each country, and the values that no country should ever reach.

In plain words

Every figure the model publishes has bounds, set a little beyond what has already been observed in the real world. A bound does not stop the calculation. Without shocks, a game that crosses one points to an error in the model or in its starting figures, whereas with shocks a run of bad luck can take a figure across it, in at most one country-month in a thousand. The model also remembers what has happened, such as past inflation or the budget of the year just ended. These internal memories are not displayed, but because they are part of the state of the game, a save keeps them.

The ten published variables

A bound is never a cap applied to the calculation. It is a line that a simulation must not cross; if it does, it has found a fault in the model or in its calibration. Each bound is set a little beyond what has already been observed.

#VariableMeaningUnitBoundsWhere the bounds come from
1real_gdpreal GDP: potential × (1 + gap)index, 1 at the start> 0by construction
2output_gapoutput gap% of potential−25 to +25largest annual changes in real GDP observed since 1960: −21.3% and +28.6% (0.5th and 99.5th percentiles, World Bank)
3inflationpublished inflation, over twelve months%−11 to 500deflation of −10.9% in the United States in 1921; above 500% a year, it is hyperinflation (Reinhart and Rogoff 2008), which the core model does not represent
4unemploymentunemployment rate% of the labour force0 to 50the highest ever measured is 38.8% (North Macedonia, 1996); the lowest is 0.10% (Qatar)
5policy_ratepolicy rate% per year−1 to 500the lowest is −0.75% (Switzerland, Denmark, 2015); the highest since 2015 is 133% (Argentina, 2023); beyond that, it follows inflation
6gov_revenuegovernment revenue% of GDP0 to 100by definition; observed in 2024, from 2.9% (Sudan) to 74% (Kuwait)
7primary_spendingprimary spending (excluding interest)% of GDP0 to 100by definition; observed in 2024, from 5.2% (Haiti) to 57.8% (Finland)
8gov_debtpublic debt% of GDP−600 to 600the highest ratio on record is 600% (Liberia, 2003); below zero, the state is a net lender, like sovereign wealth funds
9effective_rateeffective rate on the debt: interest paid / debt% per year−5 to 500negative when the neutral rate is negative; it is then the return on public savings
10popularitygovernment popularity%0 to 100by definition; observed: 22 to 90% (Gallup, United States), 13 to 75% (Ipsos, United Kingdom), 17% (Ifop, France, 2014)

The primary balance is not a state variable. It follows from revenue, spending and the gap (E8). Its bounds are checked all the same, from −40 to +55% of GDP. The most extreme balances observed are −32.1% (Ireland, 2010, bank bailout) and +52.3% (Kuwait, 2000).

The stakes (E13 to E17) publish four more figures, which the player sees:

VariableMeaningUnitBounds
growthgrowth of real GDP over twelve months%follow from those of the output gap
income_growthgrowth of real disposable income over twelve months, i.e. purchasing power%same
credibilitycredibility of the central bankfrom 0 to 1by construction
default_probabilityprobability, over one year, that the markets stop lendingfrom 0 to 1by construction

With shocks, a bound can be crossed by bad luck rather than because of a fault. The data themselves hold a few examples (−16.9% inflation in Lesotho in 2009, Macao's output halved in 2020). The world without shocks must stay within its bounds. The world with shocks may leave them, but in at most one country-month in a thousand (choice).

Sources of the observed figures: the World Bank (WDI) for growth and unemployment; the IMF (WEO and Fiscal Monitor of April 2026) for debt, revenue, spending and balances; the BIS and the ECB for policy rates; Gallup, Ipsos and Ifop for popularity. The inflation bounds come from Reinhart and Rogoff (2008) and from the Minneapolis Fed (price index series). Details in §11.

The internal memories

They are not shown to the player, but they are part of the state and must be saved:

MemoryWhat it retainsWhy
inflation_memorypast inflation, weighted less and less (half-life of 474 days)the unanchored share of expectations (E3)
price_historythe price level over the last 365 dayspublished inflation over twelve months (E5)
remembered_spending, remembered_revenuethe budget of the past yearthe fiscal impulse (E1)
debt_anchorthe lowest debt reached since the startthe fiscal rule of non-player countries (E9)
starting_balance_gapthe starting gap between the balance and the balance that stabilises the debt, which fadessame
private_bondsthe debt as seen by those who hold itthe check of the accounts (E11)
years_in_officethe government's years in power, counted at the start from the last electionthe cost of ruling (E12)
starting_unemployment, starting_inflation, starting_income_growththe economy the government inheritedpopularity is measured from the day it took office (E12)
underlying_price_level, price_deviationthe price level driven by the Phillips curve, and the temporary deviation that price shocks add to itthe published price level (E5, E13)
output_history, income_historyreal GDP and disposable income over the last 365 daysgrowth and purchasing power over twelve months (E14, E15)
inflation_quarterpublished inflation over the last 91 daysthe credibility signal (E17)
credibilitythe central bank's stock of credibilityexpectations (E3, E17)
next_election, terms_in_powerthe date of the next vote, and the terms of the incumbent campelections (E15)
market_reference, debt_limit, excluded_until, defaulted_on, last_haircut, written_offthe debt on which the markets lent, the country's limit, the end of the exclusion, the day and the haircut of the last default, what the haircuts have written offthe crisis and default (E16)
the state of the random generatorthe seed of the game and how far the draws have goneeverything drawn at random (E13, E15, E16); without it, a saved game does not replay identically