Topic: BinomialRandomVariable p<.5
BinomialRandomVariable appears to give off results for P<.5
p>0.5 looks fine, I don't seem to be able to attach more that one file so I have attached the P<0.5 version.
With P=0.501 the mean was 10.059E00 but with P=0.499 it is 11.498E00 as you can see from the attached pdf a big dip where the bigest value would be expected.
I may have done something silly but can't see where to look for it.
Plotting the values from d1 in excel shows the same as the plot produced here.
this is my script:
from jhplot.math.num.random import *
from jhplot import HPlot,H1D,HTable,HLabel,P0D
from jhplot.io.csv import *
c1 = HPlot("Canvas",600,400,1, 1)
h1 = H1D("%s/%s"%(s,p),2*s+1, 0, s)
for i in range(2*s+1+2):
for i in range(n):
lab=HLabel("%s samples"%n, 0.15, 0.7, "NDC")