Next Article in Journal
Smooth Counterexamples to Frame Bundle Freeness
Next Article in Special Issue
Fractional Derivatives for Economic Growth Modelling of the Group of Twenty: Application to Prediction
Previous Article in Journal
A Novel Monarch Butterfly Optimization with Global Position Updating Operator for Large-Scale 0-1 Knapsack Problems
Previous Article in Special Issue
Stability and Bifurcation of a Delayed Time-Fractional Order Business Cycle Model with a General Liquidity Preference Function and Investment Function
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Econophysics and Fractional Calculus: Einstein’s Evolution Equation, the Fractal Market Hypothesis, Trend Analysis and Future Price Prediction

1
Stokes Professor, Science Foundation Ireland, Three Park Place, Dublin 2, Ireland
2
Honorary Professor, School of Electrical and Electronic Engineering, Technological University, Kevin Street, Dublin 8, Ireland
3
Professor Extraordinaire, Department of Computer Science, University of Western Cape, Bellville 7535, Cape Town, South Africa
4
Honorary Professor, School of Mathematics, Statistics and Computer Science, University of KwaZulu-Natal, Westville Campus, University Road, Westville 3630, Durban, South Africa
5
Visiting Professor, Faculty of Arts, Science and Technology, University of Wales (Wrexham Glyndwr University), Mold Road, Wrexham LL11 2AW, UK
6
Dublin Energy Laboratory, Technological University Dublin, Kevin Street, Dublin 8, Ireland
7
Lecturer, School of Electrical and Electronic Engineering, Technological University Dublin, Kevin Street, Dublin 8, Ireland
8
Research Associate, School of Electrical and Electronic Engineering, Technological University Dublin, Kevin Street, Dublin 8, Ireland
9
Country Director, The Natural Power Consultants (Ireland) Limited, Beacon Court Sandyford, Dublin 18, Ireland
10
Research Fellow, School of Engineering, University of Portsmouth, University House, Winston Churchill Avenue, Portsmouth PO1 2UP, UK
11
Deputy Head of General Studies Department, Military Technological College, Al Matar Street, Muscat 111, Oman
12
Senior Product Manager, Amazon, County Dublin, Burlington Road, Dublin 4, Ireland
*
Author to whom correspondence should be addressed.
Mathematics 2019, 7(11), 1057; https://doi.org/10.3390/math7111057
Submission received: 6 September 2019 / Revised: 18 October 2019 / Accepted: 19 October 2019 / Published: 4 November 2019
(This article belongs to the Special Issue Mathematical Economics: Application of Fractional Calculus)

Abstract

:
This paper examines a range of results that can be derived from Einstein’s evolution equation focusing on the effect of introducing a Lévy distribution into the evolution equation. In this context, we examine the derivation (derived exclusively from the evolution equation) of the classical and fractional diffusion equations, the classical and generalised Kolmogorov–Feller equations, the evolution of self-affine stochastic fields through the fractional diffusion equation, the fractional Poisson equation (for the time independent case), and, a derivation of the Lyapunov exponent and volatility. In this way, we provide a collection of results (which includes the derivation of certain fractional partial differential equations) that are fundamental to the stochastic modelling associated with elastic scattering problems obtained under a unifying theme, i.e., Einstein’s evolution equation. This includes an analysis of stochastic fields governed by a symmetric (zero-mean) Gaussian distribution, a Lévy distribution characterised by the Lévy index γ [ 0 , 2 ] and the derivation of two impulse response functions for each case. The relationship between non-Gaussian distributions and fractional calculus is examined and applications to financial forecasting under the fractal market hypothesis considered, the reader being provided with example software functions (written in MATLAB) so that the results presented may be reproduced and/or further investigated.

1. Introduction

We study one of the principal field equations in statistical mechanics, namely, Einstein’s evolution equation (EEE or E 3 ). This is done in order to derive mathematical models and thereby specific financial indices in a unified manner, an approach which includes the use of fractional calculus.
E 3 models the random motion and (elastic) interactions of a canonical ensemble of particles. It provides a description for the time evolution of the spatial density field that represents the concentration of such particles in a macroscopic sense. In an n-dimensional space, each particle is taken to be undergoing a random walk in which the direction that a particle “propagates” after a “scattering event” (in which energy and momentum are conserved) is random together with the length of propagation. The scattering angle θ is taken to be conform to a distribution of angles Pr [ θ ( r ) ] , r R n and the (free) propagation length is taken to conform to some distribution of lengths Pr [ L ( r ) ] whose mean value defines the mean free path (MFP). This was the basis for Albert Einstein’s original study of Brownian motion in 1905 [1], albeit for the one-dimensional case.
In addition to the work of Josiah Gibbs, the evolution equation that Einstein derived is one the foundations of statistical mechanics [2,3]. The approach can, for example, be applied equally well to modelling the diffusion of light propagating through a complex of scatterers. In this case the light is taken to be a ray-field where each ray (reflected from one particle to another) has a random path length and scattering angle.

1.1. Focus and Context

The focus of this paper is to derive a range of equations and metrics via an n-dimensional version of E 3 in order to demonstrate an inherent connectivity and association in a unified sense. These equations include the classical diffusion equation, the classical and generalised Kolmogorov–Feller equations and the evolution of self-affine stochastic fields through the fractional diffusion equation. The fractional form of these equations is shown to be a direct consequence of introducing non-Gaussian distributions as "governors" for the statistical characteristics under which random processes occur, subject to the condition that all such processes involve independent elastic interactions.
For certain non-Gaussian models such as Lévy processes, this leads naturally to the use of fractional calculus to develop solutions to the evolution equation as studied in this paper. Further, it is shown that such solutions are fundamental to the application of the fractal market hypothesis [4] for analysing financial time series and thereby in developing trading strategies based on this hypothesis. This approach represents an Econophysics methodology in which a fundamental model used to describe stochastic processes, originally developed in the study of Brownian motion, is used to solve problems in economics. In this paper, following developments published previously by Blackledge et al. (e.g., [5,6,7,8,9,10,11,12,13,14]), it is shown that this approach is inclusive of the application of fractional calculus.

1.2. Structure and Organisation

The structure of the paper is as follows. Section 2 provides a brief overview of the principal mathematical results used in this paper including basic definitions and notation. This section also includes a short introduction to fractional calculus, specifically some of the conventional definitions of a fractional integral and a fractional derivative. Section 3 presents E 3 upon which all the results derived in this paper are ultimately dependent, thereby providing a unifying framework for the work reported as discussed in Section 4, which provides a brief introduction to financial time series analysis in the context of E 3 .
Two equations, that are a conditional representation of E 3 , are considered in Section 5, namely the Classical Kolmogorov–Feller and the Generalised Kolmogorov–Feller equations which are studied later on in the paper, specifically in Section 14. In the context of E 3 , Section 6 provides statements on the random walk hypothesis and the efficient and fractal market hypotheses coupled with a brief history associated with the development of such hypotheses for interpreting and analysing financial time series. As discussed in Section 3, E 3 is predicated on a model for the probability density function of a stochastic system using a continuous random walk model and Section 7 therefore introduces density functions whose basic properties are important to appreciate in the context of the work reported here. Section 8 and Section 9 study the derivation from the E 3 of two metrics, namely, the Lyapunov exponent and the volatility, respectively. These metrics are then combined into a Lyapunov-to-volatility ratio (LVR) to develop a trend analysis algorithm which is presented in Section 10, the idea being to provide an indicator that flags when a financial time series changes its trending behaviour. This is based on a change in the polarity of the LVR and it is shown, for example, that in order to obtain suitable accuracies appropriate for algorithmic trading, both pre- (of the financial signal) and post-filtering (of the LVR) is required. This is quantified in Section 10 using a back-testing strategy. In addition to being bi-polar, the amplitude of the LVR has values that reflect periods of relative stability in the dynamic behaviour of a financial signal and in Section 11, a method is proposed to exploit this indication and provide short term predictions on future prices using the principles of evolution computing (EC). In this paper, EC is implemented using an online resource and applications package called ‘Eureqa’.
The remaining sections of the paper deal with the classical and fractional diffusion equations, both of which are derived from E 3 in Section 12 and Section 13 using Gaussian and non-Gaussian (Lévy) distributions, respectively. In the latter case, and, using the principles of fractional calculus established in Section 2, a time series model is developed that depends upon the Lévy index. Section 14 then provides a complementary approach to deriving similar results using the Generalised Kolmogorov–Feller equation and an orthonormal memory function which yields the same scaling properties compounded in the impulse response function. The application of this index for financial trend analysis is provided in Section 15, illustrating that the Lyapunov exponent and the Lévy index have similar predictive power providing the data is pre- and post-filtered. Section 16 provides a review and discussion of the results presented followed by a general conclusion and some open questions to direct future research.

1.3. Original Contributions

Judging from the open literature, and, to the best of the authors’ knowledge, the approach taken in this paper is original as are the numerical results presented. In regard to the latter case, an effort has been made by the authors to integrate important numerical functions with the derivation of certain important metrics associated with the theoretical models used and the mathematical analysis presented. These functions are given in Appendix A and their aim is to provide the reader with the opportunity to reproduce the results presented (the online data sources being referenced throughout) and investigate their performance for different financial data.

2. Mathematical Preliminaries

In this section, we provide a short overview of some of the mathematical results that are of importance to the material developed in this paper, specifically the short introduction to fractional calculus provided in Section 2.3.

2.1. Fourier Transformation and the Convolution Integral

The mathematical models developed in this paper rely on the properties of the Fourier transform coupled with the convolution and correlation integrals in n-dimensions. For a square integrable function f ( r ) L 2 ( R n ) : C C , we define the Fourier and inverse Fourier transforms in the “non-unitary form” as
F ( k ) = F n [ f ( r ) ] f ( r ) exp ( i k · r ) d n r
and
f ( r ) = F n 1 [ F ( k ) ] 1 ( 2 π ) n F ( k ) exp ( i k · r ) d n k
respectively. Here,  r is the n-dimensional spatial vector where r r = ( r 1 2 + r 2 2 + + r n 2 ) 1 2 . Similarly,  k is the spatial frequency vector where k k = 2 π / λ for wavelength λ and k · r = k 1 r 1 + k 2 r 2 + + k n r n . These integral transforms define a Fourier transform pair which, in this paper, we write using the notation
F ( k ) f ( r ) .
We define the (n-dimensional) Dirac delta function as
δ n ( r ) = F n 1 [ 1 ] 1 ( 2 π ) n exp ( i k · r ) d n k
where, with ⊗ denoting the convolution integral,
f ( r ) = δ n ( r ) f ( r ) ,
the convolution of two functions f ( r ) and g ( r ) being given by
s ( r ) = g ( r ) f ( r ) g ( r s ) f ( s ) d n s
and their correlation by
s ( r ) = g ( r ) f ( r ) g ( r + s ) f ( s ) d n s
where [ s ( r ) , g ( r ) , f ( r ) ] L 2 ( R n ) : C C . Note that the dimension associated with the integral operators ⊗ and ⊙ is taken to be inferred from the dimension of the functions to which these operators are applied. In addition, note that, strictly speaking, the Fourier transform is taken over a Schwartz tempered distributional space, and, in this context, the following theorems are fundamental:
(i) Convolution Theorem
g ( r ) f ( r ) G ( k ) F ( k )
where G ( k ) g ( r ) and F ( k ) f ( r ) .
(ii) Correlation Theorem
g ( r ) f ( r ) G * ( k ) F ( k )
(iii) Product Theorem
g ( r ) f ( r ) 1 ( 2 π ) n G ( k ) F ( k )
We note the following Fourier transform relationships [15]
x α 2 sin π α 2 Γ ( 1 + α ) k 1 + α
1 ( i x ) α 2 π Γ ( α ) H ( ± k ) ( ± k ) 1 α , 0 < α < 1 ,
where H ( k ) is the Heaviside step function
H ( k ) = 1 , k 0 ; 0 , k < 0 . d d x H ( k ) = δ ( x )
and for r R n
1 r α ( 2 π ) n c n , α 1 k n α , 0 < Re [ α ] < n ; c n , α = π n 2 2 α Γ α 2 Γ n α 2
where Γ is the Gamma function,
Γ ( z ) = 0 x z 1 exp ( x ) d x , Re [ z ] > 0 .

2.2. The p- and Uniform-Norm

We define the p-norm as
f ( r ) p R n f ( r ) p d n r 1 p , 1 p
with the uniform norm being given by
f ( r ) = sup { f ( r ) , r R n }
and principal properties
f ( r ) + g ( r ) p f ( r ) p + g ( r ) p , f ( r ) g ( r ) p f ( r ) p g ( r ) p
and
f ( r ) g ( r ) p f ( r ) p g ( r ) p .

2.3. Fractional Integrals and Differentials

Since, for  n = 0 , 1 , 2 , ,
d ± n d x ± n f ( x ) ( i k ) ± n F ( k )
we can, in principal, generalise this result to the case when n is non-integer. Thus, suppose we wish to fractionally integrate the differential equation
d α d x α f ( x ) = g ( x ) , 0 < α < 1
to obtain a solution for f ( x ) in terms of g ( x ) . Fourier transforming,
F ( k ) = G ( k ) ( i k ) α , F ( k ) f ( x ) , G ( k ) g ( x )
and thus, using the convolution theorem, we can write
f ( x ) = h ( x ) g ( x ) , h ( x ) = 1 2 π exp ( i k x ) ( i k ) α d k = H ( x ) Γ ( α ) 1 x 1 α
using Relationship (3).
This important result is easily derived by expressing the inverse Fourier transform in terms of a Bromwich integral so that, with  p = i k , we can write h ( x ) in terms of the inverse Laplace transform
h ( x ) = 1 2 π i i i exp ( p x ) p α d p .
Generalising the Laplace transform of the function x n (for positive integer n) given by
0 x n exp ( p x ) d x = n ! p 1 + n 0 x n 1 exp ( p x ) d x = Γ ( n ) p n , Γ ( n ) = ( n 1 ) !
to
0 x α 1 exp ( p x ) d x = Γ ( α ) p α 1 Γ ( α ) 0 exp ( p x ) x 1 α d x = 1 p α
it is then clear that
1 ( i k ) α = 1 Γ ( α ) H ( x ) x 1 α exp ( i k x ) d x .
This expression for f ( x ) in terms of the convolution h ( x ) g ( x ) is the basic fractional integral known as the Riemann–Liouville integral which, specifying the limits of integration, takes the form
a D x α f ( x ) 1 Γ ( α ) a x f ( y ) ( x y ) 1 α d y
thereby expressing the integral in terms of an inverse differential operator D α over the limits a and x. This allows us to express a fractional differential denoted by the operator a D x α d α / d x α in terms of a fractional integral by noting that
a D x α f ( x ) = D x 1 a D x α 1 f ( x ) = D x 1 a D x ( 1 α ) f ( x ) = 1 Γ ( 1 α ) d d x a x f ( y ) ( x y ) α d y = α Γ ( 1 α ) a x f ( y ) ( x y ) 1 + α d y
When α is a negative value and noting that Γ ( 1 + α ) = α Γ ( α ) ,
a D x α f ( x ) = α Γ ( 1 + α ) a x f ( y ) ( x y ) 1 α d y = 1 Γ ( α ) a x f ( y ) ( x y ) 1 α d y
thereby recovering the expression for a fractional integral given by Equation (5). Thus, combining the results, we can write
a D x ± α f ( x ) = 1 Γ ( α ) a x f ( y ) ( x y ) 1 ± α d y .
Since, for some scaling value λ (and with z = λ y ),
1 Γ ( α ) a x f ( λ y ) ( x y ) 1 ± α d y = 1 Γ ( α ) a x f ( z ) [ x ( z / λ ) ] 1 ± α d ( z / λ ) = λ ± α Γ ( α ) a x f ( z ) ( λ x z ) 1 ± α d z ,
this operator has the self-affine scaling characteristic
a D x ± α f ( λ x ) = λ ± α a D x ± α f ( x ) .
Another related approach to defining a fractional differential is through application of the delta function. For  r R 1
f ( x ) = δ ( x ) f ( x ) and f ( n ) ( x ) = δ ( n ) ( x ) f ( x ) where f ( n ) ( x ) d n d x n f ( x )
Generalising this result to the non-integer case, we write
f ( α ) ( x ) = δ ( α ) ( x ) f ( x ) ,
where, from Equation (1),
δ ( α ) ( x ) = 1 2 π ( i k ) α exp ( i k x ) d k .
We can then write
δ ( α ) ( x ) = d d x δ ( α 1 ) ( x ) = d d x 1 2 π 1 ( i k ) 1 α exp ( i k x ) d k = 1 Γ ( 1 α ) d d x H ( x ) x α = 1 Γ ( 1 α ) δ ( x ) x α α Γ ( 1 α ) H ( x ) x 1 + α .
A further definition of a fractional differential can be obtained using the sign function sgn ( x )  where
sgn ( x ) = x x = + 1 , x > 0 ; 1 , x < 0 ; 0 , x = 0 .
and
sgn ( x ) 2 i k ,
when we can write
f ( α ) ( x ) = 1 2 f ( x ) sgn ( 1 + α ) ( x ) , α .
This result becomes clear if we note that
1 2 f ( x ) sgn ( 1 + α ) ( x ) = 1 2 f ( x ) sgn ( 1 + α ) ( x ) δ ( x ) = 1 2 f ( x ) sgn ( x ) δ ( 1 + α ) ( x )
and therefore that
1 2 f ( x ) sgn ( x ) δ ( 1 + α ) ( x ) 1 2 F ( k ) 2 i k ( i k ) 1 + α = ( i k ) α F ( k ) .
Defining a fractional differential and integral in terms of the operators a D x α and a D x α , respectively, is based on a generalisation of the Fourier transform under differentiation and integration, respectively. Traditional (integer) calculus goes hand-in-hand with a geometrical interpretation of the associated operations, starting with a differential defining the gradient of a function at a point (at least for a piecewise continuous function). With fractional calculus, generalisations of this type do not easily lend themselves to a geometrical interpretation. However, geometric and physical interpretation of fractional derivatives have been developed (e.g., [16,17]) including the connectivity between fractional calculus and fractal geometry [18] which is based on the scaling relationship compounded in Equation (8). An important characteristic of these interpretations that is relevant to the remit of this paper, is that the operator a D x α operating on a stochastic function is characterised by this scaling property, a property that yields self-affine stochastic fields or random scaling fractals.
As discussed later on in this paper, many financial signals can be classified as random scaling fractal signals (with a fractal dimension D [ 1 , 2 ] ). This is the basis for the fractal market hypothesis in mathematical economics and hence, the applications of fractional calculus. Note however, that the "process" of generalising the Fourier transform used above for defining fractional differentials and integrals is just one such generalisation that can be applied. Thus, the operators defined by Equations (5) and (6), for example, are not unique and there are many definitions and generalisations of a fractional derivative that have been developed [19] and continue to be so [20].
Although there are, in principle, an unlimited number of definitions that may be “designed” to define a fractional derivative, there is a common theme to all of them which is that they are expressed in terms of a convolution. For example, the Caputo fractional derivative is given by
a D x α f ( x ) = a x K α ( x y ) f ( n ) ( y ) d y where K α ( x y ) = ( x y ) n α 1 Γ ( n α ) ,
which is easily formulated via application of the inverse Fourier transform given that if
f ( x ) = 1 2 π exp ( i k x ) F ( k ) d k
and
D α f ( x ) = 1 2 π exp ( i k x ) ( i k ) α F ( k ) d k = 1 2 π ( i k ) n exp ( i k x ) ( i k ) n + α F ( k ) d k
then from Relationship (3),
D α f ( x ) = 1 2 π d n d x n exp ( i k x ) ( i k ) n + α F ( k ) d k = d n d x n H ( x ) Γ ( n + α ) 1 x 1 ( n + α ) f ( x )
and hence
D α f ( x ) = H ( x ) Γ ( n α ) d n d x n 1 x 1 ( n α ) f ( x ) = H ( x ) Γ ( n α ) 1 x 1 ( n α ) f ( n ) ( x ) .
The results considered here are fundamental to the implementation of fractional calculus in econophysics (and physics in general) as they are predicated on the Fourier transform which arguably plays the most pivotal role of all in so many aspects of physics and especially in the analysis and processing of signals, e.g., [21,22], including financial signals.
Irrespective of the non-unique definition of a fractional derivative, there is one fundamental difference between a classical and a fractional derivative which is characterised by Equation (7), for example. A nth order derivative of a piecewise continuous function f ( x ) can be defined at a single point on x at x 0 say, and is independent of any other values of f ( x ) for x < x 0 or x > x 0 . However, given that a fractional derivative involves the convolution of the function f ( x ) with 1 / x 1 + α , for example, its value at a point x 0 depends on prior values of f ( x ) for x < x 0 . Thus the value of a fractional derivative of f ( x ) depends on its “history” and thus, unlike an integer derivative, a fractional derivative therefore incurs “memory”. This “memory effect” is another way of approaching the analysis of financial signals using fractional calculus as financial signals are influenced by the memory of past financial conditions, albeit within a stochastic context. This is a key element to the analysis of financial signals using fractional calculus and a fundamental component to applications of the fractal market hypothesis (as discussed later on in this paper).

