1
$\begingroup$

I am developing a "inflation adjustment" web app where an initial capital is adjusted based on some optimistic, realistic and pesimistic estimates using Monte Carlo Simulation.

The code is finished but the results don't match what I can see online regarding inflation adjustment.

Particularly I used this calculator with 1000 and 50% inflation and it shows 666.67 as a result after 1 year.

But if I compute $1000 / (1 + 0.5/365)^{365}$ the result is significantly less ($606.74$).

The error seems to be that I use a daily compounded formula instead of annualy compounded but, isn't it the proper way since inflation happens "on a daily basis" rather than all prices increasing only once a year?

Which would be the more realistic way to simulate inflation?

Put it in other terms, when we see X% inflation rate, do (the media) mean the annual interpretation or the daily one?

PS: I am new to this Stack Exchange subchannel and I have computer science background (no so much economics).

$\endgroup$

1 Answer 1

3
$\begingroup$

What the media means is heavily dependent on what media you are talking about, but the statistics agencies usually compute two price indices one year apart and compare these, thus they do not use daily compounding. This has pros, it smooths out wild fluctuations and even provides some seasonal adjustment.


It is a known result that for $n \neq 1, x > 0$ we have $$ \left(1+\frac{x}{n} \right)^n \neq 1+x, $$ thus some adjustment needs to be made to the daily rate.

Seems like using $$ x = \sqrt[365]{1.5} - 1 $$ as a daily inflation rate will solve your problem, as $$(1 + x)^{365} = 1.5.$$ This way you can use daily compounding and the annual inflation measure remains unchanged.


As to how to improve your simulation: this depends on a lot of details; what is your goal with the simulation, what are your capacities, etc.
(To be clear, I do not wish to give advice on this in the comments. It seems like this should be a separate question, if it is at all on-topic for this SE.)

$\endgroup$
6
  • $\begingroup$ I follow the logic but I think the result is incorrect. $(1+(\log_{365} 1.5)−1))^{365} \approx 0 \neq 1.5$. I tried using $\sqrt[365]{1.5} - 1$ as daily rate, but the only result that matches is the final value, it does not "interpolate" for all intermediate values properly. $\endgroup$ Commented Jan 10, 2022 at 2:48
  • $\begingroup$ The simulation results are available here under "Inflation Simulation" $\endgroup$ Commented Jan 10, 2022 at 2:58
  • $\begingroup$ @EzequielCastaño You are correct about $\sqrt[365]{1.5}$ vs $\log_{365} 1.5$, my mistake! $\endgroup$
    – Giskard
    Commented Jan 10, 2022 at 7:49
  • $\begingroup$ I found a bug in my code and using the $\sqrt[365]{1 + r} - 1$ worked. However in the meantime I came up with an alternative solution which I think is incorrect (added to the question in the EDIT section), could you help me justify why it is incorrect from a more theoretical point? $\endgroup$ Commented Jan 10, 2022 at 20:11
  • 1
    $\begingroup$ @EzequielCastaño Hi! Please post new questions as new questions, don't edit new one questions into your old one. I don't really understand your new notation, so when you post a new question, I recommend you explain it in more detail. $\endgroup$
    – Giskard
    Commented Jan 10, 2022 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.