Научная статья на тему 'DIAGNOSIS AND FORECASTING ECONOMY STATE WITH HIDDEN MARKOV MODEL'

DIAGNOSIS AND FORECASTING ECONOMY STATE WITH HIDDEN MARKOV MODEL Текст научной статьи по специальности «Экономика и бизнес»

CC BY
35
10
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
BANKING SYSTEM / STATE OF ECONOMY / OBSERVED VARIABLES / HIDDEN MARKOV MODEL / FORECASTING

Аннотация научной статьи по экономике и бизнесу, автор научной работы — Chernova Nataliya, Polyakova Olga

The article is aimed to forecast the future states of economy basing on restricted information about its banking subsystem. The key hypothesis assumes that state of an economic system may be interpreted as a hidden variable. Using several banking indicators as observable variables it is possible to form Hidden Markov models. For known sequence of each observed variable values the appropriate sequence of state classes is determined. The results obtained for all observed variables are aggregated to form the optimal sequence of state classes. The initial models are adjusted due to Baum-Welch algorithm. Then future states of economy as precrisis ones are determined basing on absolute probabilities.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «DIAGNOSIS AND FORECASTING ECONOMY STATE WITH HIDDEN MARKOV MODEL»

u biudzhetnykh ustanovakh [Planning, accounting, reporting, control of budgetary institutions] : navch. posibnyk / V. T. Aleksandrov. — K. : AVT ltd, 2004. - 387 p.

12. Londarenko O. O. Ekonomichna pryroda vydatkiv ta ii vplyv na oblikovo-analitychni aspekty biudzhetnykh ustanov [The economic nature of spending and its impact on accounting and analytical aspects of budgetary institutions] / O. O. Londarenko // Ekonomika. Finansy. Pravo. - 2008. - № 9. - pp. 15-19.

13. Atamas P. J. Osnovy obliku v biudzhetnykh orhanizatsiiakh [Basis of accounting in budgetary organizations]. Navch. posibnyk / P. J. Atamas. - K. : - Tsentr navchal'noi literatury, 2002. - 284 p.

14. Biudzhetnyj kodeks Ukrainy [Budget Code of Ukraine] vid 08.07.2010 № 2456-VI [iz zminamy ta dopovnenniamy] [Elektronnyj resurs] // Verkhovna Rada Ukrainy [sajt]. -Rezhym dostupu : http://zakon3.rada.gov.ua/laws/show/2456-17.

15. Svirko S. V. Bukhhalters'kyj oblik u biudzhetnykh ustanovakh: metodolohiia ta orhanizatsiia [Accounting in budgetary institutions: methodology and organization] : monohrafiia / S. V. Svirko. - K.: KNEU, 2006. - 244 p.

16. Svirko S. V. Deiaki pytannia suchasnoi ukrains'koi ekonomichnoi terminolohii / S. V. Svirko // Problemy formuvannia rynkovoi ekonomiky. - Vyp. 9. - K. : KNEU. -

2001. - pp. 463 - 473.

17. Mykhajlov M. H., Telehun' M. I., Slavkova O. P. Bukhhalters'kyj oblik u biudzhetnykh ustanovakh [Accounting in budgetary institutions]. Navchal'nyj posibnyk. / M. H. Mykhajlov, M. I. Telehun, O. P. Slavkova - K.: Tsentr uchbovoi literatury, 2011. - 384 p.

18. Natsional'ne polozhennia (standart) bukhhalters'koho obliku v derzhavnomu sektori 135 "Vytraty" [The national situation (standard) accounting in the public sector 135 "Expenses"] : Nakaz Ministerstva finansiv Ukrainy vid 18.05.2012 r. № 568. [Elektronnyj resurs] // Verkhovna Rada Ukrainy [sajt]. - Rezhym dostupu : http://zakon2.rada.gov.ua/ laws/show/z0903-12.

19. Pro zatverdzhennia Poriadku rozrakhunku vytrat, pov'iazanykh z utrymanniam kursantiv u vyschykh navchal'nykh zakladakh [On approval of the calculation of the costs associated with the maintenance of students in higher education] : Spil'nyj nakaz MOU, Ministerstva finansiv Ukrainy, Ministerstva vnutrishnikh sprav Ukrainy, Ministerstva transportu i zv'iazku Ukrainy, Administratsii derzhavnoi prykordonnoi sluzhby Ukrainy, upravlinnia Derzhavnoi okhorony Ukrainy, Sluzhby bezpeky Ukrainy vid 16 lypnia 2007 r. № 419/831/240/605/537/219/534. - [Elektronnyj resurs]. // Verkhovna Rada Ukrainy [sajt]. - Rezhym dostupu: http://zakon3.rada.gov.ua/laws/show/z0863-07.

