Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// functie coin toss
- n=40000;
- u=rand(3,n);
- y=u<0.5;
- z=sum(y);
- hist(z);
- /// d
- stairs(x,binocdf(x,2,0.5),"m");
- stairs(x,binocdf(x,1,0.5),"m");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement