Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

Size: px
Start display at page:

Download "Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr."

Transcription

1 Simulation Discrete-Event System Simulation

2 Chapter 6 andom-variate Generation

3 Purpose & Overview Develop understanding of generating samples from a specified distribution as input to a simulation model. Illustrate some widely-used techniques for generating random variates. Inverse-transform technique Acceptance-rejection technique Special properties 3

4 Preparation It is assumed that a source of uniform [0,] random numbers eists. Linear Congruential Method andom numbers,,, with PDF f 0 ( ) 0 otherwise CDF F ( ) 0 0 < 0 > 4

5 Inverse-transform Technique The concept: For CDF function: r F() Generate r from uniform (0,), a.k.a U(0,) Find, F - (r) F() F() r F() r F() r r 5

6 Inverse-transform Technique The inverse-transform technique can be used in principle for any distribution. Most useful when the CDF F() has an inverse F - () which is easy to compute. equired steps. Compute the CDF of the desired random variable.. Set F() on the range of. 3. Solve the equation F() for in terms of. 4. Generate uniform random numbers,, 3, and compute the desired random variate by i F - ( i ) 6

7 Eponential Distribution Eponential Distribution PDF f ( ) CDF F( ) λe λ e Simplification ln() λ λ Since and (-) are uniformly distributed on [0,] To generate,, 3 e e λ λ λ ln( ) ln( ) λ ln( ) λ F ( ) 7

8 Eponential Distribution Figure: Inverse-transform technique for ep(λ ) 8

9 Eponential Distribution Eample: Generate 00 variates i with distribution ep(λ ) Generate 00 s with U(0,), the histogram of s become: 0,7 0,6 0,5 0,4 0,3 0, 0, 0 0,5,5,5 3 3,5 4 4,5 5 5,5 6 6,5 7 Empirical Histogram Theor. PDF Check: Does the random variable have the desired distribution? P ( 0) P( F( 0)) F( 0) 9

10 Other Distributions Eamples of other distributions for which inverse CDF works are: Uniform distribution Weibull distribution Triangular distribution 0

