'given' method ignored when mixed with 'times' method

Issue #28 closed
Pierre Denis
repo owner created an issue

The case appears in the following example:

>>> flip = Lea.fromVals(0,1)
>>> flip4 = flip.times(4)
>>> flip4.given(flip4<=2)
0 : 1/16
1 : 4/16
2 : 6/16
3 : 4/16
4 : 1/16

The probability distribution returned is the same as flip4 's. This is wrong.

Comments (4)

  1. Log in to comment