Calibration of GARCH11 Model in QuantLib

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Calibration of GARCH11 Model in QuantLib

qzhhugh
Hi,
 
I am new in using QuantLib. Suppose I have the everyday close prices of S&P 500 index, next I have to convert these prices to yield rates. In common sense, daily yield is needed to calibrate GARCH11 Model. However, the comments in Garch11(a class) of QuantLib says, 'Volatilities are assumed to be expressed on an annual basis'. And I get confused. Which kind of yield should I put into the constructor of Garch11 in QuantLib? Hope someone could help me out, a simple piece of code is appreciated.
 
Thanks.
 
Zhehui Qian
 

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

答复: Calibration of GARCH11 Model in QuantLib

cheng li

That means the input yield should be annualized. Otherwise the output is not volatility at all (when we talk about volatility it is always on annual basis)

Regards,

Cheng

发件人: 钱哲辉 [mailto:[hidden email]]
发送时间: 2014620 15:27
收件人: quantlib-users
主题: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

 

Hi,

 

I am new in using QuantLib. Suppose I have the everyday close prices of S&P 500 index, next I have to convert these prices to yield rates. In common sense, daily yield is needed to calibrate GARCH11 Model. However, the comments in Garch11(a class) of QuantLib says, 'Volatilities are assumed to be expressed on an annual basis'. And I get confused. Which kind of yield should I put into the constructor of Garch11 in QuantLib? Hope someone could help me out, a simple piece of code is appreciated.

 

Thanks.

 

Zhehui Qian

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: 答复: Calibration of GARCH11 Model in QuantLib

qzhhugh
Hi Cheng,
 
Thank you for your answer! However, I'm quite sure there is volatility on daily basis and this kind of volatility appears in many cases. For example, we can put daily returns, like ln(S2/S1), into the GARCH model in Matlab to calibrate the parameters. Thanks again.
 
Regards,
Zhehui
 
 
发件人: [hidden email]
发送时间: 2014-06-23 15:32
主题: 答复: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

That means the input yield should be annualized. Otherwise the output is not volatility at all (when we talk about volatility it is always on annual basis)

Regards,

Cheng

发件人: 钱哲辉 [mailto:[hidden email]]
发送时间: 2014620 15:27
收件人: quantlib-users
主题: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

 

Hi,

 

I am new in using QuantLib. Suppose I have the everyday close prices of S&P 500 index, next I have to convert these prices to yield rates. In common sense, daily yield is needed to calibrate GARCH11 Model. However, the comments in Garch11(a class) of QuantLib says, 'Volatilities are assumed to be expressed on an annual basis'. And I get confused. Which kind of yield should I put into the constructor of Garch11 in QuantLib? Hope someone could help me out, a simple piece of code is appreciated.

 

Thanks.

 

Zhehui Qian

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: 答复: Calibration of GARCH11 Model in QuantLib

qzhhugh
In reply to this post by cheng li
Hi Cheng,
 
Thank you for your answer! However, I'm quite sure there is volatility on daily basis and this kind of volatility appears in many cases. For example, we can put daily returns, like ln(S2/S1), into the GARCH model in Matlab to calibrate the parameters. Thanks again.
 
Regards,
Zhehui
Reply | Threaded
Open this post in threaded view
|

答复: 答复: Calibration of GARCH11 Model in QuantLib

cheng li
In reply to this post by qzhhugh

Hi zhihui

Yes, what you say is true. There is no definite reason to define volatility on annual basis.

However if you input daily return without annual adjustments, you should be aware that your output vol is also annualized at all.

Regards,

Cheng

 

发件人: 钱哲辉 [mailto:[hidden email]]
发送时间: 2014623 15:58
收件人: cheng.li; quantlib-users
主题: Re: 答复: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

 

Hi Cheng,

 

Thank you for your answer! However, I'm quite sure there is volatility on daily basis and this kind of volatility appears in many cases. For example, we can put daily returns, like ln(S2/S1), into the GARCH model in Matlab to calibrate the parameters. Thanks again.

 

Regards,

Zhehui

 

 

发件人: [hidden email]

发送时间: 2014-06-23 15:32

主题: 答复: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

That means the input yield should be annualized. Otherwise the output is not volatility at all (when we talk about volatility it is always on annual basis)

Regards,

Cheng

发件人: 钱哲辉 [[hidden email]]
发送时间: 2014620 15:27
收件人: quantlib-users
主题: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

 

Hi,

 

I am new in using QuantLib. Suppose I have the everyday close prices of S&P 500 index, next I have to convert these prices to yield rates. In common sense, daily yield is needed to calibrate GARCH11 Model. However, the comments in Garch11(a class) of QuantLib says, 'Volatilities are assumed to be expressed on an annual basis'. And I get confused. Which kind of yield should I put into the constructor of Garch11 in QuantLib? Hope someone could help me out, a simple piece of code is appreciated.

 

Thanks.

 

Zhehui Qian

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Calibration of GARCH11 Model in QuantLib

Slava Mazur-2
In reply to this post by qzhhugh

Hi Zhehui,

You can rescale your returns to whatever time horizon you please and get the results for the same time horizon.

The comment you are referring to is left there unchanged because i simply overlooked it.

Hope this helps.

Regards,

Slava Mazur

From: 钱哲辉 [mailto:[hidden email]]
Sent: Friday, June 20, 2014 3:27 AM
To: quantlib-users
Subject: [Quantlib-users] Calibration of GARCH11 Model in QuantLib

 

Hi,

 

I am new in using QuantLib. Suppose I have the everyday close prices of S&P 500 index, next I have to convert these prices to yield rates. In common sense, daily yield is needed to calibrate GARCH11 Model. However, the comments in Garch11(a class) of QuantLib says, 'Volatilities are assumed to be expressed on an annual basis'. And I get confused. Which kind of yield should I put into the constructor of Garch11 in QuantLib? Hope someone could help me out, a simple piece of code is appreciated.

 

Thanks.

 

Zhehui Qian

 


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users