Talk:Stat340s13: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Class 5 technical edit by j23kim: new section) |
||
Line 1: | Line 1: | ||
Question: Where do we record our contributions to WikiCourseNote? | Question: Where do we record our contributions to WikiCourseNote? | ||
Answer: <<https://docs.google.com/forms/d/1Sgq0uDztDvtcS5JoBMtWziwH96DrBz2JiURvHPNd-xs/viewform>> | 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) |
Revision as of 21:12, 21 May 2013
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)