State Space Models

All state space models are written and estimated in the R programming language. The models are available here with instructions and R procedures for manipulating the models here here.

Sunday, December 28, 2014

The Steady State Economy: Realistic Model or Illusion?


The idea of a steady state economy has a long history. It was discussed by Adam Smith, John Stuart Mill, John Maynard Keynes, Nicholas Georgescu-Roegen, E.F. Schumacher,  Kenneth Boulding, and Herman Daly (all discussed here). Basically, the theory of economic growth describes the conditions under which an economy will grow (I've discussed the neoclassical growth model here) and steady-state economy theory describes the conditions under which the economy will stop growing (without collapsing). Both of these theories are flawed for reasons described by the theory of complex dissipative systems. I'll introduce some of these ideas in this post, but my major objective is to introduce the concept of steady state.

The fundamental insight from the steady state economy model is displayed in the graphic above taken from Herman Daly's (1977) Steady State Economics (San Francisco: Freeman) on page 35. Economic growth theory takes up the right-hand box in the figure. The economy, in Daly's view, produces stocks of artifacts (capital goods and stocks of knowledge) that not only deplete the Ecosystem (the left-hand box) but also generate pollution (even knowledge production does this, think of your University's power plant). Compared to the Ecosystem, which is open to Solar Energy and accepts heat pollution, the Economic system is closed. From my earlier discussion of economic growth theory (here), the economy is typically thought to be open to population growth and technological change. Daly includes both those stocks (the stock of population and the stock of knowledge) within the economic system.

If we split the drawing in half, the economy is open to input from the Ecosystem and the Ecosystem is open to pollution and depreciation from the economy as well as solar input.  The theory of open systems shows that only closed systems can reach a permanent steady state. An open system is always forced into another state by its inputs. So unless solar energy becomes an input to the Economy and, at the same time, regenerates the Ecosystem which is being depleted but the Economy, the combined system cannot reach a permanent steady state at a high level of economic development. Basically, the Second Law of Thermodynamics holds that all closed systems run down due to dissipation of energy (the theory of complex dissipative systems).

What is lurking under all this theory is the concept of openness. The subtleties are easier to understand by considering the general open system S(t) = A S(t-1) + B X(t-1) where t is time, S is the state of the system, A and B are matrices of coefficients and X is a matrix of inputs from the environment (the open part of the system). The characteristic behavior of the state-space representation is determined by properties of the A matrix, specifically its stability (all eigenvalues of A less than one). If the system is stable it will reach a steady state only when X becomes zero, that is, when the inputs are dissipated (think of X as the environment) or when X becomes a constant, that is, the environment reaches a steady state. If the system is unstable, it will growth forever, even without inputs--which is impossible. So, real world systems must ultimately become stable.

But, imagine a world which is radically open. There are all sorts of systems, some stable, some unstable (think of normal cells in the human body and cancer cells, the cancer cells are growing unstably). Each system is interacting with other systems. In this disorderly world, change over time is determined by the unstable systems. Unless the unstable systems are stabilized, they take over the stable systems. In the case of cancer cells, without killing the cancer cells (one type of steady state) they eventually kill the host system.

The view of the ecological system and the economic system advanced by the theory of steady state economics involves mildly open, stable systems. What if they are not? What if they are more like the human body? What if the Economy and the Ecological system are radically open? This will be a topic for a future post.

The theory of radically open systems possess serious problems for all attempts to specify the steady state or even the growth path of an economy. All the conclusions from economic growth theory, steady-state economic theory and simple open systems theory depend on being able to specify the state S of the system. In radically open systems, if the state is misspecified then some unmeasured, unstable force in the environment (e.g., a caner pathogen) can disrupt the system and make forecasting the future impossible. In a world of radically open systems, all systems are weakly state determined and strongly driven by the environment. For theorists and model builders, accustomed to specifying system states, specifying the entire environment is an impossible task. For us consumers of theories and models, we need an answer to the question of how open our real word systems are before we an have much faith in the conclusions of theoreticians and model builders.

The one question that the debate between economic growth theorists and steady-state economists has brought into the open is whether any of our economic systems are moving toward a steady state. And, if an economic system is moving toward a steady state (an empirical question) what might happen after that (a speculative question). The resolution of this question is important because it impacts the Ecosystem on which the Economy depends. I will present historical data from and test actual economics systems in future posts (something that is seldom done in ECON 101).

HISTORICAL NOTE

The concept of a Steady State Economy was dropped from ECON 101 after WWII as was much of what had been developed by Classical Economists in the Nineteenth Century (except David Ricardo).


For example, in the graph above is the output from a Steady-State Malthusian System model produced by the code below, if you would like to experiment yourself. Note, this model is a closed system.

Code

A Steady-state Malthusian Model. Models have a compact R-code in dse and can be run easily https://rdrr.io/snippets/. Cut-and-paste the following code into the Snippets editor window. When you run it, it should produce the shock decomposition diagram and the forecast in the graphic above.

#
#    MALTHUS
#
require(dse)
require(matlab)
f <- matrix( c(   .8, 0, 0.09478143,
               0, .8, 0.09238426,
                      0.000000000, 0.00000000,  1.000000000
),byrow=TRUE,nrow=3,ncol=3)
h <- eye(2,3)
k <- f[1:3,1:2,drop=FALSE]
TRM <- SS(F=f,H=h,K=k,
z0=c(0.09478143, 0.09238426, 1.00000000),
              output.names=c("N","QA"))
stability(TRM)
TRM
TRM.data <- simulate(TRM,sampleT=20,
,start=1,freq=1,noise=matrix(0,20,2))
TRM.model <- l(TRM,TRM.data)
#tfplot(TRM.model)
shockDecomposition(toSSChol(TRM))
tfplot(forecast(TRM.model,horizon=20))



Thursday, June 26, 2014

Is Climate Change an Economic Problem?


In Chapter 3 of the Climate Casino, William Nordhaus argues that climate change is an economic rather than scientific problem (find my reviews of other chapters here). The argument is controversial. Heat waves, melting ice sheets, droughts, rising sea level, storms and record temperatures are typically thought of as a complex scientific problem. Prof. Nordhaus argues that the economic problem is more straightforward: the people that are dumping CO2 into the atmosphere don't have to pay for their emissions. If they did, they would be more careful about what they did with the by-products of burning fossil fuels. Economists call this an externality, that is, "...a by-product of economic activity that causes damages to innocent bystanders" (p 18). Because no one owns the atmosphere, not even government, there is no one to charge for its use and no market in which to purchase such environmental services. 

Economists like this argument; it shifts the debate from "who is to blame" to "who should pay" for damages caused by climate change. Unfortunately, polluters argue that no one is actually being harmed by CO2 emissions and that there is no observable link between CO2 emissions, climate change and economic damages. 

Prof. Nordhaus confronts these arguments by presenting the data and using models to predict the future. Since 1900, global CO2 emissions have been rising linearly (on a log scale) in his Figure 2 above (p. 21). Although there have been some interesting periods of acceleration (after WWII, for example), the general trend has been continuously upward.


Over the same period, there have been technological improvements that increased the efficiency with which fossil fuels are being burned. Technical efficiency has reduced the carbon intensity of, at least, the US economy as displayed in Figure 3 above (from page 22 of the Climate Casino, again presented on a log scale). This process is called decarbonization, but "...while the carbon intensity of production is declining, it is not declining fast enough to reduce total CO2 emissions, either for the world or for the United States" (p. 23). In other words, technological change will not get us out of this dilemma and neither will the substitution of renewable resources because they are more expensive than fossil fuels--returning us to the economic problem.


Another part of the economic problem is that the negative impacts of fossil fuel burning, even with increased technical efficiency in their use, will not be felt for many years in the future. To look out past 2013 when the Climate Casino was written into the future when environmental effects could become serious, we need a mathematical model that can make quantitative predictions. Prof. Nordhaus has such a model, called the DICE model, as in "roll the dice". In Figure 3 above (from p. 33 on the Climate Casino), emissions projections out to 2100 from the DICE model are compared to projections made by eleven EMF models from the Stanford University Energy Modeling Forum. The projections from the DICE model compare quite favorably with the average of the EMF models.

Prof. Nordhaus acknowledges that there is a great deal of "uncertainty" in these estimates. CO2 emissions in 2100 range from about 40 billion to over 130 billion tons per year. The differences in predictions have nothing to do with "chance" or "random events" but rather with the different structures and assumptions of the models. The models are totally deterministic. 

In the face of uncertainty about the future (and uncertainty about the models), Prof. Nordhaus makes the following suggestion:

Start with a best-guess scenario for output, population, emissions, and climate change. Take policies that will best deal with the costs and impacts in this best-guess case. Then consider the potential for low-probability but high-consequence outcomes in the Climate Casino. Take further steps to provide insurance against these dangerous outcomes. But definitely do not assume that the problems will just disappear. (p. 34-35)

This sounds reasonable, but the arguments in Chapter 3 of the Climate Casino do not seem well connected to the suggestion. Is Prof. Nordhaus saying that the DICE and EMF-22 models are necessary to making judgments about either the future or about policy actions that should be taken in the present? Are the DICE and EMF-22 models an accurate simplification of how the world economy works? How do we know that? Have the models been somehow validated? Is there a way we can check the projections being made by the models? If we are going to run policy experiments on the models, how do we know the world economy will respond in the same way? How would we even think about implementing policies that would have an impact on the world economy? Is there any way for us to evaluate these models as systems? What kind of confidence would we have to have in models to make predictions almost eighty years into the future? Is there any reason to believe that we can really predict that far into the future? And, how do the models prove that climate change is really an economic problem? As I will argue later, it seems more realistic to view it as a "system" problem, specifically a problem of the Capitalist world-system, a system that is great at exploiting environmental systems for profit. Is it possible to change this system? How have macro-societal systems changed in the past?

So many questions! They will all have to be topics for future posts, keeping in mind that this blog is about causal macrosystems and not about climate change. Unfortunately, it is in the area of climate change that the stakes are highest and to which, hopefully, researchers are bringing their best models!

EXERCISES
  1. Download the DICE users manual (here). How well was the model validated? What evidence was offered to support using the model for policy experiments? How were the model parameters determined? Evaluate Ackerman's (2007: 1657 here) concern that "...the optimistic projections and modest optimal policies often attributes to models such as DICE may be artifacts of parameter choices, rather than robust forecasts about an uncertain future" For more topics to pursue in the DICE manual, see below.
  2. Follow up on the references offered in the DICE manual, particularly the Ramsey model (the one that DICE is based on here) and versions of DICE that are not deterministic (here). Try to find a reference that validates the model on historical data.
  3. Download the "Simple Excel" version of DICE (here and here). Try to understand the model and explore different runs. Make simple changes to the alternative assumptions. NOTE: the Excel model seems "under development" and I have not been able to get it running. Skip to Exercise 4 if you're having trouble.
  4. Download the free educational version VENSIM PLE (here) and the version of DICE in the VENSIM language from Tom Fiddaman's System Dynamics Model Library, specifically here. Become familiar with the VENSIM language. Most of the causal macrosystems I will review have been implemented in VENSIM and it is free.
Using the DICE manual, evaluate and critique the following statements:
  1. DICE is an optimization model. "...the use of optimization can be interpreted in two ways: First, from a positive point of view, optimization is a means of simulating the behavior of a system of competitive markets; and, second, from a normative point of view, it is a possible approach to comparing the impact of alternative paths or policies on economic welfare" (p. 6)
  2. "In the DICE and RICE models, the world or individual regions are assumed to have well-defined preferences, represented by a social welfare function, which ranks different paths of consumption" (p. 6).
  3. "Technological change takes two forms: economy-wide technological change and carbon-saving technological change. The level of total factor productivity ... is a logistic equation similar to that of population...TFP growth declines over time" (p. 9). This is an interesting change of specification. In the neoclassical economic growth model, TFPG is simply an exponential function, meaning it increases forever since there are no inherent limits to the growth of knowledge (see my earlier post here).
  4. "...providing reliable estimates of the damages from climate change over the long run has proven extremely difficult" (p. 10 and following).
  5. "The DICE-2013R model explicitly includes a backstop technology, which is a technology that can replace all fossil fuels" (p. 13).
  6. "The model assumes that incremental extraction costs are zero and that carbon fuels are efficiently allocated over time by the market" (p. 14)
  7. "As with the economics, the modeling philosophy for the geophysical relationships has been to use parsimonious specifications so that the theoretical model is transparent and so that the optimization model is empirically and computationally tractable" (p. 15).
  8. "This discussion implies that we can interpret optimization models as a device for estimating the equilibrium of a market economy. As such, it does not necessarily have a normative interpretation. Rather, the maximization is an algorithm for finding the outcome of efficient competitive markets" (p. 22). How well does this interpretation fit the world system?
  9. "The real interest rate is a critical variable for determining climate policy" (p. 25).
  10. "Earlier versions of DICE and other IAMs tended to have a stagnationist bias, with the growth rate of total factor productivity declining rapidly in the coming decades. The current version assumes continued rapid total factor productivity growth over the next century, particularly for developing countries" (p. 36).
  11. "The 2007 model over predicted output by about 6 percent, primarily because of failure to see the Great Recession. We have reduced output to put the new path on the current starting point" (p. 41).
  12. "Since many computerized climate and integrated assessment models contain between 10,000 and 1 million SLOC...[source lines of code]..., there is the prospect of many bugs contained in our code" (p. 52).
  13. "...there is a tendency to develop models that increase in parallel with the rapidly expanding frontier of computational abilities. This leads to increasingly large and complex models. We need also to ask, do we fully understand the implication of our assumptions? Is disaggregation really helping or hurting?" (p. 53)
  14. "The properties of linear stochastic systems are moderately well-understood, but that is not the case of all non-linear stochastic systems" (p. 54).