Sub topic 1
What an Interest Rate Represents
Prerequisites
This chapter assumes you can solve for an unknown in an exponent equation, work with percentages as decimals, and use Python 3 to run short scripts. A financial calculator or spreadsheet is helpful but not required.
What an interest rate represents
An interest rate is the return a investor requires for giving up money today. It plays three roles:
- Required return: the minimum gain that justifies an investment's risk.
- Discount rate: the rate used to convert future cash into today's value.
- Opportunity cost: the return forgone by choosing one option over another.
Future and present value of a single cash flow
Future value (FV) is what a sum grows to at rate r after n periods. Present value (PV) is the reverse: it discounts a future sum back to today.
def future_value(pv, rate, periods):
return pv * (1 + rate) ** periods
def present_value(fv, rate, periods):
return fv / (1 + rate) ** periods
print(round(future_value(1000, 0.05, 10), 2)) # 1628.89
print(round(present_value(1628.89, 0.05, 10), 2)) # 1000.0Compounding frequency and stated rates
A stated annual rate is quoted before compounding. With m compounding periods per year, each period earns stated rate divided by m.
> Note: the stated rate is not the true annual cost or yield. Compounding more often raises the real return.
Effective annual rate
The effective annual rate (EAR) is the annual rate that produces the same result as the stated rate with its compounding. The formula is EAR = (1 + stated rate / m)^m − 1.
def effective_annual_rate(stated_rate, periods_per_year):
return (1 + stated_rate / periods_per_year) ** periods_per_year - 1
print(round(effective_annual_rate(0.12, 12), 6)) # 0.126825Annuities and annuities due
An annuity is a series of equal payments at regular intervals. In an ordinary annuity, payments occur at the end of each period. In an annuity due, they occur at the beginning, so each payment is discounted one period less. An annuity due is worth the ordinary annuity multiplied by (1 + r).
def pv_ordinary_annuity(payment, rate, periods):
return payment * (1 - (1 + rate) ** -periods) / rate
def pv_annuity_due(payment, rate, periods):
return pv_ordinary_annuity(payment, rate, periods) * (1 + rate)
print(round(pv_ordinary_annuity(100, 0.05, 3), 2)) # 272.32
print(round(pv_annuity_due(100, 0.05, 3), 2)) # 285.94Exercise
What is the future value of $1,000 invested at 5% per year for 10 years, compounded annually?
Show answer
$1,628.89, from 1000 × 1.05^10.