11 Computer Science, Informatik 4 Uniform Distribution andom variable uniformly distributed over [a, b] ) ( ) ( ) ( a b a a b a a b a F +

12 Weibull Distribution The Weibull Distribution is described by PDF f ( ) CDF F( ) β β α β e e ( ) β α ( ) β α The variate is F( ) β ( ) α e β ( ) α e ( ) α α β β β β ln( ln( α β ) ) ln( ) β β α ln( ) β α ln( )

13 Computer Science, Informatik 4 3 Triangular Distribution The CDF of a Triangular Distribution with endpoints (0, ) is given by is generated by ) ( and for For 0 > < < ) ( ) ( F < ) ( 0

14 Empirical Continuous Distributions When theoretical distribution is not applicable To collect empirical data: esample the observed data Interpolate between observed data points to fill in the gaps For a small sample set (size n): Arrange the data from smallest to largest () () (n) Set (0) 0 Assign the probability /n to each interval The slope of each line segment is defined as ( i) ( i) ( i) ( i) ai / n ( i ) / n / n The inverse CDf is given by Fˆ ( ) ( i ) + a i ( i ) n (i-) (i) 4

15 Empirical Continuous Distributions i Interval Probability Cumulative Probability Slope a i 0.0 < < < < < (4) + a 4 ( (4 ) / ( ).66 n) 5

16 Empirical Continuous Distributions What happens for large samples of data Several hundreds or tens of thousand First summarize the data into a frequency distribution with smaller number of intervals Afterwards, fit continuous empirical CDF to the frequency distribution Slight modifications Slope a i ( i) c i c ( i) i The inverse CDf is given by ˆ F ( ) + a c ( ) ( i) i i c i cumulative probability of the first i intervals 6

17 Empirical Continuous Distributions Eample: Suppose the data collected for 00 broken-widget repair times are: i Interval (Hours) Frequency elative Frequency Cumulative Frequency, c i Slope, a i Consider 0.83: c < < c 4.00 (4-) + a 4 ( c (4-) ) ( ).75 7

18 Empirical Continuous Distributions Problems with empirical distributions The data in the previous eample is restricted in the range The underlying distribution might have a wider range Thus, try to find a theoretical distribution Hints for building empirical distribution based on frequency tables It is recommended to use relatively short intervals - Number of bin increase This will result in a more accurate estimate 8

19 Discrete Distribution All discrete distributions can be generated via inverse-transform technique Method: numerically, table-lookup procedure, algebraically, or a formula Eamples of application: Empirical Discrete uniform Gamma 9

20 Discrete Distribution Eample: Suppose the number of shipments,, on the loading dock of a company is either 0,, or Data - Probability distribution: p() F() The inverse-transform technique as table-lookup procedure F ( i ) ri < ri F( i ) Set i 0

21 Discrete Distribution Method - Given, the generation scheme becomes: 0,,, 0.5 < 0.8 < i 3 Table for generating the discrete variate Input r i Output i 0 Consider 0.73: F( i- ) < < F( i ) F( 0 ) < 0.73 < F( ) Hence,

22 Acceptance-ejection technique Useful particularly when inverse cdf does not eist in closed form, a.k.a. thinning Illustration: To generate random variates, ~ U(/4, ) Procedures: Step. Generate ~ U[0,] Step a. If > ¼, accept. Step b. If < ¼, reject, return to Step no Generate Condition yes Output does not have the desired distribution, but conditioned ( ) on the event { ¼} does. Efficiency: Depends heavily on the ability to minimize the number of rejections.

23 Poisson Distribution PMF of a Poisson Distribution n α α P( N n) e n! Eactly n arrivals during one time unit A + A + L+ An < A + A + L+ An + An + Since interarrival times are eponentially distributed we can set A i ln( i ) α Well known, we derived this generator in the beginning of the class 3

24 Poisson Distribution Substitute the sum by Simplify by n i n+ ln( ) i ln( ) < i α α i multiply by -α, which reverses the inequality sign sum of logs is the log of a product ln n i i n i ln( i ) α > n+ i ln( ) i ln n i i Simplify by e ln() n i i e α > n+ i i 4

25 Poisson Distribution Procedure of generating a Poisson random variate N is as follows. Set n0, P. Generate a random number n+, and replace P by P n+ 3. If P < ep(-α), then accept Nn - Otherwise, reject the current n, increase n by one, and return to step. 5

26 Poisson Distribution Eample: Generate three Poisson variates with mean α0. ep(-0.) Variate Step : Set n0, P Step : , P Step 3: Since P < ep(- 0.), accept N 0 Variate Step : Set n0, P Step : 0.446, P Step 3: Since P < ep(-0.), accept N 0 Variate 3 Step : Set n0, P Step : , P Step 3: Since P > ep(-0.), reject n0 and return to Step with n Step : 0.995, P Step 3: Since P > ep(-0.), reject n and return to Step with n Step : , P Step 3: Since P < ep(-0.), accept N 6

27 Poisson Distribution It took five random numbers to generate three Poisson variates In long run, the generation of Poisson variates requires some overhead! N n+ P Accept/eject esult P < ep(- α) Accept N P < ep(- α) Accept N P ep(- α) eject P ep(- α) eject P < ep(- α) Accept N 7

28 Special Properties Based on features of particular family of probability distributions For eample: Direct Transformation for normal and lognormal distributions Convolution Beta distribution (from gamma distribution) 8

29 Direct Transformation Approach for N(0,): Consider two standard normal random variables, Z and Z, plotted as a point in the plane: In polar coordinates: Z B cos(φ) Z B sin(φ) B Z + Z ~ χ distribution with degrees of freedom Ep(λ ). / Hence, B ( ln ) The radius B and angle φ are mutually independent. Z Z ( ln ) ( ln ) / / cos(π sin(π ) ) 9

30 Direct Transformation Approach for N(μ,σ ): Generate Z i ~ N(0,) i μ + σ Z i Approach for Lognormal(μ,σ ): Generate ~ N((μ,σ ) Y i e i 30

31 Summary Principles of random-variate generation via Inverse-transform technique Acceptance-rejection technique Special properties Important for generating continuous and discrete distributions 3

Slides 5: Random Number Extensions

Slides 5: Random Number Extensions Slides 5: Random Number Extensions We previously considered a few examples of simulating real processes. In order to mimic real randomness of events such as arrival times we considered the use of random

More information

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr. Simulation Discrete-Event System Simulation Chapter 4 Statistical Models in Simulation Purpose & Overview The world the model-builder sees is probabilistic rather than deterministic. Some statistical model

More information

Chapter 5. Statistical Models in Simulations 5.1. Prof. Dr. Mesut Güneş Ch. 5 Statistical Models in Simulations

Chapter 5. Statistical Models in Simulations 5.1. Prof. Dr. Mesut Güneş Ch. 5 Statistical Models in Simulations Chapter 5 Statistical Models in Simulations 5.1 Contents Basic Probability Theory Concepts Discrete Distributions Continuous Distributions Poisson Process Empirical Distributions Useful Statistical Models

More information

UNIT 5:Random number generation And Variation Generation

UNIT 5:Random number generation And Variation Generation UNIT 5:Random number generation And Variation Generation RANDOM-NUMBER GENERATION Random numbers are a necessary basic ingredient in the simulation of almost all discrete systems. Most computer languages

More information

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models Fatih Cavdur fatihcavdur@uludag.edu.tr March 29, 2014 Introduction Introduction The world of the model-builder

More information

Dr. Maddah ENMG 617 EM Statistics 10/15/12. Nonparametric Statistics (2) (Goodness of fit tests)

Dr. Maddah ENMG 617 EM Statistics 10/15/12. Nonparametric Statistics (2) (Goodness of fit tests) Dr. Maddah ENMG 617 EM Statistics 10/15/12 Nonparametric Statistics (2) (Goodness of fit tests) Introduction Probability models used in decision making (Operations Research) and other fields require fitting

More information

Plotting data is one method for selecting a probability distribution. The following

Plotting data is one method for selecting a probability distribution. The following Advanced Analytical Models: Over 800 Models and 300 Applications from the Basel II Accord to Wall Street and Beyond By Johnathan Mun Copyright 008 by Johnathan Mun APPENDIX C Understanding and Choosing

More information

Random Variate Generation

Random Variate Generation Random Variate Generation 28-1 Overview 1. Inverse transformation 2. Rejection 3. Composition 4. Convolution 5. Characterization 28-2 Random-Variate Generation General Techniques Only a few techniques

More information

Slides 8: Statistical Models in Simulation

Slides 8: Statistical Models in Simulation Slides 8: Statistical Models in Simulation Purpose and Overview The world the model-builder sees is probabilistic rather than deterministic: Some statistical model might well describe the variations. An

More information

Probability Distribution

Probability Distribution Probability Distribution Prof. (Dr.) Rajib Kumar Bhattacharjya Indian Institute of Technology Guwahati Guwahati, Assam Email: rkbc@iitg.ernet.in Web: www.iitg.ernet.in/rkbc Visiting Faculty NIT Meghalaya

More information

EE/CpE 345. Modeling and Simulation. Fall Class 5 September 30, 2002

EE/CpE 345. Modeling and Simulation. Fall Class 5 September 30, 2002 EE/CpE 345 Modeling and Simulation Class 5 September 30, 2002 Statistical Models in Simulation Real World phenomena of interest Sample phenomena select distribution Probabilistic, not deterministic Model

More information

n px p x (1 p) n x. p x n(n 1)... (n x + 1) x!

n px p x (1 p) n x. p x n(n 1)... (n x + 1) x! Lectures 3-4 jacques@ucsd.edu 7. Classical discrete distributions D. The Poisson Distribution. If a coin with heads probability p is flipped independently n times, then the number of heads is Bin(n, p)

More information

Math 180A. Lecture 16 Friday May 7 th. Expectation. Recall the three main probability density functions so far (1) Uniform (2) Exponential.

Math 180A. Lecture 16 Friday May 7 th. Expectation. Recall the three main probability density functions so far (1) Uniform (2) Exponential. Math 8A Lecture 6 Friday May 7 th Epectation Recall the three main probability density functions so far () Uniform () Eponential (3) Power Law e, ( ), Math 8A Lecture 6 Friday May 7 th Epectation Eample

More information

Practice Problems Section Problems

Practice Problems Section Problems Practice Problems Section 4-4-3 4-4 4-5 4-6 4-7 4-8 4-10 Supplemental Problems 4-1 to 4-9 4-13, 14, 15, 17, 19, 0 4-3, 34, 36, 38 4-47, 49, 5, 54, 55 4-59, 60, 63 4-66, 68, 69, 70, 74 4-79, 81, 84 4-85,

More information

Lecture Notes 2 Random Variables. Discrete Random Variables: Probability mass function (pmf)

Lecture Notes 2 Random Variables. Discrete Random Variables: Probability mass function (pmf) Lecture Notes 2 Random Variables Definition Discrete Random Variables: Probability mass function (pmf) Continuous Random Variables: Probability density function (pdf) Mean and Variance Cumulative Distribution

More information

Random Number Generation. CS1538: Introduction to simulations

Random Number Generation. CS1538: Introduction to simulations Random Number Generation CS1538: Introduction to simulations Random Numbers Stochastic simulations require random data True random data cannot come from an algorithm We must obtain it from some process

More information

functions Poisson distribution Normal distribution Arbitrary functions

functions Poisson distribution Normal distribution Arbitrary functions Physics 433: Computational Physics Lecture 6 Random number distributions Generation of random numbers of various distribuition functions Normal distribution Poisson distribution Arbitrary functions Random

More information

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models Fatih Cavdur fatihcavdur@uludag.edu.tr March 20, 2012 Introduction Introduction The world of the model-builder

More information

Generating Random Variates 2 (Chapter 8, Law)

Generating Random Variates 2 (Chapter 8, Law) B. Maddah ENMG 6 Simulation /5/08 Generating Random Variates (Chapter 8, Law) Generating random variates from U(a, b) Recall that a random X which is uniformly distributed on interval [a, b], X ~ U(a,

More information

B.N.Bandodkar College of Science, Thane. Subject : Computer Simulation and Modeling.

B.N.Bandodkar College of Science, Thane. Subject : Computer Simulation and Modeling. B.N.Bandodkar College of Science, Thane Subject : Computer Simulation and Modeling. Simulation is a powerful technique for solving a wide variety of problems. To simulate is to copy the behaviors of a

More information

2009 Winton 1 Distributi ( ons 2) (2)

2009 Winton 1 Distributi ( ons 2) (2) Distributions ib i (2) 2 IV. Triangular Distribution ib ti Known values The minimum (a) The mode (b - the most likely value of the pdf) The maimum (c) f() probability density function (area under the curve

More information

Modeling and Performance Analysis with Discrete-Event Simulation

Modeling and Performance Analysis with Discrete-Event Simulation Simulation Modeling and Performance Analysis with Discrete-Event Simulation Chapter 9 Input Modeling Contents Data Collection Identifying the Distribution with Data Parameter Estimation Goodness-of-Fit

More information

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr. Simulation Discrete-Event System Simulation Chapter 8 Input Modeling Purpose & Overview Input models provide the driving force for a simulation model. The quality of the output is no better than the quality

More information

Slides 3: Random Numbers

Slides 3: Random Numbers Slides 3: Random Numbers We previously considered a few examples of simulating real processes. In order to mimic real randomness of events such as arrival times we considered the use of random numbers

More information

Math 2414 Activity 1 (Due by end of class July 23) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line.

Math 2414 Activity 1 (Due by end of class July 23) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line. Math 44 Activity (Due by end of class July 3) Precalculus Problems: 3, and are tangent to the parabola ais. Find the other line.. One of the two lines that pass through y is the - {Hint: For a line through

More information

Lecture 2: CDF and EDF

Lecture 2: CDF and EDF STAT 425: Introduction to Nonparametric Statistics Winter 2018 Instructor: Yen-Chi Chen Lecture 2: CDF and EDF 2.1 CDF: Cumulative Distribution Function For a random variable X, its CDF F () contains all

More information

Probability Distributions Columns (a) through (d)

Probability Distributions Columns (a) through (d) Discrete Probability Distributions Columns (a) through (d) Probability Mass Distribution Description Notes Notation or Density Function --------------------(PMF or PDF)-------------------- (a) (b) (c)

More information

Continuous Random Variables. and Probability Distributions. Continuous Random Variables and Probability Distributions ( ) ( ) Chapter 4 4.

Continuous Random Variables. and Probability Distributions. Continuous Random Variables and Probability Distributions ( ) ( ) Chapter 4 4. UCLA STAT 11 A Applied Probability & Statistics for Engineers Instructor: Ivo Dinov, Asst. Prof. In Statistics and Neurology Teaching Assistant: Christopher Barr University of California, Los Angeles,

More information

SIMULATION SEMINAR SERIES INPUT PROBABILITY DISTRIBUTIONS

SIMULATION SEMINAR SERIES INPUT PROBABILITY DISTRIBUTIONS SIMULATION SEMINAR SERIES INPUT PROBABILITY DISTRIBUTIONS Zeynep F. EREN DOGU PURPOSE & OVERVIEW Stochastic simulations involve random inputs, so produce random outputs too. The quality of the output is

More information

±. Then. . x. lim g( x) = lim. cos x 1 sin x. and (ii) lim

±. Then. . x. lim g( x) = lim. cos x 1 sin x. and (ii) lim MATH 36 L'H ˆ o pital s Rule Si of the indeterminate forms of its may be algebraically determined using L H ˆ o pital's Rule. This rule is only stated for the / and ± /± indeterminate forms, but four other

More information

Solutions. Some of the problems that might be encountered in collecting data on check-in times are:

Solutions. Some of the problems that might be encountered in collecting data on check-in times are: Solutions Chapter 7 E7.1 Some of the problems that might be encountered in collecting data on check-in times are: Need to collect separate data for each airline (time and cost). Need to collect data for

More information

Continuous random variables

Continuous random variables Continuous random variables Continuous r.v. s take an uncountably infinite number of possible values. Examples: Heights of people Weights of apples Diameters of bolts Life lengths of light-bulbs We cannot

More information

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 18

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 18 EEC 686/785 Modeling & Performance Evaluation of Computer Systems Lecture 18 Department of Electrical and Computer Engineering Cleveland State University wenbing@ieee.org (based on Dr. Raj Jain s lecture

More information

Chapter Learning Objectives. Probability Distributions and Probability Density Functions. Continuous Random Variables

Chapter Learning Objectives. Probability Distributions and Probability Density Functions. Continuous Random Variables Chapter 4: Continuous Random Variables and Probability s 4-1 Continuous Random Variables 4-2 Probability s and Probability Density Functions 4-3 Cumulative Functions 4-4 Mean and Variance of a Continuous

More information

Continuous Random Variables. and Probability Distributions. Continuous Random Variables and Probability Distributions ( ) ( )

Continuous Random Variables. and Probability Distributions. Continuous Random Variables and Probability Distributions ( ) ( ) UCLA STAT 35 Applied Computational and Interactive Probability Instructor: Ivo Dinov, Asst. Prof. In Statistics and Neurology Teaching Assistant: Chris Barr Continuous Random Variables and Probability

More information

IE 303 Discrete-Event Simulation L E C T U R E 6 : R A N D O M N U M B E R G E N E R A T I O N

IE 303 Discrete-Event Simulation L E C T U R E 6 : R A N D O M N U M B E R G E N E R A T I O N IE 303 Discrete-Event Simulation L E C T U R E 6 : R A N D O M N U M B E R G E N E R A T I O N Review of the Last Lecture Continuous Distributions Uniform distributions Exponential distributions and memoryless

More information

0, otherwise. U = Y 1 Y 2 Hint: Use either the method of distribution functions or a bivariate transformation. (b) Find E(U).

0, otherwise. U = Y 1 Y 2 Hint: Use either the method of distribution functions or a bivariate transformation. (b) Find E(U). 1. Suppose Y U(0, 2) so that the probability density function (pdf) of Y is 1 2, 0 < y < 2 (a) Find the pdf of U = Y 4 + 1. Make sure to note the support. (c) Suppose Y 1, Y 2,..., Y n is an iid sample

More information

B.N.Bandodkar College of Science, Thane. Random-Number Generation. Mrs M.J.Gholba

B.N.Bandodkar College of Science, Thane. Random-Number Generation. Mrs M.J.Gholba B.N.Bandodkar College of Science, Thane Random-Number Generation Mrs M.J.Gholba Properties of Random Numbers A sequence of random numbers, R, R,., must have two important statistical properties, uniformity

More information

Uniform random numbers generators

Uniform random numbers generators Uniform random numbers generators Lecturer: Dmitri A. Moltchanov E-mail: moltchan@cs.tut.fi http://www.cs.tut.fi/kurssit/tlt-2707/ OUTLINE: The need for random numbers; Basic steps in generation; Uniformly

More information

Math 2414 Activity 1 (Due by end of class Jan. 26) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line.

Math 2414 Activity 1 (Due by end of class Jan. 26) Precalculus Problems: 3,0 and are tangent to the parabola axis. Find the other line. Math Activity (Due by end of class Jan. 6) Precalculus Problems: 3, and are tangent to the parabola ais. Find the other line.. One of the two lines that pass through y is the - {Hint: For a line through

More information

Distribution Fitting (Censored Data)

Distribution Fitting (Censored Data) Distribution Fitting (Censored Data) Summary... 1 Data Input... 2 Analysis Summary... 3 Analysis Options... 4 Goodness-of-Fit Tests... 6 Frequency Histogram... 8 Comparison of Alternative Distributions...

More information

Generation from simple discrete distributions

Generation from simple discrete distributions S-38.3148 Simulation of data networks / Generation of random variables 1(18) Generation from simple discrete distributions Note! This is just a more clear and readable version of the same slide that was

More information

Probability Methods in Civil Engineering Prof. Rajib Maity Department of Civil Engineering Indian Institute of Technology, Kharagpur

Probability Methods in Civil Engineering Prof. Rajib Maity Department of Civil Engineering Indian Institute of Technology, Kharagpur Probability Methods in Civil Engineering Prof. Rajib Maity Department of Civil Engineering Indian Institute of Technology, Kharagpur Lecture No. # 12 Probability Distribution of Continuous RVs (Contd.)

More information

ECON 5350 Class Notes Review of Probability and Distribution Theory

ECON 5350 Class Notes Review of Probability and Distribution Theory ECON 535 Class Notes Review of Probability and Distribution Theory 1 Random Variables Definition. Let c represent an element of the sample space C of a random eperiment, c C. A random variable is a one-to-one

More information

Online Supplement to Are Call Center and Hospital Arrivals Well Modeled by Nonhomogeneous Poisson Processes?

Online Supplement to Are Call Center and Hospital Arrivals Well Modeled by Nonhomogeneous Poisson Processes? Online Supplement to Are Call Center and Hospital Arrivals Well Modeled by Nonhomogeneous Poisson Processes? Song-Hee Kim and Ward Whitt Industrial Engineering and Operations Research Columbia University

More information

EE/CpE 345. Modeling and Simulation. Fall Class 9

EE/CpE 345. Modeling and Simulation. Fall Class 9 EE/CpE 345 Modeling and Simulation Class 9 208 Input Modeling Inputs(t) Actual System Outputs(t) Parameters? Simulated System Outputs(t) The input data is the driving force for the simulation - the behavior

More information

Random variables, distributions and limit theorems

Random variables, distributions and limit theorems Questions to ask Random variables, distributions and limit theorems What is a random variable? What is a distribution? Where do commonly-used distributions come from? What distribution does my data come

More information

IE 303 Discrete-Event Simulation

IE 303 Discrete-Event Simulation IE 303 Discrete-Event Simulation 1 L E C T U R E 5 : P R O B A B I L I T Y R E V I E W Review of the Last Lecture Random Variables Probability Density (Mass) Functions Cumulative Density Function Discrete

More information

EE/CpE 345. Modeling and Simulation. Fall Class 10 November 18, 2002

EE/CpE 345. Modeling and Simulation. Fall Class 10 November 18, 2002 EE/CpE 345 Modeling and Simulation Class 0 November 8, 2002 Input Modeling Inputs(t) Actual System Outputs(t) Parameters? Simulated System Outputs(t) The input data is the driving force for the simulation

More information

SPRING 2007 EXAM C SOLUTIONS

SPRING 2007 EXAM C SOLUTIONS SPRING 007 EXAM C SOLUTIONS Question #1 The data are already shifted (have had the policy limit and the deductible of 50 applied). The two 350 payments are censored. Thus the likelihood function is L =

More information

57:022 Principles of Design II Final Exam Solutions - Spring 1997

57:022 Principles of Design II Final Exam Solutions - Spring 1997 57:022 Principles of Design II Final Exam Solutions - Spring 1997 Part: I II III IV V VI Total Possible Pts: 52 10 12 16 13 12 115 PART ONE Indicate "+" if True and "o" if False: + a. If a component's

More information

Lecture Notes 2 Random Variables. Random Variable

Lecture Notes 2 Random Variables. Random Variable Lecture Notes 2 Random Variables Definition Discrete Random Variables: Probability mass function (pmf) Continuous Random Variables: Probability density function (pdf) Mean and Variance Cumulative Distribution

More information

Class 26: review for final exam 18.05, Spring 2014

Class 26: review for final exam 18.05, Spring 2014 Probability Class 26: review for final eam 8.05, Spring 204 Counting Sets Inclusion-eclusion principle Rule of product (multiplication rule) Permutation and combinations Basics Outcome, sample space, event

More information

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 19

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 19 EEC 686/785 Modeling & Performance Evaluation of Computer Systems Lecture 19 Department of Electrical and Computer Engineering Cleveland State University wenbing@ieee.org (based on Dr. Raj Jain s lecture

More information

Learning Objectives for Stat 225

Learning Objectives for Stat 225 Learning Objectives for Stat 225 08/20/12 Introduction to Probability: Get some general ideas about probability, and learn how to use sample space to compute the probability of a specific event. Set Theory:

More information

Outline. Simulation of a Single-Server Queueing System. EEC 686/785 Modeling & Performance Evaluation of Computer Systems.

Outline. Simulation of a Single-Server Queueing System. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. EEC 686/785 Modeling & Performance Evaluation of Computer Systems Lecture 19 Outline Simulation of a Single-Server Queueing System Review of midterm # Department of Electrical and Computer Engineering

More information

Sampling Random Variables

Sampling Random Variables Sampling Random Variables Introduction Sampling a random variable X means generating a domain value x X in such a way that the probability of generating x is in accordance with p(x) (respectively, f(x)),

More information

Distributions of Functions of Random Variables. 5.1 Functions of One Random Variable

Distributions of Functions of Random Variables. 5.1 Functions of One Random Variable Distributions of Functions of Random Variables 5.1 Functions of One Random Variable 5.2 Transformations of Two Random Variables 5.3 Several Random Variables 5.4 The Moment-Generating Function Technique

More information

Recall Discrete Distribution. 5.2 Continuous Random Variable. A probability histogram. Density Function 3/27/2012

Recall Discrete Distribution. 5.2 Continuous Random Variable. A probability histogram. Density Function 3/27/2012 3/7/ Recall Discrete Distribution 5. Continuous Random Variable For a discrete distribution, for eample Binomial distribution with n=5, and p=.4, the probabilit distribution is f().7776.59.3456.34.768.4.3

More information

Statistics for scientists and engineers

Statistics for scientists and engineers Statistics for scientists and engineers February 0, 006 Contents Introduction. Motivation - why study statistics?................................... Examples..................................................3

More information

Review. DS GA 1002 Statistical and Mathematical Models. Carlos Fernandez-Granda

Review. DS GA 1002 Statistical and Mathematical Models.   Carlos Fernandez-Granda Review DS GA 1002 Statistical and Mathematical Models http://www.cims.nyu.edu/~cfgranda/pages/dsga1002_fall16 Carlos Fernandez-Granda Probability and statistics Probability: Framework for dealing with

More information

APPENDIX 1 NEYMAN PEARSON CRITERIA

APPENDIX 1 NEYMAN PEARSON CRITERIA 54 APPENDIX NEYMAN PEARSON CRITERIA The design approaches for detectors directly follow the theory of hypothesis testing. The primary approaches to hypothesis testing problem are the classical approach

More information

Applied Statistics and Probability for Engineers. Sixth Edition. Chapter 4 Continuous Random Variables and Probability Distributions.

Applied Statistics and Probability for Engineers. Sixth Edition. Chapter 4 Continuous Random Variables and Probability Distributions. Applied Statistics and Probability for Engineers Sixth Edition Douglas C. Montgomery George C. Runger Chapter 4 Continuous Random Variables and Probability Distributions 4 Continuous CHAPTER OUTLINE Random

More information

Chapter 4 Continuous Random Variables and Probability Distributions

Chapter 4 Continuous Random Variables and Probability Distributions Applied Statistics and Probability for Engineers Sixth Edition Douglas C. Montgomery George C. Runger Chapter 4 Continuous Random Variables and Probability Distributions 4 Continuous CHAPTER OUTLINE 4-1

More information

Midterm 1 Solutions. Monday, 10/24/2011

Midterm 1 Solutions. Monday, 10/24/2011 Midterm Solutions Monday, 0/24/20. (0 points) Consider the function y = f() = e + 2e. (a) (2 points) What is the domain of f? Epress your answer using interval notation. Solution: We must eclude the possibility

More information

This problem set is a good representation of some of the key skills you should have when entering this course.

This problem set is a good representation of some of the key skills you should have when entering this course. Math 4 Review of Previous Material: This problem set is a good representation of some of the key skills you should have when entering this course. Based on the course work leading up to Math 4, you should

More information

9.07 Introduction to Probability and Statistics for Brain and Cognitive Sciences Emery N. Brown

9.07 Introduction to Probability and Statistics for Brain and Cognitive Sciences Emery N. Brown 9.07 Introduction to Probabilit and Statistics for Brain and Cognitive Sciences Emer N. Brown I. Objectives Lecture 4: Transformations of Random Variables, Joint Distributions of Random Variables A. Understand

More information

Continuous Variables Chris Piech CS109, Stanford University

Continuous Variables Chris Piech CS109, Stanford University Continuous Variables Chris Piech CS109, Stanford University 1906 Earthquak Magnitude 7.8 Learning Goals 1. Comfort using new discrete random variables 2. Integrate a density function (PDF) to get a probability

More information

Common ontinuous random variables

Common ontinuous random variables Common ontinuous random variables CE 311S Earlier, we saw a number of distribution families Binomial Negative binomial Hypergeometric Poisson These were useful because they represented common situations:

More information

AP CALCULUS AB SUMMER ASSIGNMENT

AP CALCULUS AB SUMMER ASSIGNMENT AP CALCULUS AB SUMMER ASSIGNMENT 06-07 Attached is your summer assignment for AP Calculus (AB). It will probably take you - hours to complete depending on how well you know your material. I would not do

More information

Transformation of Data for Statistical Processing

Transformation of Data for Statistical Processing Transformation of Data for Statistical Processing Pavel Mach, Josef Thuring, David Šámal Department of Electrotechnology, Faculty of Electrical Engineering, Czech Technical University in Prague, Prague,

More information

Math 19, Homework-1 Solutions

Math 19, Homework-1 Solutions SSEA Summer 207 Math 9, Homework- Solutions. Consider the graph of function f shown below. Find the following its or eplain why they do not eist: (a) t 2 f(t). = 0. (b) t f(t). =. (c) t 0 f(t). (d) Does

More information

Random variables. DS GA 1002 Probability and Statistics for Data Science.

Random variables. DS GA 1002 Probability and Statistics for Data Science. Random variables DS GA 1002 Probability and Statistics for Data Science http://www.cims.nyu.edu/~cfgranda/pages/dsga1002_fall17 Carlos Fernandez-Granda Motivation Random variables model numerical quantities

More information

This midterm covers Chapters 6 and 7 in WMS (and the notes). The following problems are stratified by chapter.

This midterm covers Chapters 6 and 7 in WMS (and the notes). The following problems are stratified by chapter. This midterm covers Chapters 6 and 7 in WMS (and the notes). The following problems are stratified by chapter. Chapter 6 Problems 1. Suppose that Y U(0, 2) so that the probability density function (pdf)

More information

INDIAN INSTITUTE OF SCIENCE STOCHASTIC HYDROLOGY. Lecture -27 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc.

INDIAN INSTITUTE OF SCIENCE STOCHASTIC HYDROLOGY. Lecture -27 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc. INDIAN INSTITUTE OF SCIENCE STOCHASTIC HYDROLOGY Lecture -27 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc. Summary of the previous lecture Frequency factors Normal distribution

More information

L43-Mon-12-Dec-2016-Rev-Cpt-4-for-Final-HW44-and-Rev-Cpt-5-for-Final-HW45 Page 27. L43-Mon-12-Dec-2016-Rev-Cpt-4-HW44-and-Rev-Cpt-5-for-Final-HW45

L43-Mon-12-Dec-2016-Rev-Cpt-4-for-Final-HW44-and-Rev-Cpt-5-for-Final-HW45 Page 27. L43-Mon-12-Dec-2016-Rev-Cpt-4-HW44-and-Rev-Cpt-5-for-Final-HW45 L43-Mon-1-Dec-016-Rev-Cpt-4-for-Final-HW44-and-Rev-Cpt-5-for-Final-HW45 Page 7 L43-Mon-1-Dec-016-Rev-Cpt-4-HW44-and-Rev-Cpt-5-for-Final-HW45 L43-Mon-1-Dec-016-Rev-Cpt-4-for-Final-HW44-and-Rev-Cpt-5-for-Final-HW45

More information

Finding Slope. Find the slopes of the lines passing through the following points. rise run

Finding Slope. Find the slopes of the lines passing through the following points. rise run Finding Slope Find the slopes of the lines passing through the following points. y y1 Formula for slope: m 1 m rise run Find the slopes of the lines passing through the following points. E #1: (7,0) and

More information

Transform Techniques - CF

Transform Techniques - CF Transform Techniques - CF [eview] Moment Generating Function For a real t, the MGF of the random variable is t t M () t E[ e ] e Characteristic Function (CF) k t k For a real ω, the characteristic function

More information

IE 230 Probability & Statistics in Engineering I. Closed book and notes. 60 minutes.

IE 230 Probability & Statistics in Engineering I. Closed book and notes. 60 minutes. Closed book and notes. 60 minutes. A summary table of some univariate continuous distributions is provided. Four Pages. In this version of the Key, I try to be more complete than necessary to receive full

More information

Random variable X is a mapping that maps each outcome s in the sample space to a unique real number x, x. X s. Real Line

Random variable X is a mapping that maps each outcome s in the sample space to a unique real number x, x. X s. Real Line Random Variable Random variable is a mapping that maps each outcome s in the sample space to a unique real number,. s s : outcome Sample Space Real Line Eamples Toss a coin. Define the random variable

More information

1. I had a computer generate the following 19 numbers between 0-1. Were these numbers randomly selected?

1. I had a computer generate the following 19 numbers between 0-1. Were these numbers randomly selected? Activity #10: Continuous Distributions Uniform, Exponential, Normal) 1. I had a computer generate the following 19 numbers between 0-1. Were these numbers randomly selected? 0.12374454, 0.19609266, 0.44248450,

More information

3x 2. x ))))) and sketch the graph, labelling everything.

3x 2. x ))))) and sketch the graph, labelling everything. Fall 2006 Practice Math 102 Final Eam 1 1. Sketch the graph of f() =. What is the domain of f? [0, ) Use transformations to sketch the graph of g() = 2. What is the domain of g? 1 1 2. a. Given f() = )))))