3. Einstein’s Evolution Equation

Let p ( r ) denote a probability density function (PDF) where
p ( r ) d n r = 1 ,
which characterises with the position of particles in an n-dimensional space r R n where, at any instant in time t, the particles exist as a result of some “random walk” generated by a sequence of “elastic scattering” processes (with other like particles in the same n-dimensional space) that have occurred over some period of time < t . Further, let  u ( r , t ) denote the density function associated with a canonical assemble of particles all undergoing the same random walk process (i.e., the number of particles per unit space, e.g., per unit volume for n = 3 ).
Consider the initial condition where we have an infinitely small concentration of such particles at a time t = 0 located at the origin r = 0 . The density function at t = 0 is then given by u ( r , 0 ) = δ n ( r ) where δ n ( r ) is the n-dimensional Dirac delta function. At some short time later t = τ < < 1 , it can be expected that the density function will be determined by the PDF governing the distribution of particles after a (short duration) random walk. Thus we can write
u ( r , τ ) = p ( r ) u ( r , 0 ) = p ( r ) δ n ( r ) = p ( r ) ,
where ⊗ denotes the convolution integral over all r . The PDF p ( r ) therefore represents the response (in a statistical sense) associated with a short time random walk process, and, in this context, can be considered to be a statistical impulse response function (IRF). Thus for any time t, the density field at some later time t + τ will be given by
u ( r , t + τ ) = p ( r ) u ( r , t ) .
For any instant in time t, Equation (10) shows that the spatial behaviour of the density field at some future time τ is given by the convolution of the density of particles at a previous time with the PDF of the system that governs its “statistical evolution”. In this sense, p ( r ) is analogous to the IRF of a linear stationary system when, for an initial condition u 0 ( r ) u ( r , t = 0 ) , say,
u ( r , t ) = g ( r , t ) u 0 ( r , t )
where g ( r , t ) is the characteristic Green’s function of the system. However, in this case u ( r , t ) denotes a deterministic function associated with the behaviour of a deterministic system, whereas in Equation (10), u ( r , t ) is the density function associated with the evolution of a statistical system. This “system” is taken to be stationary in a statistical sense because it is assumed that p ( r ) does not vary in time and the time evolution model given by Equation (10) is referred to as being “Ergodic”. Further, we note that if the PDF is symmetric, then p ( r ) p ( r ) .
Equation (10) is Einstein’s evolution equation (E 3 ). It is a “master equation” for elastic scattering processes in statistical mechanics and is an example of a continuous time random walk model. On the basis of Equation (10), one can derive a variety of stochastic field equations as shall be shown later on in this paper.
In regard to the continuous time random walk model given by Equation (10), p ( r ) is the PDF for the displacement r of a particle’s position over time interval τ . The equivalent discrete time random walk model, Equation (10) takes the form
u ( r m , t n + τ ) = p ( r m ) u ( r m , t n )
where r m and t n are discrete vector and scalar arrays, respectively, and, ⊗ denotes the convolution sum. In this case, τ is fixed time step and, in the context of the work reported in this paper, may be considered to be a time-unit for financial markets, i.e., a minute, hour, day or week associated with a price value u ( t n ) .
For a source function s ( r , t ) (a source density), which may be a stochastic function, the evolution equation is
u ( r , t + τ ) = p ( r ) u ( r , t ) + s ( r , t ) .
This equation describes the evolution of of the density function u ( r , t ) when the initial particle concentration is replenished in space and/or time and can be extended further to include a decay factor over time when it is required to consider an evolution equation of the type (for decay rate factor R)
u ( r , t + τ ) = p ( r ) u ( r , t ) + s ( r , t ) R u ( r , t )
The financial time series models and metrics that are considered in this paper are all derived from Equation (11) and for this reason, in the following section, a short introduction to financial time series analysis is provided. This is necessary for readers to appreciate the focus of the application that is considered in this paper.

4. Financial Time Series Analysis

A financial time series is a discrete set of price values that are most commonly regular samples over a specific time interval (minutes, hours, days, etc.) which depend on the financial price index available (e.g., world-wide indices such as FTSE100, S & P 500, FOREX, etc.). Over longer time intervals, the price index is usually an average of the samples taken over the next smallest time interval. Most financial data is available as a time series and therefore developing mathematical models (both linear and non-linear) of time series data is an essential component underpinning many aspects of mathematical finance leading to algorithms for day-to-day trading, forecasting and econometrics in general.
There are numerous internet resources that provide up-to-date and historical data of different indices over different time scales such as the data available at [23] which is the internet source used to access the data presented in this paper. Similarly, there are numerous “metrics” (also called a financial index) which are the result of processing samples of data over a look-back window of a specified length usually known as the “period”. Such metrics range from statistical metrics based on an autoregressive moving average and nonlinear locally non-constant variance models (applicable to volatile financial returns, interest, exchange rates and futures) through to descriptive techniques for various features, such as long term level fluctuations and distributions, short and long memory dependence, directionality and volatility.
Methods of fitting time series models to time series data and their statistical validation determine the application to which they can (or otherwise) be successfully applied to forecasting, systematic trading, fund manager evaluation, hedging and simulation for example. The online resource ‘Investopedia’ [24] provides descriptions, computational algorithms and examples of the numerous metrics, indices and other parameters that have, and are continuing to be, developed for financial time series analysis.
In this paper, continuous time series models for a financial signal denoted by u ( t ) are derived exclusively from Equation (11), the associated discrete time series model being denoted by u n , n = 1 , 2 , , N which is taken to describe a digital financial signal consisting of N elements.

5. Einstein’s Evolution Equation and the Kolmogorov–Feller Equations

The Classical and Generalised Kolmogorov–Feller Equations can be derived directly from E 3 through application of a Taylor series in time and a memory function (in time), respectively. They are in fact representations of E 3 for the case when τ < < 1 and otherwise, respectively, as shall now be shown, both equations being studied later on in this paper.

5.1. The Classical Kolmogorov–Feller Equation

Consider the following Taylor series for the function u ( r , t + τ ) in Equation (10):
u ( r , t + τ ) = u ( r , t ) + τ t u ( r , t ) + τ 2 2 ! 2 t 2 u ( r , t ) +
For τ < < 1
u ( r , t + τ ) u ( r , t ) + τ t u ( r , t )
and from Equation (10), we obtain the classical Kolmogorov–Feller equation (CKFE), [25,26]
τ t u ( r , t ) = u ( r , t ) + u ( r , t ) p ( r ) ,
which is essentially a representation of Equation (10) for τ < < 1 .
Equation (13) is based on a critical assumption which is that the time evolution of the density field u ( r , t ) is influenced only by short term events and that longer term events have no influence on the behaviour of the field at any time t, i.e., the “system” described by Equation (13) has no “memory”. This statement is the physical basis upon which the condition τ < < 1 is imposed, thereby facilitating the Taylor series expansion of the function u ( r , t + τ ) to first order alone.

5.2. The Generalised Kolmogorov–Feller Equation

Given that Equation (13) is memory invariant, the question arises as to how longer term temporal influences can be modelled, other than by taking an increasingly larger number of terms in the Taylor expansion of u ( r , t + τ ) which is not of practical analytical value, i.e., writing Equation (10) in the form
τ t u ( r , t ) + τ 2 2 ! 2 t 2 u ( r , t ) + = u ( r , t ) + u ( r , t ) p ( r ) .
The key to solving this problem is to express the infinite series on the left hand side of the equation above in terms of a “memory function” m ( t ) and write
τ m ( t ) t u ( r , t ) = u ( r , t ) + u ( r , t ) p ( r ) .
This is the generalised Kolmogorov–Feller equation (GKFE) which reduces to the CKFE when m ( t ) = δ ( t ) .
A characteristic time spectrum M ( ω ) for m ( t ) can be obtained by noting that we have, in effect, considered the result
u ( r , t + τ ) = u ( r , t ) + τ t u ( r , t ) + τ 2 2 ! 2 t 2 u ( r , t ) + = u ( r , t ) + τ m ( t ) t u ( r , t )
so that, after taking the Fourier transform with respect to t, we obtain
U ( r , ω ) exp ( i ω τ ) = U ( r , ω ) + i ω τ U ( r , ω ) + 1 2 ! ( i ω τ ) 2 U ( r , ω ) + = U ( r , ω ) + i ω τ M ( ω ) U ( r , ω )
where U ( r , ω ) u ( r , t ) and M ( ω ) m ( t ) , from which it follows that we can write M ( ω ) as
M ( ω ) = n = 1 1 n ! ( i ω τ ) n 1 = exp ( i ω τ ) 1 i ω τ

5.3. Orthonormal Memory Functions

For any inverse function or class of inverse functions of the type n ( t ) , say, such that
n ( t ) m ( t ) = δ ( t ) ,
the GKFE can be written in the form
τ t u ( r , t ) = n ( t ) u ( r , t ) + n ( t ) u ( r , t ) p ( r ) ,
where the GKFE is again recovered when n ( t ) = δ ( t ) given that δ ( t ) δ ( t ) = δ ( t ) . The function n ( t ) is an orthonormal function of m ( t ) .

6. The Random Walk, the Efficient and the Fractal Market Hypotheses

From Equation (11) we can generate a simple (continuous) financial time series model by integrating over r to obtain
u ( t + τ ) = u ( t ) + s ( t ) ,
where
u ( t + τ ) = u ( r , t + τ ) d n r , s ( t ) = s ( r , t ) d n r
and, for  p ( r ) = δ n ( r ) ,
u ( t ) = [ δ n ( r ) u ( r , t ) ] d n r = u ( r , t ) d n r .
If s ( t ) is taken to be a (bi-polar) stochastic function of time and u ( t ) is some price value (of some commodity) then Equation (15) describes the case in which a future price at some future time t + τ is given by the known price at time t plus some random price value s ( t ) . Note that for any value of t, s ( t ) may be a positive or negative value thereby giving a higher or lower price value at t + τ . The principal point here is that although Equation (15) is the simplest of models for price variation, it can nevertheless be seen to be the result of a spatial integration of E 3 when p ( r ) = δ n ( r ) . Moreover, it is a model that encompasses some of the earliest questions associated with the dynamics of a free market economy as discussed in the following section.

6.1. The Random Walk Hypothesis

In 1900, Louis Bachelier [27] concluded that the price of a commodity today is the best estimate of its price in the future (at least in the short term). The random behaviour of commodity prices was again noted by Holbrook Working in 1934 [28] in an analysis of time series data. In the 1950s, Maurice Kendall [29] attempted to find periodic cycles in the financial time series of various securities and commodities but did not observe any. Prices appeared to be yesterday’s price plus some random change (up or down); he suggested that price changes were independent and that they followed random walks. Thus the first models conceived for price variation were based on the sum of independent random variations often referred to as Brownian motion and quantified in Equation (15). This led to the creation of the random walk hypothesis, and the closely related efficient market hypothesis which states that random price movements indicate a well-functioning or efficient market.
An example of the type of time series that illustrates this effect is given in Figure 1. The figure shows a signal obtained using a zero mean Gaussian random number generated to compute s n based on the iteration
u n + 1 = u n + s n , u 1 = 100 , n = 1 , 2 , 3 , , 999 .
Trivial though this model is, it nevertheless provides remarkably similar signals to those that characterise many financial signals. However, it is an example of a stationary signal in the sense that the scale of random deviations is invariant of time and the trends (up and down) are over similar amplitude and time scales—characteristics that are not properties of financial signals in general, at least over large time scales.

6.2. The Efficient Market Hypothesis

It is often stated that asset prices should follow Gaussian random walks because of the efficient market hypothesis (EMH), e.g., [30,31,32] (and references therein). The EMH states that the current price of an asset fully reflects all available information relevant to it and that new information is immediately incorporated into the price. Thus, in an efficient market, models for asset pricing are concerned with the arrival of new information which is taken to be independent and random.
The EMH implies independent price increments, but why should they be Gaussian distributed? A Gaussian PDF is chosen because price movements are presumed to be an aggregation of smaller ones and sums of independent random contributions have a Gaussian PDF due to the central limit theorem. This is equivalent to arguing that all financial time series used to construct an “averaged signal” such as the FTSE100 or Dow Jones Industrial Average are statistically independent. Such an argument is not fully justified because it assumes that the reaction of investors to one particular stock market is independent of investors in other stock markets which, in general, will not be the case as each investor may have a common reaction to economic issues that transcend any particular stock. In other words, asset management throughout the markets relies on a high degree of connectivity and the arrival of new information can send "shocks" through the market as people react to it and then to each other’s reactions.
The EMH assumes that there is a rational and unique way to use available information, that all agents possess this knowledge and that any chain reaction produced by a “shock” happens instantaneously. This is clearly not physically possible or financial viable and financial models that are based on such a hypothesis have and will continue to fail.

6.3. The Fractal Market Hypothesis

One of the principal concerns with regard to the EMH relates to the issue of assuming that the markets are Gaussian distributed. This is because it has long been known that financial time series (specifically price changes) do not adhere to a Gaussian distribution and this is arguably the most important of the shortcomings relating to the EMH model (i.e., the failure of the independence and the Gaussian distribution of increments assumption). It is fundamental to the inability for EMH-based analysis such as the Black-Scholes model [33] to explain the characteristics of financial signals such as clustering, flights and failure to explain “boom-bust” events, and, in particular, financial “crashes” leading to recession.
More recently, financial time series have been shown to be random self-affine signals which has led to the related development of the fractal market hypothesis in which price variations are in effect random walks whose statistical distribution of values is similar over different time scales. Ralph Elliott (a professional accountant) first reported on the apparent self-affine properties of financial data in 1938 [34,35]. He was the first to observe that segments of financial time series data of different sizes could be scaled in such a way that they were statistically the same, producing so-called Elliot waves. He proposed that trends in financial prices resulted from investors’ predominant psychology and found that swings in mass psychology always seemed to be a manifestation of the same recurring self-affine patterns in financial markets.
A primary goal of an investor is to attempt to obtain information that can provide some confidence in the immediate future of a commodity’s price, based on patterns of the past. One of the principal components of this goal is based on the observation that there are “waves within waves” that appear to permeate financial signals when studied in sufficient detail and imagination. It is these repeating self-affine wave patterns that occupy both the financial investor and the financial systems modeller alike and it is clear that although economies have undergone many changes in the last 100 years, the dynamics of market data does not appear to have changed significantly (ignoring scale).
The Elliott wave principal developed in the late 1930s and the fractal market hypothesis developed in the late 1990s provide data consistent models for the interpretation and analysis of financial signals and investment theory. In turn, and, as discussed in this paper, fractal signals and fields can be cast in terms of solutions to certain fractional differential equations for which an understanding of the fractional calculus is a pre-requisite. Hence, the application of fractional calculus is and is likely to continue to have a primary role in mathematical economics.
In this context, and, on the basis of Equation (11), an overview of the contents of this paper and its subject connectivity is quantified in terms of the flow diagram given in Table 1 where the discrete time dependent behaviour of u ( t ) is taken to represent a digital financial time series u n , n = 1 , 2 , , N . This flow diagram highlights the relationship between the E 3 and the applications of fractional calculus in mathematical economics which is a theme of this paper. It is illustrative of the unified approach that has been taken in order to produce a coherent exposition for the development of three fundamental indices that are used to analyse financial signals, namely, the Lyapunov exponent, the volatility and the Lévy index. As shall be studied later on in this paper, these indices are used to undertake a trend analysis which, in turn, provides a confidence criterion for the application of evolutionary computing to predict future prices.

6.4. Principal Properties of Financial Signals

Whatever the hypothesis that is considered in regard to understanding and analysing financial signals, there are some basic characteristics of such signals that are common. These include the following:
  • financial signals are stochastic signals;
  • they are non-stationary signals;
  • their distributions (specifically the price differences) are non-Gaussian;
  • they are often characterized by long term historical correlations;
  • they have random repeating patterns at different scales—they are statistically self-affine (random fractals);
  • they have instabilities at all scales—sometimes referred to a “Lévy flights”.
The models, metrics and computation algorithms reported in this paper attempt to take each of the above properties into account while maintaining adherence to E 3 as a unifying theme.

7. Density Function Distributions

Suppose that the one-dimensional density function u ( x , t ) is ergodic and has a PDF p ( x ) Pr [ u ( x , t ) ] t where
p ( x ) d x = 1 .
If, for all time t > 0 , the distributions of u ( y , t ) and u ( z , t ) are identical, what is the (symmetric) distribution of the density functions in the plane r R 2 and the volume r R 3 ?
It is clear that the cumulative distribution function of u ( x , t ) is given by
c ( x ) = x p ( x ) d x ,
and hence, from the fundamental theorem of calculus
p ( x ) = d d x c ( x ) .
Thus, for  r R 2 , when p ( x ) = p ( y ) , the (circularly symmetric) cumulative distribution is (using polar coordinates ( r , θ ) with r = x 2 + y 2 )
c ( r ) = p ( r ) d 2 r = 0 2 π 0 r p ( r ) r d r d θ = 2 π 0 r p ( r ) r d r
and so the PDF p 2 ( r ) , say, is given by
p 2 ( r ) = 2 π d d r 0 r p ( r ) r d r = 2 π r p ( r ) , r R 2 .
Similarly for r R 3 , when p ( x ) = p ( y ) = p ( z ) , then for the spherically symmetric case (using spherical polar coordinates ( r , θ , ϕ ) with r = x 2 + y 2 + z 2 ),
c ( r ) = p ( r ) d 3 r = 0 r 1 1 0 2 π p ( r ) r 2 d r d ( cos θ ) d ϕ = 4 π 0 r p ( r ) r 2 d r
so that
p 3 ( r ) = 4 π d d r 0 r p ( r ) r 2 d r = 4 π r 2 p ( r ) . r R 3 .

7.1. Gaussian and Rayleigh Distributions

In the case when u ( x , t ) , u ( y , t ) and u ( z , t ) are (zero mean) Gaussian distributed and
p ( x ) = exp [ x 2 / ( 2 σ 2 ) ] 2 π σ 2
where σ is the standard deviation and when the characteristic function (CF) is given by [36]
P ( k ) = F n [ p ( x ) ] = exp ( σ 2 k 2 / 2 ) ,
then
p 2 ( r ) = r σ 2 exp [ r 2 / ( 2 σ 2 ) ] , r R 2 ,
which is a standard Rayleigh distribution with characteristics function [36]
P 2 ( k ) = i 2 π σ k exp ( σ 2 k 2 / 2 ) .
For the three dimensional case
p 3 ( r ) = 2 π r 2 σ 3 exp [ r 2 / ( 2 σ 2 ) ] , r R 3 ,
which has the CF [36]
P 3 ( k ) = 2 ( σ 2 k 2 1 ) exp ( σ 2 k 2 / 2 ) .
The distributions p 2 ( r ) and p 3 ( r ) represent the random length of the two- and three-vectors respectively.
The case associated with p 2 ( r ) frequently occurs when a random time signal u ( t ) has a distribution p ( x ) . By computing the Hilbert transform of this signal, we obtain the quadrature component w ( t ) which has the same distribution as u ( t ) . The analytic signal s ( t ) , is then given by
s ( t ) = u ( t ) + i w ( t ) where w ( t ) = 1 π t u ( t )
and the amplitude modulations given by A ( t ) = u 2 ( t ) + w 2 ( t ) are therefore 2 π r p ( r ) distributed.

7.2. Lévy and Associated Distributions

The symmetric Lévy distribution features in material considered later on in this work and is a key to the connectivity between E 3 and the fractional diffusion equation. We therefore take the opportunity at this point in the paper to consider some of the basic definitions and results associated with this distribution. The CF of a (zero-mean) Gaussian distribution can be written as P ( k ) = exp ( c k 2 ) where c 0 is a real constant (= σ 2 / 2 ). The Lévy distribution is one whose CF is based on a generalisation of the CF of a Gaussian distribution to
P ( k ) = exp ( c k γ ) , γ [ 0 , 2 ]
where γ is the Lévy index. It is then clear that γ = 2 recovers a Gaussian PDF, γ = 1 generates a Cauchy distribution given that
exp ( c k ) 1 π c c 2 c 2 + x 2 1 x 2 , x
and it is noted that
lim γ 0 exp ( c k γ ) δ ( x ) .
For γ ( 0 , 2 ) it possible to derive the asymptotic result [37]
exp ( c k γ ) 1 x 1 + γ , x .
A simple derivation of this result can be obtained by noting that
p ( x ) = F 1 1 [ exp ( c k γ ) ] = F 1 1 [ 1 ] + n = 1 ( 1 ) n c n n ! F 1 1 [ k n γ ] = δ ( x ) 1 π n = 1 ( 1 ) n c n n ! sin π n γ 2 Γ ( 1 + n γ ) x 1 + n γ 1 x 1 + γ , x
using Relationship (2). The non-asymptotic Lévy distribution for arbitrary values of γ can easily be evaluated numerically through application of a discrete Fourier transform. Figure 2 shows examples of the Lévy distribution p ( x ) for different values of γ (with c = 2 ) and associated distributions x p ( x ) for the same values of γ but for c = 1 / 2 . It is noted that the tails of each distribution for γ < 2 are longer than those for the case when γ = 2 , thereby representing stochastic processes in which rare but extreme events are more likely to occur than with a Gaussian distributed process. These events include Lévy flights which, in financial time series analysis, mark positions in time when the value of a price may increase or decrease in a way that is inconsistent with the statistical signature of the series in a more general sense. An example of this is given in Figure 3 which shows Lévy flights in the complex plane associated with a FTSE 100 signal, the data having been obtained from [23].
Identifying metrics that can flag the positions in time at which a Lévy flight may occur are an important feature of financial trading. The first of these that we consider in this paper is the Lyapunov exponent which, in the context E 3 , is discussed in the following section.

8. The Lyapunov Exponent

The Lyapunov exponent is a quantity that characterises the rate of separation of infinitesimally close trajectories, a trajectory being a time-ordered set of states of a dynamical system. Specifically, a trajectory is a sequence f n ( x ) , n N calculated by the iterated application of a mapping f to an element x of its source. In this section, we illustrate the derivation of this exponent from E 3 .
Consider some dynamical system that is modelled by an iterative equation characterised by a function f ( t , x 0 ) which produces a solution at some time t given by x ( t ) for an initial condition x 0 x ( t = 0 ) . The system is such that it may be stable or unstable depending on the initial condition x 0 and system parameters, i.e., the numerical value of the parameters that characterise the function f ( t , x 0 ) . For stability, we can expect the solution x ( t ) to be characterised by convergence to a specific value (which could be zero) so that as t , x ( t ) = x ( t + τ ) where τ < < 1 . If the solution is unstable we can expect x ( t ) might increase in value with t and/or have some chaotic behaviour where x ( t ) becomes a chaotic variable of time. In this case, a fundamental “diagnostic” is associated with asking the following question: Is a given system, characterised by the function f ( t , x 0 ) , unstable, and, if so, how unstable is it? The answer to this question is compounded in the Lyapunov exponent, whose value is typically taken to be a measure of how sensitive x ( t ) is to the initial condition x 0 . If we denote δ x ( t ) to be some change to the solution which depends on a change to the initial condition denoted by δ x 0 , then this sensitivity is compounded in the following equation
δ x ( t ) p exp ( λ t ) δ x 0 p ,
where λ is referred to as the (leading) Lyapunov exponent and has the solution
λ 1 t ln δ x ( t ) p δ x 0 p .
This exponent represents the mean rate of separation of trajectories of the system where the term “trajectory” refers to the time evolution of x ( t ) subject to the initial condition x 0 . Thus, any two trajectories x ( t ) = f ( t , x 0 ) and x ( t ) + δ x ( t ) = f ( t , x 0 + δ x 0 ) , say, that are close to each other for t < < 1 and consequently separate exponentially with time, will represent a system defined by function f ( t , x 0 ) that has a large value of λ . On the other hand, if all values of x ( t ) and x ( t ) + δ x ( t ) converge to the same value in some neighbourhood of time, then δ x ( t ) must approach zero, and, from Equation (18), this implies that λ < 0 . Thus, on the basis of Equation (18), a positive value of λ defines a system with chaotic behaviour in time and a negative value of λ characterises a stable system which convergences in time. Moreover, the larger the value of λ becomes the faster the rate of convergence (for λ < 1 ) or the “route to chaos” (for λ > 1 ), [39,40,41].
Given the description above as to what the Lyapunov exponent is and what it characterises, we consider a derivation of this exponent within the context of Equation (10) for r R 3 and uniform discretisation in time so that we can write
u ( r , t n + 1 ) = p ( r ) u ( r , t n ) , n = 0 , 1 , 2 , . , N .
Suppose that after many time steps, this iteration converges to the function u ( r , t ) , say. We can then represent the iteration in the form
u ( r , t n ) = u ( r , t ) + ϵ ( r , t n ) ,
where ϵ ( r , t n ) denotes the error at any time step n. Convergence to the function u ( r , t ) then occurs if ϵ ( r , t n ) 0 as n . If we now consider a model for the error at each time step given by (for some real constant ε )
ϵ ( r , t n + 1 ) = ε exp ( λ t n )
with t n = n τ (where τ defines the time sampling interval) it is clear that we can then write
ϵ ( r , t n + 1 ) = ϵ ( r , t n ) exp ( λ τ ) ,
or, after taking the p = 1 -norm of both sides,
ϵ ¯ ( t n + 1 ) = ϵ ¯ ( t n ) exp ( λ τ )
where
ϵ ¯ ( t n ) = ϵ ( r , t n ) 1 .
Thus we can consider an expression for λ given by
λ = lim N 1 N τ n = 1 N ln ϵ ¯ ( t n + 1 ) ϵ ¯ ( t n )
If λ is negative, then the iterative process is stable since we can expect that for n > > 1 , ϵ ¯ ( t n + 1 ) / ϵ ¯ ( t n ) < 1 and thus ln ϵ ¯ ( t n + 1 ) / ϵ ¯ ( t n ) < 0 . If  λ is positive then the iterative process will diverge, such a criterion for convergence/divergence being dependent on the exponential model given in Equation (22) used to represent the error function at each iteration. This result applies for any time iteration process. However, in the case of Equation (20), we note that, if  u ( r , t 0 ) = δ 3 ( r ) then u ( r , t 1 ) = p ( r ) , u ( r , t 2 ) = p ( r ) u ( r , t 1 ) = p ( r ) p ( r ) , so that, through application of the Central Limit Theorem, we have
Mathematics 07 01057 i001
where Gauss(r) is a normalised three-dimensional Gaussian function such that
Gauss ( r ) d 3 r = 1
From Equation (21) we can now consider the equation u ( r , t n ) = Gauss ( r ) + ϵ ( r , t n ) , or, after taking p = 1 norms, u ¯ ( t n ) 1 + ϵ ¯ ( t n ) where u ¯ ( t n ) = u ( r , t n ) 1 . For a discrete time series u n > 0 n , say, we compute the Lyapunov exponent using the relatively simple formula
λ = 1 N τ n = 1 N ln u n + 1 u n .
Hence, for a time series which is assumed to be predicated on Equation (10), we can compute the corresponding Lyapunov exponent using Equation (23), albeit, in practice, for a finite array of size N. This includes financial time series data when λ can be computed for a moving look-back window to generate a signal composed of Lyapunov exponents. In this context, the product N τ merely scales the computed value of the exponent but if u n + 1 > u n , n = 1 , 2 , , N then λ > 0 and if u n + 1 < u n , n = 1 , 2 , , N then λ < 0 . Hence, irrespective of the scale used, a change of polarity in the value of λ is a signature of a change in the gradient of the time series. For this reason a change in polarity of the Lyapunov exponent can be used to quantify the transition between the growth or decay of a financial series.
An example of this is given in Figure 4 which shows a financial signal (the first 1000 elements of the FTSE 100 prices given in Figure 3)—from 14/03/2006–26/02/2010—which has been normalised for display purposes, i.e.,  u n : = u n / u n . The associated Lyapunov exponent has been computed using function Lyapunov given in Appendix A.2 and re-scaled for values τ = 0.01 and N = 32 according to Equation (23). Note that the first N values in Figure 3 are missing which is due to the window being a look-back window holding data that contributes to the first computation of the exponent at point N.
As with other metrics computed from financial time series, the Lyapunov exponent obtained depends critically on the look-back window that is applied. However, subject to a delay which is proportional to the size of the look-back window used (determined by the time scale of the analysis), the polarity (and continuity thereof) of the signal can be used to estimate the macroscopic trends in a financial time series as illustrated in Figure 4. This is discussed further later on in this paper.
Since we can write Equation (23) in the form
λ = 1 N τ n = 0 N ln u n + 1 ln u n
and that
ln u n + 1 ln u n τ d d t ln u ( t ) ,
then, for the continuous case with time series function u ( t ) , t [ 0 , T ] , we can write
λ 1 T 0 T d d t ln u ( t ) d t = 1 T ln u ( T ) u ( 0 )
giving a result that is analogous to Equation (19).

9. The Evolution Equation, Volatility and Risk

For a stochastic source term s ( r , t ) , as given in Equation (11), Equation (14) becomes
τ t u ( r , t ) = n ( t ) u ( r , t ) + n ( t ) u ( r , t ) p ( r ) + n ( t ) s ( r , t )
Consider the case when p ( r ) = δ n ( r ) . Integrating over r R n , we can then write the rate equation
d t u ( t ) = σ [ n ( t ) s ( t ) ] u ( t ) = σ t [ n ( t ) s ( t ) ] d t = σ s ( t ) t n ( t ) d t ( + constant )
where
d t u ( t ) d d t u ( t ) , u ( t ) = u ( r , t ) d n r , s ( t ) = s ( r , t ) d n r and σ = 1 τ .
Suppose we write this equation in the form
d t ln u ( t ) 1 u ( t ) d d t u ( t ) = σ u ( t ) n ( t ) s ( t ) , u ( t ) > 0 t
and consider an iterative solution for u ( t ) given by
d t ln u k ( t ) = σ u k ( t ) n ( t ) s ( t ) , k = 0 , 1 , 2 ,
so that the first iterate u ( t ) : = u 1 ( t ) becomes the solution to the rate equation
d t ln u ( t ) σ f ( t )
where, for  u 0 ( t ) = 1 ,
f ( t ) = n ( t ) s ( t ) .
Equation (24) then shows that the volatility is a measure of the randomness of ln u ( t ) through the convolution of s ( t ) with the time integration of n ( t ) . If, for example, s ( t ) 1 , then, in the term σ s ( t ) , σ determines the amplitude of s ( t ) .
Equation (24) does not provide a practically useful formula for σ as it relies on defining the functions n ( t ) and s ( t ) when what is ideally required is a definition for σ that relies on knowledge of u ( t ) alone. To do this we are required to derive a formula for σ in terms of the function u ( t ) through the elimination f ( t ) and this requires a condition to be applied. In this context, suppose we assume that f ( t ) is a phase only function (with unit amplitude) of compact support T and with a bandwidth Ω . This requires that both s ( t ) and n ( t ) are phase only functions of the same compact support and bandwidth. In this case F ( ω ) = exp [ i θ ( ω ) ] where θ ( ω ) is the "Phase Spectrum" and using Parseval’s Theorem, we have
T / 2 T / 2 f ( t ) 2 d t = 1 2 π Ω / 2 Ω / 2 F ( ω ) 2 d ω = Ω 2 π .
Hence, we obtain an expression for the volatility given by
σ = 2 π Ω d t ln u ( t ) 2 , d t ln u ( t ) 2 : = T / 2 T / 2 d t ln u ( t ) 2 d t 1 2 .
For a uniformly sampled discrete time series u n , n = 1 , 2 , 3 , , N , application of a forward differencing scheme for a time interval Δ t when
d t ln u ( t ) ln u n + 1 ln u n Δ t = 1 Δ t ln u n + 1 u n
gives
σ = 2 π Ω Δ t ln u n + 1 u n 2 , ln u n + 1 u n 2 = n = 1 N ln u n + 1 u n 2 1 2 .
The sampling interval Δ t of u n is related to the sampling interval Δ ω of the discrete Fourier transform of u n by the equation
Δ t Δ ω = 2 π N
and since the bandwidth of the discrete spectrum of u n is N Δ ω is is clear that Δ t Ω = 2 π . Thus we derive a simple formula for the volatility given by
σ = ln u n + 1 u n 2 .
Comparing Equation (25) with Equation (23), we observe similarities in regard to the commonality of the quotient u n + 1 / u n and the logarithmic function but where λ < 0 or λ 0 and where σ 0 n .
An example of the short time volatility is given in Figure 5 which shows a financial signal (the first 1000 elements of the FTSE 100 prices given in Figure 3), normalised for display purposes. In this example σ in Equation (25) was computed using function volatility given in Appendix A.3 for N = 32 .
In financial time series modelling, the volatility is a measure of the noise in the signal. For data that has a stable trend (up or down) the volatility is relatively low, and, in this context, trading is best undertaken working with financial signals that have a low volatility other than options trading where there may have been a “bet” of a move of a certain magnitude. In this sense, the volatility of a signal provides a measure of the risk, a low risk loosely equating to a low volatility. In the derivation of the volatility provided in this section: σ = 1 / τ where τ is a coefficient in Equation (14). In this respect, and, in context of the evolution equation, τ is a measure of risk, the greater the value of τ the lower the risk associated with an investment. For short δ ( t ) type memory functions the GKFE reduces to the classical Kolmogorov–Feller equation which, in terms of its relationship to the evolution equation requires that τ < < 1 . Thus low risk requires that a financial time series is characterised by long memory functions, at least in terms of the model compounded in Equation (14)—a result that makes intuitive sense.

