{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

IEOR 161 HW 7 PRINTOUTS

IEOR 161 HW 7 PRINTOUTS - t=1:200 N(t)=ctr i=rand(1 if...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
IEOR 161 HW 7 PRINTOUTS, Eddie Lo
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
PART A Each of these histograms represents the number of times the population value hits the number at each step. It shows how the number in the population tomorrow depends on the population today, going up with births and down by deaths. Even though it’s more likely for a death, there is still a normal distribution at each step. PART B This shows only half of the histograms I’ve just constructed in part A, suggesting the geometric random variable will give half of the Markov Chain.
Image of page 4
MATLAB CODE clear all for k=1:10000 ctr=0; for
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: t=1:200 N(t)=ctr; i=rand(1); if i<=.35 ctr=ctr+1; else if i>.35 & i<=.45 ctr=ctr; else ctr=ctr-1; end N(t)=ctr; end end A(k) = N(5); B(k) = N(10); C(k) = N(20); D(k) = N(50); E(k) = N(75); F(k) = N(100); G(k) = N(200); end hist(A,100) title( 'N(5)' ) figure hist(B,100) title( 'N(10)' ) figure hist(C,100) title( 'N(20)' ) figure hist(D,100) title( 'N(50)' ) figure hist(E,100) title( 'N(75)' ) figure hist(F,100) title( 'N(100)' ) figure hist(G,100) title( 'N(200)' ) for i=1:10000 R(i) = geornd(1-(.35/.55)); end hist(R,50) title('Geometric RV’)...
View Full Document

  • Spring '08
  • Lim,A
  • Probability distribution, Probability theory, probability density function, Markov chain, Eddie Lo, figure hist

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern