Playing around with visualizations of Monte Carlo simulations.
Okay, so this totally serves as a bit of a demo, playing around with d3, but also learning a bit about monte-carlo simulations and kernel density estimation, so I'm publishing this as-is for now since I want to play with other things, I kinda want to apply this to some parametric or non-parametric data just to showcase how monte-carlo modelling works, I'm trying to get inspiration for an example that's not basic financial or ecological/population modelling. Alas I'll revisit this though and maybe see if I can write something up about basket option valuation but there's more research on my end to do for sure.
This chart below shows a Monte Carlo simulation sampling from a normal distribution with the following parameters:
Also the KDE (purple distribution line thingy) uses Scott's rule of thumb.
Note: The purple line on the chart represents the computed median result.
Monte-Carlo simulation with kernel denisity estimation