# Interactions between the Real Economy and the Stock Market: A Simple Agent-Based Approach

Authors: Frank Westerhoff
Journal: Discrete Dynamics in Nature and Society
 (2012)

---

## Abstract

We develop a simple behavioral macromodel to study interactions between the real economy and the stock market. The real economy is represented by a Keynesian-type goods market approach while the setup for the stock market includes heterogeneous speculators. Using a mixture of analytical and numerical tools we find, for instance, that speculators may create endogenous boom-bust dynamics in the stock market which, by spilling over into the real economy, can cause lasting fluctuations in economic activity. However, fluctuations in economic activity may, by shaping the firms' fundamental values, also have an impact on the dynamics of the stock market.


---

## Body

## 1. Introduction

Over the last 20 years, many interesting agent-based financial market models have been proposed to study the dynamics of financial markets (for recent surveys, see [1–4]). As revealed by these models, it is the trading activity of heterogeneous interacting speculators that accounts for a large part of the dynamics of financial markets. Even in the absence of stochastic shocks, intricate asset price dynamics may emerge in these models, for instance, due to the speculators’ use of nonlinear trading rules. Buffeted by stochastic shocks, however, these models are able to replicate some important statistical properties of financial markets remarkably well. Thanks to these models, phenomena such as bubbles and crashes, excess volatility, and volatility clustering are now much better understood.Overall, this line of research may be regarded as quite successful. Surprisingly, however, the attention of these models is typically restricted to the dynamics of financial markets. Put differently, the impact financial markets may have on other subsystems of the economy, such as the goods market, is widely neglected. And, of course, the impact other subsystems of the economy may have on financial markets is equally neglected. In this paper, we therefore develop a model in which a goods market is connected with a stock market, which we hope will improve our understanding of interactions between the real economy and the stock market. Given that there are a number of prominent historical examples (a deeper empirical investigation into this issue is provided by Kindleberger and Aliber [5]; however, see also Galbraith [6], Minsky [7], Akerlof and Shiller [8], or Reinhart and Rogoff [9]) in which stock market crises have triggered severe macroeconomic problems—the Great Depression, the so-called Lost Decade in Japan and the recent Global Financial and Economic Crisis, to name just a few—this seems to us to be a worthwhile and important endeavor.To be able to understand how our model functions, we keep it rather simple. Moreover, we place greater emphasis on the model’s financial part than on its real part. One reason is that we can readily apply some basic insight from the field of agent-based financial market models here. Another reason is that the recent financial market turmoil has made it clear that financial market crashes may be quite harmful to the real economy. In a nutshell, the structure of our model is thus as follows. We represent the real economy with a simple Keynesian goods market model for a closed economy; our formulation of the stock market recognizes the trading activity of heterogeneous speculators. Ultimately, the goods market is linked to the stock market since both consumption and investment expenditures depend on the performance of the stock market. The stock market, in turn, is linked to the goods market since the stock market’s fundamental value depends on national income.As it turns out, national income and stock prices are jointly driven by a two-dimensional nonlinear map and thus there is a bidirectional feedback relation between both variables. Based on analytical and numerical insights, we conclude that interactions between the real economy and the stock market may be harmful to the economy. Speculators may generate complex bull and bear stock market dynamics, leading to fluctuations in economic activity. In addition, fluctuations in economic activity affect the firms’ fundamental values and may amplify stock market dynamics. However, speculative activity may not always be welfare decreasing. Under some conditions, a permanent stock market boom may create a permanent economic boom.The remainder of our paper is organized as follows. In Section2, we introduce our model and relate it to the literature. In Section 3, we present our analytical results, for both isolated and interacting goods and stock markets. In Section 4, we extend our analysis using numerical methods and explain what drives the dynamics of our model. In Section 5, we conclude and point out some extensions for future work.


## 2. A Simple Behavioral Macromodel

We now develop a simple behavioral macromodel which allows us to study interactions between the real economy and the stock market. In Section2.1, we present a Keynesian type goods market setup which represents the model’s real economy. In Section 2.2, we introduce a financial market framework with heterogeneous interacting speculators. Some references to the literature, along with a brief discussion of the model’s main building blocks and some comments, are provided in Section 2.3.


### 2.1. The Goods Market

Our setup for the real economy is as follows. We apply a simple Keynesian goods market approach of a closed economy in which production adjusts with respect to aggregate demand. For simplicity, neither the central bank nor the government seeks to stabilize the economy, that is, the interest rate and governmental expenditure are constant, though such an extension would be straightforward. To establish a link between the real economy and the stock market, private expenditures depend on national income and on the performance of the stock market. Finally, all relations on the goods market are linear.To be precise, national incomeY adjusts to aggregate demand Z with a one-period production lag. If aggregate demand exceeds (falls short of) production, production increases (decreases). Therefore, we write
(2.1)Yt+1=Yt+α(Zt-Yt),
where α>0 captures the goods market adjustment speed. To keep matters as simple as possible, we set α=1. Accordingly, national income in period t equals aggregate demand in period t-1.In a closed economy, aggregate demand is defined as(2.2)Zt=Ct+It+Gt,
where C, I, and G stand for consumption, investment, and government expenditure, respectively.As previously mentioned, government expenditure and the interest rate are constant. Private expenditure increases with national income. Since the financial situation of households and firms depends furthermore on the performance of the stock market, private expenditure also increases with the stock price, which we denote byP (since we only consider one stock market, P may also be interpreted as a stock market index). Based on these considerations, the relation between consumption, investment, and government expenditure and national income and the stock price is specified as
(2.3)Ct+It+Gt=a+bYt+cPt,
where a>0 comprises all autonomous expenditure, 0<b<1 is the marginal propensity to consume and invest from current income, and 0<c<1 is the marginal propensity to consume and invest from current stock market wealth.


### 2.2. The Stock Market

With respect to the stock market, we explicitly model the trading behavior of a market maker and two types of speculators: chartists and fundamentalists. The market maker determines excess demand, clears the market by taking an offsetting long or short position, and adjusts the stock price for the next period. Chartists are either optimistic or pessimistic, depending on market circumstances. In a bull market, chartists optimistically buy stocks. In a bear market, they pessimistically sell stocks. Fundamentalists behave in exactly the opposite way to chartists. Believing that stock prices return towards their fundamental value, they buy stocks in undervalued markets and sell stocks in overvalued markets. Finally, there is also a nonspeculative demand for stocks.The formal apparatus of our stock market approach is as follows. The market maker uses a linear price adjustment rule and quotes the stock price for periodt+1 as
(2.4)Pt+1=Pt+β(DtC+DtF+DtR-N),
where β is a positive price adjustment parameter, DC and DF are the speculative demands of chartists and fundamentalists, respectively, DR is the non-speculative demand, and N is the supply of stocks. Since β is a scaling parameter, we set, without loss of generality, β=1. Since we are primarily interested in the impact of speculative behavior, the non-speculative demand is assumed to be equal to the supply of stocks, that is, DR=N. Accordingly, the market maker increases the stock price if (speculative) excess demand is positive, and vice versa.The stock market’s fundamental value responds, of course, to developments in the real economy. In general, the fundamental value of a firm may be represented by the present value of its current and expected future profits. Assuming, for simplicity, that a firm’s profits per production unit are constant and recalling that the interest rate is also constant, the fundamental value of the stock market is proportional to national income, if the economy is in a steady state. Following this line of thought, speculators perceive the fundamental value within our model to be(2.5)Ft=dYt,
where d is a positive parameter (capturing the true steady-state relation between the fundamental value and national income). In doing so, speculators use the current level of national income as a proxy for expected future levels of national income. In a steady state, speculators’ guess of future levels of national income is correct, and such is their perception of the fundamental value. If the economy is not in a steady state, speculators (may) misperceive the fundamental value. Broadly speaking, they tend to overestimate the fundamental value in good times and underestimate it in bad times.Chartists believe in the persistence of bull and bear markets. Their demand is written as(2.6)DtC=e(Pt-Ft),
where e>0 is a positive reaction parameter. If the stock price is above its (perceived) fundamental value, chartists optimistically take a long position. However, should such a bull market turn into a bear market, chartists’ sentiment switches to pessimism and they enter a short position.In contrast, fundamentalists expect stock prices to return towards their fundamental value over time. Their demand is formalized as(2.7)DtF=f(Ft-Pt)3,
where f>0 is a positive reaction parameter. Fundamentalists’ demand is positive if the market is perceived as undervalued and negative if perceived as overvalued. The motivation for the nonlinear shape of trading rule (2.7) is twofold. Suppose that the perceived mispricing increases. Then, the chance that a fundamental price correction will set in increases as does the potential gain from such a price change—at least in the fundamentalists’ opinion. The aggressiveness of fundamentalists thus increases with the (perceived) mispricing.


### 2.3. Related Literature and Discussion

The literature on financial market models with heterogeneous interacting agents is very rich, as documented by Chiarella et al. [1], Hommes and Wagener [2], Lux [3], and Westerhoff [4]. Our setup for the stock market is inspired by the seminal contribution of Day and Huang [10], who basically started this line of research. In their model, nonlinear interactions between a market maker, chartists, and fundamentalists result in complex bull and bear market dynamics which is quite similar to ours.Empirical evidence for a chartist trading rule such as (2.6) can be found in Boswijk et al. [11]. The functional form of the fundamental trading rule (2.7) is borrowed from Tramontana et al. [12]. However, complex bull and bear market dynamics may also be generated by models in which speculators switch between linear trading rules. For an example in this direction see, for instance, Dieci and Westerhoff [13]. Empirical support for the opinion that financial market participants indeed rely on technical and fundamental analysis is broad and overwhelming: Menkhoff and Taylor [14] summarize evidence obtained from survey studies conducted among market professionals; Hommes [15] reports observations obtained from financial market experiments within controlled laboratory environments; Franke and Westerhoff [16] successfully estimate various models with heterogeneous interacting speculators.In our model, trading rules (2.6) and (2.7) give the positions of chartists and fundamentalists, respectively, and the market maker adjusts prices with respect to the aggregate net positions of speculators. Such a view has also been applied by Hommes et al. [17], for instance. Alternatively, it could be assumed that (2.6) and (2.7) stand for the actual order submission process of chartists and fundamentalists, such as in Lux [18], and that the market maker adjusts stock prices with respect to the resulting net order flow. Of course both approaches have their merits. Here we favor the first view since, in a steady state, in which the stock price does not mirror its (perceived) fundamental value, the speculators’ positions remain constant whereas, with the alternative view, they grow over time (speculators continue submitting orders, which turn their positions increasingly more extreme).Note that both types of speculator believe in the same fundamental value. De Grauwe and Kaltwasser [19] provide an interesting example where speculators disagree about the fundamental value. Such a feature could easily be added to our model. For instance, instead of (2.5) it could be assumed that chartists and fundamentalists use their own rules to compute the fundamental value. In particular, chartists’ mood could bias their perception of the fundamental value (e.g., they may optimistically perceive higher fundamental values if prices increase). Note, furthermore, that speculators use in (2.5) only the last observed value of national income as a proxy for the future level of national income. Alternatively, it could be assumed that they use a smoothed measure of past observations of national income to enhance their prediction of the course of the economy. However, since we found that this does not affect our main results, we abstain from such a setup.A central feature of our model is the relation between the real economy and the stock market. On the one hand, the stock market’s fundamental value evolves, as in reality, with respect to developments in the real economy (our approach is essentially adopted from [20] textbook). Via this channel, the real economy is connected with the stock market and economic booms and recessions have an impact on the stock market. On the other hand, the performance of the stock market influences consumption and investment expenditures (see again [20] textbook). Via this channel, the stock market is connected with the real economy and stock market bubbles and crashes have an impact on national income. Due to this bidirectional feedback structure, there is a potential for coevolving stock market and national income dynamics. As will become clear, one may change the details of the model but as long as this bidirectional feedback structure remains present in the model, the main result of the paper, namely that stock market bubbles and crashes stimulate macroeconomic booms and recessions and that macroeconomic booms and recessions stimulate stock market bubbles and crashes, will survive.Otherwise, our goods market model is rather standard and corresponds to a basic multiplier model. Instead of (2.1), in which production in time step t+1 depends on the goods market’s excess demand in period t, it could alternatively be assumed that the goods market clears at every time step and that current consumption and investment expenditure depend on national income and the stock price of the previous period. Exactly the same dynamical system would then be obtained. In addition, an accelerator term could be added to the investment function, as in Samuelson [21]. Preliminary numerical investigations reveal that the model dynamics may become even more interesting, but that also the main results of our paper could become blurred and less easy to grasp.There are only a few related models to ours. In a more computationally oriented framework, Lengnick and Wohltmann [22] combine a New Keynesian macromodel with a stochastic agent-based financial market model and explore the consequences of transaction taxes. For a related approach, see also Scheffknecht and Geiger [23]. Simpler, yet also very attractive models have been proposed by Asada et al. [24], Bask [25], and Charpe et al. [26], who are particularly concerned with the effectiveness of monetary and fiscal policy rules in the presence of heterogeneous stock market speculators. Despite these recent efforts, this field seems to be widely under-researched. Our setup is even simpler than the aforementioned contributions. As we will see in the remainder of the paper, this allows us a more or less complete investigation of the impact of speculative stock market dynamics on the real economy.


