# Sol_hw_3 - ASSIGNMENT 3 SOLUTIONS 1 Exercise 1 The rst...

This preview shows pages 1–2. Sign up to view the full content.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ASSIGNMENT 3 - SOLUTIONS 1. Exercise 1 The rst algorithm of simulation is the inverse method, applied to this distribution. The pseudo-code is the following: (1) α := ∑ k j =0 e- λ λ j j ! (2) p := α- 1 e- λ i := 0 F := p (3) U := Uniform (0 , 1) (4) while ( U > F ) i := i + 1 p := p λ i F := F + p (5) Return F The second method to generate the random variable is applying the acceptance/rejection method. We will use a discrete uniformly distributed random variable over the set { ,...,k } as auxiliary distribution. Let α = ∑ k j =0 e- λ λ j /j ! . Since we know that the mode of the Poisson distribution is d λ e , we have that e- λ λ j /j ! ≤ e- λ λ d λ e / d λ e ! ∀ j . Our bound for this case will be C = α- 1 e- λ λ d λ e / d λ e ! . De ne the desired distribution probability mass function as p ( i ) = P { X = i } and q ( i ) = 1 / ( k + 1) i = 0 ...k (note that our bound can be written as C = p ( d λ e ) ). The method is then de ned as follows: (1) α := ∑...
View Full Document

• Spring '11
• JoseBlanchet
• Probability theory, Discrete probability distribution, Probability mass function, Inverse transform sampling, Örm

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern