Next Article in Journal
Information Geometry Control under the Laplace Assumption
Previous Article in Journal
Kangaroos in Cambridge
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Maxwell’s Demon and Information Theory in Market Efficiency: A Brillouin’s Perspective †

1
ESILV-Ecole Supérieure d’Ingénieurs Léonard de Vinci, 92916 Paris La Défense, France
2
Léonard de Vinci Pôle Universitaire, Research Center, 92916 Paris La Défense, France
*
Authors to whom correspondence should be addressed.
Presented at the 41st International Workshop on Bayesian Inference and Maximum Entropy Methods in Science and Engineering, Paris, France, 18–22 July 2022.
Phys. Sci. Forum 2022, 5(1), 23; https://doi.org/10.3390/psf2022005023
Published: 12 December 2022

Abstract

:
By using Brillouin’s perspective on Maxwell’s demon, we determine a new way to describe investor behaviors in financial markets. The efficient market hypothesis (EMH) in its strong form states that all information in the market, public or private, is accounted for in the stock price. By simulations in an agent-based model, we show that an informed investor using alternative data, correlated to the time series of prices of a financial asset, is able to act as a Maxwell’s demon on financial markets. They are then able to perform statistical arbitrage consistently with the adaptive market hypothesis (AMH). A new statistical test of market efficiency provides some insight into the impact of the demon on the market. This test determines the amount of information contained in the series, using quantities which are widespread in information theory such as Shannon’s entropy. As in Brillouin’s perspective, we observe a cycle: Negentropy->Information->Negentropy. This cycle proves the implication of the investor depicted as a Maxwell’s demon in the market with the knowledge of alternative data.

1. Introduction

In finance, the information flow characterizes the efficiency of the market. According to Eugene Fama [1], an efficient market is “a market in which prices always fully reflect available information”. There exists three forms of market efficiency. The weak form says that the information set is just historical prices, while the semi-strong form includes public information as announcements of annual earnings or stock splits. Furthermore, the strong form includes private information for some investors.
There exist several methods for measuring efficiency as the Hurst exponent [2] or methods from information theory such as permutation entropy [3], which quantifies the uncertainty in a symbolic sequence. Entropy is presented as a gradual indicator of efficiency, so the market can be more or less efficient. In this present work, we build a statistical test of market efficiency.
The Maxwell’s demon is a thought experiment where a foreign creature to a closed thermodynamic system is capable of decreasing the entropy of the system and then violate the second law of thermodynamics. In a closed thermodynamic system at uniform temperature, there are moving molecules with velocities which are by no means uniform. The thermodynamic system is divided into two portions. The demon controls a door between these two portions. It has the information about the velocities of the molecules and decides whether the molecule can pass through the door knowing the velocities of the molecule and the mean of the velocities of all the molecules in the portion. He is then able to warm up one portion while cooling down the other by moving molecules from the door. This action would decrease the entropy of the system and then violate the second law of thermodynamics. With this work, Maxwell wanted to question the role of knowledge in the flow of entropy of a thermodynamic system. This experiment has been very controversial and many scientists tried to exorcise the Maxwell’s demon. One of these is Brillouin, and we will take a similar approach while applying this experiment to financial markets.

2. A Statistical Test of Market Efficiency Based on Information Theory