10. Trend Analysis Using the Lyapunov Exponent to Volatility Index Ratio

The changes in polarity or “zero-crossings” associated with the Lyapunov exponent (computed on a moving window basis) as discussed in Section 8 provide the positions in time where there is a transition in the type of trend (growth leading to decay and decay leading to growth). The value of the volatility indicates the “stability” of the time series, the temporal characteristics of all indicators being dependent of the size of the window or "period" used. This suggests scaling the Lyapunov exponent with the inverse of the volatility, i.e., computing the quotient
λ σ = λ σ
where σ is defined by Equation (25) and λ is defined by Equation (23) with τ = 1 / N thereby making λ σ scale independent. This index then assesses not only changes in the direction of a trend but the corresponding stability of that trend. This idea has obvious applications to a range of time series but especially in regard to financial time series analysis where forecasting both the type and characteristics of a trend is of fundamental importance, a positive trend with low volatility indicating a good investment horizon, for example. We define λ σ as the Lyapunov-to-volatility ratio (LVR). Figure 6 shows the time varying LVR of a financial signal (the first 1000 elements of the FTSE 100 prices given in Figure 3 after normalisation) for N = 32 .

10.1. Pre- and Post-Filtering

As shall be discussed later, the numerical accuracy of results obtained in predicting a trend and its longevity, is critically dependent on the filtering of both the input data and λ σ —pre- and post-filtering, respectively.

10.1.1. Pre-Filtering

The positions in time at which the zero crossings are evaluated using Equation (26) depend on the accuracy of the algorithm used to compute λ σ which in turn, depends on the intrinsic noise associated with the time series data. This can yield errors in the positions at which the zero-crossings are computed especially in regard to changes associated with very short time micro-trends.
In the context of longer term macro-trends, such micro-trends may legitimately be interpreted as noise although, in the context of financial times series analysis, for example, the term "noise" must be understood to reflect legitimate price values. To overcome this effect, u n is filtered using a moving average filter defined by:
u ( t ) : = w ( t ) u ( t )
where
w ( t ) = 1 / W , t W 0 , t > W
and W defines the length of the “moving window”. The function given in Appendix A.4 provides a moving average filter for pre-filtering the data u n using a window of size W.

10.1.2. Post-Filtering

In addition to pre-filtering the time series data, an option for post-filtering the λ σ is required to further control the dynamic behaviour of this index. We therefore again consider a moving average filter given by
λ σ ( t ) : = w ( t ) λ σ ( t )
where
w ( t ) = 1 / T , t T 0 , t > T
and T defines the length of the “moving window”, T W .

10.2. Zero-Crossings Analysis

On the basis of the ideas considered in the previous section, the critical points at which a trend forecasting decision is made are the zero crossing points associated with λ σ . By computing λ σ ( t ) where t is the position in time of the window, identification of the zero crossings denoted by the function z c ( t ) involves the follow basic procedure:
z c ( t ) = + 1 , λ σ ( t ) < 0 & λ σ ( t + ε ) 0 ; 1 , λ σ ( t ) > 0 & λ σ ( t + ε ) 0 ; 0 , otherwise .
where ε is a small perturbation in time. This procedure generates a series of Kronecker delta functions whose polarity determines the position(s) in time at which a trend is expected to be positive or negative. Thus the function z c ( t ) identifies the zero crossings associated with the end of an upward trend and the start of a downward trend when z c ( t ) = 1 and the end of downward trend and the start of an upward trend when z c ( t ) = + 1 . This is therefore a "critical indicator" in regard to forecasting the trending behaviour of a time series.

10.3. Back-Testing Evaluator

Back-testing algorithms are designed to “gauge” the accuracy of results in terms of trend predictions, for example, and, are usually, but not exclusively, related to testing a strategy for forecasting the behaviour of a financial time series. They are usually designed to assess the overall accuracy of some trading strategy based on historical data when the future outcomes of such a strategy can be evaluated. In this context, the function given in Appendix A.5 evaluates the performance associated with the zero-crossings analysis discussed in the previous section. This evaluation operates on the basis that the price differences should reflect the interval between the start and end points of a predicted trend if the prediction is correct. Thus, in the case when z c ( t ) > 0 and the trend is positive, the price difference between this point in the time series and the next point in time series when z c ( t ) < 0 should be positive, thereby representing a net price gain between the two zero crossings. Similarly, when z c ( t ) < 0 and the trend is negative, the price difference between this point in the time series and the next point in time series when z c ( t ) > 0 should be negative, thereby representing a net price loss between the two zero crossings. In those cases where this occurs throughout the duration of the time series considered, the predicted entry and exits points are taken to be correct, or else, they are taken to be incorrect. The accuracy associated with this evaluation is computed as a percentage in terms of successful entries and exits, i.e., going “long” (when an investment might be made because the price of a commodity is increasing) and going “short” (when an investment would be held or sold at the start of a downward trend), respectively.

10.4. Example Results

A function called Backtester is provided in Appendix A.6 which gives the user options on the sizes of the look-back window length W and T and the size L of the data stream that is used from the available input data. This data is provided in the form of a column vector via a .txt file. The function normalises this data so that it can be plotted on a scale that is consistent with the scale of λ σ [ n ] . The function provides a plot which shows the evolution of u n (normalised), λ σ [ n ] and z c [ n ] and then evaluates the results using function evaluator as discussed in the previous section. Note that both the Lyapunov exponent and the volatility are evaluated from the original data (and not the normalised data used for the plot) using a look-back window of T.
Figure 7 shows some example results of running Backtester for the first 1000 elements of the FTSE 100 prices given in Figure 3. The three examples provided are for function Backtester(10,10,1000), Backtester(20,10,1000) and Backtester(30,10,1000) for which the combined entry/exit (long/short) accuracy is 36.55%, 64.58% and 72.73%, respectively. From these results it is clear that the accuracy improves significantly with the extent of the pre-filtering that is applied to the time series before computation of the LVR. This is to be expected as pre-filtering reduces the noise associated with the time series prior to the computation of the LVR.
In order to quantify both the pre- and post-filtering effect on the combined accuracy of the long/short predictions, Figure 8 shows a surface (mesh) plot of the combined accuracy as a function of the pre- and post-filtering look-back window sizes W and T, respectively. The maximum value associated with this ‘ W T -map’ is 87.5% which occurs at ( W , T ) coordinates (40, 10). From Figure 8 it can be seen that the highest combined accuracies (>70%) are obtained for approximate values of W [ 30 , 50 ] and T [ 10 , 20 ] . However, it should be noted that W T -maps of this kind are data dependent and will vary with the type of financial time series that is processed and on the non-stationary characteristics that occur over the length of the data series that is chosen (i.e., the input parameter L in function Backtester). Hence,  W T -maps of the type given in Figure 8 provide a “signature” for a financial signal from which optimal values of the pre- and post filtering windows can be established. This optimisation is based on finding the smallest values of W and T that will maintain a combined accuracy compatible with an expected return over a given time scale.
As a comparative example, Figure 9 shows the equivalent W T -map for 1000 elements of the Eruo-Dollar (USA) daily (averaged) exchange rates from 29/04/2008 to 27/02/2012 as given in Figure 10. In this case, a maximum value of 83.33% occurs at W T coordinates with minimum values of (38, 12). Although the quantitative details of this W T -map are unique to the data used, in qualitative terms, it is similar to the W T -map given in Figure 8 revealing that greater accuracy is achieved for large values of W relative to T which is intuitively to be expected. Clearly, for any specific financial date series, a  W T -map is required to provide an optimal accuracy associated with the trend analysis of that series under the assumption that the stochastic behaviour of the series is stationary, i.e., the financial signal is Ergodic.

11. Price Prediction Using Evolutionary Computing

The trend analysis considered in the previous sections provides evidence of being able to predict a positive or negative trend in a financial signal over a period of time that yields a net positive of negative gradient, respectively, before the trend is reversed. This is based on pre-filtering the financial signal and post-filtering the LVR in which the accuracy achieved is based on the look-back windows of both filters. Such an approach only provides a statement on the expected future trend of a financial signal; it does not provide an estimate of the actual future price.
On the basis of Equation (15) and the random walk hypothesis it represents, it is not possible to determine a future price with 100% accuracy whatever the time scale, given that most financial signals are known to be self-affine stochastic fields which exhibit the same statistical distributions over all time scales. Thus, it is well known and understood (but not always appreciated) that in economics, only an estimate (essentially an informed guess) of a future price is possible. However, in principle, the lower the volatility of the signal, the less likely it is to exhibit large random variation at some future (short) time and hence, the larger the LVR the more likely it is that an estimate of a future price will be a more accurate prediction. In terms of Equation (15), this means that u ( t + τ ) u ( t ) given that s ( t ) 0 , i.e., ‘tomorrow’s price is likely to be close to today’s price. This provides the basis for using evolutionary computing to estimate short time price values by using the LVR to flag when the approach can be used effectively, i.e., when the LVR reaches a maximum or minimum above or below a certain threshold, respectively—as illustrated in Figure 7 for a threshold of 2, for example.

11.1. Evolutionary Computing

Evolutionary computing (EC) involves “applying the Darwinian principles of natural selection to algorithmic problem solving” [42] and has its origins in the 1960s with the introduction of “evolutionary programming” [43], “genetic algorithms” [44], and “evolutionary strategies” [45]. Following independent developments in the 1990s these areas merged to form the discipline of genetic programming known today as EC in which a correlation exists between natural evolution and evolution by computational problem solving [46].
In the context of a local environment that has a population striving for survival and to reproduce, with natural evolution, the success (fitness) of each individual is dependent on their environment and how well they meet their goals. Similarly, with a trial-and-error mathematical process, a candidate solution is judged in the context of the problem that it is trying to solve and how well the candidate solves the problem which determines whether or not it is kept as a candidate solution. A common theme in EC is the idea of taking a population of individuals “operating” according to environmental pressures causing natural selection and thereby the growth of a fitter population. Many aspects of EC are stochastic and the starting point of candidate solutions can be either deterministic or stochastic. In either case, the aim is to produce a “solution” that minimises some fitness function.

11.2. Eureqa

Eureqa is an EC tool originally developed by the Cornell Creative Machine Laboratory (Cornell University) and commercialised by Nutonian Inc. ( Boston, MA, USA) [47]. The underlying principle is to use genetic programming to generate equations, each of which provides an increasingly better fitness function to model a given dataset. The system iteratively generates a sequence of non-linear functions to describe input (digital) signals which may include stochastic signals [48]. It is a modelling engine predicated on artificial intelligence using evolutionary searches to determine an equation that represents a set of data [49]. The system automatically discovers formulae through evolutionary algorithms requiring no human intervention starting by randomly creating equations via sequences of mathematical building blocks based on a combination of common functions. The content of these formulae is ordered only by a basic syntax (e.g., two addition signs cannot appear one after the other). Beyond this basic syntax, the sequences generated by the program are entirely random.

11.3. Application to Financial Forecasting

With a little data “Eureqa generates fundamental laws of nature” [50]. However, there have been few applications of EC to financial forecasting. This is partly due to the significance of Equation (15) and the basic random walk hypothesis which financial signals adhere to, albeit as self-affine stochastic fields. Thus although EC can be used to generate a non-linear equation for some short time financial signal, no fundamental significance in terms of a “law of nature” can be inferred by such an equation due to the random walk nature of the data that is used. To date, the only “law of nature” that can be used to describe financial signals is that they are statistically self-affine fields to which the fractal market hypothesis is thereby applicable. Nevertheless, EC can be used to provide short time predictions including the performance of equity markets [51] and energy commodities [52], for example. This is done by using EC to generate representative equations for existing prices over a look-back window and can, in principle, be applied successive for a moving (look-back) window especially for time periods where the volatility of the time series is low and future prices can be expected to be random but locally similar to past prices.

11.4. An Example Result

With reference to Figure 7, we consider the daily prices for array values between 870 and 900 (inclusively) which correspond to days 24/08/2009 to 08/09/2009 when the LVR is ∼3 and relatively flat. With these 30 price values, Eureqa provides the following formula:
f ( t ) = 5025.73417939762 + 8.96527863946579 t 2 + 1.52597679067939 × 10 6 t 6 + cos ( 8.96527863946579 t ) 76.8453768284695 t 0.253321938783733 t 3 48.5578781261177 sin ( 0.96446841878421 + 7.16244232473996 t )
obtained after 51,056 generations giving a correlation coefficient of 0.98362871, an  R 2 (coefficient of determination) goodness of fit of 0.96684623, a mean absolute error of 16.623419 and a complexity of 51.
Figure 11 shows a comparison of the true price values with the estimates obtained using a discretised version of Equation (27) given by
f n = 5025.73417939762 + 8.96527863946579 t n 2 + 1.52597679067939 × 10 6 t n 6 + cos ( 8.96527863946579 t n ) 76.8453768284695 t n 0.253321938783733 t n 3 48.5578781261177 sin ( 0.96446841878421 + 7.16244232473996 t n ) , n = 1 , 2 , , N , t n = n
for N = 30 , and, additionally, for  n = 31 , 32 and 33 thereby providing future price prediction for three days ahead.
A comparison of the numerical values for these price predictions is given in Table 2.

11.5. Discussion

With reference to Figure 11, the local trend in prices before and inclusive of element 30 (i.e., elements 26–30) is downward and so based on the principle of Equation (15) for s ( t ) 0 and application of exponential smoothing for time series forecasting [53], for example, continuation of this trend will lead to inaccurate predictions that are inconsistent with the local increase in prices for elements 31, 32 and 33—the circled dots in Figure 11. However, the equivalent future predictions given by Equation (28) are consistent with the actual values which represent a short time up-ward trend as shown in Table 2. The predictive ability of EC can only be considered for very short future time increments (a look-forward prediction window) but this example result does provide evidence for the success of using EC exercised on a moving look-back window basis.
A quantitative study on the accuracy of this approach in terms of the look-back window and the look-forward (prediction) window relative to the local LVR lies beyond the scope of this work. However, it is to be expected that the success of this approach will be predicated on the size of the amplitude of λ σ when the volatility is low. Hence, based on the results given in Figure 7, an EC moving window approach may be used when λ σ 2 where λ σ is given by Equation (26). In this context, the LVR not only provides a method of predicting trends (subject to appropriate pre- and post-filtering) based on its change in polarity but also flags when to apply EC to generate future price estimates.

12. Derivations of the Diffusion Equation from the Evolution Equation

So far in this paper, we have developed a predictive indicator that is based on combining the Lyapunov exponent and the volatility into a ratio (the LVR), both parameters having been derived from E 3 and computed on a moving window basis. We have then used the amplitude of this ratio to gauge the likelihood of using EC to successfully predict short term future price values. We have not yet studied the effect of applying specific models for the PDF associated with E 3 which is the subject of later sections. In particular, we show how the classical diffusion equation is a result of considering a Gaussian PDF in E 3 and the non-classical fractional diffusion equation is the result of considering a non-Gaussian PDF, in particular, a Lévy distribution and undertaken using the associated characteristic functions.
In this section we consider three approaches to deriving the classical diffusion equation in order to show the connectivity between this equation and E 3 in terms of applying different conditions and approximations. We start with Einstein’s original approach which is independent of the specific PDF but on the condition that the PDF is symmetric.

12.1. Einstein’s Derivation for r R 1

In his 1905 paper [1], Einstein considered the one-dimensional case, when r R 1 , and where the PDF is taken to be symmetric so that p ( x ) = p ( x ) . In this case, Equation (10) can be written as
u ( x , t + τ ) = p ( x λ ) u ( λ , t ) d λ = p ( x + λ ) u ( λ , t ) d λ = p ( λ ) u ( x + λ , t ) d λ
Taylor expanding u ( x , t ) to first order in time, and, to second order in space, we then obtain
u ( x , t ) + τ t u ( x , t ) = d λ p ( λ ) u ( x , t ) + λ x u ( x , t ) + λ 2 2 2 x 2 u ( x , t )
= u ( x , t ) p ( λ ) d λ + x u ( x , t ) λ p ( λ ) d λ + 2 x 2 u ( x , t ) λ 2 2 p ( λ ) d λ
= u ( x , t ) + 2 x 2 u ( x , t ) λ 2 2 p ( λ ) d λ
since
p ( λ ) d λ = 1 and λ p ( λ ) d λ = 0 .
We can thus write the equation
t u ( x , t ) = D 2 x 2 u ( x , t )
where
D = λ 2 2 τ p ( λ ) d λ .
which is the one-dimensional diffusion equation for diffusivity D with dimensions of Length 2 /Time. This derivation of the diffusion equation relies on the conditions τ < < 1 and λ 2 < < 1 which are required in order to truncate the Taylor series expansion of u ( x , t + τ ) in time and u ( x + λ , t ) in space. However, this derivation of the diffusion equation is independent of the PDF (subject to the condition that the PDF is symmetric) which determines the diffusivity D through Equation (30).

12.2. Einstein’s Derivation for r R 3

