I am trying to estimate APR of a compound interest loan with a fixed payment.
For a loan where:$P_0$ represents the total amount borrowed from the lender, $r$ represents the monthly interest rate, $N$ is the total amount of terms/periods.
The equation for payment ($C$) is as follows:
$$C = P_0 \, r \, [1−(1+r)^{−N}]^{-1}$$
I want to solve for $r$ using a Taylor series. Can you someone help me with it and also provide the proof?
Thanks a lot!
There is no closed-form solution for $r$. Equation 7 of this link gives a power series solution.
I derived the following Taylor series for $C$:
$$ C=\frac{P_0}{N}\left[1 + \frac{N+1}{2}r + \frac{(N-1)(N+1)}{12}\frac{r^2}{2!}+\cdots\right] $$
If you solve this for $r$
$$ r\approx\left(\frac{3}{N-1}\right)\left[-1+\sqrt{1+\frac{4}{3}\frac{N-1}{N+1}\left(\frac{NC}{P_0}-1\right)}\right] $$
I haven't extensively tested this but is seems to get within 1% of the true interest rate for parameters in the consumer mortgage regime (e.g. 4%, 360 month).
The Taylor series will be most accurate at interest rates close to zero. To improve the accuracy you add a third term to the Taylor series. You could also explore curve fitting some real data in the region of interest; (the goal is to improve accuracy in the region of interest at the expense of accuracy near $r=0$). So you might try fitting an equation like:
$$ C=\frac{P_0}{N}\left[A_0 + A_1\frac{N+1}{2}r + A_2\frac{(N-1)(N+1)}{12}\frac{r^2}{2!}\right] $$
getting $A_0, A_1, A_2$ by least squares, then solving the quadratic for $r$.
Hope that helps.