Statistical Mechanics of Nonlinear Nonequilibrium Financial Markets ...

5 downloads 0 Views 117KB Size Report
recursive ASA optimization process to tune trading rules. These trading rules ...... As listed in Table 1, the order of choices made for daily trading are as follows.
Statistical Mechanics of Nonlinear Nonequilibrium Financial Markets: Applications to Optimized Trading Lester Ingber Lester Ingber Research P.O.B. 857, McLean, VA 22101, U.S.A. [email protected] Abstract—A paradigm of statistical mechanics of financial markets (SMFM) using nonlinear nonequilibrium algorithms, first published in L. Ingber, Mathematical Modelling, 5, 343-361 (1984), is fit to multivariate financial markets using Adaptive Simulated Annealing (ASA), a global optimization algorithm, to perform maximum likelihood fits of Lagrangians defined by path integrals of multivariate conditional probabilities. Canonical momenta are thereby derived and used as technical indicators in a recursive ASA optimization process to tune trading rules. These trading rules are then used on out-ofsample data, to demonstrate that they can profit from the SMFM model, to illustrate that these markets are likely not efficient. Keywords—Finance, Economics, Simulated Annealing, Statistical Mechanics

Nonlinear Nonequilibrium Financial Markets

-2-

Lester Ingber

1. INTRODUCTION Over a decade ago, the author published a paper suggesting the use of newly developed methods of multivariate nonlinear nonequilibrium calculus to approach a statistical mechanics of financial markets (SMFM) [1]. That paper also gave a brief summary of the state of affairs of the equilibrium paradigm of financial markets. These methods were recently applied to interest-rate term-structure systems [2]. Still, for some time, the standard accepted paradigm of financial markets has been rooted in equilibrium processes [3]. There is a current effort by many to examine nonlinear and nonequilibrium processes in these markets, and this paper reinforces this point of view. There are several issues that are clarified here, by presenting calculations of a specific trading model: (A) It is demonstrated how multivariate markets might be formulated in a nonequilibrium paradigm. (B) It is demonstrated that, despite possessing an algebra that was shunned a decade ago as being too complex, since then numerical methods of global optimization can be used to fit such SMFM models to data. (C) A variational principle possessed by SMFM permits derivation of technical indicators, such as canonical momenta, that can be used to describe deviations from most likely evolving states of the multivariate system. (D) These technical indicators can be embedded in realistic trading scenarios, to test whether they can profit from nonequilibrium in markets. Section 2 outlines the formalism used to develop the nonlinear nonequilibrium SMFM model. Section 3 describes application of SMFM to SP500 cash and future data, using Adaptive Simulated Annealing (ASA) [4] to fit the short-time conditional probabilities developed in Section 2, and to establish trading rules by recursively optimizing with ASA, using optimized technical indicators developed from SMFM. These calculations were briefly mentioned in another ASA paper [5]. Section 4 is a brief conclusion.

2. SMFM MODEL

2.1. Random Walk Model The following is a brief review of the rationale leading to SMFM close to its original presentation in 1984 [1]. Several studies imply that changing prices of many markets do not follow a random walk, that they may have long-term dependences in price correlations, and that they may not be efficient in

Nonlinear Nonequilibrium Financial Markets

-3-

Lester Ingber

quickly arbitraging new information [6-10]. (A) A random walk for returns, rate of change of prices over prices, is described by a Langevin equation with simple additive noise η , typically representing the continual random influx of information into the market. Γ˙ = −γ 1 + γ 2η ,

(1)

Γ˙ = dΓ/dt , < η (t) >η = 0 , < η (t), η (t′) >η = δ (t − t′) , where γ 1 and γ 2 are constants, and Γ is the logarithm of (scaled) price. From this equation, other models may be derived, such as the times-series model and the Kalman filter method of control theory [11], when care is taken to project physical states on observable space before eliminating irrelevant variables [12]. However, in the process of this transformation, the Markovian description typically is lost by projection onto a smaller state space [12,13]. In this context, price, although the most dramatic observable, may not be the only appropriate dependent variable or order parameter for the system of markets [14]. This possibility has also been called the “semistrong form of the efficient market hypothesis” [8]. This paper only considers nonlinear Gaussian noise, e.g., γ 2 not constant, also called “multiplicative” noise. These methods are not conveniently used for other sources of noise also considered by economists, e.g., Poisson processes [15] or Bernoulli processes [16,17]. For example, within limited ranges, log-normal distributions can approximate 1/ f distributions, and Pareto-L´evy tails may be modelled as subordinated log-normal distributions with amplification mechanisms [18]. (B) It is also necessary to explore the possibilities that a given market evolves in nonequilibrium, e.g., evolving irreversibly, as well as nonlinearly, e.g., γ 1,2 may be functions of Γ. Irreversibility, e.g., causality [19] and nonlinearity [20], have been suggested as processes necessary to take into account in order to understand markets, but modern methods of statistical mechanics now provide a more explicit paradigm to consistently include these processes in bona fide probability distributions. Reservations have been expressed about these earlier models at the time of their presentation [21].

Nonlinear Nonequilibrium Financial Markets

-4-

Lester Ingber

(C) Besides assuming a rather specialized form for a Markovian process, Eq. (1) also assumes that real time is the proper independent variable. This is true for physical and most biophysical processes that have relatively continuous interactions [22-25], but for social and economic systems, some other density of relevant events might better describe the temporal evolution of the system. For example, typically, t is measured by a small time unit tˆ that averages over a chosen number of ticks/trades and t is a macroscopic epoch. Reasonable values of tˆ and t are on the order of minutes and days, respectively. A mesoscopic time scale τ , t > τ > tˆ, and a “smoothness” parameter Γγ , a fraction of Γ(t), are chosen to search and fit Γ(t) to local minima and maxima. Thus a sequence of trades is taken to measure the independent temporal parameter of market T , and is mapped onto the variable Θ, defined by integers ρ : Θ ρ = ρτ + Θ0 . Another reasonable scaling of t onto a mesoscopic Θ′ would be to scale t inversely to volume V being traded, and to perform trades over a uniform mesh of Θ′. This would be one way of simulating an “average” trader. (D) Developments in nonlinear nonequilibrium statistical mechanics in the late 1970’s and their application to a variety of testable physical phenomena illustrate the importance of properly treating nonlinearities and nonequilibrium in systems where simpler analyses prototypical of linear equilibrium Brownian motion do not suffice [22-25].

2.2. Statistical Mechanics of Large Systems Aggregation problems in nonlinear nonequilibrium systems typically are “solved” (accommodated) by having new entities/languages developed at these disparate scales in order to efficiently pass information back and forth [26,27]. This is quite different from the nature of quasi-equilibrium quasilinear systems, where thermodynamic or cybernetic approaches are possible. These approaches typically fail for nonequilibrium nonlinear systems. In the late 1970’s, mathematical physicists discovered that they could develop statistical mechanical theories from algebraic functional forms dr/dt = f r (r, l) + Σ gˆ ir (r, l)η i , i

dl/dt = f l (r, l) + Σ gˆ il (r, l)η i , i

(2)

Nonlinear Nonequilibrium Financial Markets

-5-

Lester Ingber

