Analytic solutions in a continuous-time financial market model
Zsolt Bihary, Attila Andr\'as V\'ig

TL;DR
This paper introduces a continuous-time heterogeneous agent market model with fundamental traders and chartists, providing analytical solutions for stability, mean reversion, and strategy profitability, advancing understanding of market dynamics.
Contribution
It offers a novel analytical framework for stochastic market models with heterogeneous agents, enabling explicit stability and profitability analysis.
Findings
More prevalent trader types achieve higher returns
Conditions for price stability and mean reversion are derived
Analytic formulas link population ratios to market outcomes
Abstract
We propose a heterogeneous agent market model (HAM) in continuous time. The market is populated by fundamental traders and chartists, who both use simple linear trading rules. Most of the related literature explores stability, price dynamics and profitability either within deterministic models or by simulation. Our novel formulation lends itself to analytic treatment even in the stochastic case. We prove conditions for the (stochastic) stability of the price process, and also for the price to mean-revert to the fundamental value. Assuming stability, we derive analytic formulae on how the population ratios influence price dynamics and the profitability of the strategies. Our results suggest that whichever trader type is more present in the market will achieve higher returns.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsComplex Systems and Time Series Analysis · Financial Markets and Investment Strategies · Financial Risk and Volatility Modeling
Working paper
Analytic solutions in a continuous-time financial market model
Zsolt Bihary111associate professor at the Department of Finance, Corvinus University of Budapest
Attila A. Víg222PhD student at the Department of Finance, Corvinus University of Budapest.
email: [email protected]
This research was supported by the Higher Education Institutional Excellence Program of the Ministry of Human Capacities in the framework of the ‘Financial and Public Services’ research project (1783-3/2018/FEKUTSTRAT) at Corvinus University of Budapest.
Abstract
We propose a heterogeneous agent market model (HAM) in continuous time. The market is populated by fundamental traders and chartists, who both use simple linear trading rules. Most of the related literature explores stability, price dynamics and profitability either within deterministic models or by simulation. Our novel formulation lends itself to analytic treatment even in the stochastic case. We prove conditions for the (stochastic) stability of the price process, and also for the price to mean-revert to the fundamental value. Assuming stability, we derive analytic formulae on how the population ratios influence price dynamics and the profitability of the strategies. Our results suggest that whichever trader type is more present in the market will achieve higher returns.
Journal of Economic Literature (JEL) code: G11, G17.
1 Introduction
Heterogeneous agent models have enjoyed great success in explaining financial market phenomena such as fat tails in return distribution, long-range dependence in volatility, and time series momentum and reversal. [2] were among the first to have shown how boundedly rational agents with heterogeneous beliefs can cause market instability when placed into an evolutionary context. Their discrete time model gave rise to a wide range of models with interacting agents using different expectation schemes (see for example [10], [3] and [4]).
Building on the discrete time framework, a number of continuous-time models have been proposed recently. Continuous-time models are advantageous when certain delayed variables take part of the system, and they offer more hope for analytic results. [8] examine the effect of different lag lengths of moving average rules technical analysts or “chartists” use as forecast. [9] find that an increase in memory length by the chartists not only can destabilize the market price, but can also stabilize an otherwise unstable market price, leading to stability switching as the memory length increases. [5] show that with the presence of adaptive heterogeneous agents, a rational route to market instability arises, and the adaptive switching behavior of agents can increase market price fluctuations. [6] find that the performance of momentum strategy is determined by both time horizon and the market dominance of momentum traders.
A recurring theme in the papers cited is that market stability is examined on the “deterministic skeleton” of the otherwise stochastic model, while profitability of the strategies is evaluated by numerical simulations. In this paper we handle both areas of interest analytically in a stochastic setting. We propose a simple linear stochastic model with heterogeneous agents in continuous time. The interacting agents are the usual fundamental traders and chartists. Market price is arrived at by a market maker scenario. We define market stability as the asymptotic stationarity of certain well-suited processes, and prove conditions for the market to be stable. Given stability, we show how the strategic parameters and population ratios of the traders affect the asymptotic stochastic behavior of the market. We also give analytic formulae for the appropriately defined profitability of the two strategies – still in a stochastic setting. Our preliminary results suggest that whichever trader is more present on the market, will achieve higher returns in the long run.
2 Model
In this section, we establish an asset pricing model with heterogeneous agents in continuous time. The approach we take is similar to that of [9] and [5], among others, and is standard in the heterogeneous agent modeling literature. We incorporate investor heterogeneity and bounded rationality, and examine their effects to the market price behavior.
The model consists of four agents: fundamental traders, who take positions according to the fundamental value; chartists, who take positions according to time series momentum; noise traders, who provide an additional stochastic component in the model; and a market maker, who gathers the positions of the traders and adjusts the price accordingly. The fundamental traders and the chartists are interacting agents, while the noise traders and the market maker are modeled as latent agents.
The financial market we consider consists of a single risky asset (that we think of as the stock market index), and a single risk-free asset (that we think of as the money market account). The interacting agents build a portfolio of these two assets. We focus on the market price dynamics itself, and thus we keep the agents’ utility maximization problem in the background, and model their portfolio choice directly.
2.1 Fundamental traders
Let be a probability space, let be a two dimensional Wiener process with independent components representing two different (fundamental and noise trader) risk factors of our model, and let denote the natural filtration of . All the processes described in the paper are adapted to this filtration.
Let and denote the (cum dividend) market price and fundamental value of the risky asset at time respectively, with and their logarithm. The fundamental value follows a standard geometric Brownian (GBM) process with drift and volatility , and thus its logarithm follows:
[TABLE]
where denotes the transpose of . We denote by the price dislocation: the log-difference of the market price and the fundamental value: .
We assume that fundamental traders are able to estimate the fundamental value and believe that the market price is mean-reverting to this fundamental value. Accordingly, the greater (lower) the price dislocation is, the lower (higher) proportion of their wealth they invest in the risky asset. Thus, the proportion of their wealth they invest in the risky asset – portfolio choice for short – depends on price dislocation with , and we assume a simple affine function similar to [6]:
[TABLE]
where is the fundamental traders’ sensitivity parameter for price dislocation and is the natural (positive) mean they invest in the risky asset. We assume a positive mean because we assume that investors (both fundamental traders and chartists) are aware of the fundamental value’s positive drift. We note here that fundamental traders play an inherently mean-reverting role in this market: the stronger they are, the more closely the market price follows the fundamental value.
2.2 Chartists
Chartists do not know the fundamental value. Instead, they believe that they can estimate future price movements from past performance of the risky asset. We assume chartists to be trend followers (momentum traders): they extrapolate recent price movements, and believe that this recent trend will continue. We define momentum slightly differently than [3] and [7]. First, we define as the change of log market price compared to the average change of log fundamental value :
[TABLE]
We define momentum through :
[TABLE]
with look-back horizon and decay rate . In words, momentum is defined as the exponentially weighted mean of past log price movements (compared to the average log fundamental value movement) with weights decreasing the further we go back in time. Using Leibniz’s integral rule, (3) can be expressed as a stochastic delay differential equation with time delay :
[TABLE]
We will devote particular attention to the case , in which case , and (4) becomes a standard stochastic differential equation:
[TABLE]
The case is interesting because (5) is much easier to handle mathematically than (4), while it is important to note that fulfills a similar role to itself: the relevant history taken into account has a magnitude of . In this case we can also interpret momentum as the year log-return.
Chartists believe that recent price movements can be extrapolated: the greater (lower) momentum is, the greater (lower) proportion of their wealth they invest in the risky asset. Their portfolio choice depends on momentum with and we assume a simple affine function again:
[TABLE]
where is the same as in (2), and is the chartists’ sensitivity parameter to momentum. We note here that chartists play an inherently explosive (with respect to the price dynamics) role in the heterogeneous agent modeling literature. This role is often alleviated with the use of bounded demand functions. We assume a simple affine form in (6) as opposed to the increasing and bounded S-shaped graph used by [3], because our goal is a linear stochastic model that can be solved analytically.
Our linear model is an approximation at the origin of the S-shaped graph used by the literature. By this assumption we lose some interesting dynamical aspects in the deterministic case (), but these interesting aspects are mostly washed away by stochasticity, which we never turn off in this paper.
2.3 Market maker, noise traders
Market price is adjusted by the market maker in a similar fashion to [1] and [3]. The market maker aggregates the excess demand of fundamental traders and chartists, and adjusts the market price in order to reduce this excess demand while also accounting for the average increase in the fundamental value. Assume and with the ratio of fundamental traders and chartists active on the market, respectively. The aggregate demand of fundamental traders and chartists is given by
[TABLE]
and thus the price setting rule of the market maker is
[TABLE]
where is the parameter controlling the speed of price adjustments by the market maker. We can also think about as a parameter that determines the strength of supply-demand pressures on the market price.
We also assume the presence of noise traders or liquidity traders. We model their perfectly random excess demand through their price impact directly, and complete (8) with an additive stochastic component to arrive at the final (log) market price dynamics:
[TABLE]
where and is the same two dimensional Wiener process as in (1).
2.4 Market stability and price dynamics
Since price dislocation is additive, its change is simply , so we can combine (1), (2), (6), (7) and (9) to arrive at its dynamics:
[TABLE]
The reason we prefer working with instead of itself is that the dynamics of and together contain all stochastic information about . Since and do not have any explicit connection between them, they can be examined separately. Also, since is a random walk process with no stationary distribution, cannot have a stationary distribution either, whereas might indeed: if we for example fix in (10) (which corresponds to a market with no chartists), becomes a standard Ornstein-Uhlenbeck process with well-known asymptotically stationary normal distribution.
We can also combine (5) and (10) and use the fact to arrive at the dynamics of with only and on the right hand side:
[TABLE]
The full dynamics of our financial market can be expressed as a three-dimensional stochastic differential equation system:
[TABLE]
We can notice a clear disconnection in (12) between and . Indeed, we examine the latter separately: let , and
[TABLE]
[TABLE]
is a two dimensional Ornstein-Uhlenbeck process with no constant drift term, driven by a two dimensional Wiener process with independent components. Let us denote by the first row of the volatility matrix, i.e. , and also let us introduce , .
Definition 1**.**
We say that the market defined by (12) is stable if its component is (asymptotically) stationary.
Asymptotic stationarity of the system implies that neither the component nor “blows up” – log market price does not wander too far from the log fundamental value, thus price dislocation and momentum are ergodic. We interpret this qualitative property of the market as stability.
Proposition 1**.**
Conditions
[TABLE]
are necessary and sufficient for the market defined by (12) to be stable.
Proof.
defined by (13) has the solution333Here , and it holds that .
[TABLE]
which is asymptotically stationary if and only if – according to [12] – the ordinary differential equation system
[TABLE]
is strongly stable, which requires that the real part of all the eigenvalues of are strictly positive. This holds if and both hold. ∎
We interpret Proposition 1 through price dislocation . Condition (C1) says that market stability requires that the relative strength of the chartists compared to that of the fundamental traders be not too great. Here we define relative strength as the product of the traders’ population ratio and the sensitivity parameter of their strategy. All else being equal, the greater the relative strength of fundamental traders (chartists) is, the stronger their mean-reverting (explosive) price impact is felt on the market. While chartists are allowed to be stronger than fundamental traders, they cannot be too strong for the market to be stable.
The maximum difference of relative strength is . The greater the market maker’s parameter for the speed of price adjustment is, the less powerful chartists are allowed to be compared to the fundamental traders: If is high, chartists’ extrapolative effect is more pronounced on the market, and they “blow up” the market price more easily.
The inverse is true for decay rate , which controls the relevant time horizon when calculating momentum. The higher is, the shorter the history of prices is that is actually driving momentum. When is very high, momentum is driven mostly by the perfectly random effect of the noise traders, and chartists are not able to latch onto the ever increasing (or decreasing) market price.
Condition (C2) says that the relative strength of the fundamentalists, the market maker’s parameter and the decay rate all have to be positive. This condition says that the only way for the log market price to have any connection to the log fundamental value is that the fundamental traders have positive relative strength on the market. Also, with no price effect , fundamental traders have no way of pulling the market price towards its fundamental value, no matter how strong they may be.
Proposition 2**.**
Assume that the market defined by (12) is stable. Then, (14) has a multivariate normal limiting distribution with
[TABLE]
Proof.
(14) is a simple stochastic integral, thus it is normally distributed for all . The expectation of the stochastic integral component is 0 for all , thus
[TABLE]
if the eigenvalues of are positive, which holds if and .
Now let , and let be large enough so that . Then
[TABLE]
The covariance matrix of the asymptotic distribution is got by setting , and solving the resulting system of algebraic equations. ∎
We interpret Proposition 2 by examining some extreme cases. By setting we arrive at the dynamics where chartists have no effect – this might happen when their population is zero and/or their sensitivity to momentum is zero. In this case price dislocation is a simple one dimensional Ornstein-Uhlenbeck process with asymptotic variance .
The stronger fundamental traders are, the lower the asymptotic variance of is – they keep the market price closer to its fundamental value in the long run. The inverse is true for the chartists: appears in the denominator with a negative sign and in the numerator with a positive sign, thus the stronger they are, the greater the variance of is.
Now assume as a benchmark model a market where noise traders are so abundant that neither fundamental traders nor chartists have any effect on market price. We can implement this in our model by setting in (9). The dynamics of momentum (11) in this case is again a simple one dimensional Ornstein-Uhlenbeck process with and . We will consider this value as the base variance of momentum (or the base variance of the year log return). Let us compare this base value to the variance of momentum of the full model:
[TABLE]
For our interpretation we will assume that the volatility of fundamental value is lower than that of the market price: (see for example [11] who shows that market price variance is a magnitude greater than the variance of fundamental value derived as the present value of actual future dividends). Now assume no chartists on the market, i.e. . In this case (15) is the convex combination of a number lower than one and one, thus it is lower than one. This means that the presence of fundamental traders reduces the variance of year log returns. With the ratio above increases – indeed, it can even rise above one. This implies that the presence of chartists increases the variance of year log returns.
2.5 Profitability of the strategies
We assume that both the fundamental traders and the chartists build a self-financing portfolio of the stock and some money-market account . We denote by , the value of their portfolio at time . Without loss of generality, we assume a zero risk-free rate: . Since both traders hold , proportion of their wealth in the risky asset, we arrive at the dynamics of their portfolio by using the self-financing assumption:
[TABLE]
We assume a logarithmic utility function of their wealth for both the fundamental traders and chartists. We are interested in the differences in utility over a very long time horizon, where the system has already reached stationarity. Thus we use an appropriately normalized utility function:
[TABLE]
which from now on we will interpret as the average logarithmic growth of the value of the agents’ portfolio over an infinite time horizon. Since we know the asymptotic distribution of , (17) provides analytically tractable results.
Proposition 3**.**
Assume the market defined by (12) is stable. Assume the investors’ wealth evolves according to (16). Then the average logarithmic growth (17) of the traders’ wealth is:
[TABLE]
Proof.
We show the calculations for , which go similarly for .
First, from (9) we get the dynamics of :
[TABLE]
From (16) we get the dynamics of :
[TABLE]
By using the definitions (2), (6) and (7), we get that
[TABLE]
where is an affine function. From here, by using the law of iterated expectations444Here we denote the conditional expectation by , i.e. . and the fact that we know the asymptotic distribution of we get that
[TABLE]
∎
Proposition 3 helps us answer which strategy “wins” in the long run:
Proposition 4**.**
The difference in long-term logarithmic growth of the two strategies is given by:
[TABLE]
Proof.
A direct consequence of Proposition 3. ∎
We interpret Proposition 18 through the effects of population ratios. While we should not forget that population ratios do affect all the moments present in (18), it seems as if is increasing in . While the exact effect of population ratios is more complex and should be investigated further, for now we claim (as a first order approximation) that whichever trader is more populous on the market, wins in the long run.
3 Conclusion
In this paper, we propose a simple linear stochastic model of a financial market populated by heterogeneous agents. The agents modeled explicitly are fundamental traders (who buy the risky asset when it is below its fundamental value, and sell when it is above) and chartists (who follow a momentum indicator). A market maker gathers the positions of the two trader types and adjusts the market price accordingly. Noise traders are also present and provide volatility in market price.
We define market stability through the asymptotic stationarity of the indicators followed by the two traders (price dislocation and momentum). We prove stability conditions for, and calculate the asymptotic behavior of the market. We also provide analytic formulae for the profitability of the two trading strategies. Our preliminary results suggest that whichever trader type is more present in the market achieves higher returns in the long run.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Avraham Beja and M Barry Goldman “On the dynamic behavior of prices in disequilibrium” In The Journal of Finance 35.2 Wiley Online Library, 1980, pp. 235–248
- 2[2] William A Brock and Cars H Hommes “Heterogeneous beliefs and routes to chaos in a simple asset pricing model” In Journal of Economic dynamics and Control 22.8-9 Elsevier, 1998, pp. 1235–1274
- 3[3] Carl Chiarella, Roberto Dieci and Laura Gardini “Asset price and wealth dynamics in a financial market with heterogeneous agents” In Journal of Economic Dynamics and Control 30.9-10 Elsevier, 2006, pp. 1755–1786
- 4[4] Carl Chiarella, Roberto Dieci, Xue-Zhong He and Kai Li “An evolutionary CAPM under heterogeneous beliefs” In Annals of Finance 9.2 Springer, 2013, pp. 185–215
- 5[5] Xue-Zhong He and Kai Li “Heterogeneous beliefs and adaptive behaviour in a continuous-time asset price model” In Journal of Economic Dynamics and Control 36.7 Elsevier, 2012, pp. 973–987
- 6[6] Xue-Zhong He and Kai Li “Profitability of time series momentum” In Journal of Banking & Finance 53 Elsevier, 2015, pp. 140–157
- 7[7] Xue-Zhong He, Kai Li and Youwei Li “Asset allocation with time series momentum and reversal” In Journal of Economic Dynamics and Control 91 Elsevier, 2018, pp. 441–457
- 8[8] Xue-Zhong He, Kai Li, Junjie Wei and Min Zheng “Market stability switches in a continuous-time financial market with heterogeneous beliefs” In Economic Modelling 26.6 Elsevier, 2009, pp. 1432–1442
