Stocks & Flows

POLS 3220: How to Predict the Future

Recap

  • So far this semester, we’ve covered:

    • Probability (Part I). How to handle uncertainty.

    • Wisdom of Crowds (Part II). The value of thinking from multiple perspectives.

    • Election Forecasting (Part III). Using historical patterns in data to forecast future outcomes.

  • To date, we’ve mainly focused on short- and medium-term predictions.

    • This was a practical choice. We needed forecasts we could score!
  • But many of the most important prediction problems have longer time horizons.

  • Here are a few trends where I deeply want to know what’s going to happen over the next few decades:

Artificial Intelligence

Democracy

The National Debt

Partisan Polarization

Global Surface Temperature

Agenda

  • In the final few days of class, I want to give you some tools for reasoning about these sorts of long-term trends.

  • Today: thinking in terms of stocks & flows.

Stocks & Flows

  • A stock measures some quantity at a point in time.

  • A flow measures the rate of change in a quantity.

  • A useful metaphor is a bathtub (Sterman 2000).

Exercise

Predicting stocks and flows can be tricky! Sketch what you think will happen to the stock of water in these bathtubs over time. Both start at 100 liters.

Stocks & Flows

Lots of problems can be described in terms of stocks and flows:

Stock Inflow Outflow
$ in my bank account Monthly income Monthly spending
National Debt Taxes Government Spending
Number of Democracies Democratization “Democratic Backsliding”
CO2 in Atmosphere Carbon Emissions Carbon Sinks
Population Births Deaths
  • Confusing stocks and flows is a common mistake.

  • For example: debt is a stock, while deficit is a flow.

    • “Cutting the deficit” does not necessarily mean that the national debt will decrease!

Markov Models

  • When flows are defined in terms of probabilities, we call it a Markov Model.
  • For example, suppose that every autocracy has a 4% chance of democratizing each year.
  • And every democracy has a 1% chance of becoming an autocracy…
  • If this process continued for 1,000 years, what do you think would happen to the share of countries that are democracies?
4% democratize per year1% backslide per yearAutocracies?Democracies?

Flows Over Time

Let’s start with a world of 250 autocracies and 0 democracies. Year 0:

4% × 250 = 10 per year1% × 0 = 0 per yearAutocracies250Democracies0
Net change: +10 democracies per year

Flows Over Time

As democracies accumulate, the inflow shrinks and the outflow grows. Year 10:

4% × 170 = 6.8 per year1% × 80 = 0.8 per yearAutocracies170Democracies80
Net change: +6 democracies per year

Flows Over Time

As democracies accumulate, the inflow shrinks and the outflow grows. Year 25:

4% × 105 = 4.2 per year1% × 145 = 1.45 per yearAutocracies105Democracies145
Net change: +2.75 democracies per year

Flows Over Time

As democracies accumulate, the inflow shrinks and the outflow grows. Year 50:

4% × 65 = 2.6 per year1% × 185 = 1.85 per yearAutocracies65Democracies185
Net change: +0.75 democracies per year

Flows Over Time

As democracies accumulate, the inflow shrinks and the outflow grows. Year 100:

4% × 51 = 2.04 per year1% × 199 = 1.99 per yearAutocracies51Democracies199
Net change: +0.05 democracies per year

Equilibrium

  • Eventually, the system settles into a stable point, called an equilibrium.

  • In equilibrium, inflows = outflows. Nothing changes from year to year.

4% × 50 = 2 per year1% × 200 = 2 per yearAutocracies50Democracies200
  • Intuitively, if the rate of democratization (4% per year) is 4x the rate of backsliding (1% per year), then in equilibrium there were be 4x more democracies than autocracies.

  • 4:1 = 80%

Does the Starting Point Matter?

  • What if we started with 100% democracies? Or a 50/50 split?

  • Doesn’t matter! Regardless of starting point, the system converges to the same equilibrium: 80% democracies.

Practice

Every month, 2% of employed workers lose their jobs, and 30% of unemployed workers find a new job.

2% per month30% per monthEmployed?Unemployed?
  1. In equilibrium, what percent of workers are unemployed?

  2. A recession hits, and the job-finding rate falls to 18% per month. What is the new equilibrium unemployment rate?

Ergodic Theorem

  • When should we expect a system of stocks & flows to reach an equilibrium?

  • The ergodic theorem states that there will be a unique equilibrium for any system that meets the following conditions:

    • There exists a path from every stock to every other stock.

    • Flow probabilities are stationary (i.e. unchanging).

  • No matter how complicated the model gets, if these two conditions hold, there will be a unique equilibrium where all the inflows equal outflows.

Demographic Forecasts

  • Here’s a much more complicated stock and flow model, which we can use to think about long-term demographic change.
non-existencebirthsbirths depend on the number of women aged 15–49 (and their fertility rates)⋯⋯agingAge 0Age 1Age 2Age 30Age 100+deaths

Demographic Forecasts

Below are the age-specific mortality and fertility rates for Americans, according to the SSA and CDC.

Demographic Forecasts

  • If the number of people in each age group is the stock, then those rates represent the flows between age groups.
non-existencebirths(1.66 per woman)births depend on the number of women aged 15–49 (and their fertility rates)⋯⋯agingAge 0Age 1Age 2Age 30Age 100+0.54%0.036%0.022%0.16%36%deaths

Demographic Forecasts

If the current fertility and mortality rates remain stationary, the age distribution will eventually settle into an equilibrium (Arthur 1982).

Demographic Forecasts

  • This has implications for:

    • the cost of social insurance programs

    • military recruitment

    • higher education

    • the national debt

    • interest rates

    • the “gerontocracy”

  • And the model lets us test out different scenarios. What happens to the equilibrium if fertility keeps falling? If medical advances help Americans live longer? If more immigrants arrive each year?

Try It Yourself

Takeaways

  • Keep in mind the distinction between stocks (the level) and flows (the rate of change).

  • A system of stocks and flows is ergodic if the flow probabilities remain fixed and there’s a path from every stock to every other stock.

    • Ergodic systems always converge to an equilibrium state.
  • Next time, we’ll discuss positive and negative feedback.

    • i.e. What happens when the size of a stock affects the rate of inflow/outflow?
  • We’ll conclude the semester with lectures on tipping points and path dependence.

References

Arthur, W. Brian. 1982. “The Ergodic Theorems of Demography: A Simple Proof.” Demography 19 (4): 439–45. https://doi.org/10.2307/2061011.
Sterman, John D. 2000. Business Dynamics: Systems Thinking and Modeling for a Complex World. Boston: Irwin/McGraw-Hill.