简体   繁体   English

蒙特卡洛多重分布

[英]Monte Carlo Multiple Distributions

I have been struggling with an issue relating to the summation of multiple Risks' triangular distributions using Monte Carlo. 我一直在努力解决与使用Monte Carlo求和多个Risks的三角分布之和有关的问题。 I can get the correct shape of generation but the percentage probability is far off. 我可以得到正确的生成形状,但百分比概率还很遥远。 This is what I am generating for 2 risks with values for probability, best case, most likely and worst case (75%, 100-200-300)(80%, 510-1000-1125): 这就是我针对2个风险生成的值,其中包含概率,最佳情况,最可能和最坏情况(75%,100-200-300)(80%,510-1000-1125): 我的尝试

And this is the tool I am basing my accuracy on: 这是我基于其准确性的工具:

他们的尝试

This is a recurring issue and I can't seem to find a solution. 这是一个经常发生的问题,我似乎找不到解决方法。 When I calculate a single risk using the same formula, the result is 99% accurate to the comparison tool. 当我使用相同的公式计算单个风险时,对于比较工具而言,结果的准确性为99%。 This is my distribution addition formula: 这是我的分配加法公式:

public static List<Double> combineLists(Double weight, List<Double> newDataList, List<Double> cumulativeDataList){
    //loops through the size of the new data list to added
    for(Integer i = 0; i < newDataList.size(); i++){
        //sets the output as the sum of both
        cumulativeDataList.set(i, cumulativeDataList.get(i) + (newDataList.get(i)*weight));
    }
    return cumulativeDataList;

Further to this, I cannot find the way of how they generate their max/worst values, I am simply summing the worst from all risks(1425) but they have a value of 1388, any suggestions on this would also be appreciated. 除此之外,我无法找到它们如何生成其最大/最差值的方法,我只是将所有风险中的最差值相加(1425),但它们的值为1388,对此的任何建议也将受到赞赏。

I have been stuck on this for weeks so any help would be very appreciated! 我已经坚持了几个星期,所以任何帮助将不胜感激! Thanks :) 谢谢 :)

I was able to find the answer, it was that the probability needed to be integrated within the random number generator! 我能够找到答案,这是需要将概率整合到随机数生成器中! This removed the need for half of the steps as the data was already normally distributed. 由于数据已经是正态分布的,因此无需执行一半的步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM