Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n=3;
- p=1/2;
- x=0:n;
- p1=pdf('bino',x,n,p)
- p1;
- subplot(1,3,1); plot(x,p1,'o');
- title('pdf');
- subplot(1,3,2);bar(x,p1);
- title('PDF');
- x1=0:0.01:n;
- fx=cdf('bino',x1,n,p);
- subplot(1,3,3);plot(x1,fx);
- title('CDF');
- fx=binocdf(x,n,p)
- binocdf(2,n,p)
- binocdf(1,n,p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement