-
Recent Posts
Recent Comments
- 店小二 on 论三座大山
- L on SVI模型拟合
- acnkid on 俄乌战争的回顾及其他
- acnkid on 外卖小哥的收入以及其他
- acnkid on 外卖小哥的收入以及其他
Archives
- June 2024
- April 2024
- January 2024
- October 2023
- September 2023
- August 2023
- June 2023
- May 2023
- February 2023
- January 2023
- October 2022
- September 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- December 2021
- October 2021
- September 2021
- August 2021
- June 2021
- May 2021
- April 2021
- January 2021
- December 2020
- September 2020
- August 2020
- May 2020
- April 2020
- May 2019
- March 2019
- February 2019
- January 2019
- September 2018
- July 2018
- May 2018
- April 2018
- December 2017
- November 2017
- August 2017
- July 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- September 2016
- August 2016
- July 2016
- June 2016
- March 2016
- January 2016
- October 2015
- July 2015
- May 2015
- November 2014
- August 2014
- July 2014
- March 2014
- February 2014
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- January 2013
- December 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- June 2010
- May 2010
- October 2009
- July 2009
- May 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- April 2008
- November 2007
- April 2007
Categories
Meta
Tag Archives: bonds
金融仿真笔记(6)
1.息票分离法 bootstrap method,其实和前面一片文章写得东西其实关系不大,这个就是用债券的息票利率计算任意一点的利率。 2.zbtprice/zbtyield根据债券的到期日,票面利率,结算日和价格,求的任意点的零息利率。参数不要输入出错,基本上没有什么问题。如果我理解的没有问题,就是利用已知的有限个债券的信息,计算这些点的零息债券利率。这里面还是有点小技巧,plot(dates2, zerorates2); dateaxis('x'),这里面dates2日期是matlab的zbtprice给出的,让横坐标显示成日期,还要加上dateaxis('x'),这种小技巧,说难也不难,给出来谁都会用,但是要找出来,却相当不容易,现在网上资源很多,但稍微专业一点的东西就很少见到了,比如excel里面有一个画图表的,也有一个模板,但是我搜索了一下,几乎没有见到这种资源。 3.cfdates(settle,maturity)这个就是计算出现现金流的日子,返回一些列7XX的数字。 4.forward rates远期收益 zero2fwd,通过零息利率计算远期利率。 5.利率期限结构intenvset,和之前一个创建结构体的类似,这里面的参数名也不是随便输入的,也就是那么有限的几个,Rates,Disc等等。 6.Disc=(1+z/F)^(-T),F应该是一年内付息次数的意思,z就是零息利率了,T是指在这段时间内付息次数。