Monday, 22 September 2014

Romanian Equities: Copula and Extreme Value Theory for Modeling Market Risk

Background:
Before trying to bring more light to the definition and use of copula, I’ll start with the very basic statement that uncorrelatedness does not imply independence, while independence implies noncorrelation. This is very well explained by Mandelbrot in his book “The (mis)Behaviour of Markets” (with co-author Richard L. Hudson) – the key is in the distinction between size and direction of price movements and of course volatility clustering (large changes tend to be followed by large changes at ANY direction and small changes – followed by small changes at ANY direction. Note that here we do not specify the direction, but the size. And it is the size not direction that is important in analyzing co-movements. Correlation is not an adequate measure of dependence (a flaw of correlation is the normal distribution assumption; financial time series are not normally distributed – there are either too small or too large deviations from the average) and it is dependence that matters in risk management.

The formal definition of copula  “multivariate distribution function with uniformly distributed marginal” (Embrechts, Lindskog and McNeil, Modelling Dependence with Copulas and Applications to Risk Management) is a bit more technical and needs further clarification. The very basic of the copula is Sklar’s Thereom that  claims a copula can be derived from any joint distribution functions, and the opposite is true – namely any copula can be combined with any set of marginal distributions to result in a multivariate distribution function. The very heart of the copula is the separation of the marginal behavior and the dependence structure from the joint distribution.

There are many copulas – the most widely used are Gaussian and Student’s t, but there are also Archimedean type (Gumbel, Frank, Clayton).

Of course, as every model, copula has its limitations and in some cases can cause more troubles than the value-added from its use.

Extreme Value Theory approach was explained in the previous post. In this material, the EVT is based on calibrating Student’s t copula on standardized residuals from a autoregressive (mean)-GARCH (variance equation) model.  After that given the parameters of the Student’s t copula, jointly dependent stock returns are simulated by first simulating the corresponding dependent standardized residuals. The purpose of the whole exercise is to estimate Value-at-Risk (VaR) of the portfolio.  

Results:
Daily observations for the period Sept 3, 2012 – Sept 17, 2014 (511 daily returns for each company) of fourteen Romanian stocks are used (Fondul Proprietatea, OMV Petrom, Transgaz, Transelectrica, Banca Transilvania, BRD-GSG, Bucharest Stock Exchange, Biofarm, Antibiotice, SIF1, SIF2, SIF3, SIF4 and SIF5) are used. These stocks are combined in a hypothetical equally-weighted portfolio. The charts below present: (1) how extreme portfolio changes are during the analysed period; (2) portfolio performance.


The daily VaR at three levels of significance (1%, 5% and 10%) estimated under copula+EVT approach (together with max daily gain/loss), as well as VaR under multivariate normal distribution are reported below (10,000 daily simulations were run). Additionally, the individual stocks VaR and Expected Shortfalls at 5% level of significance are presented.






This publication is for information purposes only and should not be construed as a solicitation or an offer to buy or sell any securities.

Monday, 15 September 2014

Extreme Value-at-Risk of Bulgarian shares

Methodology: Extreme Value Theory (EVT) provides an alternative approach for the classical Value-at-Risk that is based on statistics as mean and standard deviation, as well as normal distribution assumption. Instead, EVT focuses not on the average numbers, but on extremes. And as such a background is the Generalized Extreme Value Distribution (GEV).
We collected daily close price series for a 2-year period: Sept 10, 2012 – Sept 10, 2014 (making 496 return series) for 7 stocks – Sopharma, Matlab, Advance Terrafund RETI, Fist Investment Bank, Chimimport, Eurohold and M+S Hydraulic. We then extract the worst 25 returns for each of the stocks, making 175 observations for the worst returns of all 7 stocks. Matlab’ gevfit function to the 175 worst returns is used to extract the three parameters - namely z, b, and a. Having the 3 parameters the approach for Extreme Value-at-Risk (EVaR) suggested by Quant at Risk is used, namely:
Data: The charts below present a hypothetical equally-weighted portfolio during the 2-year period. An interesting chart is the one showing the number of the standard deviations from the average, revealing how misleading could be the standard normal distribution assumption (we charted the absolute values of the standard deviations). There are too many extreme returns during the period that should not occur so often under the rules for normally distributed data. But they do, nonetheless and we should be prepared to such events.
1-day Extreme Value-at-Risk Results: We have a Fréchet distribution given the negative z as data was fit with negative signs (the daily losses). The resulted 1-day 95% confidence interval EVaR is -8.12%! This implies that among the 7 stocks at the specified significance level we should expect extreme loss of 8.12%. That’s really huge expected loss. But we have a 1-day 27.6% loss, the second and third worst losses are 17.2% and 15.2% respectively. So, it is a really period of extremes and normal distribution would hardly do a job here.
But how it compares with the VaR of the stocks we analyse? Below is a table of the results of VaR of the individual stocks based on two VaR approaches – one is based on empirical distribution and the second is based on normalised distribution (histogram):





This publication is for information purposes only and should not be construed as a solicitation or an offer to buy or sell any securities. 

Extreme acknowledgments are due to Pawel Lachowicz and his Quant at Risk!

Thursday, 11 September 2014

Imports of Germany, France and Italy from Bulgaria, Romania and Poland

How does Bulgaria compare with Romania and Poland in terms of imports to key euro area economies like Germany, France and Italy? This gives an alternative view of the absolute level exports we all are used to read and analyse. But somehow important is also the question posed above. The figures of the imports are 12-month moving average after logarithmic transformations for the period Jan 2006-most recent numbers of 2014. The relative growth rates are presented in the charts below (source of the raw data are countries’ statistical institutes).

Romania Central Bank’s bank lending survey

The Central Bank of Romania published its regular report on bank lending survey on Q2 2014 figures and expectations of banks for Q3 2014 (http://bnro.ro/PublicationDocuments.aspx?icid=11324). The figures present not a bright picture on corporate loan demand for the third quarter of 2014, as provided by the chart below.
Year 2014 is expected to be another challenging year for the Romanian banks as the Central Bank initiated a significant balance sheet clean up, aimed at reducing NPL ratio in the Romanian banking system from 22.3% in Q1 2014 to 13.6%. The balance sheet clean-up has several directions: first is recording off-balance sheet of fully provisioned NPL (the painless step for the banks), the second refers to fully provisioning of loans overdue by more than 1 year and the third is related to a distinct treatment of loans granted to companies in insolvency via the recording off balance sheet up to 90% of the exposure (this is the most controversial measure, as banks claim they have higher recovery rates than 10%).

Tuesday, 8 October 2013

US Earnings Season vs. US Fiscal Deadlock

US corporate reporting opens today (Alcoa) and in Friday JPMorgan is due to report. Would the earnings season gain the focus of investors? Source: Deutsche Bank; assuming 40% recovery rate

Monday, 7 October 2013

The relation between finance and physics

“The true logic of this world is in the calculus of probabilities” – James Clerk Maxwell First I should make the disclaimer that I am graduated in finance and my interest in physics is due to a book I’ve read last summer on quantum physics (“Absolutely Small : How Quantum Theory Explains Our Everyday World” by Michael D. Fayer– strongly recommend it, by the way). Recently I’ve had the chance to listen a lecture by Prof. Jim Al-Khalili (by the way he has a book translated in Bulgarian - Paradox: The Nine Greatest Enigmas in Science) and also have found the Feynman Lectures on Physics (still missing Volume 2, however), which are greatly inspirational! The idea to look for a link between finance and a pure science as physics lies in the characteristics that both share – the probabilistic nature. Probability is the way to deal with uncertainty no matter where – in nature or in finance. In a way, successful investing is a probabilistic activity. It is the probability that makes both finance and physics very exciting but it seems to me in finance people tend to neglect this probabilistic nature. One of the common concepts is the Brownian motion. In finance we have the geometric Brownian motion model for price changes developed by Samuelson who rediscovered the work of the French mathematician Bachelier. When simulating stock prices we use two major components: drift (expected return) which is the deterministic component and volatility, which is the random shock component. In physics, as Feynman writes that the most precise description of nature must be in terms of probabilities. For instance, the probability plays an important role in the specification of a position of a particle in describing the structure of atoms. Hence, the way of looking at atom is as a nucleus surrounded by electron cloud (which is essentially probability cloud) – this is the atomic orbital model.

Thursday, 3 October 2013

Rescaled Range (R/S) of returns of Bulgarian Stock Exchange index SOFIX and Bucharest Stock Exchange index BET

Rescaled Range analysis of the Bulgarian stock exchange index SOFIX and Bucharest stock exchange index BET for the period November 2010-August 2013 (daily observations) reveals that SOFIX return shows characteristics of long memory, while BET return is closer to random walk. Long memory feature contradicts efficient market hypothesis. When return series show long memory characteristics, it means the returns are not independent over time, ie past returns can help predict future returns, thereby violating the market efficiency hypothesis. Briefly, Rescaled Range calculates Hurst exponent (H exponent), which has the following values: H<0.5 is mean reverting characteristics of the return series, while H=0.5 is random walk and H>0.5 is long memory (persistence area). We can however divide the interval 0.0 to 1.0 into thirds, ie from 0-0.33 is the mean-reverting area, 0.34-0.67 is the random walk area and 0.68-1.0 is the persistence area. In the case of SOFIX Hurst exponent is 0.73 and for the same period the Hurst exponent of BET is 0.58. It should however be noted that during the different time frames, the indexes characteristics change - SOFIX return was random walk at some point of time and BET return was persistent. There are of course other indicators of long memory (as GPH, KPSS for instance); additionally the time period considered is short. The idea is just to show some insight. The analysis follows Jason Voss publication on S&P 500 in Enterprising Investor blog in Feb 2013.

Thursday, 27 December 2012

На Eurepo-пазара нищо ново

Наблюдаваната от няколко месеца ситуация на негативни Eurepo-стойности означава, че заемодателят плаща на заемателя (притежател на базовия актив-обезпечение) с цел да получи достъп до потенциала на базовия актив. На практика, колкото по-ниска е стойността на репо-процента, толкова по-голям дефицит съществува по отношение на обезпечението. При равни други условия настоящата ситуация може да е сигнал за инвестиране в по-рискови активи. Но в условията на "регулиран" пазар в резултат на интервенциите от страна на Европейската централна банка е налице изкривяване на пазара и погрешни сигнали към инвеститорите.

Thursday, 15 November 2012

Финансово представяне на борсово-търгуваните банки в региона Част 2. Румънски банки (BRD – GSG, Banca Transilvania)

Двете румънски банки, търгувани на борсата в Букурещ – BRD-GSG и Banca Transilvania, отчетоха противоречиви  резултати за третото тримесечие на 2012 г. Загубата на по-голямата от двете BRD-GSG намаля спрямо реализираната през второто тримесечие на 2012 г. загуба, но не се забелязват признаци на подобрение – обезценените експозиции (банката предоставя информация за общия дял на обезценените експозиции, а не само на тези, които са с просрочие от над 90 дни) заемат дял от 20.1% спрямо 18.2% през второто тримесечие на 2012 г. Печалбата на Banca Transilvania надмина очакванията, но основно заради по-малък размер на данъка. Нетният лихвен марж (NIM) на банката се влоши, както спрямо второто тримесечие на 2012 г., така и спрямо третото тримесечие на 2011 г.   Материалът не е препоръка за вземане на инвестиционно решение.