A fractional reaction-diffusion description of supply and demand
Michael Benzaquen, Jean-Philippe Bouchaud

TL;DR
This paper introduces a fractional reaction-diffusion model for financial market liquidity, capturing heterogeneous agent behaviors and reproducing empirical impact decay with analytical and numerical validation.
Contribution
It develops a novel fractional reaction-diffusion framework for latent liquidity, linking agent heterogeneity to impact decay and market efficiency.
Findings
Impact is a concave function of volume, consistent with the square-root law.
Impact kernel decay varies with diffusion type, matching empirical decay exponent.
Numerical simulations support analytical predictions.
Abstract
We suggest that the broad distribution of time scales in financial markets could be a crucial ingredient to reproduce realistic price dynamics in stylised Agent-Based Models. We propose a fractional reaction-diffusion model for the dynamics of latent liquidity in financial markets, where agents are very heterogeneous in terms of their characteristic frequencies. Several features of our model are amenable to an exact analytical treatment. We find in particular that the impact is a concave function of the transacted volume (aka the "square-root impact law"), as in the normal diffusion limit. However, the impact kernel decays as with in the diffusive case, which is inconsistent with market efficiency. In the sub-diffusive case the decay exponent takes any value in , and can be tuned to match the empirical value . Numerical…
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.
11institutetext: Ladhyx, UMR CNRS 7646, École Polytechnique, 91128 Palaiseau Cedex, France 22institutetext: Capital Fund Management, 23 rue de l’Université, 75007, Paris, France
A fractional reaction-diffusion description of supply and demand
Michael Benzaquen 1122
Jean-Philippe Bouchaud 22
(Received: date / Revised version: date)
Abstract
We suggest that the broad distribution of time scales in financial markets could be a crucial ingredient to reproduce realistic price dynamics in stylised Agent-Based Models. We propose a fractional reaction-diffusion model for the dynamics of latent liquidity in financial markets, where agents are very heterogeneous in terms of their characteristic frequencies. Several features of our model are amenable to an exact analytical treatment. We find in particular that the impact is a concave function of the transacted volume (aka the “square-root impact law”), as in the normal diffusion limit. However, the impact kernel decays as with in the diffusive case, which is inconsistent with market efficiency. In the sub-diffusive case the decay exponent takes any value in , and can be tuned to match the empirical value . Numerical simulations confirm our theoretical results. Several extensions of the model are suggested.
††offprints:
1 Introduction
More than 50 years have passed since Montroll & Weiss MontrollWeiss introduced the continuous-time random walk (CTRW) formalism to account for a broad variety of anomalous diffusion mechanisms. Despite countless achievements in the past decades, non-Gaussian diffusion is still topical in many different fields such as statistical physics, condensed matter physics or biology – as testified by the present special issue of EPJB. In the present paper, we propose an original application of fractional diffusion to describe the dynamics of supply and demand in financial markets.
In the past few years, the concave nature of the impact of traded volume on asset prices – coined the “square-root impact law” – has made its way among the most firmly established stylized facts of modern finance Grinold ; Almgren2005 ; Toth2011 ; mastromatteo2014agent ; Donier2015 ; Zarinelli . Several attempts have been made to build theoretical models that account for non-linear market impact, see e.g. gabaix ; FGLW . Following the ideas of Tóth et al. Toth2011 , the notion of a locally linear “latent” order-book model (LLOB) was introduced in MPRL ; DonierLLOB . The latter model builds upon coupled continuous reaction-diffusion equations for the dynamics of the bid and the ask sides of the latent order book MPRL and allows one to compute the price trajectory conditioned to any execution profiles. In the slow execution limit, the LLOB model was shown to match the linear propagator model that relates past order flow to price changes through a power law decaying kernel.
The propagator model was initially introduced in bouchaud2004fluctuations to solve the so-called diffusivity puzzle: prices are approximately diffusive when the order flow is highly persistent bouchaud2004fluctuations ; Lillo2004 ; bouchaud2008markets . In particular, the sign of the order-flow is characterised by an autocorrelation function that decays as a power law with an exponent , defining a long-memory process. Typically is found to be for individual stocks. Naively, the impact of these correlated orders should lead to a super-diffusive price dynamics, with a Hurst exponent . In order to compensate for order flow correlation and restore price diffusivity, the impact of each order, described by a certain kernel or “propagator”, must itself decay as a power law of time, with an exponent bouchaud2004fluctuations ; bouchaud2008markets .
One major issue of the original LLOB framework is that its kernel decays with exponent , which cannot fulfil the above relation since must obviously be positive. Impact relaxation is too quick for , and the price dynamics generated by the LLOB model exhibits significant mean reversion on short to medium time scales, a feature that is not observed in empirical data. However, the current version of the LLOB model postulates that market participants are homogeneous, in the sense that the distribution of volumes, reaction times, pricing updates, etc. are all thin tailed. For example, the cancellation of orders is assumed to be a Poisson process with a single cancellation rate .
In reality, different actors in financial markets are known to be highly heterogeneous with very widely distributed volumes and time scales, from High Frequency Traders (HFT) to large institutional investors. This observation suggests various generalisations of the LLOB. The path that we follow in this paper is that of a broad distribution of time scales for agents’ intentions and re-evaluation, that naturally leads to a fractional reaction-diffusion process. Other possible generalisations are discussed in the conclusions.
The outline of the paper is as follows. We first present the general fractional diffusion framework with death and sources. We then present the fractional latent order-book model (FLOB) and derive its equilibrium shape, in the case of a balanced flow of buy/sell orders. We find that the characteristic V-shape of the latent order book is preserved, leading to a concave impact law. We also show that the corresponding propagator is now described by a tunable exponent that resolves the above mentioned diffusivity puzzle. We finally confront these results to numerical simulations.
2 Fractional diffusion with death and sources
We here present the CTRW framework and adapt it to the question of interest in this paper. The CTRW model describes random walkers that pause for a certain waiting time before resuming their motion. When the average waiting time is finite, the long-time, large scale description of an ensemble of such walkers is the standard diffusion equation. When the average waiting time diverges, the corresponding dynamics is described by the fractional diffusion equation Metzler2 ; Metzler .
Assuming that jump lengths and waiting times are independent, let denote the waiting time distribution function and denote the jump length distribution function. The evolution equation for the density of walkers at position and time reads Henry :
[TABLE]
where denotes the often called survival probability function, and where is a general rate-source term allowing for the injection or removal of walkers (see Appendix A). Taking the Fourier-Laplace transform of Eq. (1) yields:
[TABLE]
where , and where . We assume the jump lengths to have a zero mean and a finite second moment. In addition, considering that when its time comes a random walker can either resume its motion or disappear with some small probability , we allow the distribution of jump lengths to be be non-normalized (). In the diffusion limit, this is:
[TABLE]
where denotes the root mean square of jump lengths. We assume waiting times to be distributed according to a truncated111For seasoned readers, truncating the distribution of waiting times may seem unusual in the context of fractional diffusion but is here an essential ingredient for describing a stationary order book. power-law function with tail exponent and cutoff , such that (see Appendix B):
[TABLE]
where denotes the scale of waiting times. Note that for short times (equivalently ) one has: consistent with fractional diffusion (see e.g. Henry ), while for long times (equivalently ) where is the average time between jumps, consistent with normal diffusion.
Injecting Eqs. (3) and (4) into Eq. (2) and rearranging terms yields:
[TABLE]
with:
[TABLE]
where and . Equation (5) is central as its inverse Fourier-Laplace transform allows to compute the evolution of the walkers density for given initial condition and source terms. Unfortunately the inverse Fourier-Laplace transform of the kernel is not analytical in the general case. In the following we thus consider the limit cases of short and long times (see Appendix C for a presentation of the problem in terms of partial-differential and integro-differential equations).
For , we may note . Taking the inverse Fourier-Laplace transform, one obtains that the kernel in real space is given by the inverse Fourier transform of the Mittag-Leffler222The Mittag-Leffler function is a special function defined by the following series as: . function (see e.g. Metzler ; Schneider ), . Note that in the limit the kernel can be conveniently written as:
[TABLE]
where we introduced the function , the shape of which is discussed in e.g. Schneider ; Metzler2 . For , one obtains where . Taking the inverse Fourier-Laplace transform yields the normal diffusion kernel (with death):
[TABLE]
where is the rate of death per unit time. In both cases, the general solution in real space can thus be written as the sum of a convolution death/diffusion term and a source contribution:
[TABLE]
3 Fractional latent order-book model
Following the assumptions of Donier et al. DonierLLOB ; DonierWalras , we posit that the dynamics of the intentions of market participants333 Note that given the very weak revealed instantaneous liquidity in the order book, intentions in the sense of latent orders are an essential (and very sound) ingredient in microstructure modelling. Latent order book models have allowed to to account for important stylised facts such as the square root impact law (see e.g. mastromatteo2014agent ; DonierLLOB ). results from order cancellation or reassessment of their reservation price. Such intentions (which are commonly called latent orders) materialise into revealed orders in the vicinity the transaction price. The model is zero-intelligence in the sense that agents are heterogeneous and their reservation prices are updated at random. The crucial difference with the LLOB model of Donier et al. DonierLLOB is that we now assume that such events occur after a fat-tailed waiting time.444Let us stress that price reassessments themselves are not fat-tailed distributed, i.e. intentions do not follow Levy flights. While such an extension would be interesting, it is not the point of the present paper and is left for future work. The distribution of these waiting times is assumed to decay with a power-law exponent some until an exponential cutoff at (see Appendix B). Note that while such a cutoff is indeed quite realistic (nobody is expected to hold a position forever), it is also indispensable to ensure that the system does not age, which would prevent dynamic stationary states of the latent order book.
An important addition to the fractional diffusion equation described in the previous section is the reaction mechanism, that corresponds to transactions between buy and sell orders that remove volume from the latent order book and set the transaction price. Within this framework, the density of buy and sell intentions at price and time solve the set of coupled evolution equations in the reference frame of the “consensus” price555We here substantially simplify the discussion given in DonierLLOB where in fact follows some additional exogenous dynamics, reflecting the evolution of the agents’ expectations about the “consensus price”. See DonierWalras for an extended discussion., as given by Eq. (1) with:
[TABLE]
where denotes the Heaviside step function, and where describes a reaction rate that instantaneously removes buy and sell “particles” as soon as they meet (see Henry ; FRD3 ; FRD2 for some work on fractional reaction-diffusion). Note that transactions remove exactly the same volume of buy and sell orders, justifying the fact that the same rate appears in the two equations above. The term proportional to corresponds to an incoming flux of buy/sell intentions to the left/right of the transaction price .
The non-linearity arising from the reaction term in the above equations can be abstracted by defining the combination , which precisely solves Eq. (1) with:
[TABLE]
and where the transaction price is fixed by the condition:
[TABLE]
The stationary order-book centred at can be computed from Eqs. (9) and (12) as . Making use of Eqs. (9), (8) and (12), one obtains (see DonierLLOB ): . In the vicinity of the transaction price, the stationary order book can be shown to be locally linear and its local shape is given by:
[TABLE]
where .
4 Market impact
In this section we compute and analyze the impact of a meta-order with execution horizon on the transaction price Following Donier et al., we introduce the meta-order of volume as an extra order flow that falls exactly at the transaction price such that the source term becomes:
[TABLE]
where denotes the (possibly time dependent) execution rate, with . We set to a situation in which the stationary order is well established and focus on the regime where .666Note that in the limit , one recorvers the normal diffusion results of Donier et al. DonierLLOB The general solution as given by Eq. (9) with the source term of Eq. (15) reads:
[TABLE]
where \mathchoice{{\vbox{\hbox{\textstyle-}}\kern-4.95825pt}}{{\vbox{\hbox{\scriptstyle-}}\kern-3.31497pt}}{{\vbox{\hbox{\scriptscriptstyle-}}\kern-2.33746pt}}{{\vbox{\hbox{\scriptscriptstyle-}}\kern-1.91248pt}}\!\int denotes Cauchy’s principal value.
In the following we “zoom” into the linear region of the book, close to the transaction price. More precisely, we consider the limit , while keeping constant. In this limit – and starting from the equilibrium book – Eq. (16) becomes:
[TABLE]
Making use of Eq. (13) yields the following self-consistent integral equation for the transaction price:
[TABLE]
Provided that impact is small (or equivalently in the limit of small execution rates) one has , which recovers the propagator limit where the transaction price is linearly related to the order flow through a power-law decaying kernel:777Here, we have made use of the Taylor expansion of the function when (see Schneider ; Metzler2 ).
[TABLE]
allowing us to identify the propagator decay exponent with . Note that for the equality can be achieved by the choice . Hence, the FLOB allows the price to be diffusive at all times in the presence of a persistent order flow. As mentioned in the introduction, real data suggests which implies . For a constant execution rate and denoting the impact of a meta-order of size , one obtains:
[TABLE]
As one can see, Eq. (20) leads to for , intermediate between a square-root and a linear behaviour. The pure square-root for small execution rates is only recovered in the limit considered by Donier et al. DonierLLOB .
In the opposite limit however of fast execution – more precisely when (but still in the regime ) – one can show that the impact is again given by a square root law (see Appendix D):
[TABLE]
where . Interestingly, the result is smaller than what a purely geometric argument would suggest, where the volume initially contained between and is executed against the incoming metaorder. In the latter case one can write:
[TABLE]
valid for . When , liquidity initially outside the interval manages to move inside that interval and meet the incoming metaorder, even in the fast execution limit. This provides more resistance to the metaorder, i.e. a slightly smaller impact.
The FLOB thus provides a framework in which concave impact is compatible with persistent order flow, although one expects a cross-over from a behaviour for “slow” execution to a behaviour for “fast” execution.888On the definition of “slow” and “fast” for real markets where HFT significantly contribute, see ustocome .
The impact decay after the meta-order execution 999For one eventually recovers the impact decay predicted by Donier et al. DonierLLOB in the diffusive limit. can be computed by replacing the upper boundary of the integrals in Eqs. (18) and (19) by . In the limit of small execution rates, one easily obtains:
[TABLE]
which decays with an infinite slope for and asymptotically equals . In the limit of high execution rates, the impact decay for can be conveniently computed as in the slow execution limit and reads:
[TABLE]
which only differs from the low execution result by the prefactor. For the calculation is more subtle and relies on the source-free relaxation of the linearised order book profile in the vicinity of the price at the end of the metaorder execution (see DonierLLOB ). One obtains:
[TABLE]
where solves: with .
5 Numerical simulation
In order to bolster our analytical results we performed a numerical simulation of the model. Because of the peculiar nature of fractional diffusion, such a simulation is more time consuming than a regular reaction-diffusion simulation. This is because time needs be continuous and each particle (order intention) must be treated independently. Each particle is labeled as buy/sell, and most importantly next event time drawn from a fat-tailed probability distribution function. In order to speed up the simulation we use a heap queue algorithm101010Also called priority queue algorithm, the heap queue algorithm is a binary tree in which each parent node stores a value smaller than or equal to its children’s, such that in our case the next event is always at the root. New events are pushed into the tree from the bottom and find their place in time Heapqueue . to efficiently sort the up-coming events in time. The nature of the next event (diffusion or death) is drawn from a biased distribution depending on the diffusion and cancellation rates. Simultaneously a Poissonian rain of particles falls into the book, each particle being naturally labeled with buy/sell depending on the side of the book it falls in. For the sake of simplicity the spread region between the best buy (bid) and the best sell (ask) is rain-free. For each potentially price changing event, namely each event involving a particle at the bid or ask, the heap is broken such that the relevant variables – volume profile, best bid and ask, spread, mid-price, event-time and deposition/cancellation/reaction rates - can be updated and stored. When a buy and a sell “particle” find themselves at the same spot, there are immediately removed from the book (reaction).
The simulation is initialized from the theoretical equilibrium situation. Reflective boundary conditions are implemented to ensure flat slopes at the (far away) edges of the book. A meta-order execution can be implemented through an additional rain of buy (resp. sell) particles that fall precisely at the best ask (resp. bid) with given rate (see Fig. 1 for an illustration of a typical numerical experiment).
Using such a simulation to measure impact is not as straightforward as one could think. In the fast execution limit, discretisation induces the opening of a spread which struggles to refill during the execution. This effect is naturally not included in the continuous reaction-diffusion model presented above. In particular, it is responsible for the fact that the impact decay is very difficult to reproduce within the numerical framework at hand. Furthermore, the slow execution limit is extremely time consuming, since one must ensure both a small execution rate, meaning large, while still keeping small compared to the cancellation timescale for the above results to hold.111111When exceeds the cancelation timescale, impact trivially becomes linear in .
We here use the simulation in order corroborate the central result of the paper that is: fractional diffusion allows to reconciling persistent order flow and diffusive price dynamics (market efficiency). To do so, we measure the propagator kernel in the small execution rate limit (see Eq. 19). To do so we replace the directional meta-order with a random, IID order flow and follow the corresponding price changes. The discrete linear propagator , defined as bouchaud2004fluctuations , can then be obtained by a linear regression and is plotted in Fig. 2. As one can see, in the normal diffusion case we obtain a square root decaying kernel as predicted by Donier et al. DonierLLOB , while for the fractional diffusion case we obtain a weaker power law decay (with exponent consistent with Eq. (19).
6 Conclusion
We have presented a fractional diffusion extension (FLOB) of the locally linear order book (LLOB) model of Donier et al. DonierLLOB . The fractional latent order book (FLOB) model presented here is motivated by the existence of a very broad spectrum of time scales in financial markets, spanning seconds to days or even weeks. This extended framework allows us to reconcile the long-memory nature of order flow with market efficiency (i.e. diffusive prices). The impact of a metaorder is a concave function of volume, crossing-over from a behaviour for small execution rates to the usual behaviour for large execution rates. Another possibility to model agents heterogeneity is to keep a normal diffusion while introducing a wide spectrum of cancellation and deposition rates. Such an approach also yields very interesting, complementary results and is left for an up-coming communication ustocome .
Other possible generalisations can be considered. One is to introduce a broad distribution in the individual volumes of buy/sell orders. This is very relevant in view of the heterogeneity of asset sizes in the financial industry. However, the mathematical apparatus needed to investigate this case needs to be developed, even in standard diffusive case, since fluctuations in the volume profile become dominant. Introducing fat-tailed jump lengths (Levy flights) would also be of interest. Indeed, the idea that agents’ price reassessments can be large and sudden is actually quite realistic. Again, implementing this idea is not straightforward and will in particular need a careful analysis of the reaction terms, since the continuity of the price paths is lost.
In conclusion, we have proposed that the broad distribution of time scales in financial markets could be a crucial ingredient to model the complex dynamics of liquidity and allow one to reproduce realistic price dynamics in stylised Agent-Based Models.
We wish to thank J. Donier (who participated to the first stages of this work), J. Bonart, J. De Lataillade, M. Gould, S. Gualdi, I. Mastromatteo, B. Tóth and A. Darmon for fruitful discussions.
Appendix A: Evolution equation in a CTRW model
We here present the probabilistic derivation of Eq. (1). We focus on the case without sources for the sake of simplicity. We denote the conditional probability that a random walker be at position at time given that it were at position at time . The evolution equation for reads:
[TABLE]
where the first term in the right hand side signifies the particles that were at position at time and have not moved during the interval , and the second term accounts for the particles which were at position at time and have jumped to position at time . Given the density of random walkers at time , the particle density at position and time as:
[TABLE]
Making use of translation invariance , multiplying Eq. (26) by , and integrating over yields:
[TABLE]
Finally, changing variables in Eq. (28) through and yields Eq. (1) without sources ().
Appendix B: Distribution of waiting times
We here seek a simple analytical form for the Laplace transform of a truncated power law distribution function of waiting times. Having , we may compute , where we have made use of the normalisation of . In the limit (), one obtains:
[TABLE]
where (with ). In the limit (), one obtains:
[TABLE]
where . The distribution must thus satisfy for and for . One can check that the distribution given in Eq. (4) is indeed an appropriate candidate.
Appendix C: Fractional diffusion equation
We here present the problem of fractional diffusion at hand in terms of integro-differential equations (see e.g. Metzler ; Schneider ; Henry ). Equation (5) can also be written in the form:
[TABLE]
In the limit , the first term of the right hand side of Eq. (31) reduces to: . Taking the inverse Fourier-Laplace transform then yields the fractional diffusion equation with death and sources:
[TABLE]
where is a generalized diffusion coefficient, and where denotes the fractional Riemann-Liouville operator Schneider ; Metzler defined as , and .
For , the first term of the right hand side of Eq. (31) reduces to and one easily recovers the normal diffusion equation with death and sources , where (see DonierLLOB ).
Appendix D: Impact in the fast execution limit
We here compute the price impact in the limit of large execution rates as given by Eq. (21). Letting into Eq. (18) with a constant execution rate and changing variables through yields:
[TABLE]
Noting that the integrand dominates for – which is – and letting where , one obtains:
[TABLE]
Letting in the limit yields:
[TABLE]
and making use of the normalisation of the fractional diffusion kernel , which together with Eq. (7) can also be written as , finally yields Eq. (21).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) Montroll E W and Weiss G H 1965 Journal of Mathematical Physics 6 167–181
- 2(2) Grinold R C and Kahn R N 2000 Active Portfolio Management (Mc Graw Hill New York)
- 3(3) Almgren R, Thum C, Hauptmann E and Li H 2005 Risk 18 58–62
- 4(4) Tóth B, Lemperiere Y, Deremble C, De Lataillade J, Kockelkoren J and Bouchaud J P 2011 Physical Review X 1 021006
- 5(5) Mastromatteo I, Tóth B and Bouchaud J P 2014 Physical Review E 89 042805
- 6(6) Donier J and Bonart J 2015 Market Microstructure and Liquidity 1 1550008
- 7(7) Zarinelli E, Treccani M, Farmer J D and Lillo F 2015 Market Microstructure and Liquidity 1 1550004
- 8(8) Gabaix X, Gopikrishnan P, Plerou V and Stanley H E 2003 Nature 423 267–270