A similar approach can be used to deriving of the diffusion equation for r R 3 as shall now be demonstrated. In this case
u ( r , t + τ ) = p ( r ) u ( r , t ) , p ( r ) = p ( r )
can be written out in the form
u ( r , t + τ ) = u ( r + λ , t ) p ( λ ) d λ
where λ is a scalar with dimensions of length and components λ x , λ y and λ z . Expanding u ( r + λ , t ) in terms of a three-dimensional Taylor series,
u ( r + λ , t ) = u ( r , t ) + λ x u ( r , t ) x + λ y u ( r , t ) y + λ z u ( r , t ) z + λ x 2 2 ! 2 u ( r , t ) x 2 + λ y 2 2 ! 2 u ( r , t ) y 2 + λ z 2 2 ! 2 u ( r , t ) z 2
+ λ x λ y 2 u ( r , t ) x y + λ x λ z 2 u ( r , t ) x z + λ y λ z 2 u ( r , t ) y z +
so that, for  τ < < 1 ,
u ( r , t ) + τ u ( r , t ) t = u ( r , t ) p ( λ ) d λ + λ x u ( r , t ) x + λ y u ( r , t ) y + λ z u ( r , t ) z p ( λ ) d λ
+ λ x 2 2 ! 2 u ( r , t ) x 2 + λ y 2 2 ! 2 u ( r , t ) y 2 + λ z 2 2 ! 2 u ( r , t ) z 2 p ( λ ) d λ
+ λ x λ y 2 u ( r , t ) x y + λ x λ z 2 u ( r , t ) x z + λ y λ z 2 u ( r , t ) y z p ( λ ) d λ
We then obtain
τ t u ( r , t ) = λ x 2 2 2 u ( r , t ) x 2 p ( λ ) d λ + λ x λ y 2 2 u ( r , t ) x y p ( λ ) d λ + λ x λ z 2 2 u ( r , t ) x z p ( λ ) d λ + λ y λ x 2 2 u ( r , t ) y x p ( λ ) d λ + λ y 2 2 2 u ( r , t ) y 2 p ( λ ) d λ + λ y λ z 2 2 u ( r , t ) y z p ( λ ) d λ + λ z λ x 2 2 u z x p ( λ ) d λ + λ z λ y 2 2 u ( r , t ) z y p ( λ ) d λ + λ z 2 2 2 u ( r , t ) z 2 p ( λ ) d λ + λ x u ( r , t ) x p ( λ ) d λ + λ y u ( r , t ) y p ( λ ) d λ + λ z u ( r , t ) z p ( λ ) d λ
which can be written as
t u ( r , t ) = · D u ( r , t ) + V · u ( r , t )
where D is the diffusion tensor given by
D = D x x D x y D x z D y x D y y D y z D z x D z y D z z , D i j = λ i λ j 2 τ p ( λ ) d λ
and V is a flow vector which describes any drift velocity that the particle ensemble may have and is given by
V = V x V y V z , V i = λ i τ p ( λ ) d λ .
Note that as λ i λ j = λ j λ i , the diffusion tensor is diagonally symmetric (i.e., D i j = D j i ). For isotropic diffusion when λ i λ j = 0 for i j and λ i λ j = λ 2 for i = j and with a zero drift velocity when V = 0 ,
t u ( r , t ) = · D 0 0 0 D 0 0 0 D u ( r , t ) = D 2 u ( r , t ) , D = λ 2 2 τ p ( λ ) d λ

12.3. PDF Dependent Derivation of the Diffusion Equation

Consider the case when, for  r R 1 , p ( x ) is a zero-mean normal (Gaussian) distribution with Standard Deviation σ and Variance σ 2 , i.e.,
p ( x ) = 1 2 π σ 2 exp x 2 2 σ 2 ,
Taylor expansion to first order of Equation (10) followed by application of the convolution theorem yields the Fourier space equation
U ( k , t ) + τ t U ( k , t ) = P ( k ) U ( k , t )
where
U ( k , t ) = u ( x , t ) exp ( i k x ) d x
and
P ( k ) = p ( x ) exp ( i k x ) d x = exp σ 2 k 2 2 ,
P ( k ) being the Characteristic Function.
Suppose we now consider the case when the variance is small, i.e.,  σ 2 < < 1 . Then
P ( k ) = 1 σ 2 k 2 2 + 1 2 ! σ 2 k 2 2 2 + 1 σ 2 k 2 2 , ( σ k ) 2 < < 1
and Equation (31) can be written as
t U ( k , t ) = U ( k , t ) σ 2 k 2 2 τ
through which we again obtain the diffusion equation
t u ( x , t ) = D 2 x 2 u ( x , t ) where D = σ 2 2 τ
given that
k 2 U ( k , t ) 2 x 2 u ( x , t ) .
In this case, the “key” to the derivation of the diffusion equation is the assumption that the variance of a normal distribution is small and that τ < < 1 . We note that an identical analysis in the two- and three-dimensional domains yields the the two- and three-dimensional diffusion equation
t u ( r , t ) = D 2 u ( r , t ) , r R n , n = 2 , 3

12.4. Generalisation

We can generalise this approach further by writing the evolution equation in Fourier space using the convolution theorem and in expanded form as
U ( k , t ) + τ t U ( k , t ) + τ 2 2 ! 2 t 2 U ( k , t ) + = U ( k , t ) τ D k 2 U ( k , t ) + τ 2 2 ! D 2 k 4 U ( k , t )
so that upon inverse Fourier transformation we have, for  r R n , n = 1 , 2 , 3
τ t u ( r , t ) + τ 2 2 ! 2 t 2 u ( r , t ) + = τ D 2 u ( r , t ) τ 2 2 ! D 2 4 +
Equating terms with the same coefficients in regard to powers of τ , we have (for any positive integer m)
t u ( r , t ) = D 2 u ( r , t ) , 2 t 2 u ( r , t ) = D 2 4 u ( r , t ) , , m t m u ( r , t ) = D m m + 2 u ( r , t )
Since all such equations can be constructed from the diffusion equation, i.e.,
2 t 2 u ( r , t ) = D 2 t u ( r , t ) = D 2 [ D 2 u ( r , t ) ] ,
this analysis confirms that the diffusion equation is E 3 for the case when the PDF is a Gaussian distribution.

12.5. Green’s Function Solution

For the initial condition u 0 ( r ) u ( r , t = 0 ) , r R n , n = 1 , 2 , 3 and in the infinite domain, the Green’s function solution to the homogeneous diffusion equation is [54]
u ( r , t ) = G ( r , t ) u 0 ( r )
where G ( r , t ) is the Green’s function given by
G ( r , t ) = 1 4 π D t n 2 exp r 2 4 D t , t > 0 ; n = 1 , 2 , 3 .

12.6. The Black–Scholes Model

There is a synergy associated with the diffusion equation and the Black–Scholes model for a call premium which is compounded in the partial differential equation [55]
t c ( x , t ) + 1 2 σ 2 s 2 2 s 2 c ( x , t ) + r s s c ( x , t ) r c ( x , t ) = 0
where c ( x , t ) is the call premium, s is the stock price, σ is the volatility and r is the risk. Subject to specific initial and boundary conditions, this equation can be transformed into the classical diffusion equation through application of a change of variables when it can be written in the form
τ u ( x , τ ) + 1 2 σ 2 2 x 2 u ( x , t )
which has the same Green’s function solution as given in the previous section, for  n = 1 and initial condition u ( x , t = 0 ) . Thus, just as the classical diffusion equation is a manifestation of the PDF associated with E 3 being normal, so the Black-Scholes model may be taken to be predicated on Gaussian processes.

13. The Fractional Diffusion Equation

The fractional diffusion equation (FDE) can be derived by generalising the Gaussian characteristic function P ( k ) = exp σ 2 k 2 / 2 to the form
P ( k ) = exp c k γ
where γ [ 0 , 2 ] is the Lévy index and c is a constant with dimensions of Length γ as previously discussed in Section 7.2.
Using the Reisz definition of the fractional Laplacian operator γ , r R n , namely,
γ k γ
with D γ = c / τ , repetition of the analysis given in Section 12.4 yields the homogeneous FDE
t u ( r , t ) = D γ γ u ( r , t )
where D γ is the fractional diffusivity with dimensions of Length γ /Time, and, for  r R 3 with Cartesian coordinates ( x , y , z ) ,
γ γ x γ + γ y γ + γ z γ
Thus, we obtain a fundamental connectivity between between Einstein’s evolution equation and fractional calculus, i.e., application of the Lévy distribution in Equation (10) yields the FDE.

13.1. Continuity Equation

For the case when γ = 1 , we can use the FDE to construct the transport equation
t u ( r , t ) + D 1 n ^ · u ( r , t ) = 0
where n ^ is the unit vector. This is a continuity equation, and, in the context of the evolution equation, illustrates the connectivity between the concept of flux (the flow of an ensemble of particles) and the Cauchy distribution (as discussed in Section 7.2).

13.2. Time-Independent Analysis

If we consider Equation (11), then for the time dependent case the FDE becomes
γ u ( r ) = s ( r ) , r R n
where u ( r ) is a stochastic function. Since  γ u ( r ) k γ we can construct the solution
u ( r ) = F n 1 S ( k ) k γ , S ( k ) s ( r )
Using Equation (4) and the convolution theorem, we can then write u ( r ) as
u ( r ) = c n , γ ( 2 π ) n 1 r n γ s ( r ) , 0 < Re [ γ ] < n ; c n , γ = π n 2 2 n γ Γ n γ 2 Γ γ 2 .
This solution for u ( r ) defines the Riesz potential and has a fundamental scaling property obtained by considering the convolution of the source function for a scaling factor λ when it is simple to show that
c n , γ ( 2 π ) n 1 r n γ s ( λ r ) = 1 λ γ u ( λ r )
and hence u ( r ) is a scale-invariant stochastic function defined by the relationship
Pr [ u ( λ r ) ] = λ γ Pr [ u ( r ) ] .
Thus, for a stochastic source, the Riesz potential u ( r ) is a random scaling self-affine field—a random scaling fractal. In this context, Appendix B develops the relationship between the topological dimension n, the fractal dimension D and the Lévy index γ which is given by
D = 3 n + 2 2 γ 2 .
Thus, for example, a Mandelbrot surface, which has a fractal dimension D = 4 γ [ 2 , 3 ] , can be defined in terms of the solution to the two-dimensional fractional Poisson equation (FPE)
γ u ( r ) = s ( r ) , r R 2 , γ [ 2 , 1 ]
and if s ( r ) has a white spectrum, i.e., a spectrum whose power spectral density function (PSDF) is a constant, then the PSDF of u ( r ) is determined by 1 / k 4 γ .
We note that by Taylor expanding Equation (11) for the time-independent case, then in Fourier space, we obtain U ( k ) = P ( k ) U ( k ) + S ( k ) and with P ( k ) = exp ( c k γ ) it can be shown that  [37]
u ( r ) = F n 1 S ( k ) 1 exp ( c k γ ) 1 r n + γ s ( r ) , r ; r R n
This asymptotic result yields a similar inverse power law but with the scaling law,
Pr [ u ( r ) ] = λ γ Pr [ u ( λ r ) ] ,
a result that is a characteristic of scale-invariant field theory when the field equations are scale invariant so that for any solution ϕ ( r ) , say, of the field equations, there exist other solutions of the form λ Δ ϕ ( r ) for an exponent Δ (not necessarily related to γ ).

13.3. Time-Dependent Analysis

We study the FDE with r R 1 for a stochastic source, namely,
D γ γ x γ t u ( x , t ) = s ( x , t )
and consider the generic Green’s function solution
u ( x , t ) = g ( x , t ) s ( x , t )
where the convolution operation is taken to apply to both x and t. We are then required to compute the Green’s function in this case.

13.4. Green’s Function for the Fractional Diffusion Equation

We consider an evaluation of the Green’s function for the fractional diffusion equation which is defined as the solution to
D γ γ x γ t g ( x , t ) = δ ( x ) δ ( t ) , t 0 .
Writing the Green’s function in terms of the Fourier transformation
g ( x , t ) = 1 ( 2 π ) 2 G ( k , ω ) exp ( i k x ) exp ( i ω t ) d k d ω
noting that
δ ( x ) = 1 2 π exp ( i k x ) d k , and δ ( t ) = 1 2 π exp ( i ω t ) d ω
and using the Reisz definition of a fractional derivative, Equation (35) becomes
[ D γ k γ ( i ω ) ] G ( k , ω ) = 1
which can be written in the factored form
[ ( k γ / 2 + ( i ω / D γ ) 1 / 2 ) ( k γ / 2 ( i ω / D γ ) 1 / 2 ) ] G ( k , ω ) = 1 D γ .
It is well known that for the equation
D γ 2 x 2 2 t 2 g ( x , t ) = δ ( x ) δ ( t ) ,
( k 2 ω 2 / D γ ) G ( k , ω ) = 1 D γ or [ ( k + ω / D γ ) ( k ω / D γ ) ] G ( k , ω ) = 1 D γ
and the outgoing Green’s function is given by
g ˜ ( x x 0 , ω ) = i 2 ω D γ exp [ i ( ω / D γ ) x ] .
Generalising this result for Equation (36), we therefore consider the expression
g ˜ ( x , ω ) = i 2 D γ ( i ω / D γ ) 1 / γ exp [ i ( i ω / D γ ) 1 / γ x ] ,
given that when γ = 2 and i ω / D γ : = ω 2 / D γ , Equation (37) is recovered.
To find the time evolution of the Green’s function, we are required to take the inverse Fourier transform of g ˜ ( x , ω ) , and evaluate the integral
g ( x , t ) = 1 2 π i 2 D γ ( i ω / D γ ) 1 / γ exp [ i ( i ω / D γ ) 1 / γ x ] exp ( i ω t ) d ω .
This can be achieved by writing the exponential function exp [ i ( i ω / D γ ) 1 / γ x ] as a series which yields the series solution
g ( x , t ) = i 2 D γ F n 1 1 ( i ω / D γ ) 1 / γ + i x + n = 2 i n n ! ( i ω / D γ ) ( n 1 ) / γ x n = i 2 D γ F n 1 D γ 1 / γ ( 1 ) 1 / γ ( i ω ) 1 / γ + i x + n = 2 i n n ! 1 D γ ( n 1 ) / γ ( i ω ) ( n 1 ) / γ x n = i 2 D γ D γ 1 / γ ( 1 ) 1 / γ Γ ( 1 / γ ) H ( t ) t 1 1 / γ + i x δ ( t ) + n = 2 i n n ! 1 D γ ( n 1 ) / γ x n δ [ ( n 1 ) / γ ] ( t )
where
H ( t ) = t δ ( s ) d s
is the Heaviside step function. This result comes from noting that for 0 < α < 1
1 Γ ( α ) 1 t 1 α 1 ( i ω ) α and ( i ω ) α δ ( α ) ( t ) d α d t α δ ( t ) ,
the function δ [ ( n 1 ) / γ ] ( t ) being defined in terms of Equation (9).
Note that from Equation (39) when γ = 2
g ( x , t ) = 1 2 π D 2 1 2 i ω exp ( i ω / D 2 x ) exp ( i ω t ) d ω = 1 2 D 2 1 2 π i i i exp ( s x ) s D 2 exp ( s t ) d s = 1 2 π D 2 t exp ( x 2 / 4 D 2 t ) , t > 0 ,
which is the Green’s function for the classical diffusion equation where D 2 is the classical diffusivity.

13.5. Asymptotic Solution

From Equation (40), it is clear that we can define the time dependent Green’s function for the case when x 0 as
g ( 0 , t ) = c γ H ( t ) t 1 1 / γ , c γ = i 2 D γ 1 1 / γ ( 1 ) 1 / γ Γ ( 1 / γ ) .
The Green’s function solution to Equation (34) is then given by
u ( t ) = g ( t ) s ( t )
where u ( t ) , g ( t ) and s ( t ) represent the functions u ( 0 , t ) , g ( 0 , t ) and s ( 0 , t ) . We note that as x 0 , Equation (41) reduces to
g ( 0 , t ) = 1 2 π D 2 t , t > 0
and that this result is consistent with Equation (42) given that for γ = 2 , Γ ( 1 / 2 ) = π and we have
g ( 0 , t ) = i 2 D 2 1 Γ ( 1 / 2 ) t 1 / 2 = 1 2 π D 2 t , t > 0 .
The scaling relationship associated with Equation (43) is given by (c.f. Equation (32))
Pr [ u ( λ x ) ] = λ 1 / γ Pr [ u ( x ) ]
and from Equation (33), the relationship between Fractal Dimension D and the Lévy index in this case is D = ( 5 2 / γ ) / 2 , [ 1 , 2 ] ; γ [ 2 / 3 , 2 ] . Figure 12 shows examples of the function u γ ( t ) for γ = 2 / 3 , 1 and 3 / 2 using the same stochastic source function s ( t ) . Comparing these results with the example given in Figure 3, it is clear that the case of γ 1 provides a time series that (through visual inspection) better matches that of the financial signal. This is verified through application of regression applied to the data given in Figure 3 which yields γ = 1.1455 based on assuming that the data has an amplitude spectrum U ( ω ) with the following spectral power law:
U ( ω ) 1 ω 1 / γ , ω > 0
This value of γ is the one associated with the data given in Figure 3 in its entirety, and, like the Lyapunov exponent and the volatility, it can be computed on a moving window basis to obtain a (short) time dependent signature which is explored further in Section 15.
The regression algorithm used to achieve this result is given in Appendix A.7 and is based on computing the exponent α associated with the power law U ( ω ) ω α using the least squares method (LSM). For a uniformly sampled frequency (or time) series u n > 0 n , n = 1 , 2 , , N α is given by
α = n = 1 N ln U n n = 1 N ln n N n = 1 N ln U n ln n n = 1 N ln n 2 N n = 1 N ln n 2 .
The Lévy index is then related to α by the equation γ = 1 / α . Note that to compute γ using the LSM requires computation of the amplitude spectrum using a discrete (fast) Fourier transform. The data used is that in the positive half-space of the amplitude spectrum with the DC component removed, thereby adhering to the condition ω > 0 in the spectral power law defined by Equation (45). Thus, the LSM is applied for U n , n = 2 , 3 , , N / 2 .

13.6. Discussion: Impulse Response Functions for Classical and Fractional Diffusion

