Finance[BasisPointSensitivity] - return the basis point sensitivity of future cash flows
|
Calling Sequence
|
|
BasisPointSensitivity(cashflows, discount, opts)
BasisPointSensitivity(swap, discount, opts)
|
|
Parameters
|
|
cashflows
|
-
|
data structure created using the SimpleCashFlow constructor or a list of such data structures; cash flows
|
swap
|
-
|
cash flow swap or interest rate swap data structure; swap
|
discount
|
-
|
non-negative constant or a yield term structure; discount rate
|
opts
|
-
|
equations of the form option = sensitivity where option is one of referencedate or daycounter; specify options for the BasisPointSensitivity command
|
|
|
|
|
Description
|
|
•
|
The BasisPointSensitivity(cashflows, discount, opts) calling sequence returns the basis point sensitivity for the future cash flows discounted with respect to the given discount rate.
|
•
|
The BasisPointSensitivity(swap, discount, opts) calling sequence returns a list containing the basis point sensitivities of the paying leg and the receiving leg of the given swap.
|
•
|
Note that the result is returned in basis points, that is in 1/100th of 1%.
|
|
|
Options
|
|
•
|
daycounter = a name representing a supported day counter (e.g. ISDA, Simple) or a day counter data structure created using the DayCounter constructor -- This option provides a day counter that will be used to convert the period between two dates to a fraction of the year.
|
•
|
referencedate = a string containing a date specification in a format recognized by ParseDate or a date data structure -- This option specifies the reference date, that is, the date when the discount factor is 1. By default this is set to the global evaluation date (see EvaluationDate).
|
|
|
Compatibility
|
|
•
|
The Finance[BasisPointSensitivity] command was introduced in Maple 15.
|
|
|
Examples
|
|
>
|
|
First set the global evaluation date.
>
|
|
>
|
|
| (1) |
Calculate the basis point sensitivity of 100 dollars to be paid on January 2, 2007.
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
Here is another example.
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
Compute the sensitivity of this cash flow on January 1, 2005.
>
|
|
| (11) |
The following example computes the basis point sensitivity for an interest rate swap.
>
|
|
>
|
|
| (12) |
Consider two payment schedules. The first one consists of payments of 5% of the nominal every month between January 3, 2008 and January 3, 2018. The second one consists of payments of 3% of the nominal every quarter between January 3, 2010 and January 3, 2015.
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
Consider two simple swaps that exchange the first set of payments for the second set.
>
|
|
| (17) |
>
|
|
| (18) |
Compute the basis point sensitivity.
>
|
|
| (19) |
>
|
|
| (20) |
Here is the set of cash flows for the paying leg of each swap.
>
|
|
>
|
|
Here is the set of cash flows for the receiving leg.
>
|
|
| (21) |
>
|
|
| (22) |
>
|
|
| (23) |
>
|
|
| (24) |
>
|
|
| (25) |
>
|
|
| (26) |
|
|
See Also
|
|
Finance[CompoundFactor], Finance[DayCounter], Finance[DiscountFactor], Finance[FixedRateCoupon], Finance[InArrearIndexedCoupon], Finance[InterestRateSwap], Finance[ParCoupon], Finance[ParseDate], Finance[SimpleCashFlow], Finance[Swap], Finance[UpFrontIndexedCoupon], Finance[ZeroCurve]
|
|