## 2.1. The Goods Market

Our setup for the real economy is as follows. We apply a simple Keynesian goods market approach of a closed economy in which production adjusts with respect to aggregate demand. For simplicity, neither the central bank nor the government seeks to stabilize the economy, that is, the interest rate and governmental expenditure are constant, though such an extension would be straightforward. To establish a link between the real economy and the stock market, private expenditures depend on national income and on the performance of the stock market. Finally, all relations on the goods market are linear.To be precise, national incomeY adjusts to aggregate demand Z with a one-period production lag. If aggregate demand exceeds (falls short of) production, production increases (decreases). Therefore, we write
(2.1)Yt+1=Yt+α(Zt-Yt),
where α>0 captures the goods market adjustment speed. To keep matters as simple as possible, we set α=1. Accordingly, national income in period t equals aggregate demand in period t-1.In a closed economy, aggregate demand is defined as(2.2)Zt=Ct+It+Gt,
where C, I, and G stand for consumption, investment, and government expenditure, respectively.As previously mentioned, government expenditure and the interest rate are constant. Private expenditure increases with national income. Since the financial situation of households and firms depends furthermore on the performance of the stock market, private expenditure also increases with the stock price, which we denote byP (since we only consider one stock market, P may also be interpreted as a stock market index). Based on these considerations, the relation between consumption, investment, and government expenditure and national income and the stock price is specified as
(2.3)Ct+It+Gt=a+bYt+cPt,
where a>0 comprises all autonomous expenditure, 0<b<1 is the marginal propensity to consume and invest from current income, and 0<c<1 is the marginal propensity to consume and invest from current stock market wealth.


## 2.2. The Stock Market

With respect to the stock market, we explicitly model the trading behavior of a market maker and two types of speculators: chartists and fundamentalists. The market maker determines excess demand, clears the market by taking an offsetting long or short position, and adjusts the stock price for the next period. Chartists are either optimistic or pessimistic, depending on market circumstances. In a bull market, chartists optimistically buy stocks. In a bear market, they pessimistically sell stocks. Fundamentalists behave in exactly the opposite way to chartists. Believing that stock prices return towards their fundamental value, they buy stocks in undervalued markets and sell stocks in overvalued markets. Finally, there is also a nonspeculative demand for stocks.The formal apparatus of our stock market approach is as follows. The market maker uses a linear price adjustment rule and quotes the stock price for periodt+1 as
(2.4)Pt+1=Pt+β(DtC+DtF+DtR-N),
where β is a positive price adjustment parameter, DC and DF are the speculative demands of chartists and fundamentalists, respectively, DR is the non-speculative demand, and N is the supply of stocks. Since β is a scaling parameter, we set, without loss of generality, β=1. Since we are primarily interested in the impact of speculative behavior, the non-speculative demand is assumed to be equal to the supply of stocks, that is, DR=N. Accordingly, the market maker increases the stock price if (speculative) excess demand is positive, and vice versa.The stock market’s fundamental value responds, of course, to developments in the real economy. In general, the fundamental value of a firm may be represented by the present value of its current and expected future profits. Assuming, for simplicity, that a firm’s profits per production unit are constant and recalling that the interest rate is also constant, the fundamental value of the stock market is proportional to national income, if the economy is in a steady state. Following this line of thought, speculators perceive the fundamental value within our model to be(2.5)Ft=dYt,
where d is a positive parameter (capturing the true steady-state relation between the fundamental value and national income). In doing so, speculators use the current level of national income as a proxy for expected future levels of national income. In a steady state, speculators’ guess of future levels of national income is correct, and such is their perception of the fundamental value. If the economy is not in a steady state, speculators (may) misperceive the fundamental value. Broadly speaking, they tend to overestimate the fundamental value in good times and underestimate it in bad times.Chartists believe in the persistence of bull and bear markets. Their demand is written as(2.6)DtC=e(Pt-Ft),
where e>0 is a positive reaction parameter. If the stock price is above its (perceived) fundamental value, chartists optimistically take a long position. However, should such a bull market turn into a bear market, chartists’ sentiment switches to pessimism and they enter a short position.In contrast, fundamentalists expect stock prices to return towards their fundamental value over time. Their demand is formalized as(2.7)DtF=f(Ft-Pt)3,
where f>0 is a positive reaction parameter. Fundamentalists’ demand is positive if the market is perceived as undervalued and negative if perceived as overvalued. The motivation for the nonlinear shape of trading rule (2.7) is twofold. Suppose that the perceived mispricing increases. Then, the chance that a fundamental price correction will set in increases as does the potential gain from such a price change—at least in the fundamentalists’ opinion. The aggressiveness of fundamentalists thus increases with the (perceived) mispricing.