More information

3 Continuous Random Variables

3 Continuous Random Variables Jinguo Lian Math437 Notes January 15, 016 3 Continuous Random Variables Remember that discrete random variables can take only a countable number of possible values. On the other hand, a continuous random

More information

Chapter 5: Generating Random Numbers from Distributions

Chapter 5: Generating Random Numbers from Distributions Chapter 5: Generating Random Numbers from Distributions See Reading Assignment OR441-DrKhalid Nowibet 1 Review 1 Inverse Transform Generate a number u i between 0 and 1 (one U-axis) and then find the corresponding

More information

15 Discrete Distributions

15 Discrete Distributions Lecture Note 6 Special Distributions (Discrete and Continuous) MIT 4.30 Spring 006 Herman Bennett 5 Discrete Distributions We have already seen the binomial distribution and the uniform distribution. 5.

More information

2 Random Variable Generation

2 Random Variable Generation 2 Random Variable Generation Most Monte Carlo computations require, as a starting point, a sequence of i.i.d. random variables with given marginal distribution. We describe here some of the basic methods

More information

Chapte The McGraw-Hill Companies, Inc. All rights reserved.

Chapte The McGraw-Hill Companies, Inc. All rights reserved. er15 Chapte Chi-Square Tests d Chi-Square Tests for -Fit Uniform Goodness- Poisson Goodness- Goodness- ECDF Tests (Optional) Contingency Tables A contingency table is a cross-tabulation of n paired observations

More information

Systems Simulation Chapter 7: Random-Number Generation

Systems Simulation Chapter 7: Random-Number Generation Systems Simulation Chapter 7: Random-Number Generation Fatih Cavdur fatihcavdur@uludag.edu.tr April 22, 2014 Introduction Introduction Random Numbers (RNs) are a necessary basic ingredient in the simulation

More information

Qualifying Exam CS 661: System Simulation Summer 2013 Prof. Marvin K. Nakayama

Qualifying Exam CS 661: System Simulation Summer 2013 Prof. Marvin K. Nakayama Qualifying Exam CS 661: System Simulation Summer 2013 Prof. Marvin K. Nakayama Instructions This exam has 7 pages in total, numbered 1 to 7. Make sure your exam has all the pages. This exam will be 2 hours

More information

October 27, 2018 MAT186 Week 3 Justin Ko. We use the following notation to describe the limiting behavior of functions.

October 27, 2018 MAT186 Week 3 Justin Ko. We use the following notation to describe the limiting behavior of functions. October 27, 208 MAT86 Week 3 Justin Ko Limits. Intuitive Definitions of Limits We use the following notation to describe the iting behavior of functions.. (Limit of a Function A it is written as f( = L

More information

Gini Coefficient. A supplement to Mahlerʼs Guide to Loss Distributions. Exam C. prepared by Howard C. Mahler, FCAS Copyright 2017 by Howard C. Mahler.

Gini Coefficient. A supplement to Mahlerʼs Guide to Loss Distributions. Exam C. prepared by Howard C. Mahler, FCAS Copyright 2017 by Howard C. Mahler. Gini Coefficient A supplement to Mahlerʼs Guide to Loss Distributions Eam C prepared by Howard C. Mahler, FCAS Copyright 27 by Howard C. Mahler. Howard Mahler hmahler@mac.com www.howardmahler.com/teaching

More information

Real Analysis Math 125A, Fall 2012 Final Solutions

Real Analysis Math 125A, Fall 2012 Final Solutions Real Analysis Math 25A, Fall 202 Final Solutions. (a) Suppose that f : [0, ] R is continuous on the closed, bounded interval [0, ] and f() > 0 for every 0. Prove that the reciprocal function /f : [0, ]

More information

Recall the Basics of Hypothesis Testing

Recall the Basics of Hypothesis Testing Recall the Basics of Hypothesis Testing The level of significance α, (size of test) is defined as the probability of X falling in w (rejecting H 0 ) when H 0 is true: P(X w H 0 ) = α. H 0 TRUE H 1 TRUE

More information

STAT 515 MIDTERM 2 EXAM November 14, 2018

STAT 515 MIDTERM 2 EXAM November 14, 2018 STAT 55 MIDTERM 2 EXAM November 4, 28 NAME: Section Number: Instructor: In problems that require reasoning, algebraic calculation, or the use of your graphing calculator, it is not sufficient just to write

More information

SUMMARIZING MEASURED DATA. Gaia Maselli

SUMMARIZING MEASURED DATA. Gaia Maselli SUMMARIZING MEASURED DATA Gaia Maselli maselli@di.uniroma1.it Computer Network Performance 2 Overview Basic concepts Summarizing measured data Summarizing data by a single number Summarizing variability

More information

10 Introduction to Reliability

10 Introduction to Reliability 0 Introduction to Reliability 10 Introduction to Reliability The following notes are based on Volume 6: How to Analyze Reliability Data, by Wayne Nelson (1993), ASQC Press. When considering the reliability

More information

Week 1 Quantitative Analysis of Financial Markets Distributions A

Week 1 Quantitative Analysis of Financial Markets Distributions A Week 1 Quantitative Analysis of Financial Markets Distributions A Christopher Ting http://www.mysmu.edu/faculty/christophert/ Christopher Ting : christopherting@smu.edu.sg : 6828 0364 : LKCSB 5036 October

More information

A) Questions on Estimation

A) Questions on Estimation A) Questions on Estimation 1 The following table shows the data about the number of seeds germinating out of 10 on damp filter paper which has Poisson distribution. Determine Estimate of λ. Number of seeds

More information

Computer simulation on homogeneity testing for weighted data sets used in HEP

Computer simulation on homogeneity testing for weighted data sets used in HEP Computer simulation on homogeneity testing for weighted data sets used in HEP Petr Bouř and Václav Kůs Department of Mathematics, Faculty of Nuclear Sciences and Physical Engineering, Czech Technical University

More information

New York State Mathematics Association of Two-Year Colleges

New York State Mathematics Association of Two-Year Colleges New York State Mathematics Association of Two-Year Colleges Math League Contest ~ Fall 06 Directions: You have one hour to take this test. Scrap paper is allowed. The use of calculators is NOT permitted,

More information