numpy.irr

numpy.irr(values)

Return the Internal Rate of Return (IRR).

This is the rate of return that gives a net present value of 0.0.

Parameters:

values : array_like, shape(N,)

Input cash flows per time period. At least the first value would be negative to represent the investment in the project.

Returns:

out : float

Internal Rate of Return for periodic input values.

Examples

>>> np.irr([-100, 39, 59, 55, 20])
0.2809484211599611

Previous topic

numpy.ipmt

Next topic

numpy.mirr

This Page

Quick search