## 2.3. Related Literature and Discussion

The literature on financial market models with heterogeneous interacting agents is very rich, as documented by Chiarella et al. [1], Hommes and Wagener [2], Lux [3], and Westerhoff [4]. Our setup for the stock market is inspired by the seminal contribution of Day and Huang [10], who basically started this line of research. In their model, nonlinear interactions between a market maker, chartists, and fundamentalists result in complex bull and bear market dynamics which is quite similar to ours.Empirical evidence for a chartist trading rule such as (2.6) can be found in Boswijk et al. [11]. The functional form of the fundamental trading rule (2.7) is borrowed from Tramontana et al. [12]. However, complex bull and bear market dynamics may also be generated by models in which speculators switch between linear trading rules. For an example in this direction see, for instance, Dieci and Westerhoff [13]. Empirical support for the opinion that financial market participants indeed rely on technical and fundamental analysis is broad and overwhelming: Menkhoff and Taylor [14] summarize evidence obtained from survey studies conducted among market professionals; Hommes [15] reports observations obtained from financial market experiments within controlled laboratory environments; Franke and Westerhoff [16] successfully estimate various models with heterogeneous interacting speculators.In our model, trading rules (2.6) and (2.7) give the positions of chartists and fundamentalists, respectively, and the market maker adjusts prices with respect to the aggregate net positions of speculators. Such a view has also been applied by Hommes et al. [17], for instance. Alternatively, it could be assumed that (2.6) and (2.7) stand for the actual order submission process of chartists and fundamentalists, such as in Lux [18], and that the market maker adjusts stock prices with respect to the resulting net order flow. Of course both approaches have their merits. Here we favor the first view since, in a steady state, in which the stock price does not mirror its (perceived) fundamental value, the speculators’ positions remain constant whereas, with the alternative view, they grow over time (speculators continue submitting orders, which turn their positions increasingly more extreme).Note that both types of speculator believe in the same fundamental value. De Grauwe and Kaltwasser [19] provide an interesting example where speculators disagree about the fundamental value. Such a feature could easily be added to our model. For instance, instead of (2.5) it could be assumed that chartists and fundamentalists use their own rules to compute the fundamental value. In particular, chartists’ mood could bias their perception of the fundamental value (e.g., they may optimistically perceive higher fundamental values if prices increase). Note, furthermore, that speculators use in (2.5) only the last observed value of national income as a proxy for the future level of national income. Alternatively, it could be assumed that they use a smoothed measure of past observations of national income to enhance their prediction of the course of the economy. However, since we found that this does not affect our main results, we abstain from such a setup.A central feature of our model is the relation between the real economy and the stock market. On the one hand, the stock market’s fundamental value evolves, as in reality, with respect to developments in the real economy (our approach is essentially adopted from [20] textbook). Via this channel, the real economy is connected with the stock market and economic booms and recessions have an impact on the stock market. On the other hand, the performance of the stock market influences consumption and investment expenditures (see again [20] textbook). Via this channel, the stock market is connected with the real economy and stock market bubbles and crashes have an impact on national income. Due to this bidirectional feedback structure, there is a potential for coevolving stock market and national income dynamics. As will become clear, one may change the details of the model but as long as this bidirectional feedback structure remains present in the model, the main result of the paper, namely that stock market bubbles and crashes stimulate macroeconomic booms and recessions and that macroeconomic booms and recessions stimulate stock market bubbles and crashes, will survive.Otherwise, our goods market model is rather standard and corresponds to a basic multiplier model. Instead of (2.1), in which production in time step t+1 depends on the goods market’s excess demand in period t, it could alternatively be assumed that the goods market clears at every time step and that current consumption and investment expenditure depend on national income and the stock price of the previous period. Exactly the same dynamical system would then be obtained. In addition, an accelerator term could be added to the investment function, as in Samuelson [21]. Preliminary numerical investigations reveal that the model dynamics may become even more interesting, but that also the main results of our paper could become blurred and less easy to grasp.There are only a few related models to ours. In a more computationally oriented framework, Lengnick and Wohltmann [22] combine a New Keynesian macromodel with a stochastic agent-based financial market model and explore the consequences of transaction taxes. For a related approach, see also Scheffknecht and Geiger [23]. Simpler, yet also very attractive models have been proposed by Asada et al. [24], Bask [25], and Charpe et al. [26], who are particularly concerned with the effectiveness of monetary and fiscal policy rules in the presence of heterogeneous stock market speculators. Despite these recent efforts, this field seems to be widely under-researched. Our setup is even simpler than the aforementioned contributions. As we will see in the remainder of the paper, this allows us a more or less complete investigation of the impact of speculative stock market dynamics on the real economy.


