https://1library.net/document/zw5dr2lz-algorithm-calculating-corporate-marginal-using-monte-carlo-simulation.html