攤還、本金與利息

Python 金融概念入門

Dakota Wixom

Quantitative Finance Analyst

攤還

本金(淨值):你已償還、可計入房屋本身價值的房貸金額

利息支付(${IP}_{Periodic}$)

          $ = RMB * R_{Periodic} $

本金支付(${PP}_{Periodic}$)

    $ = {MP}_{Periodic} - {IP}_{Periodic} $

  • PP:Principal Payment(本金支付)
  • MP:Mortgage Payment(房貸月付)
  • IP:Interest Payment(利息支付)
  • R:Mortgage Interest Rate(每期利率)
  • RMB:Remaining Mortgage Balance(剩餘房貸本金)
Python 金融概念入門

在 Python 中用 for 迴圈累加數值

範例:

accumulator = 0
for i in range(3):
    if i == 0: 
        accumulator = accumulator + 3 
    else:
        accumulator = accumulator + 1
    print(str(i)+": Loop value: "+str(accumulator))
0: Loop value: 3
1: Loop value: 4
2: Loop value: 5
Python 金融概念入門

一起來練習吧!

Python 金融概念入門

Preparing Video For Download...