This preview shows page 1. Sign up to view the full content.
Unformatted text preview: hist(x(i,:),25); end %% histogram for geometric RV with success probability p = 1-(u/d) p = 1-(u/d); count = zeros(1,10000); for i = 1:10000; wait = 0; while rand>p; wait = wait + 1; end count(i) = wait; end figure(8); hist(count,50); end...
View Full Document
This note was uploaded on 03/17/2011 for the course IEOR 161 taught by Professor Lim during the Spring '08 term at University of California, Berkeley.
- Spring '08
- Operations Research