In order to work with the various equations used in information theory, we build a binary sequence X 1 , , X n from a financial time series of n+1 prices P 0 , , P n . We do the following: X i = 1 { P i P i 1 } 0 . We assume that the random series ( X i ) is stationary. As an example of a symbolic representation of a sequence of consecutive prices, we have: ( X 1 , X 2 , X 3 ) = ( 0 , 1 , 1 ) which represents a decrease followed by two daily price increases. We work with a number of lags L < n , so 2 L sequences are possible, ordered with Gray’s binary code. A Gray’s binary code is an ordering of the binary numeral system such that two successive values differ in only one binary digit, we use this code to order the sequences but another order is also possible and does not change the following computations. For example, if L = 3, then the eight possible sequences are ( G 1 3 , , G 8 3 ) = ( ( 0 , 0 , 0 ) , ( 0 , 0 , 1 ) , ( 0 , 1 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 1 , 0 ) , ( 1 , 0 , 0 ) , ( 1 , 0 , 1 ) , ( 1 , 1 , 1 ) ) . Then, we introduce the probability to draw a particular sequence of length L, p i L , with p i L = P ( X . , X . + 1 , , X . + L ) = G i L ) . We determine the probabilistic choice system ( { 0 , 1 } 2 L , ( p i L ) i ) in order to define the amount of uncertainty in this probabilistic choice system with the Shannon entropy [4] defined by:
H L = i = 1 2 L p i L log 2 ( p i L )
We are now able to introduce the market entropy by decomposing a sequence ( X 1 , , X L + 1 ) (observed in time L) in:
-
An observed prefix ( X 1 , , X L ) = G i L of probability p i L ;
-
A random suffix X L + 1 whose conditional distribution is Bernoulli of parameter π i L [ 0 , 1 ] .
The sequence ( X 1 , , X L + 1 ) is thus equal to ( G i L , 1 ) with a probability p i L π i L and ( G i L , 0 ) with a probability of p i L ( 1 π i L ) . The market entropy is then:
H L + 1 = i = 1 2 L ( p i L π i L log 2 ( p i L π i L ) + p i L ( 1 π i L ) log 2 ( p i L ( 1 π i L ) ) )
The EMH asserts that, conditionally, on the prefix ( X 1 , , X L ) , the values of suffix X L + 1 = 1 and X L + 1 = 0 are equiprobable. This leads to a particular case with π i L = 1 2 , and the entropy of an efficient market is then:
H L + 1 = i = 1 2 L p i L log 2 p i L 2 = 1 + H L
With (2) and (3), we can define the market information as the difference between the entropy of an efficient market and the entropy of the market:
I L + 1 = H L + 1 H L + 1
The theoretical value of the market information I L + 1 is 0 if and only if the market is efficient. We have I L + 1 > 0 as soon as EMH does not hold. We start by evaluating the empirical probabilities p 1 L ^ , , p 2 L L ^ and π 1 L ^ , , π 2 L L ^ in order to obtain the empirical market information I L + 1 ^ . If the EMH holds, we may have I L + 1 ^ slightly higher than 0. It is mandatory to build a statistical test for answering the question of the efficiency of the market.
The null hypothesis is: the market is efficient and we have I L + 1 = 0 .
Because we only have access to the estimator I L + 1 ^ , we need its distribution under the null hypothesis.
In this work, we compute the moment-generating function of I L + 1 ^ under the null hypothesis.
Theorem 1.
For L N , the moment-generating function of I L + 1 ^ , conditionally on the event E = { i [ 1 , 2 L ] , p ^ i L = p i L , π i L = 1 / 2 } (using the conventions 0 0 = 1 and 0 ln 0 = 0 ), is:
M I L + 1 ^ : t 𝔼 e t I L + 1 ^ | E = e t i = 1 2 L j = 0 n i C i , j L ( t )
where: C i , j L ( t ) = n i j 1 2 n i ( j n i ) t p i L j n i ln ( 2 ) ( 1 j n i ) t p i L ( 1 j n i ) ln ( 2 ) .
We are then able to express all the moments of I L + 1 ^ under the null hypothesis.
Theorem 2.
The conditional moment of order r of I L + 1 ^ for r N is
𝔼 I L + 1 ^ r | E = m = 0 r r m j 1 = 0 n 1 j 2 L = 0 n 2 L α j 1 , , j 2 L r m i = 1 2 L n i j i 1 2 n i
where: α j 1 , , j 2 L = k = 1 2 L p k j k n k log 2 j k n k + 1 j k n k log 2 1 j k n k .
Theorems 1 and 2 are proven in [5]. We also define an asymptotic market information I L + 1 ˜ . We compute the asymptotic conditional moment-generating function and we demonstrated that when n tends to infinity [5]:
M I L + 1 ˜ ( t ) 1 t ln ( 2 ) n 2 L 1
We recognize the gamma distribution Γ ( k , θ ) of shape parameter k = 2 L 1 and scale parameter θ = 1 ln ( 2 ) n . We observed that the result neither depends on p i nor on n i , which is a non-conditional moment-generating function.
By applying a Kolmogorov–Smirnov test, we observe that the asymptotic distribution is validated for n 100 with L = 1 [5].

3. Maxwell’s Demon in Financial Markets

The history of financial markets shows us that EMH often does not hold true [6]. Andrew Lo introduces the adaptive markets hypothesis (AMH) [6] which states that statistical arbitrage is possible and that the EMH depends on the time scale. With the statistical test depicted above and working with high frequency data from the EURUSD as of 2 January 2007 (1:31 AM) to 31 December 2007 (10:59 PM), we observe that the market is inefficient for a frequency of one minute but is efficient on a daily frequency.
The statistical arbitrage of an investor reminds us of the action of a Maxwell’s demon on a thermodynamic system. Statistical arbitrage refers to trading strategies that use statistical techniques to make profit with an element of market risk reduction. Even if the link between physical entropy and information is not easy to determine, we study how an informed investor can act on financial markets with the knowledge of alternative data. In 1978, Ed Thorp’s question was not “Is the market efficient ?” but rather “How inefficient is the market ?”. Our statistical test and the Maxwell’s demon experiment are thus in line with Ed Thorp’s idea.
In this work, we study the evolution of the market entropy and the market efficiency with an informed investor acting as a Maxwell’s demon by performing statistical arbitrage.
We then work with two symbolic representations of consecutive prices. One time series, M t , corresponds to the successive increments in the market price. The other, A t , corresponds to a series of alternative data that the Maxwell’s demon is the only one to possess and which has a predictive power on M t + 1 . Alternative data are becoming popular among hedge fund managers and financial institutions, and comprise data from all sources including non-financial sources (web traffic, satellites, mobile devices, etc.).
We model the action of the demon in the market and simulate the prices with the following model:
P T = P T Δ t e ( r σ 2 2 ) Δ t + ( w m ( 2 M t 1 ) + w d ( 2 α t 1 ) ) σ | G |
With: w m : the weight of all the participants in the market without knowledge of alternative data;
w d : The weight of the Maxwell’s demon;
G N ( 0 , Δ t ) ;
r: the risk-free rate;
σ : the volatility;
M t { 0 , 1 } : the Bernoulli variable corresponding to an efficient market implied by noise traders;
M t B ( 1 2 ) ;
α t { 0 , 1 } corresponding to the action of the demon on the market (0: it is shorting the security, 1: it is buying the security)—it depends on ( M t 1 , A t 1 ) .
We have the constraint: w m + w d = 1 . With w m = 1 and w d = 0 , the actualized price is a martingale. Thus, 𝔼 ( P T e r | P T 1 ) = P T 1 .
If we have w d = 0 and w m = 1 , we recognize the Black–Scholes model under the risk-neutral measure Q: P T = P T Δ t e ( r σ 2 2 ) Δ t + σ ( W T Q W T Δ t Q ) with W T Q W T Δ t Q N ( 0 , Δ t )
For the simulations, we work with two binary sequences M 1 , , M n and A 1 , , A n , respectively, the sequence of prices on the market and the sequence of alternative data.
We first create the sequence ( A i ) corresponding to an efficient sequence, meaning that π i L = 1 2 . Then, we create the sequence ( M i ) correlated to the sequence of the alternative data. The correlation between the market at instant t and the demon’s alternative data at instant t − 1 is important in the explanation of the action of the Maxwell’s demon; if the correlation is 0, then the alternative data do not allow to make predictions.
In this section, we work with L = 1 . The probability available for the informed investor is: P M t | M t 1 A t 1 .
The demon knows the probability of a rise in the security at the moment t knowing the value of the alternative data and of the market at the moment t − 1. While a non-informed investor only knows the probability of a rise in the security knowing the value of the market at the moment t − 1.
If we have P M t = 1 | M t 1 A t 1 = 0 1 > 1 2 , then the demon is buying the security at the moment t if M t 1 = 0 and A t 1 = 1 (so α t = 1 ).

Brillouin’s Perspective

Brillouin made a thought experiment about Maxwell’s demon to understand whether it can operate on the thermodynamic system described by Maxwell [7]. For the demon, if the thermodynamic system is at a constant temperature at the beginning of the experiment, then the radiation is the one of a “blackbody” [8], thus the demon is not able to see the molecules because a blackbody absorbs all incident electromagnetic radiation. It is then unable to violate the second principle because it is unable to determine the velocity of the molecules. Thus, Brillouin introduces a source of light so that the demon can see the molecules. However, this action increases the overall entropy. Brillouin then thinks about the following cycle: Negentropy->Information->Negentropy. He then suggests an increase in entropy related to the loss of information. The Negentropy phase corresponds to the time when the demon is using light to see the molecules. It then has information to move the molecules, but after this action, the demon will have to use the light again to restart the cycle with a new phase of Negentropy.
One is then able to create an analogy with the market information (4): if the entropy of the market increases, then the market information decreases. An informed investor is then acting as a Maxwell’s demon on financial markets. The light of the informed investor is the alternative data they use, however, while using this information, they reduce the overall information and then they will have to use the alternative data again to discover new opportunities of statistical arbitrage.
For the simulations, we compute several quantities to determine the demon’s behaviors. With L = 1 , we can introduce p i , 2 1 with p i , 2 1 = P M t A t = G i , 2 1 . With ( G 1 , 2 1 , G 2 , 2 1 , G 3 , 2 1 , G 4 , 2 1 ) = 1 0 , 0 0 , 1 1 , 0 1 . We determine the probabilistic choice system 1 0 , 0 0 , 1 1 , 0 1 , ( p i , 2 1 ) i , and the Shannon entropy is then defined by:
H 2 1 = i = 1 4 p i , 2 1 log 2 ( p i , 2 1 )
We are then able to introduce the demon entropy by using the same decomposition used for the market entropy. We then have:
-
An observed prefix ( X 1 ) = G i , 2 1 of probability p i , 2 1 with L = 1 ;
-
A random suffix X 2 whose conditional distribution is a Bernoulli of parameter π i , 2 1 [ 0 , 1 ] . The sequence ( X 1 , X 2 ) is thus equal to ( G i , 2 1 , 1 ) with probability p i , 2 1 π i , 2 1 and ( G i , 2 1 , 0 ) with probability p i , 2 1 ( 1 π i , 2 1 ) . The demon entropy is then:
H 2 2 = i = 1 4 ( p i , 2 1 π i , 2 1 log 2 ( p i , 2 1 π i , 2 1 ) + p i , 2 1 ( 1 π i , 2 1 ) log 2 ( p i , 2 1 ( 1 π i , 2 1 ) ) )
We can then introduce H , 2 2 corresponding to a particular case with π i , 2 1 = 1 2 .
We can finally define the demon information with:
I 2 2 = H , 2 2 H 2 2
We also introduce the correlation between A t 1 and M t informing us about the correlation for the prediction of the time series of alternative data. This correlation is important in explaining the action of the demon. If the time series of alternative data does not explain well the time series of the financial markets, then the alternative data are not useful for a Maxwell’s demon.

4. Simulations of the Maxwell’s Demon on Financial Markets

We are now able to simulate the price of an asset on financial markets with the action of Maxwell’s demon. We take w m = 0.95 and w d = 0.05 , which is reasonable considering the Kyle’s model and the informed investor’s schizophrenia [9]. This schizophrenia corresponds to the fear that informed investors have about their information. In Kyle’s model, we understand that informed investors only use half of the information they have to avoid giving their information to the other participants. We compute the market information with n = 100 and L = 1 . We performed the simulation for 1000 business days. For the first 200 days, the Maxwell’s demon does not invest in the financial security ( w d = 0 ) . The vertical lines in Figure 1a,b represents the separation between the moments when w d = 0 and w d 0 . We have P 0 = 50 $ . We take r = 0 and σ = 0.01 .
We can see from Figure 1 that the demon’s information is strongly correlated with the correlation between A t 1 and M t . The correlation between the time series in Figure 1b,d is 0.92. This explains the importance of the correlation between the alternative data and the market price: if the correlation decreases, then the informed investor is unable to predict well the future return, so its information decreases. As in Brillouin’s perspective, if the intensity of light is not sufficient to determine the position and speed of molecules, then the Maxwell’s demon is not able to move the molecules in order to change the entropy of the thermodynamic system.
We could also think that after the demon’s first transaction on the market, the market information would decrease in order to reach better market efficiency. Even if this pattern seems to be true on Figure 1a, it is not always the case. However, the mean of the market information is lower when the demon invests than when it is passive. As in physics, the second law of thermodynamics is statistical, so a decrease in the market information does not always happen. However, in the long term, we always observe a decrease in the market information (and thus an increase in market entropy) as in physics with an increase in the entropy of the thermodynamic system.
Another interesting analogy to mention is that, in physics, the entropy of two systems is higher than the entropy of each of them. This means that we cannot create order by adding disorder to disorder. Figure 2 shows this property comparing the entropy of the system including the Maxwell’s demon and the entire financial market to, respectively, the entropy of the financial market (Figure 2a) and the entropy of the time series of alternative data (Figure 2b).
We can observe in Figure 2 that the entropy of the system {Maxwell’s demon+financial market} is higher than the entropy of the system {financial market} and higher than the system {Maxwell’s demon}. Then, an investor using alternative data is always able to send entropy to the financial markets and make the market more efficient by reducing the market information.
If the correlation between A t 1 and M t is low, then the demon’s information is in the interval of the absence of information. The demon is then unable to adequately predict the future behavior of the market because we have π i , 2 1 near from 1 2 . Figure 3. represents the simulation of the evolution of the demon’s information (Figure 3a) with the evolution of the correlation between A t 1 and M t (Figure 3b) with a value of correlation between A t 1 and M t lower than in Figure 1. We remind that A t 1 has a predictive power on M t , then a lower correlation between these two values means that the time series of alternative data cannot give enough information to the investor using the data.
In Figure 3, we observe that the correlation is nearer to 0 than in Figure 1 and that the demon’s information prevents them investing in financial markets with a strong probability of gain ( π i , 2 1 near from 1 2 ). We can also observe that the correlation between the demon’s information and the correlation between A t 1 and M t is lower, and that the correlation between the time series in Figure 3a,b is 0.07. Thus, a lower correlation between A t 1 and M t implies lower information for the demon and a lower explainability of the correlation between A t 1 and M t for the demon. Thus, the alternative data he uses are less informative.
We also observe in Figure 1 that the market information does not stay above the 99 % confidence bound for a long period of time. If the market is inefficient (meaning arbitrage is possible), then the participants and Maxwell’s demon take advantage of this situation and the market quickly becomes efficient. This cycle reminds us of Brillouin’s cycle, meaning that, after a peak in information we lose it by intervening in the system.

5. Conclusions

In this work, we showed the behaviors of an investor using alternative data. This investor can be seen as a Maxwell’s demon acting on financial markets. By using analogy with thermodynamics, we made links between the concepts of market efficiency and information theory.
We also introduced a new statistical test of market efficiency allowing us to understand and quantify the action of the demon in financial markets.

Author Contributions

Both authors have contributed equally to all aspects of this manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Fama, E.F. Random Walks in Stock Market Prices. Financ. Anal. J. 1965, 21, 55–59. [Google Scholar] [CrossRef] [Green Version]
  2. Ammy-Driss, A.; Garcin, M. Efficiency of the financial markets during the COVID-19 crisis: Time-varying parameters of fractional stable dynamics. Phys. A Stat. Mech. Appl. 2021, 609, 128335. [Google Scholar] [CrossRef]
  3. Bandt, C.; Pompe, B. Permutation entropy: A natural complexity measure for time series. Phys. Rev. Lett 2002, 88, 174102. [Google Scholar] [CrossRef] [PubMed]
  4. Shannon, C. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef] [Green Version]
  5. Brouty, X.; Garcin, M. A statistical test of market efficiency based on information theory. arXiv 2022, arXiv:2208.11976. [Google Scholar]
  6. Lo, A. The adaptive markets hypothesis. J. Portf. Manag. 2004, 30, 15–29. [Google Scholar] [CrossRef]
  7. Brillouin, L. Scientific Uncertainty, and Information; Academic Press: New York, NY, USA, 1964. [Google Scholar]
  8. Brillouin, L. Maxwell’s demon cannot operate: Information and Entropy. J. Appl. Phys. 1951, 22, 334–337. [Google Scholar] [CrossRef]
  9. Kyle, A.S. Continuous Auctions and Insider Trading. Econometrica 1985, 53, 1315–1335. [Google Scholar] [CrossRef]
Figure 1. Market simulation. The horizontal lines are the confidence intervals of the statistical test of absence of information, with probabilities of 95 % and 99 % .
Figure 1. Market simulation. The horizontal lines are the confidence intervals of the statistical test of absence of information, with probabilities of 95 % and 99 % .
Psf 05 00023 g001
Figure 2. Difference in entropy for the two systems H d 2 corresponding to the demon’s entropy while observing only the time series of alternative data.
Figure 2. Difference in entropy for the two systems H d 2 corresponding to the demon’s entropy while observing only the time series of alternative data.
Psf 05 00023 g002
Figure 3. Demon’s information simulation. The horizontal lines are the confidence intervals of the statistical test of absence of information, with probabilities of 95 % and 99 % (The vertical lines in (a) represents the separation between the moments when w d = 0 and w d 0 . We have P 0 = 50 $ ).
Figure 3. Demon’s information simulation. The horizontal lines are the confidence intervals of the statistical test of absence of information, with probabilities of 95 % and 99 % (The vertical lines in (a) represents the separation between the moments when w d = 0 and w d 0 . We have P 0 = 50 $ ).
Psf 05 00023 g003
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Brouty, X.; Garcin, M. Maxwell’s Demon and Information Theory in Market Efficiency: A Brillouin’s Perspective. Phys. Sci. Forum 2022, 5, 23. https://doi.org/10.3390/psf2022005023

AMA Style

Brouty X, Garcin M. Maxwell’s Demon and Information Theory in Market Efficiency: A Brillouin’s Perspective. Physical Sciences Forum. 2022; 5(1):23. https://doi.org/10.3390/psf2022005023

Chicago/Turabian Style

Brouty, Xavier, and Matthieu Garcin. 2022. "Maxwell’s Demon and Information Theory in Market Efficiency: A Brillouin’s Perspective" Physical Sciences Forum 5, no. 1: 23. https://doi.org/10.3390/psf2022005023

Article Metrics

Back to TopTop