Serving the Quantitative Finance Community

 
User avatar
veniya
Topic Author
Posts: 0
Joined: August 4th, 2009, 10:48 am

Volatility factors in HJM-model

August 4th, 2009, 11:45 am

hi,I have a question concerning the spreadsheet implementation of the HJM-model in Wilmott's 'on quantitative finance':How did he choose the volatility factors? I understand that it is reasonable to choose two, one of them constant and the other linear. But I don't understand how he's choosing the constants.I appreciate every answer and help!thx
 
User avatar
accelas
Posts: 0
Joined: September 24th, 2008, 5:53 am

Volatility factors in HJM-model

August 4th, 2009, 6:40 pm

You can do a PCA on past data to figure out the volatility. Say you have daily data on 10 different maturities for the past year. You first find the daily changes for each maturity. since you have 10 maturites you will end up having 10 daily change data set. next you will calculate the covariance matrix for those daily change vectors, and then find the eigenvalue/eigenvectors of the covariance matrix.the volatility from data is eigenvector * sqrt(associated eigenvalue). Plot the volatility with respect to maturity, you can figure out what's the relation between maturity and volatility. (constant, linear, quadratic, etc. do a regression to figure out the coefficients)you pick enough volatility terms that you could explain 95%+ movement. so sum(eigenvalue you picked)/sum(all eigenvalue)>95%.
 
User avatar
veniya
Topic Author
Posts: 0
Joined: August 4th, 2009, 10:48 am

Volatility factors in HJM-model

August 6th, 2009, 5:09 am

thanks, I tried it and it seems to work!
 
User avatar
veniya
Topic Author
Posts: 0
Joined: August 4th, 2009, 10:48 am

Volatility factors in HJM-model

August 6th, 2009, 12:55 pm

unfortunately I got negative eigenvalues. what can I do?
 
User avatar
accelas
Posts: 0
Joined: September 24th, 2008, 5:53 am

Volatility factors in HJM-model

August 8th, 2009, 2:38 am

what data did you use? actually, see this for more help:http://www2.gsu.edu/~mkteer/npdmatri.html
 
User avatar
veniya
Topic Author
Posts: 0
Joined: August 4th, 2009, 10:48 am

Volatility factors in HJM-model

August 10th, 2009, 7:40 am

thx, I detected the error.HJM works now perfect
 
User avatar
amas
Posts: 0
Joined: October 22nd, 2009, 12:02 pm

Volatility factors in HJM-model

August 2nd, 2010, 2:50 pm

Hi,I have done the same implementation. I did the eigenvalue decomposition and estimated the volatility factors (I will use 3). So far, so good.My big problem now is, how do I get the drift term? Unfortunately, the 'Paul Wilmott on Quant Finance' doesn't give any hints here. Since I have estimated the volatility factors for each maturity directly through the PCA, I dont have a functions for the volatility factors...Any advise is highly appreciated!Thanks!
 
User avatar
quanfinguy
Posts: 0
Joined: January 19th, 2009, 6:16 am

Volatility factors in HJM-model

July 14th, 2012, 5:29 am

QuoteOriginally posted by: accelasYou can do a PCA on past data to figure out the volatility. Say you have daily data on 10 different maturities for the past year. You first find the daily changes for each maturity. since you have 10 maturites you will end up having 10 daily change data set. next you will calculate the covariance matrix for those daily change vectors, and then find the eigenvalue/eigenvectors of the covariance matrix.the volatility from data is eigenvector * sqrt(associated eigenvalue). Plot the volatility with respect to maturity, you can figure out what's the relation between maturity and volatility. (constant, linear, quadratic, etc. do a regression to figure out the coefficients)you pick enough volatility terms that you could explain 95%+ movement. so sum(eigenvalue you picked)/sum(all eigenvalue)>95%.
 
User avatar
quanfinguy
Posts: 0
Joined: January 19th, 2009, 6:16 am

Volatility factors in HJM-model

July 14th, 2012, 5:30 am

How do we determine the volatility from variance/covariance matrix ?
 
User avatar
quanfinguy
Posts: 0
Joined: January 19th, 2009, 6:16 am

Volatility factors in HJM-model

July 14th, 2012, 5:32 am