This is documentation for an old release of NumPy (version 1.3.). Read this page in the documentation of the latest stable release (version > 1.17).
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,)
|
---|---|
Returns: | out : float
|
Examples
>>> np.irr([-100, 39, 59, 55, 20])
0.2809484211599611