Financial Derivatives Toolbox    

Interest Rate Term Conversions

Interest rate evolution is typically represented by a set of interest rates, including the beginning and end of the periods the rates apply to. For zero rates, the start dates are typically at the valuation date, with the rates extending from that valuation date until their respective maturity dates.

Calculating Rates Applicable to Different Periods

Frequently, given a set of rates including their start and end dates, you may be interested in finding the rates applicable to different terms (periods). This problem is addressed by the function ratetimes. This function interpolates the interest rates given a change in the original terms. The syntax for calling ratetimes is

where:

The input arguments to this function can be separated into two groups:

As an example, consider the rate table specified earlier.

From
To
Rate
15 Feb 2000
15 Aug 2000
0.05
15 Feb 2000
15 Feb 2001
0.056
15 Feb 2000
15 Aug 2001
0.06
15 Feb 2000
15 Feb 2002
0.065
15 Feb 2000
15 Aug 2002
0.075

Assuming that the valuation date is February 15, 2000, these rates represent zero coupon bond rates with maturities specified in the second column. Use the function ratetimes to calculate the spot rates at the beginning of all periods implied in the table. Assume a compounding value of 2.

Place these values in a table similar to the one above. Observe the evolution of the spot rates based on the initial zero coupon rates.

From
To
Rate
15 Feb 2000
15 Aug 2000
0.0500
15 Aug 2000
15 Feb 2001
0.0620
15 Feb 2001
15 Aug 2001
0.0680
15 Aug 2001
15 Feb 2002
0.0801
15 Feb 2002
15 Aug 2002
0.1155

Alternative Syntax (ratetimes)

The additional output arguments StartTimes and EndTimes represent the time factor equivalents to the StartDates and EndDates vectors. As with the functions disc2rate and rate2disc, ratetimes uses time factors for interpolating the rates. These time factors are calculated from the start and end dates, and the valuation date, which are passed as input arguments. ratetimes also has an alternate syntax that uses time factors directly, and assumes time = 0 as the valuation date. This alternate syntax is

Use this alternate version of ratetimes to find the spot rates again. In this case, you must first find the time factors of the reference curve. Use date2time for this.

These are the expected values, given semiannual discounts (as denoted by a value of 2 in the variable Compounding), end dates separated by six-month periods, and the valuation date equal to the date marking beginning of the first period (time factor = 0).

Now call ratetimes with the alternate syntax.

EndTimes and StartTimes have, as expected, the same values they had as input arguments.


  Interest Rates vs. Discount Factors Interest Rate Term Structure