-
Compound Interest Part 1 6
-
Lecture1.1
-
Lecture1.2
-
Lecture1.3
-
Lecture1.4
-
Lecture1.5
-
Lecture1.6
-
-
Compound Interest Part 2 3
-
Lecture2.1
-
Lecture2.2
-
Lecture2.3
-
-
Present Value 4
-
Lecture3.1
-
Lecture3.2
-
Lecture3.3
-
Lecture3.4
-
-
Annuities 6
-
Lecture4.1
-
Lecture4.2
-
Lecture4.3
-
Lecture4.4
-
Lecture4.5
-
Lecture4.6
-
-
Perpetuities 2
-
Lecture5.1
-
Lecture5.2
-
-
Bonds 6
-
Lecture6.1
-
Lecture6.2
-
Lecture6.3
-
Lecture6.4
-
Lecture6.5
-
Lecture6.6
-
-
Dividend Discount Model 3
-
Lecture7.1
-
Lecture7.2
-
Lecture7.3
-
-
Risk 8
-
Lecture8.1
-
Lecture8.2
-
Lecture8.3
-
Lecture8.4
-
Lecture8.5
-
Lecture8.6
-
Lecture8.7
-
Lecture8.8
-
-
Capital Asset Pricing Model 6
-
Lecture9.1
-
Lecture9.2
-
Lecture9.3
-
Lecture9.4
-
Lecture9.5
-
Lecture9.6
-
Introduction
Compound Interest¶
When you store money at a bank, you can expect that each year you will gain a percent of your holdings as interest. These holdings, however, include any interest earned up until this point which means you earn interest on your interest. This is the idea of compound interest; you will earn more in interest each year as your holdings increase. To illustrate this point, let’s work through an example year by year. Say you start with \$100 in a bank account which gives you an annual rate of 5%. The principal at time 0 is \\$100 which earns 5% interest meaning the principal in time 1 will now be \$150.
In [1]:
p = 100
print("The starting principal is ${}".format(p))
interest = p * .05
print("The interest earned is: ${}".format(interest))
p = p + interest
print("The ending principal is ${}".format(p))
The starting principal is $100
The interest earned is: $5.0
The ending principal is $105.0
Now, the next year we make interest on the $105.
In [2]:
print("The starting principal is ${}".format(p))
interest = p * .05
print("The interest earned is: ${}".format(interest))
p = p + interest
print("The ending principal is ${}".format(p))
The starting principal is $105.0
The interest earned is: $5.25
The ending principal is $110.25
Let's formalize this into a loop to see the effect over the next couple of years.
In [3]:
p = 100
r = .05
for t in range(1,6):
print("----Year {}----".format(t))
print("Starting Principal: ${}".format(p))
interest = p * .05
print("Interest Earned: ${}".format(interest))
p = p + interest
print("Ending Principal: ${}".format(p))
print("---------------")
print()
print()
----Year 1----
Starting Principal: $100
Interest Earned: $5.0
Ending Principal: $105.0
---------------
----Year 2----
Starting Principal: $105.0
Interest Earned: $5.25
Ending Principal: $110.25
---------------
----Year 3----
Starting Principal: $110.25
Interest Earned: $5.5125
Ending Principal: $115.7625
---------------
----Year 4----
Starting Principal: $115.7625
Interest Earned: $5.788125000000001
Ending Principal: $121.550625
---------------
----Year 5----
Starting Principal: $121.550625
Interest Earned: $6.07753125
Ending Principal: $127.62815624999999
---------------
Next
Basics