CPI Bond Unit Test Observation Lag

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

CPI Bond Unit Test Observation Lag

ycc1107
Is there anyone know why the Observation lag is 2 months in CPI Bond Unit test?
As far as I know, the lag conversation is 3 months. I wonder if there is a reason to use 2 months. Thank you.

// now build the zero inflation curve
observationLag = Period(2,Months);
`
`
`
cpiTS.linkTo(boost::shared_ptr<ZeroInflationTermStructure>(
                  new PiecewiseZeroInflationCurve<Linear>(
                         evaluationDate, calendar, dayCounter, observationLag,
                         ii->frequency(),ii->interpolated(), baseZeroRate,
                         Handle<YieldTermStructure>(yTS), helpers)));
Reply | Threaded
Open this post in threaded view
|

Re: CPI Bond Unit Test Observation Lag

Luigi Ballabio
Hello,
    no reason that I can think of. Does the tests still pass if you change it to 3 months?

Luigi


On Thu, Mar 20, 2014 at 3:14 PM, ycc1107 <[hidden email]> wrote:
Is there anyone know why the Observation lag is 2 months in CPI Bond Unit
test?
As far as I know, the lag conversation is 3 months. I wonder if there is a
reason to use 2 months. Thank you.

// now build the zero inflation curve
observationLag = Period(2,Months);
`
`
`
cpiTS.linkTo(boost::shared_ptr<ZeroInflationTermStructure>(
                  new PiecewiseZeroInflationCurve<Linear>(
                         evaluationDate, calendar, dayCounter,
observationLag,
                         ii->frequency(),ii->interpolated(), baseZeroRate,
                         Handle<YieldTermStructure>(yTS), helpers)));




--
View this message in context: http://quantlib.10058.n7.nabble.com/CPI-Bond-Unit-Test-Observation-Lag-tp15082.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: CPI Bond Unit Test Observation Lag

ycc1107
Yes, it still pass.
Reply | Threaded
Open this post in threaded view
|

Re: CPI Bond Unit Test Observation Lag

Luigi Ballabio
I see. We might change it then.

Luigi


On Wed, Apr 9, 2014 at 4:56 PM, ycc1107 <[hidden email]> wrote:
Yes, it still pass.



--
View this message in context: http://quantlib.10058.n7.nabble.com/CPI-Bond-Unit-Test-Observation-Lag-tp15082p15128.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users