DIAGNOSIS AND FORECASTING ECONOMY STATE WITH HIDDEN MARKOV

MODEL

Nataliya Chernova,

Simon Kuznets Kharkov National University of Economics, Ukraine, Ph.D., Associate Professor of the Department of Economic Cybernetics.

Olga Polyakova,

Research centre of industrial development problems of NAS of Ukraine, Ph.D., Chief of the Department of Innovation Development and Competitiveness

ABSTRACT

IThe article is aimed to forecast the future states of economy basing on restricted information about its banking subsystem. The key hypothesis assumes that state of an economic system may be interpreted as a hidden variable. Using several banking indicators as observable variables it is possible to form Hidden Markov models. For known sequence of each observed variable values the appropriate sequence of state classes is determined. The results obtained for all observed variables are aggregated to form the optimal sequence of state classes. The initial models are adjusted due to Baum-Welch algorithm. Then future states of economy as precrisis ones are determined basing on absolute probabilities.

Key words: banking system, state of economy, observed variables, hidden markov model, forecasting.

I. INTRODUCTION

The global financial crisis has affected banking systems of many countries and has performed exactly as banking crisis. However, there is the controversial tendency in fact too. Total system crisis courses financial resources decline both firms and households for. This process stimulates capital flight from banks and landing decrease.

That is why models of rising and spreading crisis have made an interest in scientific world last years. Most of them are devoted to early warning systems and safety criteria for economy [1-2]. Nevertheless assessments of banking system influence on the economy during crisis period are very rare ones.

So the main aim of the paper is to determine the state class of economy basing on banking system variables.

Let's assume that each state may be changed at the beginning of the month and is stable during the month. The number of states is finite. That is why the process of changing states may be defined as stochastic discrete process.

The initial set of states may be divided into separate

{S S S }

homogeneous classes 1 If. Let's assume that

the probability of a certain class of state at time t depends on the class of state at time (t-1) only. That is why the process of changing classes may be defined as stochastic discrete Markov process.

State class is not observable directly. That is why the sequence of classes is hidden, unobserved to the researcher. We can only determine the certain value of "state class" indicator indirectly using set of observed and measurable indexes. Here

we suggest that banking subsystem indexes have to be used as observable ones. The value of each observed banking index depends on the state class of the economy.

Hence, such situation may be represented by Hidden Markov Model (HMM).

Initially HMM was implemented into technical sphere for solving speech recognition problems [3-4]. However, the modal has become applicable for diagnosis and forecasting some economic processes. The most part of such applications is dedicated to stock markets researches [5]. However, there are lots of examples of HMM successful employment in other spheres. For instance, R. S. Mamon and R. J. Elliott suggest using HMM when studying volatility in growth rate of real GDP and inflation [5]. Authors [6] use hidden markov models in customer relationships dynamics research. Some demography problems are studied in [7]. Human mobility modelling is the object of study in [8]. From the other hand, HMM is not widely used as forecasting tool for the complex economic systems behaviour.

II. RESEARCH SET UP

Each HMM consists of two types of variables:

- hidden variable, which is not directly observable (let it be class of the state of the economy);

- variable, which is observable and measurable (let it be one of banking subsystem indexes).

The following notation may be used to describe HMM [34]:

