-
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: 课堂笔记
金融仿真笔记(4)
1.计算现金流久期:cfdur,久期的定义通常用的是资产针对利率变化的价格变化率。不过计算久期可以用麦考利久期的概念,就算要知道的就是每期的现金流和市场收益率。[Duration, ModDuration] = cfdur(CashFlow, Yield),还有个修正久期的概念。 2.计算现金流凸性:cfconv,凸性是指在某一到期收益率下,到期收益率发生变动而引起的价格变动幅度的变动程度。其实也就是价格对收益率的二次倒数。债券凸性价值的存在是建基于未来利率的变动,利率变动幅度越大,债券凸性的价值就越高。CFlowConvexity = cfconv(CashFlow, Yield) 3.计算债券久期和凸性,bnddurp/bnddury,bndconvp/bndconvy,参数很多,不再一一记录,如果老师课件来了,可以试试练习一下。 4.今天讲的作重要的一个是instrument collection.函数是InstSet = instaddfield('FieldName', FieldList, 'Data',DataList, 'Type', TypeString),其实可以看成构造一个结构体,fieldname的参数FieldList定义了结构体有几个属性,Data的参数Datalist则是给这些属性具体的数值,Type参数TypeString其实质是对这个结构的一次扩展,或者可以看成是这个结构体的命名,不同的结构体有不同的属性,但是因为属性值数量,可以用一个参数处理,应该可以这样理解。String specifying the type of instrument added. Instruments of different types can have different Fieldname collections. 5.利率期限结构的息票分离方法。这个东西没有课件,现在都不知道搞什么的了,下次再说了。