Discussion about this post

User's avatar
Ralph Hogaboom's avatar

This is fantastic. I really, really appreciate the clear way you walked through this, including references to the source for why you used lognormal.inv, the std deviation of 3.29, etc.

Your formula right above the Monte Carlo section in the page has some missing parens (or they're out of order) - I suggest changing it from

x=if (rand() <0.063, lognorm.inv (rand(), ln($9.1M) + ln($375K)) / 2, ln($9.1M) - ln($375K)) / 3.29), 0)

to

x=if(rand()<0.063, lognorm.inv (rand(), (ln($9.1m) + ln($325k)) / 2, ln($9.1M)-ln($325k)/3.29),0)

That should fix the parens getting out of whack :)

2 more comments...

No posts

Ready for more?