Interest-Discount Relationships¶
The relationship between interest rates and discount rates can be expressed with a variety of equations. One thing to keep in mind is that if we borrow a dollar at time a discount rate of , we will receive dollars today.
If we were to hold invest that dollar for a year at the interest rate , it would grow to:
This relationship can be generalized to apply between two time periods, and :
In the age of hand calculations, several other equations have been useful:
Examples¶
TmVal’s Rate
class provides a built-in method to convert interest rates to discount rates and vice-versa. These are simple functions, but are very useful as they tend to be embedded in more complex financial instruments.
Suppose the interest rate is 5%, what is the discount rate?
First, we define a compound effective rate using the Rate
class. Then, we use the method convert_rate()
to convert the rate to a discount rate:
In [1]: from tmval import Rate
In [2]: i = Rate(.05)
In [3]: d = i.convert_rate(
...: pattern='Effective Discount',
...: interval=1
...: )
...:
In [4]: print(d)
Pattern: Effective Discount
Rate: 0.04761904761904767
Unit of time: 1 year
Again using convert_rate()
, we can convert the discount rate back to an interest rate:
In [5]: from tmval import Rate
In [6]: i = d.convert_rate(
...: pattern='Effective Interest',
...: interval=1
...: )
...:
In [7]: print(i)
Pattern: Effective Interest
Rate: 0.050000000000000044
Unit of time: 1 year