Pages

Showing posts with label risk management. Show all posts
Showing posts with label risk management. Show all posts

Tuesday, May 17, 2011

3 Asset Portfolio Optimization

Till now we have performed our experiment on 2 assets portfolio, let us see how to find out right portfolio when we have more than 2 assets.

Best method is to draw risk/return relation using various combination of weights of portfolios assets. We will need to rewrite our cal_ret and cal_sd function for calculations.

> fmcgtemp &<- read.csv("CNX FMCG01-04-2010-01-04-2011.csv")

> fmcg <- fmcgtemp[[5]]

> fmcgL <- bankl(fmcg,fmcg)

> fmcgM <- mean(fmcgL)

> fmcgSD <- sd(fmcgL)

Function for rate of return

function (first,second,third)

{

a <- rep(1,times=58)

i=0

j=0

k=0

w1=0

count=0

while(w1 <=1){

w2=0

while(w1+w2 <=1){

w3=0

while(w1+w2+w3<1){

w3=1-w1-w2

a[count]= first*w1+ second*w2+third*w3

count=count+1

}

w2=w2+.1

j=j+1

}

w1=w1+.1

i=i+1

}

a

}


Function for standard deviation

function (first,second,third,cora,corb,corc)

{

a <- rep(1,times=58)

i=0

j=0

k=0

w1=0

count=0

while(w1<=1){

w2=0

while(w1+w2<=1){

w3=0

while(w1+w2+w3<1){

w3=1-w1-w2

a[count]= (second*w2)^2+(first*w1)^2+(third*w3)^2+2*w1*w2*first*second*cora+2*w1*w3*first*third*corb+2*w3*w2*second*third*corc

count=count+1

}

w2=w2+.1

j=j+1

}

w1=w1+.1

i=i+1

}

a

}


Calling both the fucntions

>X <- cal_ret(bankM,energyM,fmcgM)

> Y <- cal_sd(bankM,energyM,fmcgM,corBE,corBF,corEF)

>Plot (Y,X)


(Y represents standard deviation and X represent returns made)
This graph clearly shows there will be number of combinations of weights of various assets which will lead to higher returns and less risk.

We again need to find out, investor appetite to reach correct asset allocation.

Sunday, May 15, 2011

Risk Management

Globalization have made world more and more integrated. With free execution of trade between countries, prices of commodity not impacted by selected few but almost all major economies, interest rate change in one country impacting through out the world have made risk management more and more important over time and important part of strategy of export houses and businesses who are highly dependable on imports.

I will start my discussion by classifying risk into two categories like known risk and unknown risk. Some people have also introduced terms like lesser known risk. Known are risk which are pretty much known and whose impact can be estimated using sensitivity analysis on portfolios of securities or business products while other form of risk cannot be measured directly. Known risk can be measured hence can be mitigated by following hedging techniques while unknown can't be measured with high confidence hence hedging techniques are also not well defined.

Let us take few examples of various risk in various domains.

IT:

Major risk to IT companies are exchange rate movement, they are highly dependent on value of rupee, other risk they face are attrition,knowledge drain , competition which are business risk which we will not discuss here. Exchange rate of rupee is by product of number of factors like interest rate of countries, foreign exchange flows, current/capital account deficit. Risk manager in IT firm need to account for all these factors while measuring exposure of their business in respect to different countries

Banks:

Banks are in business of exchanging money where they take deposits and give away loan , hence making money on rate difference called as interest margin. Biggest risk they face comes on the amount of loan given to borrowers called as credit risk, if borrower default bank have to pay money from their own pocket. Other big factor is interest rate movement , since major part of bank income comes from interest rate, small change in interest rate can change the whole balance. These two risk need to be accounted in a manager's strategy for banks to stay in the competition. Another form of risk banks face are operational risk, also called risk due to failure of systems/people/natural calamity.

Here in this blog we will talk about risk management for financial companies with focus on

  • Credit Risk

  • Market Risk

  • Operational Risk

Before starting on measurement and mitigation of risk, let us take a look at portfolio management and basic techniques used for portfolio optimization.

Note : Through this blog Indian stock market data will be analyzed and R Language(it is free and works well on my PC) will be used as primary statistical tool.