BaşlayınÜcretsiz Başlayın

Pricing zero coupon bonds

You have seen that the price of a zero coupon bond is simply the PV of a single cash-flow in the future. How much that single cash-flow is worth today will depend on how far it is into the future and what interest rate (yield) you discount it at. We will investigate this now.

To do this, you are going to price a zero coupon bond with a three year maturity and yield of 5% per year. Then you will change the maturity and yield and see how these factors affect the price.

In this exercise, you are going to work directly with the compound interest formula instead of using the npf.pv() function.

Recall that our PV formula is \(PV = \frac{FV}{(1 + r)^n}\)

Bu egzersiz

Bond Valuation and Analysis in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Calculate price of a 3 year 5% yield zero coupon bond
price_1 = ____

# Print the result
print("3 year 5% yield ZCB: ", ____)
Kodu Düzenle ve Çalıştır