Given Equation (43), it is clear that, in the asymptotic limit x 0 , the difference between classical and fractional diffusion is compounded in the different Green’s function given by Equations (42) and (44). Thus, ignoring the scaling parameters in Equations (42) and (44) as well as those of their Fourier transforms, we can compare the asymptotic solutions as follows:
  • Classical Diffusion
    u ( t ) = 1 t s ( t ) , t > 0 U ( ω ) = S ( ω ) ω
  • Fractional Diffusion
    u ( t ) = 1 t 1 1 / γ s ( t ) , t > 0 U ( ω ) = S ( ω ) ω 1 / γ , γ [ 1 , 2 ] D [ 1.5 , 2 ]
Unlike classical diffusion, fractional diffusion is characterised by a range of values of the Lévy index. The efficient market hypothesis is predicated on classical diffusion processes, based on E 3 for a Gaussian distribution. The ramifications of this is that the time series model for u ( 0 , t ) given by Equation (46) is characterised by the impulse response function (IRF) 1 / t . By comparison, the fractal market hypothesis is predicated on fractional diffusion processes based on E 3 for a Lévy distribution. The consequence of this is that the time series model for u ( 0 , t ) given by Equation (47) is characterised by the IRF 1 / t 1 1 / γ . Since financial signals tend to be non-stationary random fractals, variations in γ as a function of time are informative. However, before we study this, we consider another way to derive what is, in effective, the same basic result but via a different approach, an approach that is also based on E 3 but obtained via the GKFE subject to application of an appropriate memory function. This is discussed in the following section.

14. Solution to the GKFE for an Orthonormal Memory Function

In this section, we show that the temporal power law which characterises Equation (43)—i.e.,  1 / t 1 1 / γ —can be obtained from Equation (14) for a specific orthonormal memory function. The purpose of this is to show another route to deriving the power law which is informative in that it is based on the application of a memory function alone and does not involve specific application of the FDE as presented in the previous section. In this case, and, for  r R 1 , by writing Equation (14) in the form
τ t u ( x , t ) + u ( x , t ) = u ( x , t ) n ( t ) u ( x , t ) + n ( t ) u ( x , t ) p ( x )
we can construct a Green’s function solution is given by
u ( x , t ) = g ( t ) u ( x , t ) g ( t ) n ( t ) u ( x , t ) + g ( t ) n ( t ) u ( x , t ) p ( x )
where g ( t ) is the Green’s function given by
g ( t ) = 1 τ exp ( t / τ ) , t > 0
which is the solution to
τ t g ( t ) + g ( t ) = δ ( t ) .
Provided the Laplace transform of the function n ( t ) exists, we can write this Green’s function solution as
u ( x , t ) = h ( t ) u ( x , t ) p ( x )
where
h ( t ) n ¯ ( s ) τ s + n ¯ ( s )
and ↔ denotes the Laplace transformation, i.e., the mutual transformation from t-space to s-space. This result is obtained by using the convolution theorems for the Fourier and Laplace transforms, when Equation (14) can be written as
u ˜ ¯ ( k , s ) = g ¯ ( s ) u ˜ ¯ ( k , s ) g ¯ ( s ) n ¯ ( s ) u ˜ ¯ ( k , s ) + g ¯ ( s ) n ¯ ( s ) u ˜ ¯ ( k , s ) p ˜ ( k )
where
u ˜ ¯ ( k , s ) = 0 u ( x , t ) exp ( i k x ) d x exp ( s t ) d t , g ¯ ( s ) = 0 g ( t ) exp ( s t ) d t ,
n ¯ ( s ) = 0 n ( t ) exp ( s t ) d t and p ˜ ( k ) = p ( x ) exp ( i k x ) d x
Thus, noting that g ¯ ( s ) = ( 1 + τ s ) 1 , we can write
u ˜ ¯ ( k , s ) = g ¯ ( s ) 1 g ¯ ( s ) n ¯ ( s ) u ˜ ¯ ( k , s ) + g ¯ ( s ) 1 g ¯ ( s ) n ¯ ( s ) u ˜ ¯ ( k , s ) p ˜ ( k ) = n ¯ ( s ) τ s u ˜ ¯ ( x , t ) + n ¯ ( s ) τ s u ˜ ¯ ( k , s ) p ˜ ( k )
leading to the equation
u ˜ ¯ ( k , s ) = h ¯ ( s ) u ˜ ¯ ( k , s ) p ˜ ( k ) .
Inverse Fourier-Laplace transformation then gives Equation (49).
Equation (49) supports an iterative solution of the form
u m + 1 ( x , t ) = h ( t ) u m ( x , t ) p ( x ) , m = 0 , 1 , 2 ,
and we may therefore consider an approximation based on the first iterate, i.e.,
u ( x , t ) = h ( t ) u 0 ( x , t ) p ( x )
The condition required for this approximation to apply can be obtained as follows: Given that
u ( x , t ) 1 h ( t ) 1 u 0 ( x , t ) 1 p ( x ) 1 = h ( t ) 1 u 0 ( x , t ) 1
then
u ( x , t ) 1 u 0 ( x , t ) 1 h ( t ) 1
and hence we required that
h ( t ) 1 < < 1 .
Further, if we consider the case when u 0 ( x , t ) = δ ( x ) s ( t ) , then we can write
u ( t ) = u ( x , t ) d x = h ( t ) s ( t ) p ( x ) d x = h ( t ) s ( t ) .
If we now choose a memory function m ( t ) whose Laplace transform is s β 1 then the orthonormality property n ( t ) m ( t ) = δ ( t ) is satisfied if the Laplace transform of n ( t ) is s 1 β given that from the convolution theorem for Laplace transforms n ¯ ( s ) m ¯ ( s ) = 1 . In this case
h ¯ ( s ) = s 1 β τ s + s 1 β = 1 1 + τ s β 1 τ s β , τ > > 1 .
Since
1 s β H ( t ) Γ ( β ) t 1 β
we obtain the solution
u ( t ) = h ( t ) s ( t )
where
h ( t ) = 1 τ Γ ( β ) t 1 β , t > 0 .
This solution is characterised by Riemann–Liouville (fractional) integral which has self-affine properties, i.e., properties that exhibit “stochastic trending characteristics”. In other words, u ( t ) defines a random scaling fractal function whose impulse response function is 1 / t 1 β , a result that is, in light of the above analysis, been shown to be a PDF independent first order solution to the GKFE for a memory function
m ( t ) = 1 Γ ( 1 β ) t β .
In order to comply with Condition (50), we require that
h ( t ) 1 = 1 τ Γ ( β ) 0 τ 1 t 1 β = 1 β Γ ( β ) τ 1 β < < 1 ,
which is satisfied for the case when τ > > 1 , β [ 0 , 1 ) .
Clearly, ignoring differences in scaling, compatibility of this solution for u ( t ) with Equation (43) is obtained when β = 1 / γ . Thus, subject to the conditions imposed in each case we have shown that there exist temporal solutions to the FDE and the GKFE that exhibit a fundamental power law of 1 / t 1 1 / γ for Lévy index γ . In the former case, the solution is predicated on defining the PDF in the evolution equation (a Lévy distribution) whereas in the latter case, the result is independent of the PDF but predicated on the definition of the memory function (with power law 1 / t β ). In both cases, the solution is characterised by a fractional integral which is self-affine, a property that is fundamental to the analysis and interpretation of financial signals and underpins the fractal market hypothesis.

15. Time Varying Lévy- and α -Indices

As with the other indices considered in this paper, the time dependence of γ for a financial signal can be obtained by computing it over a moving (look-back) window. Figure 13 shows an example of this short time signature. for a financial signal (the first 1000 elements of the FTSE 100 prices given in Figure 3), normalised for display purposes. In this example γ has been computed using the function given in Appendix A.7.
This result assumes that the short-time amplitude spectrum adheres to the scaling law ω 1 γ , and, strictly within the context of this spectral model, the numerical range of γ is only limited by the original definition of the of a Lévy distribution, i.e.,  γ [ 0 , 2 ] as given in Equation (17). The statement γ ( 1 , 2 ] given in Equation (47) is a result of imposing the condition that 0 < 1 / γ < 1 in order that the Fourier transform pair relationship given by Equation (3) is satisfied. However, if we arbitrarily consider a modified IRF given by 1 / t 1 1 / γ , γ [ 0 , 2 ] , then it is clear that we can consider a short time scaling function given by (for t > 0 )
u ( t ) = t α where α > 0 , γ < 1 ; α = 0 , γ = 1 ; α < 0 , γ > 1 .
for the case when s ( t ) = δ ( t ) . This result has similar properties to the Lyapunov exponent in terms of providing an ‘ α -index’ that reflects up-ward (for α > 0 ) and down-ward (for α < 0 ) trends. Further, as with the LVR considered in Section 10 and compounded in Equation (26) we can scale the α -index by the inverse of the volatility to produce Alpha-to-volatility ratio (AVR) index given by
α σ = α σ
In practice, the value of the α can easily be computed using the LSM which is compounded in the function Alpha given in Appendix A.8.
Following the same procedure to that discussed in Section 10.4 (specifically Figure 7), Figure 14 shows example results of running Backtester for the first 1000 elements of the FTSE 100 prices given in Figure 3 but for the AVR index α σ [ n ] instead of λ σ [ n ] . The example given is for Backtester (30,10,1000) which yields a combined entry/exit (long/short) accuracy of 60.98%. Note that this results is obtained by replacing the code
  • L(m)=Lyapunov(s,T,1);%Compute the Lyapunov Exponent.
  • V(m)=Volatility(s,T);%Compute the Volatility.
  • R(m)=L(m)/V(m);%Compute the Lyapunov to Volatility Ratio (LVR).
with
  • A(m)=Alpha(s,T);%Compute the Alpha Index.
  • V(m)=Volatility(s,T);%Compute the Volatility.
  • R(m)=A(m)/V(m);%Compute the Alpha-To-Volatility Ratio (AVR).
in function Backtester given in Appendix A.6.
Apart from the scale in amplitude, the signature of the ARV is very similar to the LVR (comparing Figure 14 and Figure 7). However, the trend prediction accuracy is relatively low and the computational time greater (due to the repeated application of the LSM) which suggests that the LVR is a more reliable and computationally efficient index. However, this statement must be understood within the context of the limited data that was used and demonstrated for this publication and must be quantified further using W T -maps for a range of financial signals and the functions given in Appendix A, a study that lies beyond the scope of this work.

16. Summary, Conclusions and Open Questions

One of the principal themes of this paper has been to develop financial indices that in all cases can been traced back to a fundamental field equation of statistical physics, namely, Einstein’s evolution equation—Equation (10). In this context, we have developed expressions for the following financial indices:
  • the Lyapunov Exponent;
  • the Volatility;
  • the Lévy Index.

16.1. Summary

We have explored the ability for the time varying Lyapunov-to-volatility ratio (LVR) to predict the trend of a financial signal in terms of a change in polarity and the period over which that polarity is sustained subject to pre- and post-filtering as discussed in Section 10.1.1 and Section 10.1.2, respectively. The filtering processes are critically dependent on the values of the look-back windows that are applied and a quantification of the values required to optimise the predictive power has been explored in Section 10.4 in terms of the W T map. Application of the LVR provides a time signature whose maximum and minimum values correlate with regions of a financial signal that have up-ward and down-ward trends with low volatility, respectively. In Section 11, a short study has been presented to use this result as a criterion for the application of EC to predict short term future prices. In this context, computing the time varying LVR has two primary uses:
  • predicting the entry points in time for making, holding or withdrawing an investment;
  • assessing the position in time when application of EC can be expected to yield optimally accurate short term price predictions.
It is noted that in regard to the application of EC, the volatility alone can be used as an assessment criterion, low volatilities providing a flag for the use of EC on a moving window basis to update previous price predictions.
While the derivation and the application of the LVR is predicated on the evolution equation (at least, as demonstrated in this paper), it does not rely on the application of fractional calculus which has been a focal issue in regard to the composition of this paper. Thus, the latter half of this paper was devoted to an analysis of fractional calculus with the aim of showing how, in particular, the classical diffusion and fractional diffusion equations are both directly related to the evolution equation and can be derived directly from it, the difference between the two equations being compounded in the PDF that "governs" the spatial distribution of the density field.
We have shown that the classical diffusion equation is predicated on a Gaussian distribution and that the fractional diffusion equation is predicated on a (symmetric) Lévy distribution. In turn, it has been shown that at the spatial origin (i.e., as x 0 ), the temporal impulse response functions for these two cases are given by 1 / t and 1 / t 1 1 / γ , respectively, functions that underpin the efficient and fractal market hypotheses, respectively. In deriving these functions, we have attempted to show the intrinsic connectivity between the application of Lévy statistics to the evolution equation, the fractional diffusion, the application of fractional calculus for solving this equation and the analysis of the solution leading directly to the description of a stochastic self-affine field—a random scaling fractal signal.
In addition to the theoretical concepts presented in this paper, we have provided a set of numerical algorithms that allows the reader to reproduce the results given. These algorithms are based on the m-code given in Appendix A. They have been designed to give interested readers the facility to study the methods used for the wide variety of financial time series available online and to develop the algorithms further as required. Their development has been based on maintaining consistency with the theoretical analysis derived at the expense of any further and more sophisticated software engineering. Hence, issues such as error checks on input/output data, processing parameters and data/processor compatibility have not been considered.

16.2. Conclusions

The application of fractional calculus in mathematical finance is well known and in this paper we have provided a unified approach to showing that this is the case using Einstein’s evolution equation as a fundamental field equation. This approach has the potential for the development of a range of new models for a financial signal by introducing different PDFs in Equation (11) to those that have been considered here, the categorisation of such models for different time series lying beyond the scope of this publication.
The primary results are given in Section 10 which shows that a relatively high accuracy for predicting up-ward and down-ward trends can be obtained, thereby providing the potential for a profitable trading strategy to be implemented. However, it must be noted that the quantitative results given in Section 10 in regard to this statement are strictly applicable only to the data used (i.e., the daily FTSE100 and Euro-USA dollar exchange rate). Application of the algorithms presented must therefore be fully quantified and characterised for any and all specific financial time series data used, "quantification" being compounded in the associated W T map.
The use of EC discussed in Section 11 verifies that short time price prediction can be exercised if the LVR has reached a maximum or minimum threshold in excess of +2 or 2 , respectively. However, as pointed out in Section 11, the material presented in this respect has only been introduced to complement the main theme of this paper. Further studies are required to assess the accuracy of EC prediction on a moving window basis in terms of the number of future projected price values which maintain an appropriate forecasting accuracy and the associated look-back window used to generate short time forecasting equations of the type given by Equation (27), for example.

16.3. Open Questions

There are a number of open questions which this paper has raised that are the subject of further investigation. The reader is invited to consider the following examples:
  • The specific form of the evolution equation used in this work has been based on Equation (11) and it may be of value to consider the affect of the decay term R u ( r , t ) given in Equation (12).
  • Given that the critical step in deriving the IRF 1 / t 1 1 / γ (from which γ can be computed) is the asymptotic condition x 0 , what are the consequences of developing a numerical algorithm to compute γ when this condition is negated?
  • What is the impact of the LVR and AVR in terms of their possible inclusion into machine learning algorithms that use sets of more conventional financial indices and other statistical metrics for forecasting?
In regard to more generic questions, the following examples may be of interest:
  • In regard to E 3 , the PDFs considered in this work are the delta function, Gaussian function and Lévy distribution which provide models associated with the random walk, efficient and fractal hypothesis, respectively. An investigation into the models for u ( r , t ) and metrics thereof, associated with the application of different PDF (including non-symmetric distributions), is therefore warranted.
  • Similarly, what is the effect of introducing different memory functions into the generalised Kolmogorov–Feller equation, i.e., E 3 in all but name, expressed in terms of memory function m ( t ) , and, further, is it possible to develop an inverse solution in which a financial signal u ( t ) can be used to derive a estimate of m ( t ) for a known distribution p ( r ) .
  • What is the relationship/connectivity (or otherwise) between fractional and Itô calculus in regard to E 3 ?

16.4. Final Remarks

One of the primary aims of this paper was to realise the connectivity compounded in Table 1, and, in this broader context, to show the relationship between E 3 and fractional calculus through the application of a non-Gaussian distribution, specifically a symmetric Lévy distribution whose characteristic function is a generalisation of the Gaussian function (for a real constant c) exp ( c k 2 ) to exp ( c k γ ) , 0 < γ < 2 . The effect of this has been to show that there is a close relationship between non-Gaussian processes of this type and the self-affine characteristics of stochastic signals modelled in terms of the solution to a fractional differential equation, i.e., the fractional diffusion equation. This approach provides the basis for a more general study that transcends the specific distributions considered in order to derive stochastic models that are a more complete and accurate description associated with the varied properties of financial signals in which the applications of fractional calculus is a central theme.
In terms of the computational methods presented, a primary aim is to classify the W T maps for a range of different financial data in terms of the LVR and AVR and to further quantify the accuracy of these two indices in regard to different data types. The purpose of this is to categorise the type of financial times series that are best suited to the trend analysis proposed in terms of a robust predictive accuracy. In turn, this exercise will inform a quantification of the use of EC for predicting short term prices with the aim of obtain a quantitative relationship between the look-back window used, the number of future prices that can be predicted with a specified accuracy and the amplitude of the LVR and/or ALR for a specific financial signal.

Author Contributions

Concept, supervision and writing original manuscript, J.B.; Data curation, P.W.; Theoretical analysis, R.R.; Data processing and review, M.L.; Project management and administration, D.K.

Funding

This research was funded by the Science Foundation Ireland (SFI) Stokes Professorship, SFI Reference Number: 07/SK/11196b.

Acknowledgments

The authors acknowledge the support of the Technological University Dublin and the Science Foundation Ireland, Republic of Ireland, the University of Western Cape, and the University of KwaZulu-Natal, Republic of South Africa, the University of Wales, the University of Portsmouth, UK and the Military Technological College, Oman.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AVRAlpha-to-Volatility Ratio
CFCharacteristic Function
CGIComputer Generated Imagery
DCDirect Current
ECEvolutionary Computing
E 3 Einstein’s Evolution Equation
FDEFractional Diffusion Equation
FFTFast Fourier Transform
FMHFractal Market Hypothesis
FPEFractional Poisson Equation
GKFEGeneralised Kolmogorov–Feller Equation
IRFImpulse Response Function
KFEKolmogorov–Feller Equation
LSMLeast Squares Method
LVRLyapunov-to-Volatility Ratio
MFPMean Free Path
PDFProbability Density Function
PSDFPower Spectral Density Function

Appendix A. Prototype MATLAB Functions

The functions given in this appendix have not been exhaustively tested and no data/parameter error checks or processing anomalies, for example, have been implemented. The functions are provided to give the reader a guide to the basic numerical solutions required to implement the computational procedures discussed in this paper, and, in turn, to help the reader appreciate the theoretical models presented. It is expected that interested readers will use the functions provided as a guide to extending their operational characteristics and software engineer their functionality. Where possible, the notation used for array variables and constants are based on the mathematical notation used in this paper or are acronyms for the function names. The software was developed and implemented using (64-bit) MATLAB R2017b with double precision floating point arithmetic.

Appendix A.1. Software Development and Usage

The MATLAB function given in this appendix are provided to give readers access to prototype source code that implements the algorithms discussed in this paper using m-code. In both cases, copyright is attributed to the authors and all rights are reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the organisation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
The software listed in this appendix is provided by the copyright holders and contributors as is and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright holders be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Appendix A.2. Function Lyapunov

function lambda=Lyapunov(data,N)
% Function to compute the Lyapunov Exponent - lambda -
%for a data stream of length N and time period defined by tau.
%
%Compute the log differences of the data.
for n=1:N-1
d(n)=log(data(n+1)/data(n)); end
d(N)=d(N-1);%Set end point value.
%Return the exponent.
lambda=sum(d);

Appendix A.3. Function Volatility

function sigma=Volatility(data,N)
%Function to compute the Volatility - sigma - for data of size N.
%
%Compute the log price differences.
for n=1:N-1
d(n)=log(data(n+1)/data(n)); end
d(N)=d(N-1);%Set end point value.
%Return the Volatility
sigma=sqrt(sum(abs(d).^2));

Appendix A.4. Function Movav

function Fdata=Movav(data,N,W)
%Function to compute the moving average of data of length N
%using a period (a look-back window) of size W
for n=W:N
%Window data.
for m=1:W
D(m)=data(n-W+m); end
%Compute the mean.
Fdata(n-W+1)=mean(D); end

Appendix A.5. Function Evaluator

function Evaluator(ZC,G,M,T)
%FUNCTION:
%Evaluates the accuracy of a short time trend analysis
%indicator in terms of the actual price differences that
%occurred. This~provides a measure of the accuracy in
%terms of the long and short positions identified that were
%successful in terms of the short time series dynamic
%relative to a net price difference.
%
%INPUTS:
%ZC - Array composed of zeros crossing point indicators;
% ZC = +1 flags the start of a positive trend,
% ZC = -1 flags the start of a negative trend.
%G - Array composed of the values of the time series at
% which the start of a trend is identified by a
% zero crossings.
%M - Data size.
%T - Period (moving window size used for data analysis).
%
%Read non-zero entries of input array ZC and G to vector arrays
%P and Q, respectively, thereby extracting all non-zero values.
n=1; N=1;%Initiate counters.
%Start process
for m=T+1:M-T-1
if G(m)>0.0
P(n)=G(m);n=n+1; Q(N)=ZC(m);N=N+1; end
end
%Count the number of times that an indication of a future upward
%trend led to a net positive price increase (up_good)and then the
%number of times that this failed to be the case (up_bad).
up_good=0; up_bad=0; %Initiate counters
%Start process.
for n=1:N-2
if Q(n)>0 & P(n+1)-P(n)>0
up_good=up_good+1; end
if Q(n)>0 & P(n+1)-P(n)<0
up_bad=up_bad+1; end
end
%Count the number of times that an indication of a future downward
%trend led to a net negative price decrease (down_good)and then the
%number of times that this failed to be the case (down_bad).
down_good=0; down_bad=0;%Initiate counters
%Start process
for n=1:N-2
if Q(n)<0 & P(n+1)-P(n)<0
down_good=down_good+1;
end
if Q(n)<0 & P(n+1)-P(n)>0
down_bad=down_bad+1;
end
end
%Provide outputs on the percentage accuracy of:
% - Successfully predicted upward trend - ’Entries_Accuracy’
% - Successfully predicted downward trend -’Exits_Accuracy’
% - The combine accuracy of both success rates - ’Combined_Accuracy’.
if (double(up_good)+double(up_bad))>0
Entries_Accuracy=100*double(up_good)/(double(up_good)+double(up_bad))
else
Entries_Accuracy=0.0
end
if (double(down_good)+double(down_bad))>0
Exists_Accuracy=100*double(down_good)/(double(down_good)+double(down_bad))
else
Exists_Accuracy=0
end
Combined_Accuracy=(Exists_Accuracy+Entries_Accuracy)/2

Appendix A.6. Function Backtester

function Backtester(W,T,L)
%FUNCTION: Back-testing procedure to compute accuracy of trend analysis
%INPUT PARAMETERS:
%(int) W > 0 - Size of window for pre-filtering using moving average of data
%(int) T > 1 - Size of window for computing financial indices.
%(int) L > 4 - Size of data stream to be processed (must be less than or
%equal length of data read from file).
%
%Read financial time series from Data.txt file into data array where ... denotes
%the path to the folder containing the file (for a windows operating system).
fid=fopen(’...\Data.txt’,’r’);%Open file
[series M]=fscanf(fid,’%g’,[inf]);%Read time series data.
fclose(fid); series=flip(series); %Flip order of data (as required).
%Note: Some historical financial time series data which is available
%on the Internet is often given in terms in reverse time and for this
%reason the flip function is used.
%
%Extract L data components from the time series where L<=M.
for n=1:L
data(n)=series(n);
end
data=data./max(data);%Normalise the series for comparative
%display purpose involving the plotting of multiple data sets.
M=size(data,2);%Reset M to data size
%Filter the time series data using a moving average filter
Fdata=Movav(data,M,W);
%figure(100), plot(data); Figure~(200), plot(Fdata);
M=size(Fdata,2);%Reset M to size of filtered data
%Start moving window process.
for m=T:M-T
%Window the data.
for n=1:T
s(n)=Fdata(n-1+m);
end
%
L(m)=Lyapunov(s,T,1);%Compute the Lyapunov Exponent
V(m)=Volatility(s,T);%Compute the Volatility.
R(m)=L(m)/V(m);%Compute the Lyapunov to Volatility Ratio (LVR).
D(m)=Fdata(m-1+T);%Assign value of Fdata to D (for later use)
x(m)=m;%Set counter to x (for later use).
%
%Compute zero crossings
if m>T
k=1;
%Compute mean of LVRs - post filtering.
for n=m-T:m
Data(k)=R(n);
k=k+1;
end
F(m)=mean(Data);
%Evaluate zero crossings from negative to positive half-space
if F(m)>0 & F(m-1)<=0
ZC(m)=1;%Zero-crossing given positive flag.
G(m)=D(m);%Assignment for later evaluation
else
ZC(m)=0;%Set value to zero
G(m)=0;%set value to zero
end
%Evaluate zero crossings from positive to negative half-space
if F(m)<0 & F(m-1)>=0
ZC(m)=-1;%Zero-crossing given negative flag.
G(m)=D(m);%Assignment for later evaluation
end
%Plot filtered data D, filtered LVR and Zero-crossing flags
%using black dashdot, dotted and solid lines, respectively.
Figure~(1), plot(x,D,’k-.’,x,F,’k:’,x,ZC,’k-’);
%For colour plots, plotting filtered data D, filtered LVR and
%Zero-crossing flags using red, green and blue lines, respectively,
%use Figure~(1), plot(x,D,’r-’,x,F,’g-’,x,ZC,’b-’);
else
end
grid on%Display grid
pause(0.01);%Retain plot ffor 0.01 seconds
end%Repeat process and update plot
%Evaluate accuracy of strategy.
Evaluator(ZC,G,M,T);
clear;%Remove all variables from the workspace.

Appendix A.7. Function Levy

function gamma=Levy(data,N)
%Computation of the Levy Index using the least squares algorithm.
%Compute the Amplitude Spectrum
data=abs(fft(data));
%Compute the logarithm of the data for half-space data with DC
%component removed.
for n=2:round(N/2)
ydata(n)=log(data(n)); xdata(n)=log(n); end
%Compute each term of the least squares formula.
%associated with log scaling law gamma*log(data)
term1=sum(ydata).*sum(xdata); term2=sum(ydata.*xdata);
term3=sum(xdata)^2; term4=sum(xdata.^2);
%Compute alpha
gamma=(term1-(N*term2))/(term3-(N*term4));
%Compute Levy Index
gamma=-1/gamma;

Appendix A.8. Function Alpha

function alpha=Alpha(data,N)
%Computation of the Alpha Index using the least squares algorithm.
%Compute the logarithm of the input data
for n=1:N
ydata(n)=log(data(n)); xdata(n)=log(n); end
%Compute each term of the least squares formula.
%associated with log scaling law alpha*log(data)
term1=sum(ydata).*sum(xdata); term2=sum(ydata.*xdata);
term3=sum(xdata)^2; term4=sum(xdata.^2);
%Compute alpha
alpha=(term1-(N*term2))/(term3-(N*term4));

Appendix B. Relationship between the Lévy Index and the Fractal Dimension

Consider a simple Euclidean straight line of length L ( ) over which we ‘walk’ a shorter ‘ruler’ of length δ . The number of steps taken to cover the line N [ L ( ) , δ ] is then L ( ) / δ which is not always an integer for arbitrary L and δ . Since
N [ L ( ) , δ ] = L ( ) δ = L ( ) δ 1
1 = ln L ( ) ln N [ L ( ) , δ ] ln δ = ln N [ L ( ) , δ ] ln L ( ) ln δ
which expresses the topological dimension n = 1 of the line. In this case, L ( ) is the Lebesgue measure of the line and if we normalize by setting L ( ) = 1 , the latter equation can then be written as
1 = lim δ 0 ln N ( δ ) ln δ
and, in the asymptotic limit
N ( δ ) = 1 δ , δ 0
For extension to a fractal line f, the essential point is that the fractal dimension should satisfy an equation of the form
N [ F ( f ) , δ ] = F ( f ) δ D
where N [ F ( f ) , δ ] is ‘read’ as the number of rulers of size δ needed to cover a fractal set f whose measure is F ( f ) which can be any valid suitable measure of the curve. Normalising, for F ( ) = 1 , we can then define the fractal dimension as
D = lim δ 0 ln N ( δ ) ln δ
and, in the asymptotic limit
N ( δ ) = 1 δ D , δ 0 .
Consider the scaling relationship between the amplitude A ( t ) of a signal at a time t [ 0 , 1 ] given by
A ( t ) = t H , H [ 0 , 1 ]
where H is the Hurst dimension. If the time period is divided up into N = 1 / Δ t equal intervals, then the amplitude increments Δ A are given by
Δ A = Δ t H = N H
The number of boxes of size δ required to cover the area Δ A Δ t is, using Equation (A1), given by N H / δ 2 = N 2 H . Thus we can write
N ( δ ) = 1 δ 2 H , δ 0
and, given Equation (A2), by inspection,
D = 2 H .
Thus, for example, a signal where H = 1 / 2 has a fractal dimension of 1.5. For higher topological dimensions n, using a similar box counting measure, we have
D = n + 1 H , r R n
Consider a random scaling fractal signal defined by a time dependent function f ( t ) . Let f T ( t ) denote a component of the function which is of finite support
f T ( t ) = f ( t ) , 0 < t < T ; 0 , otherwise .
where
F T ( ω ) f T ( x )
which has a power spectrum defined by
P T ( ω ) = 1 T F T ( ω ) 2 , P ( ω ) = lim T P T ( ω ) .
Let the function g ( t ) be the result of scaling the function f ( t ) by 1 / a H for a real constant a > 0 . Then we can write
g T ( t ) = g ( t ) = 1 a H f ( a t ) , 0 < t < T ; 0 , otherwise .
where
G T ( ω ) g T ( x )
with power spectrum
Q T ( ω ) = 1 T G T ( ω ) 2 , Q ( ω ) = lim T Q T ( ω ) .
We can therefore construct the equation
G T ( ω ) = 0 T g T ( t ) exp ( i ω t ) d t = 1 a H + 1 0 T f ( τ ) exp i ω τ a d τ , τ = a t
showing that
G T ( ω ) = 1 a H + 1 F T ω a .
The power spectrum of g T ( t ) is therefore given by
Q T ( ω ) = 1 a 2 H + 1 1 a T F T ω a 2 Q ( ω ) = 1 a 2 H + 1 P ω a , T
and setting ω = 1 and then replacing 1 / a by ω we obtain
Q ( ω ) 1 ω β , β = 2 H + 1 .
The corresponding amplitude spectrum A ( ω ) is therefore characterised by
A ( ω ) 1 ω γ , γ = β / 2 .
The result β = 2 H + 1 applies to case when r R 1 and for r R n generalises to β = 2 H + n so that from Equation (A3) we obtain Equation (33).

