Professional Documents
Culture Documents
Slides Mme2010 LL FP Revised100706
Slides Mme2010 LL FP Revised100706
Slides Mme2010 LL FP Revised100706
mode decomposition to
analyze simulated financial
time series
Ladislav Lukáš1
1 Introduction
Generally accepted paradigm – financial time series – gerenated by
nonlinear and nonstationary processes.
Simulation generator of FX rate – based upon computer agent tech-
niques and temporal dynamic market equilibrium conditions ~ typical
problem-oriented data generator
S(t) m(t) dC(t) + (1-m(t)) aF,1(EFt [S(t+1)] - S(t)) +
(1)
S(t)dB(t) = 0,
S(t) … instantaneous FX rate,
dC(t), dB(t) … dynamic demand of chartists, prospective influence of
central bank,
EFt [S(t+1)] … expectation of future FX rate made by fundamentalists
at the period t,
m(t) … instantaneous market share of chartists,
aF,1 > 0 … multiplier of relative distance between expected future FX
rate and the spot rate.
1
Univ.of West Bohemia, Faculty of Econ., Dept. of Stat. and OR, Husova 11, 30614 Pilsen, lukasl@kso.zcu.cz.
1
Another possibility – how to get financial time series –
Mathematica 7, Wolfram Research, command FinancialData[,] which
provides a direct access to various world financial databases.
2
{φj(t)}, j=1,..,n … set of approximating basis functions
(orthonormal, a priori defined),
aj … unknown multiplier of each φj(t),
rn(t) … residue ~ error of approximation.
3
HHT technique consists of two parts:
- empirical mode decomposition (EMD),
- Hilbert spectral analysis (HSA).
EMD process extracts IMFs, φj(t), j=1,..,n, from the given dataset {xk}
~ sifting process.
4
EMD algorithm ~ three main blocks:
1. Initial block – setting data {xk} and function x(t) as well, pro-
vided some initial approximation is given, e.g. x(t) = spline({xk}),
set index j=1,
2. Sifting process – extracting j-th IMF φj(t) from data,
3. Construction block – bulding EMD representation of given data
in form (2).
5
Construction block ~
3.1 Build representation (2) and extract residue rj(t)
n
n: = j, rn(t) = x(t) – ∑ φ (t),
j=1
j (8)
3 Numerical experiments
Demonstration – the first step of sifting process.
Three examples:
• 1. simulated dataset,
• two downloaded real FX datasets 2. EUR/CZK, 3. EUR/USD ,
period 2010-01-04 till 2010-06-08.
Calculations performed with Mathematica 7.0, Wolfram Research.
6
{f (tk)}, t1 = 0, t2 = π /50, …, t101 = 2π. (14)
Figure 1 Function f(t) given by (13) Figure 2 f(t) dashed and envelopes u1,0(t), v1,0(t)
Figure 3 Envelope u1,0(t) of f(t) local maxima Figure 4 Envelope v1,0(t) of f(t) local minima
Figure 5 Function h1,1(t)= f(t) – (u1,0(t) + v1,0(t))/2 Figure 6 f(t) dashed line and h1,1(t)
7
. EUR/CZK , period [2010-01-04 , 2010-06-08], source the
Example 2
CNB web page
EurCzk=Import["EURvsCZKimportMma.dat","List"] (15)
Figure 7 FX rate EUR/CZK, 2010-01-04 / 06-08 Figure 8 f(t) dashed and envelopes u1,0(t), v1,0(t)
Figure 9 Function h1,1(t)= f(t) – (u1,0(t) + v1,0(t))/2 Figure 10 f(t) –25.75 dashed line and h1,1(t)
8
Example 3. EUR/USD , period [2010-01-04 , 2010-06-08], source
Mathematica 7.0 implemented function FinacialData[], which
searched international financial databases available
start="4 Jan,2010"; end="8 June,2010";
(16)
FinacialData["EUR/USD",{start,end}]
Figure 11 FX rate EUR/USD, 2010-01-04 / 06-08 Figure 12 f(t) dashed and envelopes u1,0(t), v1,0(t)
Figure 13 Function h1,1(t)= f(t) – (u1,0(t) + v1,0(t))/2 Figure 14 f(t) –1.33 dashed line and h1,1(t)
4 Conclusion
• An implementation of the EMD algorithm for analysis of finan-
cial time series was discussed ~ FX rates EUR/CZK and
EUR/USD, respectively, and one simulated dataset in particular.
• Demonstration of the sifting process – a core of the EMD – re-
lies heavily both on spline interpolations and IMFs detection and
stopping criteria.
• The greatest advantage – a unified and systematic approach for
analysis of nonlinear and nonstationary time series.
• However, further work is still needed both in algorithmic im-
plementation, accummulation of numerical experience and de-
velopment of theoretical background, too.
9
Acknowledgements
This work was supported by grant No. 402/09/1536 of the Grant Agency of
Czech Republic, and funding by the project LC06075 of the Ministry of Educa-
tion of Czech Republic is gratefully acknowledged, too.
References
[1] Flandrin, P., Rilling, G., Gonçalves, P.: Empirical mode decomposition as a filterbank. IEEE Signal Proc
Lett. 11(2003), 112-114.
[2] Guhathakurta, K., Mukherjee, I., Chowdhury, A.R. Empirical mode decomposition analysis of two different
financial time series and their comparison. Chaos, Solitons and Fractals (2008) 37, 1214-1227.
[3] Huang, et al.: The empirical mode decomposition and the Hilbert spectrum for nonlinear and non-stationary
time series analysis. Proc. R. Soc. Lond. A (1998) 454, 903–995. Available online:
http://keck.ucsf.edu/~schenk/Huang_etal98.pdf
[4] Huang, N.E., Samuel Shen, S.P.: Hilbert-Huang transform and its applications, London : World Scientific,
c2005. Chap.1 available online: http://www.worldscibooks.com/etextbook/5862/5862_chap1.pdf
[5] Lukáš, L.: Market clearing conditions used in FX rate simulation models. Proceedings 22-th Int.Conf.
Mathematical Methods in Economics, Masaryk University Brno, 2004, ISBN 80-210-3496-3, 184-188.
[6] Lukáš, L.: Dynamic equilibrium conditions used for building a family of FX rate simulation models. 12-th
Annual Conf. Computing in Economics and Finance, June 22-25, 2006, Limassol, Cyprus.
[7] http://www.cnb.cz/en/financial_markets
10