Advertisement
Sri27119

hypergeometric

May 19th, 2024
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.41 KB | None | 0 0
  1. x = 0:4; % number of parts from local supplier
  2. m = 300; % Total number of parts
  3. k = 100; % Total parts from local supplier
  4. n = 4; % number of parts selected
  5. local = hygepdf(4,m,k,n); % all parts from local supplier
  6. r=hygecdf(4,m,k,n)-hygecdf(1,m,k,n); %two or more parts from local supplier
  7. Px = hygepdf(x,m,k,n); %P(parts from local supplier)
  8. plot(x,Px,'r');
  9. title("Hypergeometric Probability Distribution");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement