필터 지우기
필터 지우기

How do I get Svensson parameters

조회 수: 3 (최근 30일)
Nuno
Nuno 2012년 7월 8일
답변: Kathy 2017년 6월 9일
Hi,
How do I get Svensson parameters from fitSvensson function?
Thank you,
Nuno

답변 (2개)

Luiz Fernando Carnot R de Almeida
Luiz Fernando Carnot R de Almeida 2013년 12월 23일
Nuno,
You can retrieve these parameters through the attribute "Parameters" of the model. Check the code presented below (taken from Mathworks' URL http://www.mathworks.com/help/fininst/fitsvenssonirfunctioncurve.html)
Settle = repmat(datenum('30-Apr-2008'),[6 1]);
Maturity = [datenum('07-Mar-2009');datenum('07-Mar-2011');...
datenum('07-Mar-2013');datenum('07-Sep-2016');...
datenum('07-Mar-2025');datenum('07-Mar-2036')];
CleanPrice = [100.1;100.1;100.8;96.6;103.3;96.3];
CouponRate = [0.0400;0.0425;0.0450;0.0400;0.0500;0.0425];
Instruments = [Settle Maturity CleanPrice CouponRate];
PlottingPoints = datenum('07-Mar-2009'):180:datenum('07-Mar-2036');
Yield = bndyield(CleanPrice,CouponRate,Settle,Maturity);
SvenssonModel = IRFunctionCurve.fitSvensson('Zero',datenum('30-Apr-2008'),Instruments);
SvenssonModel.Parameters
ans =
0.0002 3.7616 -24.5489 34.3165 10.8867 11.9282
What I can't tell you (I am trying to figure it out) is what parameters corresponds to each of the Betas and Taus.
Merry Christmas!
Fernando
  댓글 수: 2
Mabelle
Mabelle 2014년 3월 16일
Hi, plz i am having the same problem and i tried typing the previous code but i get the following message: ??? No appropriate method, property, or field Parameters for class IRFunctionCurve.
Any ideas? Thank you!
Gokturk
Gokturk 2014년 3월 26일
Hi,I used the same example and tried to get the parameters. But I got the same error. 'No appropriate method, property, or field Parameters for class IRFunctionCurve'. Can you pls help me

댓글을 달려면 로그인하십시오.


Kathy
Kathy 2017년 6월 9일
Fernando, the order of the parameters is: [b1 b2 b3 b4 t1 t2]

카테고리

Help CenterFile Exchange에서 Price and Analyze Financial Instruments에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by