Talk:Stat340s13

From statwiki
Jump to navigation Jump to search

Question: Where do we record our contributions to WikiCourseNote? Answer: <<https://docs.google.com/forms/d/1Sgq0uDztDvtcS5JoBMtWziwH96DrBz2JiURvHPNd-xs/viewform>>

Class 5 technical edit by j23kim

close all clear all ii=1; while ii<1000

   u1=rand;
   u2=rand;
   y=floor(log(u1)/log(0.75));
   if u2<exp(-3)*3^y/factorial(y)/(2.12*0.25*0.75^j)
       x(ii)=y;
       ii=ii+1;
   end

end hist(x)