The variance of the DiceDistribution is wrong.
Correct is the following: 2.91 or (70/24).
You can verify the correct results also with a
UniformIntegerDistribution(1, 6).
Obviously the wrong variance was not noticed as the tests in this class
do not compute the inverseCumulativeProbability.
I
The variance of the DiceDistribution is wrong.
Correct is the following: 2.91 or (70/24).
You can verify the correct results also with a
UniformIntegerDistribution(1, 6).
Obviously the wrong variance was not noticed as the tests in this class
do not compute the inverseCumulativeProbability.
On 10/10/2014 10:24 PM, Ole Ersoy wrote:
> Hi,
>
> I ran the following assertions on the dice distribution in the
> AbstractIntegerDistributionTest:
>
> Assert.assertEquals(3,
> diceDistribution.inverseCumulativeProbability(0.7d/6d)); //Expecting 1
> Assert.assertEquals(3,
> dice
Hi,
I ran the following assertions on the dice distribution in the
AbstractIntegerDistributionTest:
Assert.assertEquals(3,
diceDistribution.inverseCumulativeProbability(0.7d/6d)); //Expecting 1
Assert.assertEquals(3,
diceDistribution.inverseCumulativeProbability(0.8d/6d)); /