NumPy

8 tutorials Updated 17 Apr 2020

  1. 1 Calculating Future Value of an Investment using Python and numpy The fv() method of Python library numpy calculates the future value for a series of payments. The Python examples calculates future values for sequence of payments which are made either at the beginning or at the end of each period. 20 Mar 2019
  2. 2 Calculating IRR using Python and numpy IRR is the discount rate that makes the NPV equal to zero. numpy.irr() returns the IRR for a series of cash flows. The Python example calculates the IRR for an investment with an initial cash outflow and four cash inflows. 20 Mar 2019
  3. 3 Calculating MIRR (Modified Internal Rate of Return) Using Python And Numpy MIRR - The Modified Internal Rate of Return assumes two discount rates while calculating the net present value of the cash flows of an investment. When the cash flow is negative MIRR applies the rate of financing and if the cash flow is positive MIRR applies the rate of reinvestment. 17 Apr 2020
  4. 4 Calculating net present value-npv using Python and numpy Net present value calculation involves finding the present value of each cash flow at the specific discount rate and summing them together. The Python example uses numpy.npv() function to examine and decide whether an investment is profitable. 20 Mar 2019
  5. 5 Calculating the duration to complete a loan The number of periodic payments to be made towards an existing loan can be calculated using the nper() function of numpy with the values of interest rate, outstanding loan amount and the periodic payment amount . 17 Apr 2020
  6. 6 Calculating monthly repayment instalment for a loan using Python and numpy The pmt() function in numpy computes the monthly repayment amount for a given loan. The returned amount includes both principal and interest components. The Python example uses pmt() for calculating repayment for a 20 years loan, with an annual interest rate of 8.35 percent. 20 Mar 2019
  7. 7 Calculating principal and interest payments for a loan using Python and numpy The numpy functions ppmt() and ipmt() calculate the amount of principal payment and interest payment for a given loan. The Python example calculates the principal and interest components and adds them together. 21 Mar 2019
  8. 8 Calculating Present Value of Cashflows using Python And Numpy The numpy.pv() function finds the present value of one or more future cashflows by using the parameters interest rate, number of periods and compounding frequency. The first python example program finds the present value of a future lump sum and the second example finds the present value of a set of future cashflows and a lump sum. 20 Mar 2019