MathWorks Machine Translation
The automated translation of this page is provided by a general purpose third party translator tool.
MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.
Price bonds with embedded options by Black-Karasinski interest-rate tree
[Price,PriceTree]
= optembndbybk(BKTree,CouponRate,Settle,Maturity,OptSpec,Strike,ExerciseDates)
[Price,PriceTree]
= optembndbybk(___,Name,Value)
[
calculates
price for bonds with embedded options from a Black-Karasinski interest-rate
tree.Price
,PriceTree
]
= optembndbybk(BKTree
,CouponRate
,Settle
,Maturity
,OptSpec
,Strike
,ExerciseDates
)
optembndbybk
computes prices of vanilla bonds
with embedded options, stepped coupon bonds with embedded options,
and bonds with sinking fund option provisions. For more information,
see Definitions.
[
adds
optional name-value pair arguments.Price
,PriceTree
]
= optembndbybk(___,Name,Value
)
Create a BKTree
with the following data:
ZeroRates = [ 0.035;0.04;0.045]; Compounding = 1; StartDates = ['jan-1-2007';'jan-1-2008';'jan-1-2009']; EndDates = ['jan-1-2008';'jan-1-2009';'jan-1-2010']; ValuationDate = 'jan-1-2007';
Create a RateSpec
.
RateSpec = intenvset('Rates', ZeroRates, 'StartDates', ValuationDate, 'EndDates', ... EndDates, 'Compounding', Compounding, 'ValuationDate', ValuationDate)
RateSpec = struct with fields:
FinObj: 'RateSpec'
Compounding: 1
Disc: [3×1 double]
Rates: [3×1 double]
EndTimes: [3×1 double]
StartTimes: [3×1 double]
EndDates: [3×1 double]
StartDates: 733043
ValuationDate: 733043
Basis: 0
EndMonthRule: 1
Create a VolSpec
.
VolDates = ['jan-1-2008';'jan-1-2009';'jan-1-2010']; VolCurve = 0.01; AlphaDates = 'jan-1-2010'; AlphaCurve = 0.1; BKVolSpec = bkvolspec(ValuationDate, VolDates, VolCurve, AlphaDates, AlphaCurve)
BKVolSpec = struct with fields:
FinObj: 'BKVolSpec'
ValuationDate: 733043
VolDates: [3×1 double]
VolCurve: [3×1 double]
AlphaCurve: 0.1000
AlphaDates: 734139
VolInterpMethod: 'linear'
Create a TimeSpec
.
BKTimeSpec = bktimespec(ValuationDate, EndDates, Compounding);
Build the BKTree
.
BKTree = bktree(BKVolSpec, RateSpec, BKTimeSpec)
BKTree = struct with fields:
FinObj: 'BKFwdTree'
VolSpec: [1×1 struct]
TimeSpec: [1×1 struct]
RateSpec: [1×1 struct]
tObs: [0 1 2]
dObs: [733043 733408 733774]
CFlowT: {[3×1 double] [2×1 double] [3]}
Probs: {[3×1 double] [3×3 double]}
Connect: {[2] [2 3 4]}
FwdTree: {[1.0350] [1.0458 1.0450 1.0442] [1.0571 1.0561 1.0551 1.0541 1.0531]}
To compute the price of an American puttable bond that pays an annual coupon of 5.25% , matures on January 1, 2010, and is callable on January 1, 2008 and January 1, 2010.
BondSettlement = 'jan-1-2007'; BondMaturity = 'jan-1-2010'; CouponRate = 0.0525; Period = 1; OptSpec = 'put'; Strike = [100]; ExerciseDates = {'jan-1-2008' '01-Jan-2010'}; AmericanOpt = 1; PricePutBondBK = optembndbybk(BKTree, CouponRate, BondSettlement, BondMaturity,... OptSpec, Strike, ExerciseDates,'Period', 1, 'AmericanOpt', 1)
PricePutBondBK = 102.3820
Price the following single stepped callable bonds using the following data: The data for the interest rate term structure is as follows:
Rates = [0.035; 0.042147; 0.047345; 0.052707]; ValuationDate = 'Jan-1-2010'; StartDates = ValuationDate; EndDates = {'Jan-1-2011'; 'Jan-1-2012'; 'Jan-1-2013'; 'Jan-1-2014'}; Compounding = 1; % Create RateSpec RS = intenvset('ValuationDate', ValuationDate, 'StartDates', StartDates,... 'EndDates', EndDates,'Rates', Rates, 'Compounding', Compounding); % Instrument Settle = '01-Jan-2010'; Maturity = {'01-Jan-2013';'01-Jan-2014'}; CouponRate = {{'01-Jan-2012' .0425;'01-Jan-2014' .0750}}; OptSpec='call'; Strike=100; ExerciseDates='01-Jan-2012'; %Callable in two years % Build the tree with the following data VolDates = ['1-Jan-2011'; '1-Jan-2012'; '1-Jan-2013'; '1-Jan-2014']; VolCurve = 0.01; AlphaDates = '01-01-2014'; AlphaCurve = 0.1; BKVolSpec = bkvolspec(RS.ValuationDate, VolDates, VolCurve,... AlphaDates, AlphaCurve); BKTimeSpec = bktimespec(RS.ValuationDate, VolDates, Compounding); BKT = bktree(BKVolSpec, RS, BKTimeSpec); % The first row corresponds to the price of the callable bond with maturity % of three years. The second row corresponds to the price of the callable bond % with maturity of four years. PBK= optembndbybk(BKT, CouponRate, Settle, Maturity ,OptSpec, Strike,... ExerciseDates, 'Period', 1)
PBK =
100.0945
100.0945
BKTree
— Interest-rate tree structureInterest-rate tree structure, specified by using bktree
.
Data Types: struct
CouponRate
— Bond coupon rate Bond coupon rate, specified as an NINST
-by-1
decimal
annual rate or NINST
-by-1
cell
array, where each element is a NumDates
-by-2
cell
array. The first column of the NumDates
-by-2
cell
array is dates and the second column is associated rates. The date
indicates the last day that the coupon rate is valid.
Data Types: double
| cell
Settle
— Settlement dateSettlement date for the bond option, specified as a NINST
-by-1
vector
of serial date numbers or date character vectors.
Note:
The |
Data Types: double
| char
Maturity
— Maturity dateMaturity date, specified as an NINST
-by-1
vector
of serial date numbers or date character vectors.
Data Types: double
| char
OptSpec
— Definition of option 'call'
or 'put'
| cell array of character vectors with values 'call'
or 'put'
Definition of option, specified as a NINST
-by-1
cell
array of character vectors.
Data Types: char
Strike
— Option strike price valuesOption strike price value, specified as a NINST
-by-1
or NINST
-by-NSTRIKES
depending
on the type of option:
European option — NINST
-by-1
vector
of strike price values.
Bermuda option — NINST
by
number of strikes (NSTRIKES
) matrix of strike price
values. Each row is the schedule for one option. If an option has
fewer than NSTRIKES
exercise opportunities, the
end of the row is padded with NaN
s.
American option — NINST
-by-1
vector
of strike price values for each option.
Data Types: double
ExerciseDates
— Option exercise datesOption exercise dates, specified as a NINST
-by-1
, NINST
-by-2
,
or NINST
-by-NSTRIKES
using serial
date numbers or date character vectors, depending on the type of option:
For a European option, use a NINST
-by-1
vector
of dates. For a European option, there is only one ExerciseDates
on
the option expiry date.
For a Bermuda option, use a NINST
-by-NSTRIKES
vector
of dates.
For an American option, use a NINST
-by-2
vector
of exercise date boundaries. The option can be exercised on any date
between or including the pair of dates on that row. If only one non-NaN
date
is listed, or if ExerciseDates
is a NINST
-by-1
vector,
the option can be exercised between ValuationDate
of
the stock tree and the single listed ExerciseDates
.
Data Types: double
| char
Specify optional comma-separated pairs of Name,Value
arguments.
Name
is the argument
name and Value
is the corresponding
value. Name
must appear
inside single quotes (' '
).
You can specify several name and value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.
Price = optembndbybk(BKTree,CouponRate,Settle,Maturity,OptSpec,Strike,ExerciseDates,'Period',1,'AmericanOp',1)
'AmericanOpt'
— Option type0
European/Bermuda (default) | integer with values 0
or 1
Option type, specified as NINST
-by-1
positive
integer flags with values:
0
— European/Bermuda
1
— American
Data Types: double
'Period'
— Coupons per year2
per year (default) | vectorCoupons per year, specified as an NINST
-by-1
vector.
Data Types: double
'Basis'
— Day-count basis0
(actual/actual) (default) | integer from 0
to 13
Day-count basis, specified as a NINST
-by-1
vector
of integers.
0 = actual/actual
1 = 30/360 (SIA)
2 = actual/360
3 = actual/365
4 = 30/360 (PSA)
5 = 30/360 (ISDA)
6 = 30/360 (European)
7 = actual/365 (Japanese)
8 = actual/actual (ICMA)
9 = actual/360 (ICMA)
10 = actual/365 (ICMA)
11 = 30/360E (ICMA)
12 = actual/365 (ISDA)
13 = BUS/252
For more information, see basis.
Data Types: double
'EndMonthRule'
— End-of-month rule flag1
(in effect) (default) | nonnegative integer with values 0
or 1
End-of-month rule flag is specified as a nonnegative integer
using a NINST
-by-1
vector. This
rule applies only when Maturity
is an end-of-month
date for a month having 30 or fewer days.
0
= Ignore rule, meaning that a
bond coupon payment date is always the same numerical day of the month.
1
= Set rule on, meaning that a
bond coupon payment date is always the last actual day of the month.
Data Types: double
'IssueDate'
— Bond issue dateBond issue date, specified as an NINST
-by-1
vector
using serial date numbers or date character vectors.
Data Types: double
| char
'FirstCouponDate'
— Irregular first coupon dateIrregular first coupon date, specified as an NINST
-by-1
vector
using serial date numbers or date character vectors.
When FirstCouponDate
and LastCouponDate
are
both specified, FirstCouponDate
takes precedence
in determining the coupon payment structure. If you do not specify
a FirstCouponDate
, the cash flow payment dates
are determined from other inputs.
Data Types: double
| char
'LastCouponDate'
— Irregular last coupon dateIrregular last coupon date, specified as a NINST
-by-1
vector
using serial date numbers or date character vectors.
In the absence of a specified FirstCouponDate
,
a specified LastCouponDate
determines the coupon
structure of the bond. The coupon structure of a bond is truncated
at the LastCouponDate
, regardless of where it falls,
and is followed only by the bond's maturity cash flow date. If you
do not specify a LastCouponDate
, the cash flow
payment dates are determined from other inputs.
Data Types: char
| double
'StartDate'
— Forward starting date of paymentsForward starting date of payments (the date from which a bond
cash flow is considered), specified as a NINST
-by-1
vector
using serial date numbers or date character vectors.
If you do not specify StartDate
, the effective
start date is the Settle
date.
Data Types: char
| double
'Face'
— Face value100
(default) | nonnegative value | cell array of nonnegative valuesFace or par value, specified as anNINST
-by-1
vector.
Data Types: double
'Options'
— Derivatives pricing optionsDerivatives pricing options, specified as structure that is
created with derivset
.
Data Types: struct
Price
— Expected prices of embedded option at time 0
Expected price of the embedded option at time 0
,
returned as a NINST
-by-1
matrix.
PriceTree
— Structure containing trees of vectors of instrument prices and accrued interest for each nodeStructure containing trees of vectors of instrument prices and accrued interest, and a vector of observation times for each node. Values are:
PriceTree.PTree
contains the clean
prices.
PriceTree.tObs
contains the observation
times.
A vanilla coupon bond is a security representing an obligation to repay a borrowed amount at a designated time and to make periodic interest payments until that time.
The issuer of a bond makes the periodic interest payments until the bond matures. At maturity, the issuer pays to the holder of the bond the principal amount owed (face value) and the last interest payment. A vanilla bond with an embedded option is where an option contract has an underlying asset of a vanilla bond.
A step-up and step-down bond is a debt security with a predetermined coupon structure over time.
With these instruments, coupons increase (step up) or decrease (step down) at specific times during the life of the bond. Stepped coupon bonds can have options features (call and puts).
A sinking fund bond is a coupon bond with a sinking fund provision.
This provision obligates the issuer to amortize portions of the principal prior to maturity, affecting bond prices since the time of the principal repayment changes. This means that investors receive the coupon and a portion of the principal paid back over time. These types of bonds reduce credit risk, since it lowers the probability of investors not receiving their principal payment at maturity.
The bond may have a sinking fund option provision allowing the issuer to retire the sinking fund obligation either by purchasing the bonds to be redeemed from the market or by calling the bond via a sinking fund call, whichever is cheaper. If interest rates are high, then the issuer will buy back the requirement amount of bonds from the market since bonds will be cheap, but if interest rates are low (bond prices are high), then most likely the issuer will be buying the bonds at the call price. Unlike a call feature, however, if a bond has a sinking fund option provision, it is an obligation, not an option, for the issuer to buy back the increments of the issue as stated. Because of this, a sinking fund bond trades at a lower price than a non-sinking fund bond.
bkprice
| bktree
| cfamounts
| instoptembnd
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
You can also select a location from the following list: