[Scilab-users] simulated binomial is shifted to the left

Heinz Nabielek heinznabielek at icloud.com
Sun Sep 24 00:51:37 CEST 2017


When I compare Monte-Carlo simulated binomial distributions with the respective analytical binomial distributions, the histplot of the simulated ones is shifted to the left. What am I doing wrong?
Heinz


SciLab code:
p=[0.1176471    0.2352941    0.0588235    0.3882353    0.2]; N=100;
for i=1:5;histplot(0:60,grand(1,10000,"bin",N,p(i)),style=i);plot2d(binomial(p(i),N),style=i,rect=[0 0 60 .175]);end;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170923/6ca4a601/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shifted simulated binomial.pdf
Type: application/x-download
Size: 10188 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20170923/6ca4a601/attachment.bin>


More information about the users mailing list