Scientific Machine Learning

Scientific Machine Learning

Introduction

All life and the things we do together are generally open, non-equilibrium systems. 

Evidence that financial markets are not in equilibrium or even in near equilibrium can be made apparent when the market data is objectively examined (see section 3).

By navigating markets with more awareness of the environment, scientific financial market measurements identify large alpha events.

This whitepaper is focused on thermodynamic oscillations in open, non-equilibrium markets formulated as machine learning, because the oscillations are useful to us (profitable), self-regulating and easy to find in NYSE and NASD closing price time-series data. 

The creation and maintenance of organized structures (like oscillations) in open, non-equilibrium systems is due to dissipative processes, and therefore are called dissipative structures. To the best of our knowledge, current advances in non-equilibrium thermodynamics have yet to appear in conventional market analyses, including machine learning. We seek to fix this.

By processing market time-series, Scientific Machine Learning implements the thermodynamic Science of Counting to give an unbiased scientific analysis of a market.

In the next section, we’ll explain what open, non-equilibrium means, and how to apply it to financial markets (or in fact any market).  

In Section three, we focus on dissipative structures.  We plot the ScienceML decomposition for closing price time-series to directly observe the dissipative structure.

Section four is a conclusion.


Open, Non-equilibrium Financial Markets

Table 1 below compares the different types of scientific systems: isolated, closed, and open. Financial markets (and anything else of interest) are surely more dynamic than room temperature coffee (closed system, see below). However, our current toolset (statistics, conventional machine learning and AI) is not designed for open systems, and only obscures our understanding of them.

No alt text provided for this image

Table 1. Compares the different types of scientific systems: isolated, closed, and open. 

Open systems are generally not in equilibrium and are non-linear, and therefore assumed to be difficult to solve. But this is not true for every open system problem. One of the generous takeaways from an undergraduate physics major is the Science of Counting. The Science of Counting provided many problems in the undergraduate curriculum that work out particularly well, often with just algebra. The Science of Counting was applied to the theory of electrical circuits (pre-Maxwell, pre-electron, circa Kirchoff), although simplified considerably by assuming thermal equilibrium. The deeper message to undergraduate physics majors is that the Science of Counting is really thermodynamics.

As an unbiased mathematical description of our system and environment, the Science of Counting processes time-series and gives exact expressions for scientific measurements.[1] Look at financial markets specifically (Figure 1).  Inside the circle in Figure 1 is our (irreversible) non-equilibrium trading dynamics, driven by energy and temperature, E and T, and interacting with a temperature and information reservoir (outside the circle). The trading reservoir can be taken to be very inclusive (media, monetary policy, on and on), but they all roll up to a single number, T_R, the temperature of the reservoir.

No alt text provided for this image

Figure 1. Description of the open system

From the time-series, the energy and temperature, E and T, can be calculated exactly. Also, the temperature of the reservoir, T_R, can be measured directly (next section). In general, the temperature of the system and the temperature of the environment are not the same: T ≠ T_R . Coffee is not at room temperature.

The non-equilibrium process of interest here is:  Loss  ⇌ Gain. 

Our objective is to compute from closing-price time-series the reaction rates (both forward and backward) for Gains and Losses. One technical assumption (Gibbs) is made on the exchange of energy and information between the trading dynamics and the reservoir: that it is reversible. The energy and information are reversible if neither energy nor information can be deleted between the system and the trading environment.  The memory in Figure 1 stores system and environment information, like the daily closing price, so that it is not forgotten (a form of deletion).

Dissipative Structures

Figure 2 (below) plots the probabilities and the energy of a closing price time-series. Six months of closing price data for stock symbol ZIM (bottom plot) is processed by ScienceML and plotted. Note that out of six months of data, only the last three months of processed data are plotted. The middle plot is the energy; the energy is zero at statistical equilibrium. The top plot presents two different types of probability: mechanical (dotted) and thermal (solid). Observe that when the thermal probability dominants the non-thermal probability, the thermal probability drives the price movements. Look at Figure 2. The dominant thermal probability is the reaction rate for the Loss ⇌ Gain reaction that we were seeking in the previous section.

No alt text provided for this image

Figure 2. Market closing prices (input, bottom plot) for ZIM. Energy measured from equilibrium (middle plot). Both non-thermal (green/red dotted) and thermal probability (green/red solid) are in top plot.

Figure 3 below plots the temperature and the free energy for the same closing price time-series data used in Figure 2 for ZIM. The system temperature and free energy are well-defined and calculated. The free energy is the energy available to do price movement work. When free energy is falling, free energy is doing price movement work and increasing the internal temperature. Note that neither the temperature nor the free energy is constant over the time duration. Heat both enters and exits the system.

This is characteristic of a thermodynamically open system. From the data, ZIM has operated out of, and often far from, statistical or thermodynamic equilibrium (steady state) in an environment with which it exchanges energy and information. The temperature of the external trading environment is denoted by T_R.

A thermodynamically open system is said to be a dissipative structure when it has a dynamical regime that is in some sense oscillatory. That behavior is present in Figure 3.

No alt text provided for this image

Figure 3. Plots of temperature and free energy over three months using six months of closing prices. Provides evidence that asset prices for ZIM have been far from either statistical or thermal equilibrium.

The temperature of the system, T, and the temperature of the external trading environment (T_R) are generally different. However, the two temperatures are the same when the system is in thermal equilibrium. In the Figure above, there is an interval in March when the temperature and the free energy of ZIM are constant; this is thermal equilibrium with the trading environment. Thermal equilibrium provides a measurement of the temperature of the trading environment, in this case, T_R = 0.6809, approximately.

 

Conclusion

In the first week of January 2022, Precision Alpha analyzed all symbols on the NYSE and NASD using Scientific Machine Learning. The analysis focused on symbols that had non-thermal probability greater than 0.51 or less than 0.49 for an entire year. In each exchange, roughly one third of all symbols (about 800 symbols on NASD, and 700 symbols on NYSE) were found to satisfy that (somewhat arbitrary) threshold. And of those symbols, all were found to have evidence of dissipative structures, both bullishly and bearishly. In January 2022 at least one third of the stocks on NYSE and NASD displayed strong open thermodynamic behavior.

Precision Alpha’s analysis suggests that asset prices that behave as dissipative structures are common on the NYSE and NASD.

 

Bibliography

[1] M. Temple-Raston, ScienceML from Decision Machine, DM/PA Technical Whitepaper (www.precisionalpha.com/ScienceML).


To view or add a comment, sign in

More articles by Mark Temple-Raston, PhD

Others also viewed

Explore content categories