开始使用免费开始使用

票息对价格的影响

您已经看到,改变债券的到期收益率会对其价格产生较大影响。改变票息(即每期债券支付的金额)同样会影响债券价格。接下来,您将通过比较高票息与低票息的债券来研究这一点。

numpy_financial 已为您导入并命名为 npf

本练习是课程的一部分

用 Python 进行债券定价与分析

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# 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: ", ____)
编辑并运行代码