MulaiMulai sekarang secara gratis

Impact of coupons on price

You have looked at how changing the yield to maturity of a bond has a big impact on its price. Changing the coupon, i.e., the amount of money the bond pays in each period, can also have an impact on the bond's price. This is what you are going to investigate now by comparing bonds with high and low coupons.

numpy_financial has already been imported for you as npf.

Latihan ini adalah bagian dari kursus

Bond Valuation and Analysis in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Find the price of a 10 year bond with 2% coupon and 4% yield
bond_coupon_2 = -npf.pv(rate=____, nper=____, pmt=____, fv=____)

# Print the result
print("2% Coupon Price: ", ____)
Edit dan Jalankan Kode