McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.1 Generating Random Observations from a Probability Distribution The method for generating.

Slides:



Advertisements
Similar presentations
Exponential and Poisson Chapter 5 Material. 2 Poisson Distribution [Discrete] Poisson distribution describes many random processes quite well and is mathematically.
Advertisements

Exponential Distribution
Table of Contents Chapter 12 (Computer Simulation: Basic Concepts)
Continuous Probability Distributions Chapter 07 Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin The Normal Probability Distribution Chapter 7.
Continuous Probability Distributions Chapter 07 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
Continuous Probability Distributions Chapter 7 Copyright © 2011 by the McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Chapter Queueing Notation
Chapter 8 Random-Variate Generation
Chapter 8 Random-Variate Generation Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
Prepared by Lloyd R. Jaisingh
Operations research Quiz.
Simulation of multiple server queuing systems
Probability Distributions
Random-Variate Generation. Need for Random-Variates We, usually, model uncertainty and unpredictability with statistical distributions Thereby, in order.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Working with Financial Statements Chapter Three.
Today Today: Chapter 5 Reading: –Chapter 5 (not 5.12) –Suggested problems: 5.1, 5.2, 5.3, 5.15, 5.25, 5.33, 5.38, 5.47, 5.53, 5.62.
Agenda Purpose Prerequisite Inverse-transform technique
Chapter Five Continuous Random Variables McGraw-Hill/Irwin Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
THE POISSON RANDOM VARIABLE. POISSON DISTRIBUTION ASSUMPTIONS Can be used to model situations where: –No two events occur simultaneously –The probabilities.
Continuous Probability Distributions
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table of Contents Chapter 15 (Computer Simulation: Basic Concepts) The Essence of Computer.
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Continuous Probability Distributions Chapter 7.
Lecture 4 Mathematical and Statistical Models in Simulation.
© 2003 The McGraw-Hill Companies, Inc. All rights reserved. Return, Risk, and the Security Market Line Chapter Thirteen.
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Discrete Random Variables Chapter 4.
Queueing Models.
Statistical Distributions
0 Simulation Modeling and Analysis: Input Analysis K. Salah 8 Generating Random Variates Ref: Law & Kelton, Chapter 8.
Continuous Probability Distributions  Continuous Random Variable  A random variable whose space (set of possible values) is an entire interval of numbers.
Lecture 4 1 Discrete distributions Four important discrete distributions: 1.The Uniform distribution (discrete) 2.The Binomial distribution 3.The Hyper-geometric.
7-1. Continuous Distributions Chapter 77 Continuous Variables Continuous Variables Describing a Continuous Distribution Describing a Continuous Distribution.
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Michael Baron. Probability and Statistics for Computer Scientists,
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
One Random Variable Random Process.
ETM 607 – Random-Variate Generation
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
MATH 3033 based on Dekking et al. A Modern Introduction to Probability and Statistics Slides by Sean Hercus Instructor Longin Jan Latecki Ch. 6 Simulations.
Random Variable The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 8 Random-Variate Generation Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
Simulation. Inverse Functions Actually, we’ve already done this with the normal distribution.
Topic 5: Continuous Random Variables and Probability Distributions CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text,
 A continuous random variable has the following pdf:  f(x)=c(x^2) if 0
Chapter 5 CONTINUOUS RANDOM VARIABLES
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
 Recall your experience when you take an elevator.  Think about usually how long it takes for the elevator to arrive.  Most likely, the experience.
SS r SS r This model characterizes how S(t) is changing.
1 1 Slide Continuous Probability Distributions n The Uniform Distribution  a b   n The Normal Distribution n The Exponential Distribution.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Uniform Problem A subway train on the Red Line arrives every 8 minutes during rush hour. We are interested in the length of time a commuter must wait.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc., All Rights Reserved. Example 1-Ad A.
Simulation of single server queuing systems
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Continuous Probability Distributions Chapter 7.
Continuous Probability Distributions Chapter 7 McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics B: Michael Baron. Probability and Statistics for Computer Scientists,
Computer Simulation Henry C. Co Technology and Operations Management,
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
18 Management of Waiting Lines
Continuous Random Variables
Demo on Queuing Concepts
Solutions Queueing Theory 1
Solutions Queueing Theory 1
Chapter 3 : Random Variables
Chapter 6 Continuous Probability Distributions
PROBABILITY AND STATISTICS
Uniform Probability Distribution
Presentation transcript:

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.1 Generating Random Observations from a Probability Distribution The method for generating random observations from a continuous distribution is called the inverse transformation method. Notation –r is the random number –F(x) is the cumulative distribution function (CDF) of the distribution from which we wish to generate a random observation. Thus, for each possible value of x, F(x) is the probability of being less than or equal to x. The Inverse Transformation Method 1.Generate a random number r. 2.Find the value of x such that F(x) = r. This value of x is the desired random observation from the probability distribution.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.2 Illustration of Inverse Transformation Method

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.3 Inverse Transformation Method for a Discrete Distribution

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.4 Herr Cutter’s Barber Shop Herr Cutter is a German barber who runs a one-man barber shop. He opens his shop at 8:00 AM each weekday morning. His customers arrive randomly at an average rate of two customers per hour. He requires an average of 20 minutes for each haircut. As his business has increased, his customers now often wait awhile (sometimes over half-an-hour). His loyal customers are willing to wait, but new customers are much less likely to return if they have to wait. An article in The Barber’s Journal states –In a well-run barber shop, loyal customers will tolerate an average wait of 20 minutes, while new customers will tolerate only a 10 minute average wait. (With longer waits, they typically take their business elsewhere in the future.) Question: Should Herr Cutter hire a new associate to share the workload?

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.5 Probability Distributions The time required to give a haircut varies between 15 and 25 minutes. His best estimate is that the times between 15 and 25 minutes are equally likely. –Estimated distribution of service times: The Uniform distribution over the interval from 15 to 25 minutes. –The CDF for this distribution is P(service time ≤ x) = F(x) = 0for x ≤ 15 (x – 15)/10 for 15 ≤ x ≤ 25 1for x ≥ 25 The barber shop has random arrivals of customers, averaging two per hour. –Estimated distribution of interarrival times: An exponential distribution with a mean of 30 minutes. –The CDF for this distribution is P(interarrival time ≤ x) = F(x) = 1–e –x/30 for x ≥ 0.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.6 CDF of Service-Time Distribution (Uniform)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.7 CDF of Interarrival-Time Distribution (Exponential)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.8 Applying the Inverse Transformation Method for the Service Time (Uniform Distribution) F(x) = (x–15)/10 = when x = 22.27

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2008 CD12s.9 Applying the Inverse Transformation Method for the Interarrival Time (Exponential Distribution) F(x) = 1–e –x/30 = when e -x/30 = or –x/30 = ln = – or x = 50.30