Discount Rate
|
04-11-2022, 01:18 AM
Post: #9
|
|||
|
|||
RE: Discount Rate
(04-10-2022 12:19 PM)Thomas Klemm Wrote: Newton Iteration When interest rate converging to true rate, numerator goes 0, or (Z-1)/i = -P I was reading https://brownmath.com/bsci/loan.htm#Newton. It's rate newton formula actually replaced denominator (Z-1)/i by -P The formula quoted above is good when guess rate is under-estimated. This explained why it has i0 = 2*(n-p)/(n*(n+1)) instead of 2*(n-p)/(p*(n+1)) Too high a guess can make Newton's step diverge. Example, with N=36, P=30, guess rate of 0.08, it barely able to converge. 0.08 → -0.071887 → -0.041499 → -0.014129 → 0.003911 → 0.009742 → 0.010205 → 0.010207 "-P" version had the opposite problem, and preferred over-estimated guess. Again, with N=36, P=30, guess rate of 0.004, it totally diverged 0.004 → -0.009120 → -0.003414 → -0.000780 → -0.000059 ... A better option is to solve NPMT=0 instead (now used for rate search in Plus42, see tvm_eq()) From NPMT=0 based loan_rate(n, pv, pmt, fv, i), simplified with FV=0, we get this: \( \displaystyle \large i_\text{next} = i \left[ 1 - \frac{(\frac{Z - 1}{i})/P + 1} {(\frac{nZ}{1 + i})/(\frac{Z - 1}{i}) +1} \right] \) This version, convergence is slightly faster, and *very* stable for guess i Again, with N=36, P=30, but ridiculous rate guess: 10+10 → 0.033333 → 0.012232 → 0.010228 → 0.010207 10−10 → 0.000231 → 0.010782 → 0.010209 → 0.010207 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Discount Rate - SlideRule - 04-04-2022, 01:54 PM
RE: Discount Rate - Thomas Klemm - 04-08-2022, 07:44 PM
RE: Discount Rate - Albert Chan - 04-08-2022, 10:21 PM
RE: Discount Rate - Albert Chan - 04-09-2022, 12:50 PM
RE: Discount Rate - Eddie W. Shore - 04-10-2022, 11:29 PM
RE: Discount Rate - Albert Chan - 04-09-2022, 05:47 PM
RE: Discount Rate - Albert Chan - 04-10-2022, 04:03 AM
RE: Discount Rate - Thomas Klemm - 04-10-2022, 12:19 PM
RE: Discount Rate - Albert Chan - 04-11-2022 01:18 AM
RE: Discount Rate - Albert Chan - 04-11-2022, 03:11 PM
RE: Discount Rate - Albert Chan - 04-11-2022, 03:57 PM
RE: Discount Rate - Albert Chan - 05-11-2022, 06:22 PM
RE: Discount Rate - Thomas Klemm - 04-11-2022, 02:37 AM
RE: Discount Rate - Thomas Klemm - 04-11-2022, 08:48 PM
RE: Discount Rate - Thomas Klemm - 04-12-2022, 11:11 PM
RE: Discount Rate - Thomas Klemm - 04-12-2022, 11:13 PM
RE: Discount Rate - Thomas Klemm - 04-18-2022, 01:58 PM
RE: Discount Rate - rprosperi - 04-18-2022, 06:41 PM
RE: Discount Rate - Thomas Klemm - 04-18-2022, 07:03 PM
|
User(s) browsing this thread: 1 Guest(s)