## 3. Analytical Results

We are now able to derive our analytical results. To establish a benchmark model, we first explore the case in which the goods market and the stock market are decoupled. Then, we are ready to study the complete model. Finally, we compare some properties of the steady states of the benchmark model with those of the complete model. These properties include the levels of the steady states, their stability and, in case of the stock prices, potential mispricings.Our results with respect to isolated goods and stock markets are summarized in Proposition3.1 (proofs are given in Appendix A).Proposition 3.1 (isolated goods and stock markets).
Suppose first thatPt=P~. National income is then driven by the one-dimensional linear map Yt+1=a+bYt+cP~. Its unique steady state Y*=(a+cP~)/(1-b) is positive, globally stable, and, after an exogenous shock, always monotonically approached. Suppose now that Yt=Y~. The stock price is then determined by the one-dimensional nonlinear map Pt+1=Pt+e(Pt-dY~)+f(dY~-Pt)3. There are three coexisting steady states P1*=dY~ and P2,3*=P1*±e/f. Steady state P1* is positive, yet unstable. Steady states P2,3* are positive for dY~>e/f and locally stable for e<1.Let us briefly discuss Proposition3.1. To decouple the goods market from the stock market, we hold the stock price constant, that is, we set Pt=P~. According to Proposition 3.1, the goods market dynamics is then trivial. National income is due to a one-dimensional linear map and its unique steady state is positive and reminiscent of the classical Keynesian multiplier solution, with 1/(1-b) as the multiplier and a+cP~ as the autonomous expenditure. In addition, the steady state is globally stable. After an exogenous shock, national income always converges monotonically towards Y*. Since isolated goods markets are unable to produce endogenous business cycles, the real economy may be regarded as a stable system.The stock market is separated from the goods market by fixing the level of national income, that is,Yt=Y~. As a result, the stock price evolves according to a one-dimensional nonlinear map and possesses three coexisting steady states. Steady state P1* is obviously positive. To satisfy that steady states P2,3*>0, Y~ has to be sufficiently large, that is,dY~>e/f. Note that the distance between P1* and P2,3* increases with the chartists’ reaction parameter and decreases with the fundamentalists’ reaction parameter. Moreover, the inner steady state P1* is unstable while the stability of the two outer steady states P2,3* depends solely on chartists’ aggressiveness. For e>1, all steady states are unstable. The impact of chartists and fundamentalists on market efficiency will be discussed in more detail in connection with Propositions 3.2 and 3.3 and the numerical evidence presented in Section 4.Our results with respect to interacting goods and stock markets are presented in Proposition3.2 (proofs are given in Appendix B).Proposition 3.2 (interacting goods and stock markets).
The dynamics of the complete model is due to a two-dimensional nonlinear map, given byYt+1=a+bYt+cPt and Pt+1=Pt+e(Pt-dYt)+f(dYt-Pt)3. This map has three coexisting steady statesY-1=a/(1−b−cd), P-1=dY-1and Y-2,3=Y-1±(c/(1-b-cd))e/f, P-2,3=P-1±((1-b)/(1-b-cd))e/f. All steady states of the model are positive if b+cd<1 and if a is sufficiently large. Given these requirements, steady state (Y-1,P-1) is unstable whereas steady states (Y-2,3,P-2,3) are locally stable for e<(1+b)/(1+b+cd).As stated in Proposition3.2, national income and stock prices are simultaneously determined by the iteration of a two-dimensional nonlinear map. This map has three steady states. To ensure that all steady states of the model are positive, we assume that b+cd<1 and that a is sufficiently large. One steady state, (Y-1,P-1), is always unstable. The other two steady states, (Y-2,3,P-2,3), are locally stable if e<(1+b)/(1+b+cd). Hence, the upper limit for parameter e, which still ensures the local stability of (Y-2,3,P-2,3), increases with parameter b and decreases with parameters c and d. Note also that the distance between Y-1 and Y-2,3, as well as the distance between P-1 and P-2,3, increases with parameters b, c, d, and e, and decreases with parameter f.The latter observations have some important consequences. Suppose, for ease of exposition, thatd=1. Then it is easy to see that a decrease in b and a simultaneous increase in c of the same magnitude (say b-δ and c+δ) drives the outer steady-state values (Y-2,3,P-2,3) farther away from the (constant) inner steady-state values (Y-1,P-1). Via this chain, the strength of the bidirectional feedback relation between the real economy and the stock market can thus be calibrated. Clearly, the mutual relation between the real economy and the stock market may be turned weaker or stronger by adjusting b and c.Finally, we compare some properties of the steady states of the benchmark model with those of the complete model.Proposition 3.3 (comparison of steady state properties).
Suppose thatY~=Y* and that P~=P1*. The steady state of the isolated goods market is then given by Y*=a/(1-b-cd) and the steady states of the isolated stock market are P1*=ad/(1-b-cd) and P2,3*=P1*±e/f. Ordering the steady states’ levels reveals that Y-3<Y-1=Y*<Y-2 and that P-3<P3*<P-1=P1*<P2*<P-2. With respect to the steady states’ stability, Y* is globally stable while Y-1 is unstable. Moreover, local stability of P2,3* requires e<1, but P-2,3 are only stable for e<(1+b)/(1+b+cd)<1. Since the true fundamental values result in F*=dY* and F-1,2,3=dY-1,2,3, the steady states’ mispricings are P1*−F*=P-1−F-1=0 and P2,3*−F*=P-2,3−F-2,3=±e/f.Let us first clarify what lies behind the assumptionsY~=Y* and P~=P1*. As we will see, these assumptions allow us to compare the steady states of the benchmark model with those of the complete model. Economically, Y~=Y* may be interpreted in the sense that speculators in the benchmark stock market model use the steady state value of the benchmark goods market model to compute the (constant) value of the fundamental value. As a result, the inner steady state value of the benchmark stock market model is transformed into P1*=dY*. In combination with the assumption P~=P1*, which relates part of the autonomous consumption and investment expenditures to the inner steady-state value of the benchmark stock market model, the steady-state value of the benchmark goods market model can be expressed as Y*=a/(1-b-cd), and, therefore, the inner steady state of the benchmark stock market model can be written as P1*=ad/(1-b-cd). Accordingly, we have Y*=Y-1 and P1*=P-1, which seems to be a reasonable starting point for comparing Propositions 3.1 and 3.2.A complete ordering of the steady-state values reveals that the unique steady state of national income of the benchmark model is equal to the inner steady state of the complete model and that the other two national income steady states of the complete model are located around them. For the stock market, the inner steady state of the benchmark model corresponds with the inner steady state of the complete model. However, the outer steady states of the complete model are further away from the inner steady state than is the case for the benchmark model. Put differently, interactions between the goods market and the stock market make the model’s steady-state levels more extreme (as discussed in connection with Proposition3.2).What about the stability domain of these steady states? The unique national income steady state of the benchmark model is globally stable. By contrast, the inner national income steady state of the complete model is unstable. The inner stock market steady states of the benchmark model and the complete model are both unstable. However, the stability condition for the outer two steady states of the complete model is stricter than that for the benchmark model. Overall, interactions between the goods market and the stock market decrease the stability domain of the model’s steady states.Note that the steady states for the fundamental value follow directly fromFt=dYt. Therefore, we have F*=dY* for the benchmark model and F-1,2,3=dY-1,2,3 for the complete model. It becomes immediately apparent that the inner stock market steady states of the benchmark model and the complete model are unbiased, that is they are equal to the true fundamental value. This is not the case in the outer stock market steady states. However, mispricings in the outer steady states of the benchmark model are not different to those in the complete model.From this perspective, the role played by interactions between the goods market and the stock market for the efficiency of the economy is not completely clear. Instead of having a unique and globally attracting goods market steady state, national income has three steady states. One of these steady states, corresponding to the unique steady state of the benchmark model, is unstable. The other two steady states are locally stable, as long as the chartists’ reaction parameter is not too high. In addition, the local stability of the stock market steady states decreases in the presence of market interactions, that is, the critical threshold which ensures local stability is lower with market interactions than without them. However, the realized mispricings in the two outer stock market steady states of the complete model are identical to those in the benchmark model, although stock prices are further away from the inner stock market steady state. The reason is that the multiple steady states of national income of the complete model imply also multiple steady states for the fundamental value. Note also that a distorted stock market steady state located above the unbiased stock market steady state might be beneficial for the national income steady state. However, the fate of the economy is decided by its initial conditions, that is the economy may also end up in the lower stock market steady state, and national income would then be permanently lower.


## 4. Numerical Results

In this section, we turn to the simulation part of our analysis to illustrate and extend our analytical results. Before exploring the complete model, we first inspect the benchmark model. Unless otherwise stated, all of our simulations are based on following parameter setting:(4.1)a=3,b=0.95,c=0.02,d=1,e=1.63,f=0.3.
In addition, we set Y~=100 and P~=100 for the benchmark model, implying Y*=Y-1=100 and P1*=P-1=100. Note that this corresponds to the scenario of Proposition 3.3, enabling us to undertake a closer comparison of the dynamics of the benchmark model with that of the complete model.Let us start with Figure1, which contains the dynamics of isolated goods and stock markets. The top left panel depicts the development of national income, after an exogenous shock in the first period. As already stated in Proposition 3.1, national income converges monotonically towards its steady-state value. The underlying economic story behind the dynamics is that of the well-known Keynesian multiplier model. After a shock to national income of, say, plus 1 percent, private expenditure and thus national income are b percent above their steady-state values, followed by a positive deviation of b2 percent, and so on, until the shock is completely digested. The top right panel shows the dynamics of national income at time step t versus national income at time step t-1. After a transient phase only a single point remains: the steady-state value of national income. Clearly, without exogenous shocks the goods market dynamics dies out.Figure 1
The dynamics of isolated goods and stock markets. Parameter setting as in Section4. Bifurcation parameters as indicated on the axis.The center left panel of Figure1 shows the evolution of the stock price (the selected initial condition is close to the fundamental steady state and a longer transient has been erased. However, also other initial conditions, that is, prices between, say, 97 to 103, lead to the same qualitative results). Since e>1, all steady states of the stock market model are unstable. Instead of a price explosion, however, intricate bull and bear market dynamics emerge, that is, erratic up and down fluctuations in the bull market irregularly alternate with erratic up and down fluctuations in the bear market. In (Pt,Pt-1)-space, an S-shaped strange attractor can be detected, indicating that the stock market dynamics is chaotic.The dynamics of the isolated stock market may be understood as follows. Suppose that the stock market is slightly overvalued. In such a situation, chartists go long and fundamentalists go short. Due to our parameter setting and the fundamentalists’ nonlinear trading rule, excess demand is positive and, as a result, the market maker increases the stock price. Should excess demand still be positive in the next trading period, the market maker quotes an even higher price. Eventually, however, the nonlinearity of the fundamental trading rule kicks in and initiates a change in market powers. Increasingly aggressive fundamentalists render excess demand negative, causing a drop in the stock market. Afterwards, chartists dominate the market again and the stock price starts to recover. As it turns out, these up and down movements are repeated, albeit in a complex manner.Occasionally, a bull market turns into bear market. Note that if the stock price is very high, fundamentalists take significant short positions. Excess demand may then be so negative that, due to the market maker’s price adjustment rule, the stock price falls below its fundamental value. In such a situation, chartists turn pessimistic and a period of bear market dynamics sets in. By analogous arguments, a bear market may turn into a bull market if the stock price falls very low. Fundamentalists then enter massive long positions, causing a substantial positive excess demand, and thus the market maker is prompted to increase the stock price sharply. Once the stock price exceeds the (perceived) fundamental value, chartists turn optimistic, and their buying behavior starts the next bull market.The bottom two panels of Figure1 display two bifurcation diagrams. Here the dynamics of the stock market is plotted for the chartists’ reaction parameter, ranging from 0 to 2, and two sets of initial conditions. As indicated by Proposition 3.1, there are three coexisting steady states and, for e<1, two of them are locally stable. Initial conditions then decide whether the stock market is permanently undervalued or overvalued. Our analytical results end at e=1, yet the bifurcation diagrams show what happens if the chartists’ reaction parameter increases further. As can be seen, two period-two cycles emerge—one located in the bull market and the other in the bear market—each followed by a period-four cycle. A finer resolution would furthermore indicate a sequence of period-doubling bifurcations, leading eventually to complex dynamics, again either located above or below the fundamental value. At around e=1.6, these separated bull and bear market dynamics dissolve and we observe fluctuations similar to those depicted in the central line of panels. From this point of view, it seems that increasingly aggressive chartists destabilize the underlying economic system.We now investigate the dynamics of the complete model of which Figure2 provides an example. The first two panels show the course of national income and the stock price, respectively. The dynamics are depicted after a longer transient period, and initial conditions have been selected close to the fundamental steady state (obviously, initial conditions matter in the presence of multiple attractors (see, e.g, Figure 3), but they do play (almost) no role for the current parameter setting. As long as the initial conditions are selected from the range where the dynamics depicted in Figure 2 actually takes place, they have, after a transient has been erased, no qualitative impact on the model dynamics). Irregular fluctuations in economic activity, resembling at least to some degree actual business cycles, coevolve with complex bull and bear market dynamics (recall that the fluctuations of isolated goods market die out over time and that the fluctuations of isolated stock markets range between 97 and 103 (see Figure 1). In the complete model, however, national income fluctuates between 99 and 101 while stock price fluctuate between 96 and 104. As mentioned in connection with Proposition 3.2, the strength of the bidirectional feedback relation between the real economy and the stock market may be increased by changing b and c. For instance, for b=0.9 and c=0.07, national income fluctuates already between 96 and 104 and stock prices between 93 and 107). The bottom two panels of Figure 2 illustrate the complexity involved in the dynamics. In the bottom right panel, we plot the stock price at time step t versus the stock price at time step t-1. This panel can be compared with the centre right panel of Figure 1. As we see, the previously S-shaped strange attractor turns into a more complicated, yet still S-shaped object. The bottom right panel of Figure 2 shows the stock price at time step t versus national income at time step t. As to be expected, a strange attractor emerges for the model’s two state variables, also indicating a positive relation between stock prices and national income.Figure 2
The dynamics of interacting goods and stock markets. Parameter setting as in Section4.Figure 3
Speculative forces and the dynamics of the complete model. Parameter setting as in Section4. Bifurcation parameters as indicated on the axis.What drives these dynamics? First of all, the stock price is determined as in the benchmark model, with one crucial exception. Now the (perceived) fundamental value changes over time. Suppose again that the stock price is slightly above the fundamental value so that interactions between chartists and fundamentalists initiate a period of complex bull market dynamics. In contrast to the benchmark model, in which these fluctuations are contained within a certain (constant) range, the range of price fluctuations now shifts gradually upwards. Due to the bull market, private expenditure increases and thus there is an economic expansion. Consequently, speculators perceive a higher fundamental value and therefore the range of the bullish price fluctuations increases. If the stock market eventually crashes, consumption and investment expenditure start to shrink again, sending the economy to a recession. Now speculators perceive comparably lower levels of the fundamental value, which drags the stock market even further down—till a major price correction takes place and the stock market enters the next (temporary) bull regime.In Figure3, we explore how the chartists’ and fundamentalists’ reaction parameters affect the dynamics. The left-hand panels show bifurcation diagrams for the stock price and the right-hand panels for national income. The chartists’ reaction parameter varies, as in Figure 1 for the benchmark model, from 0 to 2. Due to multistability, two bifurcation diagrams are given for different sets of initial conditions. As stated in Proposition 3.2, there are three coexisting steady states, two of which are locally stable for e<(1+b)/(1+b+cd)≈0.989, as can be seen in Figure 3. Afterwards, a sequence of period-doubling bifurcations emerges, followed first by complex motion restricted to either the bull or the bear market and then ranging across both regions.A few aspects deserve our attention. First, the steady-state values of the stock prices are further fromP-1=100 than they are in the benchmark model to P1*=100, as reported in Proposition 3.3. However, the same is true for the subsequent regular and irregular dynamics, as long as they are restricted to the bull or bear market regions. Second, for e>1.6, stock prices visit less extreme regions. Of course, stock prices are still highly volatile, but it may be argued that chartists’ high reaction parameters prevent stock prices at least from reaching extreme values. Third, all these phenomena carry over to the goods market. In the benchmark model, there is always a monotonic convergence towards the steady state. In the complete model, there are locally stable steady states, coexisting regular or irregular motions either above or below Y-1=100, and complex dynamics fluctuating across bull and bear market regions (this is different to Figure 1, bottom panels, where an increase in chartists’ aggressiveness always increases the amplitude of stock price fluctuations).Assessing the effect of stock market speculation on national income is not trivial. Market interactions clearly render the goods market steady state unstable, but national income may, due to a persistent stock market boom, remain permanently aboveY-1=100. In addition, for e>1.6 the evolution of national income is more balanced (i.e., centered around Y-1=100) than before. The explanation is rather simple. Most importantly, the adjustment process on the goods market takes time. After the start of a stock market boom, national income improves. However, the adjustment process may be interrupted by a stock market collapse, preventing national income from reaching high values. This is, of course, different to situations where the stock market remains permanently in a bull market. National income and the (perceived) fundamental value then have sufficient time to settle at higher values. In this sense, it is not entirely straightforward whether the economy really benefits from more or less speculative activity.The bottom two panels of Figure3 present the consequences of an increase in fundamentalists’ aggressiveness. Since there is no evidence of multi-stability, only one set of initial conditions is used. As can be seen, the greater the aggressiveness of fundamentalists, the lower the amplitude of business cycles and stock market fluctuations. In this sense, more aggressive fundamentalists stabilize the dynamics. Nonetheless, fundamentalists are unable to bring the dynamics to a complete rest since the stability of the model’s steady states is independent of parameter f.Figure4 contains bifurcation diagrams for the remaining model parameters. On the left we see results for the stock market and on the right for the goods market. An increase in autonomous expenditures a increases P-1 and Y-1, as evident from Proposition 3.2, pushing the dynamics upwards. A similar effect is observed for parameters b and c, caused here by a larger multiplier. Finally, an increase in g also stimulates P-1 and Y-1, leading to fluctuations at a higher level. Overall, the dynamics presented in Figure 2 seem to be rather robust since neither a change in a, b, c, or d in the selected parameter space of Figure 4 destroys the emergence of endogenous dynamics.Figure 4
Real forces and the dynamics of the complete model. Parameter setting as in Section4. Bifurcation parameters as indicated on the axis.


## 5. Conclusions

So far, the main focus of agent-based financial market models is on the dynamics of financial markets and (virtually) nothing is said about how the dynamics of financial markets impacts on the real economy and, likewise, how changes in the real economy affect financial markets. In this paper, we therefore propose a simple behavioral macromodel, enabling us to explore at least some feedback causalities between the real economy and the stock market. The real economy is approximated by a Keynesian type goods market model in which consumption and investment expenditure depend on national income and the performance of the stock market—which links the stock market with the real economy. Our nonlinear stock market approach explicitly recognizes the trading activity of heterogeneous speculators, chartists, and fundamentalists. Since the fundamental value of the stock market is related to national income, the real economy is linked to the stock market. Ultimately, this establishes a bidirectional feedback structure between the real economy and the stock market and a first starting point for studying interactions between these two economic subsystems.As it turns out, national income and stock prices are jointly determined by a two-dimensional nonlinear map. The model has three coexisting steady states. The inner steady state, in which national income corresponds to the well-known Keynesian multiplier solution and the stock price to its true fundamental value, is unstable. The two other steady states, located around the inner steady state, are locally stable as long as the chartists’ trading intensity is not too high. Initial conditions then decide whether the economy will enter a permanent boom or a permanent recession. The first scenario is associated with a stock market boom in which stock prices exceed their fundamental value. In the second scenario, the stock market is in a crisis and stock prices fall below the fundamental value. If the local stability of the steady states is destroyed by too aggressive chartists, we observe the emergence of two coexisting period-two cycles, followed by two coexisting period-four cycles, and so on, until there are two coexisting regimes with complex dynamics, either located at a low or high national income and stock price level. If chartists become even more aggressive, we observe intricate switches between bull and bear stock market dynamics, which may then trigger fluctuations in economic activity. Overall, interactions between the real economy and the stock market appear to be destabilizing. This becomes particularly clear if our model is compared which a benchmark model in which interactions are ruled out. Then the unique steady state of the real economy is globally stable, and the stability condition for the two locally stable stock market steady states is less strict.Given that our model is extremely simple, it may be extended in various directions. For instance, the case may be considered that the central bank conducts active monetary policy by adjusting the interest rate to influence private expenditure, national income, and, more indirectly, the stock market. Similarly, the case could be considered that the government relies on countercyclical-fiscal policy rules to stabilize the economy. Another direction to extend our model could be to enrich the goods market. For instance, an accelerator term could be added to the investment function. Preliminary numerical evidence reveals that the goods market may then, at least temporarily, decouple from the evolution of the stock market. Alternatively, one may assume that consumer and investor expenditure are subject to their sentiments. Then one would obtain a model with animal spirits in the goods market and stock market, and both economic subsystems would possess a nonlinearity. Moreover, a time step in the goods market part of our model currently corresponds to a time step in the stock market part of the model. One extension of our model could be to allow for a higher trading frequency in the stock market. Note also that speculators in our model do not switch between trading strategies. This may be modified by introducing switching dynamics into the model. For instance, a speculator’s choice of a trading rule may depend on the rules’ past fitness. Of course, our model could be developed in various other dimensions.Here we have proposed a rather simple model to improve our basic understanding of interactions between the real economy and the stock market. Changes to our model will, as usual, have an impact on its properties. However, as long as the (quite natural) bidirectional feedback structure between the real economy and the stock market prevails in the model, stock market bubbles and crashes will stimulate macroeconomic booms and recessions and macroeconomic booms and recessions will stimulate stock market bubbles and crashes. We hope that our paper will motivate others to undertake more work in this important research direction.



---

*Source: 504840-2012-07-05.xml*