¿ = (PBW

i,j = [1, L]

- class of the state transition

k = [1, M ]

- observed

P = WlxL

probability distribution, L- number of classes;

B = {bj (k)}, j = [1, L],

variable probability distribution, bj(k)

class j,

M - number of unique values of observed variable,

w (Wi>w2>Wl) - initial class ofthe state probability distribution.

To form transition matrix P firstly we need to estimate frequency matrix

G = (§ij)LxL ,

T

gj=X ht(1,j),

t=2 (2)

g

ht(i,j) =

[1, Xt-1 = Si A Xt = Sj, 0, othewise.

(3)

Finally, transition probabilities must be estimated as follows:

Pj =

gj

Z gv-

1=1 . (4)

The matrix B is estimated according to the formulas below:

Z dq (V ) b (k) = -,

k = 1, M

(5)

s - number of states in the i-th class,

Vk - the k-th unique value for the observed variable,

dq (Vk ) =

|1, xq=Vk,

0, otherwise.

(6)

To explore HMM effectively three following problems can be solved:

- for certain sequence of observed variable values determine the probability that the sequence is generated by the HMM;

- for certain sequence of observed variable values determine the appropriate optimal sequence of state classes;

- for certain sequence of observed variable values adjust the HMM to maximize the probability that the sequence is generated by the HMM.

This work is dedicated to the last two problems.

The second problem is solved by Viterbi algorithm, which is represented below [3-5].

Step l.Determine additional variables.

5t(i) = max P(ql,q = S,O2,•••,

(7)

s t(i)

- probability of k-th value of observed variable for

t - maximum probability that for the given first t values of the observed variable the sequence of classes is finished in the i-th class at the time t. Step 2. Initialization

81(i) = wlbl(°1) i = [1,L]

¥j(i) = 0 Step 3. Recursion

l (j) = max^,-i(i) Pj b (°t)

(8) (9)

ij -transition frequency from the i-th class to the j-th class, 1'j = [1'L],

1<i < L

wt ( j ) = arg maxSt .1(0 Pj ]

1<i < L

J = [1,L]

Step 4.Termination

p = max[Sr (i)]

1<i < L

qT =

argmax[ST (i)]

1<i< L

(10)

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

t = [2,T]

(11)

(12) (13)

s

Step 5.State sequence backtracking

qt =vt+i(qt+i), t = t - 1,T - 2,... ,1 (14)

The third problem is solved with Baum-Welch algorithm [3-4]:

Step 1. Determine additional variables.

lt(i,j) = P(qt = Sl,qt= Sj O,A)

Si

- the

probability of a path being in class 1 at time t and making S.

a transition to class 1+1 at time t + 1, given the observation sequence O and the model ^.

cpt(i) = P(qt = Si O,A)

- the probability of

Si

being in class 1 at time t, given the observation sequence

O and the model ^.

L

Vt(i) = J ït(i>J)

Then J =1 .

Step 2. Parameters reestimation.

= (Pl(i) ;

T-1

Zl (i, J )

p.. - t=1 ^ij

bj ( k ) =

T-1

Zvt(l)

t=i

T

TW ( J)

t=i

Ot=yk ^ w ( J)

IV. CALCULATION

We studied the dynamics of Ukrainian economy in 2006-first half 2015(monthly data) [9].

Each state of economy is described as a point in the multidimensional space

Xt = (xt1,xt2,---,xp )

p - number of indicators, that describe a state.

To form the classes of states we used such indicators as:

- industrial production index,

- volume of agriculture product,

- volume of construction output,

- customer price index,

- industrial producer price index,

- monthly average wages and salaries,

- registered unemployment,

- load of registered unemployed per 1 vacant work place.

As the banking subsystem indicators we used:

- loans granted by depository corporations (except National Bank of Ukraine)

- loans of households,

- consumer loans,

- loans for house purchase.

To form HMM we need to solve the following problem: how to take into account all possible values of the observed variable and to guarantee:

- the completeness of the observations set

- not very large value of variable .

We suggest to use growth rates of observed variables and to convert initial discrete time series into interval ones. So, let's interpret as the number of intervals of observed variable.

According to the cluster analysis algorithms three homogenous groups of economy states were formed. The first group consists of states which represent 2006-2007 years, February 2008, 2011-2012 years, January-February 2013; the second group contains 2009 year and 2015(first half), the remained states form the third group. Our suggestion is to interpret the first group as comparatively stable class, the second - as crisis class, the third - as precrisis class.

Transition matrix P for three classes is represented below (see formulas (1) - (4)).

Transition matrix

Matrix B was calculated for each observed variable according to formulas (5)-(6). Matrixes are represented below (tables 2-5).

Table 1

Classes Comparatively stable Precrisis Crisis

Comparatively stable 0,94 0,06 0,00

Precrisis 0,04 0,91 0,04

Crisis 0,00 0,06 0,94

-m-

Table 2

Matrix B1 for loans granted by depository corporations

Classes Intervals

VB1 i VB1 2 VB1 3 VB1 4

<0,84 [0,84;0,92) [0,92;1,00) 1,00=<

comparatively stable 0,00 0,00 0,54 0,46

precrisis 0,07 0,13 0,58 0,22

crisis 0,06 0,11 0,72 0,11

Matrix B2 for loans of households

Classes Intervals

VB2 i VB2 2 VB2 3 VB2 4

<0,92 [0,92;0,98) [0,98;1,05) 1,05<

comparatively stable 0,00 0,00 0,56 0,44

precrisis 0,11 0,13 0,69 0,07

crisis 0,06 0,28 0,67 0,00

Table 3

Matrix B for consumer loans

Classes Intervals

VB3 1 VB3 VB3 3 VB3 4

<0,85 [0,85;0,93) [0,93;1,01) 1,01<

comparatively stable 0,00 0,00 0,50 0,50

precrisis 0,02 0,11 0,60 0,27

crisis 0,06 0,06 0,83 0,06

Table 4

Table 5

Matrix B4 for loans for house purchase

Classes Intervals

VB41 vb42 VB43 VB4 4

<0,92 [0,92;1,00) [1,00;1,08) 1,08<

comparatively stable 0,00 0,46 0,32 0,22

precrisis 0,04 0,69 0,24 0,02

crisis 0,11 0,56 0,28 0,06

Thus, we have obtained four HMM, which have the 2015. common matrix P and vector w, but different matrixes B. Observed variables values for period Jul-Dec 2015 are

iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.

Viterbi algorithm was applied to each HMM to determine shown below. the optimal sequence of economy classes for period jan-jun

Table 5

Growth rates of observed variables

Period loans granted by depository corporations loans of households consumer loans loans for house purchase

July 2015 0,98 0,98 0,97 0,99

August 2015 1,00 0,99 1,00 0,98

September 2015 0,95 0,86 0,82 0,93

October 2015 1,03 1,02 1,01 1,04

November 2015 0,96 0,96 0,95 0,99

December 2015 0,94 0,95 0,95 0,96

According to the information about discrete intervals intervals were determined. These sequences are used as inputs (Table 2 - Table 5) the appropriate sequences of observed for Viterbi algorithm (Table 6).

Table 6

Sequences of observed intervals

Period loans granted by depository corporations loans of households consumer loans loans for house purchase

July 2015 VB1 3 VB2 3 V®3 3 VB4 2

August 2015 VB1 4 VB2 3 VB3 3 VB4 2

September 2015 VB1 3 VB2 1 VB3 1 VB4 2

October 2015 VB1 4 VB2 3 VB3 4 VB4 3

November 2015 VB1 3 VB2 2 VB3 3 VB4 2

December 2015 VB1 3 VB2 2 VB3 3 VB4 2

All models have determined the crisis class of economy during the second half of the 2015 year.

To verify these results k-means procedure was used to form homogenous sets of states for the period 2006-2015. The results correspond with those obtained by Viterby algorithm.

Baum-Welch algorithm was applied to adjust initial four hidden markov models. As the result four new transition

matrixes were obtained: Pl, , and .

These matrixes were used to estimate four variants of absolute probabilities of each class (comparatively stable, precrisis, crisis) at the first six months of the current 2016 year:

gk = w( P)j

r-

- vector of absolute probabilities for the j-th month for

the k-th model,

k e [1; 4] - index of the particular hidden markov model,

j ^ [1' 6] - month's index,

w - initial vector of absolute probabilities.

To calculate the final average absolute probabilities for the j-th month the following formula was used:

gj=4 i gj

^ k=1

gj

i -average absolute probability of the i-th class for the j-th month,

i - absolute probability of the i-th class for the j-th month according to the k-th model.

Finally, the following absolute probabilities were obtained for the first six months of the 2016 year:

g = (0; 0,25; 0,75)

VI. CONCLUSION

Obtained results allow to sum up that Hidden Markov Models may be used to identify the future class of states of

economic system based on current banking system variables. The advantage of this approach is the possibility to estimate the state of economy using restricted initial information. The accuracy of the assessment increases thanks for using several models based on different observed variables. Four models that were formed by loans granted by depository corporations, loans of households, consumer loans and loans for house purchase have demonstrated corresponding results.

According to the models the Ukrainian economy deepened into crisis at the first half of 2016. Future research should be concerned to including crisis indicators from other economy subsystems as predictors to the model.

VII. REFERENCES

1. E.P. Davis, D. Karim, Comparing early warning systems for banking crises. Journal of Financial Stability. 4, 2 (2008) 89-120.

2. S. Percic, C.-M. Apostoaie, V. Cocri§, Early warning systems for financial crises - a critical approach, CES Working Papers.1 (2013) 78-88.

3. L. Rabiner and B. Juang, "Fundamentals of Speech Recognition," Prentice-Hall, Englewood Cliffs,NJ,1993.

4. L.R Rabiner, "A tutorial on HMM and Selected Applications in Speech Recognition," In:[WL],proceedings of the IEEE, Vol. 77 (2), pp. 267-296,1993.

5. R. S. Mamon and R. J. Elliott, editors. Hidden Markov Models in Finance. International Series in Operations Research & Management Science. Springer-Verlag, New York, 2007.

6. Netzer, Oded, James Lattin, and V. Srinivasan. «A Hidden Markov Model of Customer Relationship Dynamics.» Marketing Science 27, no. 2 (March 2008): 185-204.

7. Gilbert Ritschard, Michel Oris, Dealing with Life Course Data in Demography: Statistical and Data Mining Approaches (http://mephisto.unige.ch/pub/publications/gr/rits_oris_ mining_demohist.pdf).

8. Ha Yoon Song Application of Hidden Markov Model for Human Mobility Modelling (http://www.naun.org/main/ NAUN/computers/2007-113.pdf).

9. State Statistics Service of Ukraine documents publishing (http://ukrstat.org).

i Надоели баннеры? Вы всегда можете отключить рекламу.