Advertisement
ostyleo

Untitled

Nov 10th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. function Y = binocdf2(x,n,p)
  2. a= 0;
  3. for k = 0:x
  4. a = a + (nchoosek(n,k) * p ^ k * (1-p) ^ (n-k));
  5. end
  6. Y = a;
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement