地板
Black-Karasinski利率树的价格地板仪器
描述
例子
使用黑色 - 卡拉辛斯基利率树(Black-karasinski)的价格为3%的地板仪器
加载文件deriv.mat
,提供BKTree
。这BKTree
结构你recontains the time and interest rate information needed to price the floor instrument.
加载deriv.mat;
Set the required values. Other arguments will use defaults.
罢工= 0.03;定居='01-Jan-2004';成熟度='01 -Jan-2007';
Use地板
至compute the price of the floor instrument.
Price = floorbybk(BKTree, Strike, Settle, Maturity)
Price = 0.2061
使用BK型号计算摊销和香草地板的价格
加载deriv.mat
至specify theBKTree
一个nd then define the floor instrument.
加载deriv.mat;定居='01-Jan-2004';成熟度='01 -Jan-2008';Strike = 0.045; Reset = 1; Principal ={{'01-Jan-2005'100;'01-Jan-2006'60;'01 -Jan-2007'30;'01 -Jan-2008'30};...100};
给摊销和香草地板定价。
Basis = 1; Price = floorbybk(BKTree, Strike, Settle, Maturity, Reset, Basis, Principal)
Price =2×12.2000 2.5564
输入参数
BKTree
-利率树结构
结构你re
利率树结构,通过使用Bktree
。
数据类型:结构
Strike
-行使帽的比率
小数
行使上限的比率,指定为NINST
-by-1
向量of decimal values.
数据类型:双倍的
定居
-地板定居日期
serial date number|date character vector|cell array of date character vectors
定居ment date for the floor, specified as aNINST
-by-1
串行日期数或日期字符向量的向量。这定居
每个楼层的日期设置为ValuationDate
of the BK tree. The floor argument定居
被忽略。
数据类型:双倍的
|char
|cell
到期
-地板的成熟日期
serial date number|date character vector|cell array of date character vectors
地板的到期日期,指定为NINST
-by-1
串行日期数或日期字符向量的向量。
数据类型:双倍的
|char
|cell
reset
-reset frequency payment per year
1
(默认)|n你meric
(可选)每年重置频率付款,指定为NINST
-by-1
向量。
数据类型:双倍的
Basis
-Day-count basis of instrument
0
((一个ctual/actual)(默认)|整数来自0
至13
((Optional) Day-count basis representing the basis used when annualizing the input forward rate, specified as aNINST
-by-1
整数向量。
0 =实际/实际/实际
1 = 30/360(SIA)
2= actual/360
3 =实际/365
4 = 30/360 (PSA)
5 = 30/360(ISDA)
6 = 30/360(欧洲)
7 =实际/365(日语)
8 =实际/实际(ICMA)
9 = actual/360 (ICMA)
10 =实际/365(ICMA)
11= 30/360E (ICMA)
12 =实际/365(ISDA)
13= BUS/252
Formore information, seeBasis。
数据类型:双倍的
Principal
-名义本金
100
(默认)|n你meric
(可选)名义本金,指定为NINST
-by-1
名义本金金额或NINST
-by-1
单元阵列,每个元素都是NumDates
-by-2
单元阵列第一列是日期,第二列是关联的主量。日期表示主值有效的最后一天。
UsePrincipal
至pass a schedule to compute the price for an amortizing floor.
数据类型:双倍的
|cell
选项
-Derivatives pricing options structure
结构你re
(可选)衍生品定价选项结构,使用derivset
。
数据类型:结构
输出参数
Price
- 时间0的预期价格0
向量
时间0时地板的预期价格,返回NINST
-by-1
向量。
Pricetree
-Tree structure with values of floor at each node
向量
树结构在每个节点处有地板值,返回为MATLAB®每个节点的树木的结构和仪器价格向量和观察时间的向量:
pricetree.ptree
contains floor prices.pricetree.tobs
包含观察时间。Pricetree。Connect
contains the connectivity vectors. Each element in the cell array describes how nodes in that level connect to the next. For a given tree level, there are发麻
向量中的元素,它们在中间分支连接到的下一个级别上包含节点的索引。从该值中减去1表示上支链接连接到何处,并添加1表示向下分支在何处连接到的位置。Pricetree.probs
包含概率数组。单元阵列的每个元素都包含级别每个节点的向上,中和下过渡概率。
更多关于
Floor
一个flooris a contract that includes a guarantee setting the minimum interest rate to be received by the holder, based on an otherwise floating interest rate.
这payoff for a floor is:
版本历史记录
Abrir Ejemplo
Tiene unaversiónmodificada de esjemplo。„ Desea abrir este ejemplo con s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s s ejemplo?
Comando de Matlab
Ha Hecho Clic en ener eNRACE que对应了este comando de matlab:
Ejecute El Comando介绍了comandos de Matlab。Los Navegadores Web no Anditen comandos de Matlab。
You can also select a web site from the following list:
如何获得最佳网站性能
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
美洲
- 一个mérica Latina((Español)
- 加拿大(英语)
- 大学ted States(英语)