hw4_solns - ORIE 4580/5580/5581 Solutions for Homework...

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

View Full Document Right Arrow Icon
ORIE 4580/5580/5581 Solutions for Homework Assignment 4 Question 1. The c.d.f of X is F ( x ) = x e a 1 ( b - a ) u du = ln( x ) - a b - a for e a x e b . We now compute the inverse of F ( · ): u = ln( x ) - a b - a = ( b - a ) u + a = ln( x ) = x = e a e ( b - a ) u . Thus, F - 1 ( u ) = e a e ( b - a ) u . The algorithm is: 1. Generate U U [0 , 1]. 2. Return X = e a e ( b - a ) u . Question 2. The c.d.f. of X can be computed as follows: F ( x ) = x -∞ λ 2 e - λ | u - c | du = x -∞ λ 2 e - λ ( c - u ) du = 1 2 e - λc x -∞ λ e λu du = = 1 2 e - λc e λu | x -∞ = 1 2 e - λ ( c - x ) for x c x -∞ λ 2 e - λ | u - c | du = c -∞ λ 2 e - λ ( c - u ) du + x c λ 2 e - λ ( u - c ) du = = 1 2 + 1 2 e λc x c λe - λu du = 1 2 - 1 2 e λc e - λu | x c = 1 - 1 2 e - λ ( x - c ) for x > c .
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/08/2012 for the course ORIE 4580 at Cornell University (Engineering School).

Page1 / 3

hw4_solns - ORIE 4580/5580/5581 Solutions for Homework...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online