where the g’s ˆ and f ’s are general nonlinear algebraic functions of the variables r and l. These equations represent differential limits of discretized stochastic difference equations, e.g., Wiener noise dW → η dt [28]. The resulting stochastic differential equations (s.d.e.’s) are referred to as Langevin equations [28-33]. The f ’s are referred to as the (deterministic) drifts, and the square of the g’s ˆ are related to the diffusions (fluctuations or volatilities). In fact, the statistical mechanics can be developed for any number of variables, not just two. The η ’s are sources of Gaussian-Markovian noise, often referred to as “white noise.” The inclusion of the g’s, ˆ called “multiplicative” noise, recently has been shown to very well mathematically and physically model other forms of noise, e.g., shot noise, colored noise, dichotomic noise [34-37]. Finite-jumps diffusions also can be included [38]. These new methods of nonlinear statistical mechanics only recently have been applied to complex large-scale physical problems, demonstrating that observed data can be described by the use of these algebraic functional forms. Success was gained for large-scale systems in neuroscience, in a series of papers on statistical mechanics of neocortical interactions [24,25,39-46], and in nuclear physics [47,48]. This methodology has been used for problems in combat analyses [27,49-52]. These methods have been suggested for financial markets [1], and applied to a term structure model of interest rates [2,53]. Thus, now we can investigate various choices of f ’s and g’s ˆ to test algebraic functional forms. In science, this is a standard phenomenological approach to discovering and encoding knowledge and observed data, i.e., fitting algebraic functional forms which lend themselves to empirical interpretation. This gives more confidence when extrapolating to new scenarios, exactly the issue in building confidence in financial models. The utility of these algebraic functional forms goes further beyond their being able to fit sets of data. There is an equivalent representation to the Langevin equations, called a “path-integral” representation for the long-time probability distribution of the variables. This short-time probability distribution is driven by a “Lagrangian,” which can be thought of as a dynamic algebraic “cost” function. The path-integral representation for the long-time distribution possesses a variational principle, which means that simple graphs of the algebraic cost-function give a correct intuitive view of the most likely states of the variables, and of their statistical moments, e.g., heights being first moments (likely states) and widths being second moments (uncertainties). Like a ball bouncing about a terrain of hills and valleys, one can quickly visualize the nature of dynamically unfolding r and l states.

Nonlinear Nonequilibrium Financial Markets

-6-

Lester Ingber

Especially because we are trying to mathematically model sparse and poor data, different drift and diffusion algebraic functions can give approximately the same algebraic cost-function when fitting shorttime probability distributions to data. The calculation of long-time distributions permits a clear choice of the best algebraic functions, i.e., those which best follow the data through a predetermined long epoch of trading. Afterwards, if there are closely competitive algebraic functions, they can be more precisely assessed by calculating higher algebraic correlation functions from the probability distribution.

2.3. Statistical Development When other order parameters in addition to price are included to study markets, Eq. (1) is accordingly generalized to a set of Langevin equations. ˙ G = f G + gˆ Gj η j , M

(3)

(G = 1, . . . , Λ) , ( j = 1, . . . , N ) , ˙ G = dM G /dΘ , M < η j (Θ) >η = 0 , < η j (Θ), η j′ (Θ′) >η = δ jj′δ (Θ − Θ′) , where f G and gˆ Gj are generally nonlinear functions of mesoscopic order parameters M G , j is a microscopic index indicating the source of fluctuations, and N ≥ Λ. The Einstein convention of summing over repeated indices is used. Vertical bars on an index, e.g., |j|, imply no sum is to be taken on repeated indices. Via a somewhat lengthy, albeit instructive calculation, outlined in several other papers [1,2,42], involving an intermediate derivation of a corresponding Fokker-Planck or Schr¨odinger-type equation for the conditional probability distribution P[M(Θ)|M(Θ0 )], the Langevin rate Eq. (3) is developed into the more useful probability distribution for M G at long-time macroscopic time event Θ = (u + 1)θ + Θ0 , in terms of a Stratonovich path-integral over mesoscopic Gaussian conditional probabilities [29,54-57]. Here, macroscopic variables are defined as the long-time limit of the evolving mesoscopic system.

Nonlinear Nonequilibrium Financial Markets

-7-

Lester Ingber

The corresponding Schr¨odinger-type equation is [55,56] ∂P/∂Θ =

1 2

(gGG′ P),GG′ − (gG P),G + V ,

(4)

gGG′ = k T δ jk gˆ Gj gˆ G′ k , gG = f G +

1 2

δ

jk G′ G gˆ j gˆ k,G′

,

[. . .],G = ∂[. . .]/∂M G . This is properly referred to as a Fokker-Planck equation when V ≡ 0. Note that although the partial differential Eq. (4) contains equivalent information regarding M G as in the stochastic differential Eq. (3), all references to j have been properly averaged over. I.e., gˆ Gj in Eq. (3) is an entity with parameters in both microscopic and mesoscopic spaces, but M is a purely mesoscopic variable, and this is more clearly reflected in Eq. (4). The path integral representation is given in terms of the Lagrangian L. P[M Θ |M Θ0 ]dM(Θ) =

S=

k T−1

∫ . . . ∫ DM exp(−S)δ [M(Θ0) = M0]δ [M(Θ) = MΘ] ,

Θ

min

∫Θ dΘ′L , 0

DM = lim

u+1

(2π θ )−1/2 dM G Π g1/2 Π ρ , G

u→∞ ρ =1

˙ G − hG )gGG′ ( M ˙ G′ − hG′ ) + 1 hG ;G + R/6 − V , ˙ G , M G , Θ) = 1 ( M L( M 2

hG = gG −

1 2

g−1/2 (g1/2 gGG′ ),G′ ,

gGG′ = (gGG′ )−1 , g = det(gGG′ ) , F G −1/2 1/2 G hG ;G = hG (g h ),G , ,G + ΓGF h = g

2

(5)

Nonlinear Nonequilibrium Financial Markets

-8-

Lester Ingber

Γ FJK ≡ g LF [JK , L] = g LF (g JL,K + g KL,J − g JK ,L ) , R = g JL R JL = g JL g JK R FJKL , R FJKL =

1 2

M N M N (g FK ,JL − g JK ,FL − g FL,JK + g JL,FK ) + g MN (Γ FK Γ JL − Γ FL Γ JK ) .

Mesoscopic variables have been defined as M G in the Langevin and Fokker-Planck representations, in terms of their development from the microscopic system labeled by j. The Riemannian curvature term R arises from nonlinear gGG′ , which is a bona fide metric of this parameter space [55]. Even if a stationary ˙ G = 0, is ultimately sought, a necessarily prior stochastic treatment of M ˙ G terms gives rise solution, i.e., M to these Riemannian “corrections.” Even for a constant metric, the term hG ;G contributes to L for a nonlinear mean hG . V may include terms such as

J T ′G M G , where the Lagrange multipliers J T ′G are Σ T′

constraints on M G , e.g., from other markets T ′, which are advantageously modelled as extrinsic sources in this representation; they too may be time-dependent. Using the variational principle below, J TG may also be used to constrain M G to regions where they are empirically bound. More complicated constraints may be affixed to L using methods of optimal control theory [58]. With respect to a steady state P, when it exists, the information gain in state P is defined by ϒ[P] =

∫ . . . ∫ DM′ P ln (P/P) ,

(6)

DM′ = DM/dM u+1 . In the economics literature, there appears to be sentiment to define Eq. (3) by the Ito, rather than the Stratonovich prescription. It should be noted that virtually all investigations of other physical systems, which are also continuous time models of discrete processes, conclude that the Stratonovich interpretation coincides with reality, when multiplicative noise with zero correlation time, modelled in terms of white noise η j , is properly considered as the limit of real noise with finite correlation time [38]. The path integral succinctly demonstrates the difference between the two: The Ito prescription corresponds to the ˙ prepoint discretization of L, wherein θ M(Θ) → M ρ +1 − M ρ and M(Θ) → M ρ . The Stratonovich ˙ prescription corresponds to the midpoint discretization of L, wherein θ M(Θ) → M ρ +1 − M ρ and M(Θ) →

1 2

(M ρ +1 + M ρ ). In terms of the functions appearing in the Fokker-Planck Eq. (4), the Ito

prescription of the prepoint discretized Lagrangian, L I , is relatively simple, albeit deceptively so because

Nonlinear Nonequilibrium Financial Markets

-9-

Lester Ingber

of its nonstandard calculus. G

˙ , M G , Θ) = LI (M

1 2

G

˙ − gG )gGG′ ( M ˙ (M

G′

− gG′ ) − V .

(7)

In the absence of a nonphenomenological microscopic theory, if the Ito prescription is proposed rather than the Stratonovich prescription, then this choice must be justified by numerical fits to data for each case considered. There are several other advantages to Eq. (5) over Eq. (3). Extrema and most probable states of M G , >, are simply derived by a variational principle, similar to conditions sought in previous studies [59]. In the Stratonovich prescription, necessary, albeit not sufficient, conditions are given by δ G L = L ,G − L ,G:Θ =0, ˙

(8)

˙ G′ + L ,G˙ G′ ¨ G′ . L ,G:Θ = L ,GG′ ˙ ˙ M ˙ M ˙ G = 0, and ∂L/∂M G = 0 defines >, where the bars identify stationary For stationary states, M variables; in this case, the macroscopic variables are equal to their mesoscopic counterparts. [Note that L is not the stationary solution of the system, e.g., to Eq. (4) with ∂P/∂Θ = 0. However, in some cases [40], L is a definite aid to finding such stationary states.] Typically, in other financial studies, only properties ˙ G terms in L of stationary states are examined, but here a temporal dependence is included. E.g., the M permit steady states and their fluctuations to be investigated in a nonequilibrium context. Note that Eq. (8) must be derived from the path integral, Eq. (5), which is at least one reason to justify its development. In the language of nonlinear nonequilibrium thermodynamics [30], the thermodynamic forces are ˙ χ G = S ,G , where S is the entropy, and the thermodynamic fluxes are M

G

= gGG′ χ G′ . Although the fluxes

are defined to be linearly related to the forces, gGG′ may be highly nonlinear in the state-variables M G . The short-time Feynman Lagrangian L can be expressed as the sum of the dissipation function G

˙ )= φ (M G , M

1 2

˙ GM ˙ G′ , the force function Ψ(M G , χ G ) = 1 gGG′ χ G χ G′ , the potential term −V , and gGG′ M 2

˙ G) = −χG M ˙ G : Then L = φ + Ψ − S˙ − V is the nonlinear the (negative) rate of change of entropy − S(M nonequilibrium generalization of the Onsager-Machlup Lagrangian [60]. The variational equations insure that the equilibrium entropy is maximal, not necessarily a static equilibrium. Fluctuations over short time periods

are

introduced

G′

˙ − gG′ ) ≡ gGG′ M

˙ η G = gGG′ ( M

via G′

variables

˙ η G = ∂L/∂ M

G

canonical

to

MG,

− χ G , interpreted as resulting from the nonequilibrium competition

Nonlinear Nonequilibrium Financial Markets

- 10 -

Lester Ingber

between the thermodynamic forces and fluxes. In the context of multiplicative Gaussian noise, the G G conditional probability of making the state-transition from M ΘG = M G (Θ) to M Θ+ θ = M (Θ + θ ) is then G G hypothesized to be P[M Θ+ θ |M Θ ] ∝ exp(−

1 2k T

Θ+θ

∫Θ

dΘ′L)dη . This machinery suffices to determine the

macroscopic probability distribution [30]. For nonconstant gGG′ when R ≠ 0, it should be noted that the Lagrangian corresponding to the most-probable path is not derived from the variational principle, but is directly related to L [28]. To begin introducing economic theory, variables such as (logarithm) price can be postulated to be the basic state-variables. However, it is not clear how to precisely relate L to classical economic equilibrium utility functions. It seems more reasonable to take economic microscopic models, usually formulated by differential equations of the state-variables, find regions of M G wherein multiplicative Gaussian noise modelling is appropriate, directly calculate L, and then to make the identification with thermodynamic forces, fluxes and entropy, if this is desired. It is argued here that, although the thermodynamic interpretation perhaps has aesthetic value, the prime utility of the statistical mechanical formulation of probability densities in terms of generalized Lagrangians is that detailed calculations can be performed of macroscopic evolutions of microscopic and mesoscopic mechanisms, even in highly nonlinear and nonequilibrium contexts.

2.4. Algebraic Complexity Yields Simple Intuitive Results It must be emphasized that the output need not be confined to complex algebraic forms or tables of numbers. Because L possesses a variational principle, sets of contour graphs, at different long-time epochs of the path-integral of P over its variables at all intermediate times, give a visually intuitive and accurate decision-aid to view the dynamic evolution of the scenario. For example, this Lagrangian approach permits a quantitative assessment of concepts usually only loosely defined. “Momentum” = ΠG =

“Mass”gGG′ =

“Force” =

∂L , ∂(∂M G /∂Θ)

∂2 L , ∂(∂M G /∂Θ)∂(∂M G′ /∂Θ)

∂L , ∂M G

Nonlinear Nonequilibrium Financial Markets

“F = ma”: δ L = 0 =

- 11 -

∂L ∂ ∂L , − G ∂Θ ∂(∂M G /∂Θ) ∂M

Lester Ingber

(9)

where M G are the variables and L is the Lagrangian. These physical entities provide another form of intuitive, but quantitatively precise, presentation of these analyses. For example, daily newspapers use this terminology to discuss the movement of security prices. Here, we will use the canonical momenta as indicators to develop trading rules.

2.5. Fitting Parameters The short-time path-integral Lagrangian of a Λ-dimensional system can be developed into a scalar “dynamic cost function,” C, in terms of parameters, e.g., generically represented as C(α˜ ), C(α˜ ) = L∆Θ +

Λ 2

ln(2π ∆Θ) −

1 2

ln g ,

(10)

which can be used with the ASA algorithm, originally called Very Fast Simulated Reannealing (VFSR) [61] discussed below [4], to find the (statistically) best fit of parameters. The cost function for a given system is obtained by the product of P’s over all data epochs, i.e., a sum of C’s is obtained. Then, since we essentially are performing a maximum likelihood fit, the cost functions obtained from somewhat different theories or data can provide a relative statistical measure of their likelihood, e.g., P 12 ∼ exp(C 2 − C 1 ). If there are competing mathematical forms, then it is advantageous to utilize the path-integral to calculate the long-time evolution of P [27,50]. Experience has demonstrated that the long-time correlations derived from theory, measured against the observed data, is a viable and expedient way of rejecting models not in accord with observed evidence. Note that the use of the path integral is a posteriori to and independent of the short-time fitting process, and is a subsidiary physical constraint on the mathematical models to judge their internal soundness and suitability for attempts to extrapolate to other trading scenarios.

2.6. Numerical Methodology Two major computer codes have been developed to calculate these algebraic models, which are key tools for the use of this approach to estimate model parameters and price bonds.

Nonlinear Nonequilibrium Financial Markets

- 12 -

Lester Ingber

The first code, ASA [61], fits short-time probability distributions to observed data, using a maximum likelihood technique on the Lagrangian. This algorithm has been developed to fit observed data to a theoretical cost function over a D-dimensional parameter space [61], adapting for varying sensitivities of parameters during the fit. The annealing schedule for the “temperatures” (artificial fluctuation parameters) T i decrease exponentially in “time” (cycle-number of iterative process) k, i.e., T i = T i0 exp(−c i k 1/D ). Heuristic arguments have been developed to demonstrate that this algorithm is faster than the fast Cauchy annealing [62], T i = T 0 /k, and much faster than Boltzmann annealing [63], T i = T 0 / ln k. To be more specific, the kth estimate of parameter α i , α ki ∈[ Ai , Bi ] ,

(11)

is used with the random variable x i to get the k + 1th estimate, i α k+1 = α ki + x i (Bi − Ai ) ,

x i ∈[−1, 1] .

(12)

The generating function is defined as D

gT (x) = Π i=1

D 1 ≡ gTi (x i ) , 2 ln(1 + 1/T i )(|x i | + T i ) Π i=1

T i = T i0 exp(−c i k 1/D ) .

(13)

Note that the use of C, the cost function given above, is not equivalent to doing a simple least squares fit on M(Θ + ∆Θ). ASA has been applied to many problems by many people in many disciplines [5,64,65]. It is available via anonymous ftp from ftp.alumni.caltech.edu in directory /pub/ingber, which also can be accessed via the world-wide web (WWW) as http://www.alumni.caltech.edu/˜ingber/. The second code, PATHINT, develops the long-time probability distribution from the Lagrangian fit by the first code. A robust and accurate histogram-based (non-Monte Carlo) path-integral algorithm to calculate

the

long-time

Lagrangians [44,50,66-70],

probability

distribution

has

been

developed

to

handle

nonlinear

Nonlinear Nonequilibrium Financial Markets

- 13 -

Lester Ingber

The histogram procedure recognizes that the distribution can be numerically approximated to a high degree of accuracy as sum of rectangles at points M i of height P i and width ∆M i . For convenience, just consider a one-dimensional system. The above path-integral representation can be rewritten, for each of its intermediate integrals, as P(M; Θ + ∆Θ) = =

P(M; Θ) =

−1/2 exp(−L s ∆Θ)]P(M′; Θ) s (2π ∆Θ) ∫ dM′[g1/2

∫ dM′G(M, M′; ∆Θ)P(M′; Θ) ,

N

Σ π (M − M i )P i (Θ) i=1

 1 1 0 , (M i − ∆M i−1 ) ≤ M ≤ (M i + ∆M i ) , 2 2 π (M − M i ) =  1 , otherwise , 

(14)

which yields P i (Θ + ∆Θ) = T ij (∆Θ)P j (Θ) , T ij (∆Θ) =

2 ∆M i−1 + ∆M i

+∆M /2 +∆M /2 dM dM′G(M, M′; ∆Θ) . ∫ MM−∆M ∫ MM −∆M /2 /2 i

i

j

i

i−1

j

j

(15)

j−1

T ij is a banded matrix representing the Gaussian nature of the short-time probability centered about the (varying) drift. Fitting data with the short-time probability distribution, effectively using an integral over this epoch, permits the use of coarser meshes than the corresponding stochastic differential equation. The coarser resolution is appropriate, typically required, for numerical solution of the time-dependent pathintegral: By considering the contributions to the first and second moments of ∆M G for small time slices θ , conditions on the time and variable meshes can be derived [66]. The time slice essentially is determined −1

by θ ≤ L , where L is the “static” Lagrangian with dM G /dΘ = 0, throughout the ranges of M G giving the most important contributions to the probability distribution P. The variable mesh, a function of M G , is optimally chosen such that ∆M G is measured by the covariance gGG′ , or ∆M G ∼(gGG θ )1/2 .

Nonlinear Nonequilibrium Financial Markets

- 14 -

Lester Ingber

2.7. Application to Term-Structure Models An example of application of this formalism was to a term structure model developed for interest rates [2,53]. This model was developed with some sound economic theory, but the methodology presented here of using the methods of modern calculus, e.g., using the path-integral representation to define a maximum likelihood cost function has not yet been recognized by this community [71]. The pioneering Brennan-Schwartz (BS) model [72,73] was used to illustrate how to numerically implement this methodology [2,53]. Since “real time” is used in this model, the variable t will be used instead of Θ. The BS model is summarized by: dr = [a1 + b1 (l − r)]dt + r σ 1 dz 1 , dl = [l(a2 + b2 r + c 2 l)]dt + lσ 2 dz 2 , < dz i >= 0 , i = {1, 2} , < dz i (t)dz j (t′) >= dt δ (t − t′) , i = j , < dz i (t)dz j (t′) >= ρ dt δ (t − t′) , i ≠ j , 0 , , t ≠ t′ ,  1 , t = t′ ,

δ (t − t′) = 

(16)

where < . > denotes expectations. These can be rewritten as Langevin equations (in the Itoˆ prepoint discretization) dr/dt = a1 + b1 (l − r) + σ 1 r(γ + n1 + sgn ρ γ − n2 ) , dl/dt = l(a2 + b2 r + c 2 l) + σ 2 l(sgn ρ γ − n1 + γ + n2 ) , γ ± = [1 ± (1 − ρ 2 )1/2 ]1/2 ,

ni = (dt)1/2 pi , where p1 and p2 are independent [0,1] Gaussian distributions.

(17)

Nonlinear Nonequilibrium Financial Markets

- 15 -

Lester Ingber

The cost function C is defined from the equivalent short-time probability distribution, P, for the above set of equations. P = g1/2 (2π dt)−1/2 exp(−Ldt) = exp(−C) , C = Ldt + ln(2π dt) −

L=

1 2

1 2

ln(g) ,

F † gF ,

F=

 dr/dt − ( a1 + b1 (l − r)))  ,  dl/dt − l(a2 + b2 r + c 2 l) 

g=

1 k

 (r σ )−2 1  −1  − ρ (rlσ 1σ 2 )

− ρ (rlσ 1σ 2 )−1  , (lσ 2 )−2 

g = det(g) , k = 1 − ρ2 .

(18)

g, the metric in {r, l}-space, is the inverse of the covariance matrix,  (r σ )2 1 g−1 =  ρ rl σ 1σ 2 

ρ rlσ 1σ 2 

. (lσ 2 )2 

(19)

As discussed above, the correct mesh for time, dt, in order that P represent the Langevin equations (to order dt 3/2 ) is dt ≤ 1/L ,

(20)

where L is L evaluated with ds/dt = dl/dt = 0. If dt is greater than 1/L, then it is inappropriate to use P, and instead the path integral over intermediate states of folded short-time distributions must be calculated. In this context, it should be noted that the correct time mesh for the corresponding differential equations must be at least as small, since typically differentiation is a “sharpening” process. This will be noted in any discipline requiring numerical calculation, when comparing differential and integral representations of the same system.

Nonlinear Nonequilibrium Financial Markets

- 16 -

Lester Ingber

As reported [2,53], this methodology achieved a cost function a factor of 10 smaller than that calculated using the parameters given in the previous literature. Since the author was given the data with the understanding that it would not be widely disseminated, they are not explicitly presented with this paper.

3. FITTING SMFM TO SP500

3.1. Data Processing For the purposes of this paper, it suffices to consider a two-variable problem, SP500 prices of futures, p1 , and cash, p2 . Data included 251 points of 1989 and 252 points of 1990 daily closing data. (See Fig 1.) Time between data was taken as real time t, e.g., a weekend added two days to the time between data of a Monday and a previous Friday. It was decided that relative data should be more important to the dynamics of the SMFM model than absolute data, and an arbitrary form was developed to preprocess data used in the fits, M i (t) = pi (t + ∆t)/ pi (t) ,

(21)

where i = {1, 2} = {futures, cash}, and ∆t was the time between neighboring data points, and t + ∆t is the current trading time. The ratio served to served to suppress strong drifts in the absolute data. (See Figs. 2 and 3.) The Lagrangians fit to data below barely support the time scale of one day as being appropriate for for fitting and trading in this system. Certainly, weekly or monthly data would be too coarse.

3.2. ASA Fits of SMFM to Data Two source of noise were assumed, so that the equations of this SMFM model are 2 2 dM G G i = Σ f G′ M G′ + Σ gˆ G i η , G = {1, 2} . dt i=1 G′=1

(22)

G The 8 parameters, { f G′ , gˆ G i } were all taken to be constants.

As discussed previously, the path-integral representation was used to define an effective cost function. Minimization of the cost function was performed using ASA. Some experimentation with the

Nonlinear Nonequilibrium Financial Markets

- 17 -

Lester Ingber

fitting process led to a scheme whereby after 1000 accepted states, the optimization was shunted over to a quasi-local code, the Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm [74], to add another decimal of precision. If ASA was shunted over too quickly to BFGS, then poor fits were obtained, i.e., the fit stopped in a higher local minimum. Experience with ASA since 1993, and with its predecessor VFSR when these calculations were first performed in 1991, suggests that ASA might be as efficient as BFGS in the end stages of search for this particular problem, but this was not pursued here. The values of the parameters obtained by this fitting process were: f 11 = 0.135712, f 12 = −0.135701, f 21 = 0.000190291, f 22 = 0.00047205, gˆ 11 = −0.463577, gˆ 21 = 0.463687, gˆ 12 = 0.00156451, gˆ 22 = 0.000767597.

3.3. ASA Fits of Trading Rules A simple model of trading was developed. The author is not a trader, and thus the model is obviously naive. (Yet, it worked well!) Two time-weighted moving averages, of long and short lengths a L and a S were defined. During each new epoch of a L , always using the fits of the SMFM model G , gˆ G described in the previous section as a zeroth order estimate, the parameters { f G′ i } were refit using data

within each epoch. Averaged canonical momenta, i.e., using Eq. (9), were calculated for each new set of a L and a S epochs. Fluctuation parameters ∆q G were defined, such that any change in trading position required that there was some reasonable information outside of these fluctuations that could be used as criteria for trading decisions. No trading was performed for the first few days of the year until the momenta could be calculated. Stop parameters also were placed to limit losses due to long or short positions in the futures market, p_l and p_s, resp. Commissions of $70 were paid every time a new trade of 100 units was taken.

Thus, there were 6 trading parameters used in this example,

{a L , a S , ∆q G , p_l , p_s}. As listed in Table 1, the order of choices made for daily trading are as follows. A 0 represents no trading is performed until enough data is gathered, e.g., to calculate momenta. A 1 represents that all positions are closed out, e.g., at the end of the year. A 2 represents getting out of a long position. This was performed if the difference of the present price and the short-term averaged (within a S ) futures price, divided by the present price, was less than p_l. A 3 represents getting out of a short position. This was performed if the negative of the difference of the present price and the short-term averaged futures price,

Nonlinear Nonequilibrium Financial Markets

- 18 -

Lester Ingber

divided by the present price, was less than p_l. A 10 represents entering a long position, whether in a waiting or a short position; a current position was maintained. This was performed if the short-term averaged momenta of both cash and futures prices were both greater than 0, and their long-term averaged momenta exceeded the ∆q G fluctuation parameters. A -10 represents entering a short position, whether in a waiting or a long position; a current short position was maintained. This was performed if the shortterm averaged momenta of both cash and futures prices were both less than 0, and their long-term averaged momenta were less than the ∆q G fluctuation parameters. A 4 represents any remaining circumstance, getting out of any positions if they exist, and going into or maintaining a waiting position.

3.3.1. In-sample ASA fits of trading rules For the data of 1989, recursive optimization was performed. The trading parameters were optimized in an outer shell, using the negative of the net yearly profit/loss as a cost function. This could have been weighted by something like the absolute value of maximum loss to help minimize risk, but this was not done here. The inner shell of optimization fine-tuning of the SMFM model was performed daily over the current a L epoch. At first, ASA and shunting over to BFGS was used for each shell, but it was realized that good results could be obtained suing ASA and BFGS on the outer shell, and just BFGS on the inner shell (always using the ASA and BFGS derived zeroth order SMFM parameters as described above). The trading parameters fit by this procedure were: a L = 19, a S = 5, ∆q 1 = 7.57644, ∆q 2 = 53.549, p_l = 0.515714, p_s = 0.333581.

3.3.2. Out-of-sample SMFM trading The trading process described above was applied to the 1990 out-of-sample SP500 data. (See Fig. 1.) Note that 1990 was a “bear” market, while 1989 was a “bull” market. Thus, these two years had quite different overall contexts, and this was believed to provide a stronger test of this methodology than picking two years with similar contexts. The inner shell of optimization was performed as described above for 1990 as well. Table 1 gives the daily results of trading. The summary of results is: cumulative profit = $24090, number of profitable long positions = 8, number of profitable short positions = 9, number of losing long positions = 7, number

Nonlinear Nonequilibrium Financial Markets

- 19 -

Lester Ingber

of losing short positions = 6, maximum profit of any given trade = $8180, maximum loss of any trade = −$2145, maximum accumulated profit during year = $26555, maximum loss sustained during year = −$5745. Fig. 4 gives graphs of momenta during 1989 and 1990. Comparing these to Figs. 2 and 3, note that there are more discernable cycles than are present in the ratio-variables. This suggests that the momenta more directly convey important information about the dynamics of the market than does the price. Although only one variable, the futures SP500, was actually traded (the code can accommodate trading on multiple markets), note that the multivariable coupling to the cash market entered in three important ways: (1) The SMFM fits were to the coupled system, requiring a global optimization of all parameters in both markets to define the time evolution of the futures market. (2) The canonical momenta for the futures market is in terms of the partial derivative of the full Lagrangian; the dependency on the cash market enters both as a function of the relative value of the off-diagonal to diagonal terms in the metric, as well as a contribution to the drifts and diffusions from this market. (3) The canonical momenta of both markets were used as technical indicators for trading the futures market.

3.3.3. Reversing data sets The same procedures described above were repeated, but using the 1990 SP500 data set for training and the 1989 data set for testing. The values of the parameters obtained by this fitting process were: f 11 = 0.138135, f 12 = −0.138146, f 21 = 1.37507e-05, f 22 = 0.000576185, gˆ 11 = −0.460157, gˆ 21 = 0.460342, gˆ 12 = 0.000876352, gˆ 22 = 0.00168462. The trading parameters fit by this procedure were: a L = 22, a S = 4, ∆q 1 = 20.3058, ∆q 2 = 96.1126, p_l = 0.15634, p_s = 0.15898. The summary of results is: cumulative profit = $10265, number of profitable long positions = 14, number of profitable short positions = 5, number of losing long positions = 11, number of losing short positions = 11, maximum profit of any given trade = $9605, maximum loss of any trade = −$2170, maximum accumulated profit during year = $14130, maximum loss sustained during year = −$1270.

Nonlinear Nonequilibrium Financial Markets

- 20 -

Lester Ingber

4. CONCLUSION A complete sample scenario has been presented: (a) developing a multivariate nonlinear nonequilibrium model of financial markets; (b) fitting the model to data using methods of ASA global optimization; (c) deriving technical indicators to express dynamics about most likely states; (d) optimizing trading rules using these technical indicators; (e) trading on out-of-sample data to determine if steps (a)−(d) are at least sufficient to profit by the knowledge gained of these financial markets, i.e., these markets are not efficient. Just based the models and calculations presented here, no comparisons can yet be made of any relative superiority of these techniques over other models of markets and other sets of trading rules. Rather, this exercise should be viewed as an explicit demonstration (1) that financial markets can be modeled as nonlinear nonequilibrium systems, and (2) that financial markets are not efficient and that they can be properly fit and profitably traded on real data.

Nonlinear Nonequilibrium Financial Markets

- 21 -

Lester Ingber

REFERENCES 1.

L. Ingber, Statistical mechanics of nonlinear nonequilibrium financial markets, Math. Modelling 5 (6), 343-361 (1984).

2.

L. Ingber, M.F. Wehner, G.M. Jabbour, and T.M. Barnhill, Application of statistical mechanics methodology

to

term-structure

bond-pricing

models,

Mathl.

Comput.

Modelling

15 (11), 77-98 (1991). 3.

R.C. Merton, Continuous-Time Finance, Blackwell, Cambridge, MA, (1992).

4.

L. Ingber, Adaptive Simulated Annealing (ASA), Global optimization C-code, Lester Ingber Research, Chicago, IL, (1993).

5.

L.

Ingber,

Simulated

annealing:

Practice

versus

theory,

Mathl.

Comput.

Modelling

18 (11), 29-57 (1993). 6.

T. F. Cargill and G. C. Rausser, Temporal price behavior in commodity futures markets, J. Finance 30, 1043-1053 (1975).

7.

M. T. Greene and B. D. Fielitz, Long-term dependence in common stock returns, J. Fin. Econ. 4, 339-349 (1977).

8.

M. C. Jensen, Some anomalous evidence regarding market efficiency, an editorial introduction, J. Finan. Econ. 6, 95-101 (1978).

9.

B. B. Mandelbrot, When can price be arbitraged efficiently? A limit to the validity of the random walk and martingale models, Rev. Econ. Statist. 53, 225-236 (1971).

10.

S. J. Taylor, Tests of the random walk hypothesis against a price-trend hypothesis, J. Finan. Quant. Anal. 17, 37-61 (1982).

11.

E. Burmeister and K. D. Wall, Kalman filtering estimation of unobserved rational expectation with an application to the German hyperinflation, J. Econ. 20, 255-284 (1982).

12.

K. Kishida, Physical Langevin model and the time-series model in systems far from equilibrium, Phys. Rev. A 25, 496-507 (1982).

13.

K. Kishida, Equivalent random force and time-series model in systems far from equilibrium, J. Math. Phys. 25, 1308-1313 (1984).

Nonlinear Nonequilibrium Financial Markets 14.

- 22 -

Lester Ingber

P. Brown, A. W. Kleidon, and T. A. Marsh, New evidence on the nature of size-related anomalies in stock prices, J. Fin. Econ. 12, 33-56 (1983).

15.

R. C. Merton, Option pricing when underlying stock returns are discontinuous, J. Fin. Econ. 3, 125-144 (1976).

16.

C. A. Ball and W. N. Torous, A simplified jump process for common stock returns, J. Fin. Quant. Analysis 18, 53-65 (1983).

17.

J. C. Cox, S. A. Ross, and M. Rubenstein, Option pricing: A simplified approach, J. Fin. Econ. 7, 229-263 (1979).

18.

E. W. Montroll and M. F. Shlesinger, Maximum entropy formalism, fractals, scaling phenomena, and 1/f noise: A tale of tails, J. Stat. Phys. 32, 209-230 (1983).

19.

C. W. J. Granger, Investigating causal relations by econometric models and cross-spectral methods, Econometrica 37, 424-438 (1969).

20.

P. K. Clark, A subordinated stochastic process model with finite variance for speculative prices, Econometrica 41, 135-155 (1973).

21.

B. B. Mandelbrot, Comments on: ‘A subordinated stochastic process model with finite variance for speculative prices,’ by Peter K. Clark, Econometrica 41, 157-159 (1973).

22.

H. Haken, Synergetics, Springer, New York, (1983).

23.

L. Ingber, Statistical mechanics of neocortical interactions. I. Basic formulation, Physica D 5, 83-107 (1982).

24.

L. Ingber, Statistical mechanics of neocortical interactions. Dynamics of synaptic modification, Phys. Rev. A 28, 395-416 (1983).

25.

L. Ingber, Statistical mechanics of neocortical interactions. Derivation of short-term-memory capacity, Phys. Rev. A 29, 3346-3358 (1984).

26.

L. Ingber, Mesoscales in neocortex and in command, control and communications (C3) systems, in Systems with Learning and Memory Abilities: Proceedings, University of Paris 15-19 June 1987, (Edited by J. Delacour and J.C.S. Levy), pp. 387-409, Elsevier, Amsterdam, (1988).

27.

L. Ingber, Mathematical comparison of JANUS(T) simulation to National Training Center, in The Science of Command and Control: Part II, Coping With Complexity, (Edited by S.E. Johnson and

Nonlinear Nonequilibrium Financial Markets

- 23 -

Lester Ingber

A.H. Levis), pp. 165-176, AFCEA International, Washington, DC, (1989). 28.

F. Langouche, D. Roekaerts, and E. Tirapegui, Functional Integration and Semiclassical Expansions, Reidel, Dordrecht, The Netherlands, (1982).

29.

H. Dekker, Functional integration and the Onsager-Machlup Lagrangian for continuous Markov processes in Riemannian geometries, Phys. Rev. A 19, 2102-2111 (1979).

30.

H. Grabert and M.S. Green, Fluctuations and nonlinear irreversible processes, Phys. Rev. A 19, 1747-1756 (1979).

31.

R. Graham, Covariant formulation of non-equilibrium statistical thermodynamics, Z. Physik B26, 397-405 (1977).

32.

R. Graham, Lagrangian for diffusion in curved phase space, Phys. Rev. Lett. 38, 51-53 (1977).

33.

L.S. Schulman, Techniques and Applications of Path Integration, J. Wiley & Sons, New York, (1981).

34.

L. Ingber, Nonlinear nonequilibrium statistical mechanics approach to C3 systems, in 9th MIT/ONR Workshop on C3 Systems: Naval Postgraduate School, Monterey, CA, 2-5 June 1986, pp. 237-244, MIT, Cambridge, MA, (1986).

35.

R.F. Fox, Uniform convergence to an effective Fokker-Planck equation for weakly colored noise, Phys. Rev. A 34, 4525-4527 (1986).

36.

C. van der Broeck, On the relation between white shot noise, Gaussian white noise, and the dichotomic Markov process, J. Stat. Phys. 31, 467-483 (1983).

37.

P. Colet, H.S. Wio, and M. San Miguel, Colored noise: A perspective from a path-integral formalism, Phys. Rev. A 39, 6094-6097 (1989).

38.

C.W. Gardiner, Handbook of Stochastic Methods for Physics, Chemistry and the Natural Sciences, Springer-Verlag, Berlin, Germany, (1983).

39.

L. Ingber, Statistical mechanics of neocortical interactions. EEG dispersion relations, IEEE Trans. Biomed. Eng. 32, 91-94 (1985).

40.

L. Ingber, Statistical mechanics of neocortical interactions: Stability and duration of the 7+−2 rule of short-term-memory capacity, Phys. Rev. A 31, 1183-1186 (1985).

Nonlinear Nonequilibrium Financial Markets 41.

- 24 -

Lester Ingber

L. Ingber and P.L. Nunez, Multiple scales of statistical physics of neocortex: Application to electroencephalography, Mathl. Comput. Modelling 13 (7), 83-95 (1990).

42.

L. Ingber, Statistical mechanics of neocortical interactions: A scaling paradigm applied to electroencephalography, Phys. Rev. A 44 (6), 4017-4060 (1991).

43.

L. Ingber, Generic mesoscopic neural networks based on statistical mechanics of neocortical interactions, Phys. Rev. A 45 (4), R2183-R2186 (1992).

44.

L. Ingber, Statistical mechanics of neocortical interactions: Path-integral evolution of short-term memory, Phys. Rev. E 49 (5B), 4652-4664 (1994).

45.

L. Ingber, Statistical mechanics of multiple scales of neocortical interactions, in Neocortical Dynamics and Human EEG Rhythms, (Edited by P.L. Nunez), pp. 628-681, Oxford University Press, New York, NY, (1995).

46.

L. Ingber, Statistical mechanics of neocortical interactions: Multiple scales of EEG, in Frontier Science in EEG: Continuous Waveform Analysis (Electroencephal. clin. Neurophysiol. Suppl. 45), (Edited by R.M. Dasheiff and D.J. Vincent), pp. 79-112, Elsevier, Amsterdam, (1996).

47.

L. Ingber, Path-integral Riemannian contributions to nuclear Schro¨dinger equation, Phys. Rev. D 29, 1171-1174 (1984).

48.

L. Ingber, Riemannian contributions to short-ranged velocity-dependent nucleon-nucleon interactions, Phys. Rev. D 33, 3781-3784 (1986).

49.

L. Ingber, Mathematical comparison of computer models to exercise data, in 1989 JDL C2 Symposium: National Defense University, Washington, DC, 27-29 June 1989, pp. 169-192, SAIC, McLean, VA, (1989).

50.

L. Ingber, H. Fujio, and M.F. Wehner, Mathematical comparison of combat computer models to exercise data, Mathl. Comput. Modelling 15 (1), 65-90 (1991).

51.

L. Ingber and D.D. Sworder, Statistical mechanics of combat with human factors, Mathl. Comput. Modelling 15 (11), 99-127 (1991).

52.

L. Ingber, Statistical mechanics of combat and extensions, in Toward a Science of Command, Control, and Communications, (Edited by C. Jones), pp. 117-149, American Institute of Aeronautics and Astronautics, Washington, D.C., (1993).

Nonlinear Nonequilibrium Financial Markets 53.

- 25 -

Lester Ingber

L. Ingber, Statistical mechanical aids to calculating term structure models, Phys. Rev. A 42 (12), 7057-7064 (1990).

54.

K.S. Cheng, Quantization of a general dynamical system by Feynman’s path integration formulation, J. Math. Phys. 13, 1723-1726 (1972).

55.

R. Graham, Path-integral methods on nonequilibrium thermodynamics and statistics, in Stochastic Processes in Nonequilibrium Systems, (Edited by L. Garrido, P. Seglar, and P.J. Shepherd), pp. 82-138, Springer, New York, NY, (1978).

56.

F. Langouche, D. Roekaerts, and E. Tirapegui, Discretization problems of functional integrals in phase space, Phys. Rev. D 20, 419-432 (1979).

57.

F. Langouche, D. Roekaerts, and E. Tirapegui, Short derivation of Feynman Lagrangian for general diffusion process, J. Phys. A 113, 449-452 (1980).

58.

P. Hagedorn, Non-Linear Oscillations, Oxford Univ., New York, NY, (1981).

59.

R. C. Merton, An intertemporal capital asset pricing model, Econometrica 41, 867-887 (1973).

60.

L.

Onsager

and

S.

Machlup,

Fluctuations

and

irreversible

processes,

Phys.

Rev.

91, 1505-1512 (1953). 61.

L. Ingber, Very fast simulated re-annealing, Mathl. Comput. Modelling 12 (8), 967-973 (1989).

62.

H. Szu and R. Hartley, Fast simulated annealing, Phys. Lett. A 122 (3-4), 157-162 (1987).

63.

S. Kirkpatrick, C.D. Gelatt, Jr., and M.P. Vecchi, Optimization by simulated annealing, Science 220 (4598), 671-680 (1983).

64.

M. Wofsey, Technology: Shortcut tests validity of complicated formulas, The Wall Street Journal 222 (60), B1 (1993).

65.

L. Ingber, Adaptive simulated annealing (ASA): Lessons learned, Control and Cybernetics 25 (1), 33-54 (1996).

66.

M.F. Wehner and W.G. Wolfer, Numerical evaluation of path-integral solutions to Fokker-Planck equations. I., Phys. Rev. A 27, 2663-2670 (1983).

67.

M.F. Wehner and W.G. Wolfer, Numerical evaluation of path-integral solutions to Fokker-Planck equations. II. Restricted stochastic processes, Phys. Rev. A 28, 3003-3011 (1983).

Nonlinear Nonequilibrium Financial Markets 68.

- 26 -

Lester Ingber

M.F. Wehner and W.G. Wolfer, Numerical evaluation of path integral solutions to Fokker-Planck equations. III. Time and functionally dependent coefficients, Phys. Rev. A 35, 1795-1801 (1987).

69.

L. Ingber, Path-integral evolution of multivariate systems with moderate noise, Phys. Rev. E 51 (2), 1616-1619 (1995).

70.

L. Ingber and P.L. Nunez, Statistical mechanics of neocortical interactions: High resolution pathintegral calculation of short-term memory, Phys. Rev. E 51 (5), 5074-5083 (1995).

71.

B. Dietrich-Campbell and E. Schwartz, Valuing debt options, J. Finan. Econ. 16, 321-343 (1986).

72.

M.J. Brennan and E.S. Schwartz, A continuous time approach to the pricing of bonds, J. Banking Finan. 3, 133-155 (1979).

73.

M.J. Brennan and E.S. Schwartz, An equilibrium model of bond pricing and a test of market efficiency, J. Finan. Quant. Anal. 17, 301-329 (1982).

74.

D.F. Shanno and K.H. Phua, Minimization of unconstrained multivariate functions, ACM Trans. Mathl. Software 2, 87-94 (1976).

Nonlinear Nonequilibrium Financial Markets

- 27 -

Lester Ingber

FIGURE CAPTIONS Figure 1. SP500 cash and futures prices used used in the SMFM study. Figure 2. SP500 ratios of prices for 1989 SP500 cash and futures. Figure 3. SP500 ratios of prices for 1990 SP500 cash and futures. Figure 4. SP500 momenta of futures prices for 1989 and 1990 SP500. The 1989 momenta were calculated after using 1990 data to fit the SMFM model. The 1990 momenta were calculated after using 1989 data to fit the SMFM model.

Nonlinear Nonequilibrium Financial Markets

- 28 -

Lester Ingber

TABLE CAPTIONS Table 1. Results of SMFM Trading on 1990 SP500. The first column gives the date of the trade. The second column gives the action taken: A 0 represents no trading is performed until enough data is gathered, e.g., to calculate momenta. A 1 represents that all positions are closed out, e.g., at the end of the year. A 2 represents getting out of a long position. A 3 represents getting out of a short position. A 10 represents entering a long position, whether in a waiting or a short position. A −10 represents entering a short position, whether in a waiting or a long position. A 4 represents any remaining circumstance, getting out of any positions if they exist, and going into or maintaining a waiting position. The third column gives the current futures price. The fourth column gives the derived canonical momenta of the futures price. The fifth column gives the day-to-day change in profit or loss. The sixth column gives the accumulated profit or loss.

Price

100.0

200.0 Day of Year

Cash ’89 Futures ’89 Cash ’90 Futures ’90

300.0

400.0

Figure 1

250.0 0.0

270.0

290.0

310.0

330.0

350.0

370.0

390.0

SP500 Prices

Nonlinear Nonequilibrium Financial Markets Lester Ingber

Ratio

100.0

200.0 Day of Year

Cash ’89 Futures ’89

300.0

400.0

Figure 2

0.90 0.0

0.95

1.00

1.05

SP500 Ratios of Prices 1989

Nonlinear Nonequilibrium Financial Markets Lester Ingber

Ratio

100.0

Cash ’90 Futures ’90

200.0 Day of Year

300.0

400.0

Figure 3

0.96 0.0

0.98

1.00

1.02

1.04

SP500 Ratios of Prices 1990

Nonlinear Nonequilibrium Financial Markets Lester Ingber

Momenta

100.0

200.0 Day of Year

Momenta ’89 Momenta ’90

300.0

400.0

Figure 4

-100000.0 0.0

-50000.0

0.0

50000.0

100000.0

SP500 Momenta

Nonlinear Nonequilibrium Financial Markets Lester Ingber

Nonlinear Nonequilibrium Financial Markets Date 900102 900103 900104 900105 900108 900109 900110 900111 900112 900115 900116 900117 900118 900119 900122 900123 900124 900125 900126 900129 900130 900131 900201 900202 900205 900206 900207 900208 900209 900212 900213 900214 900215 900216 900220 900221 900222 900223 900226 900227 900228 900301 900302 900305 900306 900307 900308 900309 900312 900313 900314

Action 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -10 -10 4 4 4 4 4 4 4 4 4 4 10 10 10 10 10 4 10 4 4 4 4 4 4 4 4 4 4 -10 -10 -10 -10 -10 -10 -10 4

Table 1-1

Lester Ingber

Price

Momentum

Prof/Loss

Accum_P/L

362.5 361.7 359.85 354.6 357.55 352.2 351.3 351.85 340.95 339.2 342.1 338.75 340.85 342.2 331.4 330.25 333.1 326.75 326.8 326.7 325.2 330.5 330.1 332.5 333.4 330.25 335.8 335.3 334.4 330.75 332.65 333.3 336.15 333.2 328.75 329.3 326.75 325.5 329.85 331.35 332.95 337.65 339.75 338.45 343.2 340.9 344.5 342.05 342.65 339.55 341.35

0 0 0 0 0 0 12888 16243 13635 9790.6 7712.6 23132 19694 17783 -48359 -35550 11288 16534 23973 19622 15954 46293 33920 41691 31801 25036 55905 45384 47744 34837 32927 -10906 142.86 -17619 -17480 -12886 -27091 -26829 -11259 -11244 11798 5833.8 684.3 -5641.9 -1652.8 -50367 -29035 -46972 -33355 -30543 38315

0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0 0 -920 0 0 0 0 0 0 0 0 0 -0 0 0 0 0 -1320 -0 -1545 0 0 0 0 0 0 0 0 0 -0 0 0 0 0 0 0 -1520

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -920 -920 -920 -920 -920 -920 -920 -920 -920 -920 -920 -920 -920 -920 -920 -2240 -2240 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -3785 -5305

Nonlinear Nonequilibrium Financial Markets Date 900315 900316 900319 900320 900321 900322 900323 900326 900327 900328 900329 900330 900402 900403 900404 900405 900406 900409 900410 900411 900412 900416 900417 900418 900419 900420 900423 900424 900425 900426 900427 900430 900501 900502 900503 900504 900507 900508 900509 900510 900511 900514 900515 900516 900517 900518 900521 900522 900523 900524 900525

Action 4 4 4 4 -10 -10 4 4 4 4 4 4 4 4 -10 -10 -10 -10 -10 4 4 4 4 -10 -10 -10 -10 -10 4 4 4 4 4 4 4 4 4 4 4 4 10 4 4 4 4 4 10 4 4 4 4

Table 1-2

Lester Ingber

Price

Momentum

Prof/Loss

Accum_P/L

342.2 345.25 347.6 345.6 342.2 339.1 340.8 341.75 345.55 345.9 343.9 341.45 341.9 347.35 343.2 344.25 343.7 344.4 344.3 345.2 348.1 346.85 347.2 342.9 339.6 336.4 332.65 332.45 334.25 335.3 328.85 332.1 333.65 336.95 337.15 339.9 342.5 345.1 344.95 345.05 354.25 356.9 356.5 355.35 355.95 355.6 359 360.8 360.75 359.85 355.35

28928 36703 29455 22806 -14140 -11816 2271.1 449.86 1952.8 -22453 -25895 -28679 -18134 -13281 -52988 -47766 -54351 -43528 -37378 10026 11141 2522.2 3021.1 -40435 -39556 -33069 -29306 -23859 14571 14083 -5697.1 15090 11924 34151 2677.8 11210 8524.8 7836.9 -19098 -18684 2082.6 -10305 -10375 -21582 -3070.7 -2827.6 4474.5 3011.3 -5706.7 -15600 -22373

0 0 0 0 -0 0 630 0 0 0 0 0 0 0 -0 0 0 0 0 -1070 0 0 0 -0 0 0 0 0 4255 0 0 0 0 0 0 0 0 0 0 0 -0 1255 0 0 0 0 -0 830 0 0 0

-5305 -5305 -5305 -5305 -5305 -5305 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -4675 -5745 -5745 -5745 -5745 -5745 -5745 -5745 -5745 -5745 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -1490 -235 -235 -235 -235 -235 -235 595 595 595 595

Nonlinear Nonequilibrium Financial Markets Date 900529 900530 900531 900601 900604 900605 900606 900607 900608 900611 900612 900613 900614 900615 900618 900619 900620 900621 900622 900625 900626 900627 900628 900629 900702 900703 900705 900706 900709 900710 900711 900712 900713 900716 900717 900718 900719 900720 900723 900724 900725 900726 900727 900730 900731 900801 900802 900803 900806 900807 900808

Action 4 4 4 10 4 4 4 4 4 4 10 -10 -10 -10 -10 -10 -10 4 -10 -10 -10 4 4 4 4 4 -10 4 -10 -10 10 10 10 10 10 4 4 4 -10 4 10 10 4 10 10 4 -10 -10 -10 -10 4

Table 1-3

Lester Ingber

Price

Momentum

Prof/Loss

Accum_P/L

362.6 363 361.75 368.5 373.75 372.85 371 368.95 364.45 367.8 371.6 370.4 368.5 367.95 361.9 363.6 364.4 366.9 360.15 357.6 355.95 359.45 362.15 362.35 364.4 364 359.8 362.25 363.1 360.5 365.4 369.45 370.9 372.3 370.4 367.15 368.45 364.8 357.8 357.65 359.65 358.25 355.5 358.25 358.6 357.45 353.9 346.65 334.4 337.2 339.55

3146.1 140.75 -18205 3596.1 -1080.6 -4107.9 -14972 -10720 -11414 4533.4 5086.7 -12051 -31489 -28874 -32799 -24803 -10826 3518.8 -21708 -10346 -8346.4 44969 33693 27726 26410 21479 -21078 -17900 -18866 -17949 32718 44143 40933 34111 27662 -10420 -797.44 -8972.7 -13582 -7943.9 12270 12179 4115.4 13536 10240 743.17 -16462 -23005 -28930 -16040 -4669

0 0 0 -0 2555 0 0 0 0 0 -0 -600 0 0 0 0 0 1680 -0 0 0 280 0 0 0 0 -0 -1295 -0 0 -1150 0 0 0 0 805 0 0 -0 5 -0 0 -2145 -0 0 -470 -0 0 0 0 7105

595 595 595 595 3150 3150 3150 3150 3150 3150 3150 2550 2550 2550 2550 2550 2550 4230 4230 4230 4230 4510 4510 4510 4510 4510 4510 3215 3215 3215 2065 2065 2065 2065 2065 2870 2870 2870 2870 2875 2875 2875 730 730 730 260 260 260 260 260 7365

Nonlinear Nonequilibrium Financial Markets Date 900809 900810 900813 900814 900815 900816 900817 900820 900821 900822 900823 900824 900827 900828 900829 900830 900831 900904 900905 900906 900907 900910 900911 900912 900913 900914 900917 900918 900919 900920 900921 900924 900925 900926 900927 900928 901001 901002 901003 901004 901005 901008 901009 901010 901011 901012 901015 901016 901017 901018 901019

Action 4 4 4 4 4 -10 -10 4 -10 4 4 10 10 10 10 4 10 10 10 4 4 4 4 4 4 4 4 4 -10 -10 -10 -10 -10 -10 -10 -10 -10 -10 -10 -10 -10 -10 -10 4 4 4 4 4 10 10 10

Table 1-4

Lester Ingber

Price

Momentum

Prof/Loss

Accum_P/L

341.4 337.3 339.8 340.75 341.65 331.75 328.65 329.7 323.5 317.2 306.25 313 322.8 322.65 323.85 318.55 322.55 327.95 328.55 324.4 327.4 325.1 325.4 325.7 321.9 319.45 321.1 321.6 318.7 314.4 314.6 307.3 311.3 308.3 302.7 306.75 318.25 318.35 313.7 315.3 314.85 317.4 305.75 302.2 297.35 301.7 306 301.25 300.6 308.15 313.05

6135.7 -19696 -3751.1 -3971.4 13427 -26107 -8952.2 437.58 -3608.2 1404.6 -19699 33077 32852 22551 8138.7 -12864 17746 17376 13472 -46137 -24412 -30433 -24566 -9189.3 -6432.4 -5300.4 4231.9 3007 -13251 -26753 -16478 -29161 -17946 -60283 -48549 -32780 -11864 -17181 -25668 -28345 -23633 -13765 -19285 60834 49809 85671 71221 55437 24137 45642 46494

0 0 0 0 0 -0 0 955 -0 3080 0 -0 0 0 0 2705 -0 0 0 855 0 0 0 0 0 0 0 0 -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8180 0 0 0 0 -0 0 0

7365 7365 7365 7365 7365 7365 7365 8320 8320 11400 11400 11400 11400 11400 11400 14105 14105 14105 14105 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 14960 23140 23140 23140 23140 23140 23140 23140 23140

Nonlinear Nonequilibrium Financial Markets Date 901022 901023 901024 901025 901026 901029 901030 901031 901101 901102 901105 901106 901107 901108 901109 901112 901113 901114 901115 901116 901119 901120 901121 901123 901126 901127 901128 901129 901130 901203 901204 901205 901206 901207 901210 901211 901212 901213 901214 901217 901218 901219 901220 901221 901224 901226 901227 901228

Action 10 10 10 10 10 10 10 4 4 4 4 4 -10 4 10 10 4 10 10 10 10 10 10 10 10 10 4 4 4 4 4 4 4 4 4 4 10 10 10 10 10 4 4 4 4 4 4 1

Table 1-5

Price

Momentum

315.5 313.8 315.45 311.4 306.25 304 306.2 306.8 308.45 313.2 315.4 311.8 307.25 309.8 315.55 320.5 319.15 321.7 318.05 319.3 321.15 316.8 317.85 315.5 318.2 319.65 319.25 316.75 324.05 327.15 330.95 334.5 333.25 330.9 332.25 331.15 334.1 332.5 329.65 329.15 333.1 331.9 332.85 334.75 331.2 333.75 330.8 331.65

34382 27071 15547 6418.2 7496.3 12258 13245 -1336.8 -6118.9 -1520.1 -6488.9 -8829.9 -17689 6536.9 18566 13803 8276.7 21227 8577.3 25329 22045 15453 36481 27101 38527 25526 -16117 -17612 6258.7 -3343.4 -2952.3 -13847 -14307 -16895 -6567.9 -7029.4 34184 15014 14254 16560 17281 -26320 -26496 -27842 -33629 -25192 -27657 -2317.3

Lester Ingber Prof/Loss

Accum_P/L

0 0 0 0 0 0 0 3030 0 0 0 0 -0 -1345 -0 0 1730 -0 0 0 0 0 0 0 0 0 -1295 0 0 0 0 0 0 0 0 0 -0 0 0 0 0 -1170 0 0 0 0 0 0

23140 23140 23140 23140 23140 23140 23140 26170 26170 26170 26170 26170 26170 24825 24825 24825 26555 26555 26555 26555 26555 26555 26555 26555 26555 26555 25260 25260 25260 25260 25260 25260 25260 25260 25260 25260 25260 25260 25260 25260 25260 24090 24090 24090 24090 24090 24090 24090