References

  1. Einstein, A. On the Motion of Small Particles Suspended in Liquids at Rest Required by the Molecular-Kinetic Theory of Heat. Annalen der Physik 1905, 17, 549–560. [Google Scholar] [CrossRef]
  2. Navarro, L. Gibbs, Einstein and the Foundations of Statistical Mechanics. Arch. Hist. Exact Sci. 1998, 53, 147–180. [Google Scholar] [CrossRef]
  3. Tindel, S.; Tudor, C.A.; Viens, F. Stochastic Evolution Equations with Fractional Brownian Motion. Probab. Theory Relat. Fields 2003, 127, 186–204. [Google Scholar] [CrossRef]
  4. Peters, E.E. Fractal Market Analysis: Applying Chaos Theory to Investment and Economics; Wiley Finance; Wiley: Hoboken, NJ, USA, 1994; ISBN-13 978-0471585244. [Google Scholar]
  5. Blackledge, J.M. The Fractal Market Hypothesis: Applications to Financial Forecasting; Lecture Notes Series 4; Centre for Advanced Studies; Polish Academy of Sciences: Warsaw, Poland, 2010; ISBN 978-83-61993-01-8. [Google Scholar]
  6. Blackledge, J.M.; Lamphiere, M.; Murphy, K.; Overton, S. Financial Forecasting using the Kolmogorov-Feller Equation. In AENG Transactions on Engineering Technologies: Special Volume of the World Congress on Engineering 2012; Lecture Notes in Electrical Engineering; Yang, G.-C., Ao, S.-L., Gelman, L., Eds.; Springer: Berlin/Heidelberg, Germany, 2013; Volume 229, ISBN 978-94-007-6190-2. [Google Scholar]
  7. Blackledge, J.M.; Lamphiere, M.; Murphy, K.; Overton, S. Stochastic Volatility Analysis using the Generalised Kolmogorov-Feller Equation. In Proceedings of the International Conference of Financial Engineering, World Congress on Engineering (WCE2012), London, UK, 4–6 July 2012; pp. 453–458. [Google Scholar]
  8. Blackledge, J.M. A New Forex Currency Exchange Indicator. In European Success Stories in Industrial Mathematics; Springer: Berlin/Heidelberg, Germany, 2011; p. 131. ISBN 978-3-642-23847-5. [Google Scholar]
  9. Blackledge, J.M.; Murphy, K. Forex Trading Using MetaTrader4 with the Fractal Market Hypothesis, Risk Management Trends; Giancarlo, N., Ed.; InTech Publishing: London, UK, 2011; pp. 129–146. ISBN 978-953-307-154-1. [Google Scholar]
  10. Blackledge, J.M. Application of the Fractal Market Hypothesis for Modelling Macroeconomic Time Series. ISAST Trans. Electron. Signal Process. 2008, 2, 89–110. [Google Scholar]
  11. Blackledge, J.M. Application of the Fractional Diffusion Equation for Predicting Market Behaviour. IAENG Int. J. Appl. Math. 2010, 40, 130–158. [Google Scholar]
  12. Blackledge, J.M.; Rebow, M. Economic Risk Assessment using the Fractal Market Hypothesis. In Proceedings of the 5th International Conference on Internet Monitoring and Protection, Valencia, Spain, 22–26 May 2010; pp. 41–47. [Google Scholar]
  13. Blackledge, J.M.; Murphy, K. Forex Trading using MetaTrader 4 with the Fractal Market Hypothesis. In Proceedings of the Third International Conference on Resource Intensive Applications and Services, INTENSIVE 2011, Venice, Italy, 22–27 May 2011; pp. 1–9, ISBN 978-1-61208-006-2. [Google Scholar]
  14. Blackledge, J.M.; Murphy, K. Predicting Currency Pair Trends using the Fractal Market Hypothesis. In Proceedings of the IET ISSC2011, Dublin, Ireland, 23–24 June 2011. [Google Scholar]
  15. The Fourier Transform, Tables of Important Fourier Transforms. Wikipedia. 2019. Available online: https://en.wikipedia.org/wiki/Fourier_transform (accessed on 23 July 2019).
  16. Podlubny, I. Geometric and Physical Interpretation of Fractional Integration and Fractional Differentiation. Fract. Calc. Appl. Anal. 2002, 5, 367–386. [Google Scholar]
  17. Tavassoli, M.H.; Tavassoli, A.; Ostad Rahimi, M.R. The Geometric and Physical Interpretation of Fractional Order Derivatives of Polynomial Functions. Differ. Geom.-Syst. 2013, 15, 93–104. [Google Scholar]
  18. Butera, S.; Di Paola, M. A Physically based Connection Between Fractional Calculus and Fractal Geometry. Ann. Phys. 2014, 350, 146–158. [Google Scholar] [CrossRef]
  19. Kiryakova, V. Generalised Fractional Calculus and Applications; Longman: Harlow, UK, 1994. [Google Scholar]
  20. Zheng, Z.; Zhao, W.; Dai, H. A New Definition of Fractional Derivative. Int. J. Non-Linear Mech. 2019, 108, 1–6. [Google Scholar] [CrossRef]
  21. Hermann, R. Fractional Calculus: An Introduction for Physicists; World Scientific: Singapore, 2014. [Google Scholar]
  22. Zhou, Y. Basic Theory of Fractional Differential Equations; World Scientific: Singapore, 2014. [Google Scholar]
  23. Investing.com. 2019. Available online: https://uk.investing.com/indices/uk-100-historical-data (accessed on 2 August 2019).
  24. Investopedia. 2019. Available online: https://www.investopedia.com (accessed on 24 July 2019).
  25. Kolmogorov, A.N. On Analytic Methods in Probability Theory. In Selected Works of A.N. Kolmogorov, Volume II: Probability Theory and Mathematical Statistics; Shiryaev, A.N., Ed.; Kluwer: Dordrecht, The Netherlands, 1992; pp. 61–108, (Original: Uber die Analytischen Methoden in der Wahrscheinlichkeitsrechnung. Math. Ann. 1931, 104, pp. 415–458). [Google Scholar]
  26. Feller, W. On Boundaries and Lateral Conditions for the Kolmogorov Differential Equations. Ann. Math. 1957, 65, 527–570. [Google Scholar] [CrossRef]
  27. Bachelier, L. Théorie de la spéculation. Annales Scientifiques de l’École Normale Supérieure 1900, 3, 21–86. [Google Scholar] [CrossRef]
  28. Working, H. A Random-Difference Series for Use in the Analysis of Time Series. J. Am. Stat. Assoc. 1934, 29, 11–24. [Google Scholar] [CrossRef]
  29. Kendall, M.G.; Bradford Hill, A. The Analysis of Economic Time-Series-Part I: Prices. J. R. Stat. Soc. Ser. A 1953, 116, 11–34. [Google Scholar] [CrossRef]
  30. Fama, E.F. Efficient Capital Markets: A Review of Theory and Empirical Work. J. Financ. 1970, 25, 383–417. [Google Scholar] [CrossRef]
  31. Campbell, J.Y.; Lo, A.W.; Mackinlay, A.C. The Econometrics of Financial Markets; Princeton University Press: Princeton, NJ, USA, 1996. [Google Scholar]
  32. Sewell, M. History of the Efficient Market Hypothesis, Research Not RN/11/04. UCL Department of Computer Science. 2011. Available online: http://www.cs.ucl.ac.uk/fileadmin/UCL-CS/images/Research_Student_Information/RN_11_04.pdf (accessed on 6 July 2019).
  33. Investopedia. 2019. Available online: https://www.investopedia.com/terms/b/blackscholes.asp (accessed on 25 July 2019).
  34. Elliott, R.N. The Wave Principle. Amazon. 2012. Available online: https://www.amazon.co.uk/Wave-Principle-Ralph-Nelson-Elliott/dp/1607964961 (accessed on 28 July 2019).
  35. Frost, A.J.; Prechter, R.R. Amazon 2017. Available online: https://www.amazon.co.uk/Elliott-Wave-Principle-Market-Behavior/dp/1616040815 (accessed on 28 July 2019).
  36. WolframAlpha Computational Intelligence. 2019. Available online: https://www.wolframalpha.com/input/?i=Fourier+transform (accessed on 28 July 2019).
  37. Blackledge, J.M.; Rani, T.R. Stochastic Modelling for Lévy Distributed Systems. Math. Aeterna 2017, 7, 193–210. [Google Scholar]
  38. Blackledge, J.M. Digital Signal Processing, 2nd ed.; Horwood Publishing: Cambridge, UK, 2006; p. 418. ISBN 1-904275-26-5. Available online: https://arrow.dit.ie/engschelebk/4/ (accessed on 19 June 2019).
  39. Bryant, P.; Brown, R.; Abarbanel, H. Lyapunov Exponents From Observed Time Series. Phys. Rev. Lett. 1990, 65, 1523–1526. [Google Scholar] [CrossRef]
  40. Brown, R.; Bryant, P.; Abarbanel, H. Computing the Lyapunov Spectrum of a Dynamical System From an Observed Time Series. Phys. Rev. A 1991, 43, 2787–2806. [Google Scholar] [CrossRef]
  41. Abarbanel, H.; Brown, R.; Kennel, M.B. Local Lyapunov Exponents Computed from Observed Data. J. Nonlinear Sci. 1992, 2, 343–365. [Google Scholar] [CrossRef]
  42. Eiben, A.E.; Schoenauer, M. Evolutionary Computing. Inf. Process. Lett. 2002, 82, 1–6. [Google Scholar] [CrossRef]
  43. Fogel, L.J.; Owens, A.J.; Walsh, M.J. Artificial Intelligence through Simulated Evolution; Wiley: Hoboken, NJ, USA, 1966. [Google Scholar]
  44. Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; University of Michigan Press: Ann Arbor, MI, USA, 1975. [Google Scholar]
  45. Rechenberg, I. Evolutionsstrategien, Simulationsmethoden in der Medizin und Biologie; Springer: Berlin/Heidelberg, Germany, 1978; pp. 83–114. [Google Scholar]
  46. Eiben, A.E.; Smith, J.E. Introduction to Evolutionary Computing; Springer: Berlin/Heidelberg, Germany, 2003. [Google Scholar]
  47. Schmidt, M.; Lipson, H. Eureqa. 2014. Available online: www.nutonian.com (accessed on 23 August 2019).
  48. Schmidt, M.; Lipson, H. Distilling Free-form Natural Laws from Experimental Data. Science. 2009. Available online: https://science.sciencemag.org/content/324/5923/81 (accessed on 24 August 2019).
  49. Dubcakova, R. Eureqa: Software Review. Genet. Program. Evolvable Mach. 2011, 12, 173–178. [Google Scholar] [CrossRef]
  50. Ehrenberg, R. Software Scientist: With a Little Data, Eureqa Generates Fundamental Laws of Nature’. Sci. News 2012, 181, 20–21. [Google Scholar] [CrossRef]
  51. Abbott, R. Equity Markets and Computational Intelligence. In Proceedings of the 2010 UK Workshop on Computational Intelligence (UKCI), Colchester, UK, 8–10 September 2010; pp. 1–6. [Google Scholar]
  52. Walsh, P. An Econophysics Approach to the Trading of Energy Commodities. Ph.D. Thesis, Technological University Dublin, Dublin, Ireland, 2018. [Google Scholar]
  53. Wheelwright, S.C.; Makridakis, S.G. Forecasting Nethods for Management; Wiley: Hoboken, NJ, USA, 1973. [Google Scholar]
  54. Evans, G.; Blackledge, J.M.; Yardley, P. Analytic Solutions to Partial Differential Equations; Springer: Berlin/Heidelberg, Germany, 1999. [Google Scholar]
  55. Crack, T.F. Basic Black-Scholes: Option Pricing and Trading; Amazon: Seattle, WA, USA, 2017; ISBN-13 978-0994138682. [Google Scholar]
Figure 1. Simulation of a financial signal based on the sum of independent random walks; basis for the Random Walk Hypothesis.
Figure 1. Simulation of a financial signal based on the sum of independent random walks; basis for the Random Walk Hypothesis.
Mathematics 07 01057 g001
Figure 2. Left: Lévy distributions p ( x ) for γ = 2 (solid line), γ = 1.5 (dotted line), γ = 1 (dot-dashed line), and γ = 0.5 (dashed line) for c = 2 ; Right: Plots of associated distributions x p ( x ) for γ = 2 (solid line), γ = 1.5 (dotted line), γ = 1 (dot-dashed line) and γ = 0.5 (dashed line) for c = 1 / 2 .
Figure 2. Left: Lévy distributions p ( x ) for γ = 2 (solid line), γ = 1.5 (dotted line), γ = 1 (dot-dashed line), and γ = 0.5 (dashed line) for c = 2 ; Right: Plots of associated distributions x p ( x ) for γ = 2 (solid line), γ = 1.5 (dotted line), γ = 1 (dot-dashed line) and γ = 0.5 (dashed line) for c = 1 / 2 .
Mathematics 07 01057 g002
Figure 3. Example of Lévy flights. Left: Plot of the FTSE100 daily prices from 14/03/2006 to 12/04/2019— u ( t ) ; Right: Complex plane plot of s ( t ) given by Equation (16). Both time functions u ( t ) and s ( t ) are taken to be uniformly sampled discrete functions u n and s n , respectively; the analytic signal is computed using a fast Fourier transform (FFT) and the algorithm presented in [38].
Figure 3. Example of Lévy flights. Left: Plot of the FTSE100 daily prices from 14/03/2006 to 12/04/2019— u ( t ) ; Right: Complex plane plot of s ( t ) given by Equation (16). Both time functions u ( t ) and s ( t ) are taken to be uniformly sampled discrete functions u n and s n , respectively; the analytic signal is computed using a fast Fourier transform (FFT) and the algorithm presented in [38].
Mathematics 07 01057 g003
Figure 4. Example of computing the time varying Lyapunov exponent (lower signal) for a financial signal (upper signal after normalisation) through application of Equation (23) for a look-back window of size N = 32 and with τ = 0.01 .
Figure 4. Example of computing the time varying Lyapunov exponent (lower signal) for a financial signal (upper signal after normalisation) through application of Equation (23) for a look-back window of size N = 32 and with τ = 0.01 .
Mathematics 07 01057 g004
Figure 5. Example of computing the time dependent volatility (lower signal) using Equation (25) for a normalised financial signal (upper signal) with a look-back window of N = 32 .
Figure 5. Example of computing the time dependent volatility (lower signal) using Equation (25) for a normalised financial signal (upper signal) with a look-back window of N = 32 .
Mathematics 07 01057 g005
Figure 6. Example of computing the time dependent LVR λ σ (solid line —) for a normalised financial signal (bold solid line —) with a look-back window of N = 32 .
Figure 6. Example of computing the time dependent LVR λ σ (solid line —) for a normalised financial signal (bold solid line —) with a look-back window of N = 32 .
Mathematics 07 01057 g006
Figure 7. Example graphical outputs from function Backtester. Each plot shows the post-filtered (for T = 10 ) LVR λ σ [ n ] (dotted line), the pre-filtered time series u n after normalisation (dot-dashed line) and z c [ n ] (solid line) which identifies the zero-crossings of λ σ [ n ] . The plots provided are for the case when pre-filtering is undertaken for look-back window sizes of W = 10 (top), W = 20 (centre) and W = 30 (lower plot). The financial time series data used in this case is the FTSE100 daily prices from 14/03/2006 to 26/02/2010.
Figure 7. Example graphical outputs from function Backtester. Each plot shows the post-filtered (for T = 10 ) LVR λ σ [ n ] (dotted line), the pre-filtered time series u n after normalisation (dot-dashed line) and z c [ n ] (solid line) which identifies the zero-crossings of λ σ [ n ] . The plots provided are for the case when pre-filtering is undertaken for look-back window sizes of W = 10 (top), W = 20 (centre) and W = 30 (lower plot). The financial time series data used in this case is the FTSE100 daily prices from 14/03/2006 to 26/02/2010.
Mathematics 07 01057 g007
Figure 8. Surface (mesh) plot of the combined long/short predictive accuracy as a function of the pre- and post-filtering look-back window sizes W and T, respectively, for FTSE100 daily prices from 14/03/2006 to 26/02/2010.
Figure 8. Surface (mesh) plot of the combined long/short predictive accuracy as a function of the pre- and post-filtering look-back window sizes W and T, respectively, for FTSE100 daily prices from 14/03/2006 to 26/02/2010.
Mathematics 07 01057 g008
Figure 9. Surface (mesh) plot of the combined long/short predictive accuracy as a function of the pre- and post-filtering look-back window sizes W and T, respectively, for Eruo-Dollar (USA) daily (averaged) exchange rates from 29/04/2008 to 27/02/2012 as given in Figure 10.
Figure 9. Surface (mesh) plot of the combined long/short predictive accuracy as a function of the pre- and post-filtering look-back window sizes W and T, respectively, for Eruo-Dollar (USA) daily (averaged) exchange rates from 29/04/2008 to 27/02/2012 as given in Figure 10.
Mathematics 07 01057 g009
Figure 10. Eruo-Dollar (USA) daily (averaged) exchange rates from 29/04/2008 to 27/02/2012.
Figure 10. Eruo-Dollar (USA) daily (averaged) exchange rates from 29/04/2008 to 27/02/2012.
Mathematics 07 01057 g010
Figure 11. FTSE 100 price values (dots) for 30 days between 24/08/2009 and 08/09/2009 (inclusively) and the estimate (solid line) obtained from the evolutionary computed formula given by Equation (28). The graph compares the actual prices (circled dots) and predicted future values for three days after 08/09/2009 using the same formula.
Figure 11. FTSE 100 price values (dots) for 30 days between 24/08/2009 and 08/09/2009 (inclusively) and the estimate (solid line) obtained from the evolutionary computed formula given by Equation (28). The graph compares the actual prices (circled dots) and predicted future values for three days after 08/09/2009 using the same formula.
Mathematics 07 01057 g011
Figure 12. Examples of the function u n given by the discretised form of Equation (43) for γ = 1 / 2 , 1 , and 3 / 2 (left plots, respectively) and the associated complex plane representations obtained using Equation (16)—right plots, respectively.
Figure 12. Examples of the function u n given by the discretised form of Equation (43) for γ = 1 / 2 , 1 , and 3 / 2 (left plots, respectively) and the associated complex plane representations obtained using Equation (16)—right plots, respectively.
Mathematics 07 01057 g012
Figure 13. Example of computing the time dependent Lévy index (solid line —) for a normalised financial signal (bold solid line ) based on the application of Equation (45) using function Levy with a look-back window of 50 data elements.
Figure 13. Example of computing the time dependent Lévy index (solid line —) for a normalised financial signal (bold solid line ) based on the application of Equation (45) using function Levy with a look-back window of 50 data elements.
Mathematics 07 01057 g013
Figure 14. Example graphical output from function Backtester. The plot shows the post-filtered (for T = 10 ) AVR α σ [ n ] (dotted line), the pre-filtered time series u n (dot-dashed line) and z c [ n ] (solid line) which identifies the zero-crossings of α σ [ n ] . The plot is for the case when pre-filtering is undertaken for a look-back window size of W = 30 and post-filtering using a look-back window size of T = 10 . The financial time series data used in this case is FTSE100 daily prices: 14/03/2006–26/02/2010.
Figure 14. Example graphical output from function Backtester. The plot shows the post-filtered (for T = 10 ) AVR α σ [ n ] (dotted line), the pre-filtered time series u n (dot-dashed line) and z c [ n ] (solid line) which identifies the zero-crossings of α σ [ n ] . The plot is for the case when pre-filtering is undertaken for a look-back window size of W = 30 and post-filtering using a look-back window size of T = 10 . The financial time series data used in this case is FTSE100 daily prices: 14/03/2006–26/02/2010.
Mathematics 07 01057 g014
Table 1. Fow diagram illustrating the connectivity between Einstein’s Evolution Equation (E 3 ), two well known financial indices (i.e., the volatility σ and Lyapunov exponent λ ) and the classical and fractional diffusion equations both of which can be derived from the evolution equation using the Characteristic Functions (CFs) shown (where c is a constant, k is the spatial frequency and γ is the Lévy index). The flow diagram also illustrates the relationship between the evolution equation and two principal market hypotheses: the efficient market hypothesis and the fractal market hypothesis, the latter hypothesis being a concomitant of the fractional calculus. The asterisk ( * ) denotes the connection between the Generalised KFE and the introduction of a memory function which allows E 3 to be written in a different form without loss of generality.
Table 1. Fow diagram illustrating the connectivity between Einstein’s Evolution Equation (E 3 ), two well known financial indices (i.e., the volatility σ and Lyapunov exponent λ ) and the classical and fractional diffusion equations both of which can be derived from the evolution equation using the Characteristic Functions (CFs) shown (where c is a constant, k is the spatial frequency and γ is the Lévy index). The flow diagram also illustrates the relationship between the evolution equation and two principal market hypotheses: the efficient market hypothesis and the fractal market hypothesis, the latter hypothesis being a concomitant of the fractional calculus. The asterisk ( * ) denotes the connection between the Generalised KFE and the introduction of a memory function which allows E 3 to be written in a different form without loss of generality.
Kolmogorov–Feller Equation (KFE)Taylor Series AnalysisGeneralised KFE *
Lyapunov Exponent ( λ )E 3 Volatility ( σ )
Gaussian Distribution with
CF exp ( c k 2 )
Probability Density
Function
Lévy Distribution with
CF exp ( c k γ ) , γ [ 0 , 2 ]
Classical Diffusion Equation Fractional Diffusion Equation
Classical CalculusMemory Function * Fractional Calculus
Efficient Market Hypothesis Fractal Market Hypothesis
Time Series ModelFinancial Trend Analysis
based on time variations
in σ , λ & γ
Time Series Model
Evolutionary Computing
Future Price Prediction
Table 2. Table comparing the actual and predicted prices for three days of the FTSE100 using Equation (28).
Table 2. Table comparing the actual and predicted prices for three days of the FTSE100 using Equation (28).
Day09/09/200910/09/200911/09/2009
t n 313233
Predicted price value f n 5022.95066.65087.4
Actual price value u n 5138.05108.95154.6

Share and Cite

MDPI and ACS Style

Blackledge, J.; Kearney, D.; Lamphiere, M.; Rani, R.; Walsh, P. Econophysics and Fractional Calculus: Einstein’s Evolution Equation, the Fractal Market Hypothesis, Trend Analysis and Future Price Prediction. Mathematics 2019, 7, 1057. https://doi.org/10.3390/math7111057

AMA Style

Blackledge J, Kearney D, Lamphiere M, Rani R, Walsh P. Econophysics and Fractional Calculus: Einstein’s Evolution Equation, the Fractal Market Hypothesis, Trend Analysis and Future Price Prediction. Mathematics. 2019; 7(11):1057. https://doi.org/10.3390/math7111057

Chicago/Turabian Style

Blackledge, Jonathan, Derek Kearney, Marc Lamphiere, Raja Rani, and Paddy Walsh. 2019. "Econophysics and Fractional Calculus: Einstein’s Evolution Equation, the Fractal Market Hypothesis, Trend Analysis and Future Price Prediction" Mathematics 7, no. 11: 1057. https://doi.org/10.3390/math7111057

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop