 1  Outline  terminating and non-terminating systems  analysis of terminating systems  generation of random numbers  simulation by Excel  a terminating.

Slides:



Advertisements
Similar presentations
Random Processes Introduction (2)
Advertisements

 1  Outline  Chapter 3: Guided Tour Through Arena  Chapter 4: Modeling Basic Operations and Inputs.
Week11 Parameter, Statistic and Random Samples A parameter is a number that describes the population. It is a fixed number, but in practice we do not know.
Outline input analysis input analyzer of ARENA parameter estimation
Statistics review of basic probability and statistics.
 1  Outline  terminating and non-terminating systems  theories for output analysis  Strong Law of Large Numbers  Central Limit Theorem  Regenerative.
 1  Outline  performance measures for a single-server station  discrete-event simulation  hand simulation  process-oriented simulation approach.
ORDER STATISTICS.
MATH 1107 Introduction to Statistics
 1  Outline  generation of random variates  convolution  composition  acceptance/rejection  generation of uniform(0, 1) random variates  linear.
 1  Outline  Model  problem statement  detailed ARENA model  model technique  Output Analysis.
Review of Basic Probability and Statistics
Sampling Distributions
Engineering Probability and Statistics - SE-205 -Chap 4 By S. O. Duffuaa.
Binomial Random Variables. Binomial experiment A sequence of n trials (called Bernoulli trials), each of which results in either a “success” or a “failure”.
1 Sampling Distributions Chapter Introduction  In real life calculating parameters of populations is prohibitive because populations are very.
Programme in Statistics (Courses and Contents). Elementary Probability and Statistics (I) 3(2+1)Stat. 101 College of Science, Computer Science, Education.
Building and Running a FTIM n 1. Define the system of interest. Identify the DVs, IRVs, DRVs, and Objective. n 2. Develop an objective function of these.
Simulation Modeling and Analysis Session 12 Comparing Alternative System Designs.
Statistics Lecture 20. Last Day…completed 5.1 Today Parts of Section 5.3 and 5.4.
Lecture 9 Output Analysis for a Single Model. 2  Output analysis is the examination of data generated by a simulation.  Its purpose is to predict the.
4. Review of Basic Probability and Statistics
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
The moment generating function of random variable X is given by Moment generating function.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 6-1 Chapter 6 The Normal Distribution and Other Continuous Distributions.
The Central Limit Theorem For simple random samples from any population with finite mean and variance, as n becomes increasingly large, the sampling distribution.
Approximations to Probability Distributions: Limit Theorems.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
 1  Outline  simulating GI/G/1 queues  M/M/1 queues  theoretical results of queueing systems  an inventory system  simulation program with an event.
SAMPLING DISTRIBUTION
Random Variables and Probability Distributions Modified from a presentation by Carlos J. Rosas-Anderson.
 1  Outline  simulation exercises  yield management  project management  system reliability  integration  estimation of   GI/G/1 queue.
Simulation Output Analysis
Standard Statistical Distributions Most elementary statistical books provide a survey of commonly used statistical distributions. The reason we study these.
Simulation Examples ~ By Hand ~ Using Excel
 1  Outline  stages and topics in simulation  generation of random variates.
CPSC 531: Probability Review1 CPSC 531:Distributions Instructor: Anirban Mahanti Office: ICT Class Location: TRB 101.
Physics 270 – Experimental Physics. Standard Deviation of the Mean (Standard Error) When we report the average value of n measurements, the uncertainty.
1 Statistical Distribution Fitting Dr. Jason Merrick.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review II Instructor: Anirban Mahanti Office: ICT 745
Lecture 15: Statistics and Their Distributions, Central Limit Theorem
0 K. Salah 2. Review of Probability and Statistics Refs: Law & Kelton, Chapter 4.
ENGR 610 Applied Statistics Fall Week 3 Marshall University CITE Jack Smith.
Convergence in Distribution
Week11 Parameter, Statistic and Random Samples A parameter is a number that describes the population. It is a fixed number, but in practice we do not know.
1 ORDER STATISTICS AND LIMITING DISTRIBUTIONS. 2 ORDER STATISTICS Let X 1, X 2,…,X n be a r.s. of size n from a distribution of continuous type having.
Chapter 7 Sampling and Sampling Distributions ©. Simple Random Sample simple random sample Suppose that we want to select a sample of n objects from a.
8 Sampling Distribution of the Mean Chapter8 p Sampling Distributions Population mean and standard deviation,  and   unknown Maximal Likelihood.
Simulation Tutorial By Bing Wang Assistant professor, CSE Department, University of Connecticut Web site.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Network Simulation Motivation: r learn fundamentals of evaluating network performance via simulation Overview: r fundamentals of discrete event simulation.
1 OUTPUT ANALYSIS FOR SIMULATIONS. 2 Introduction Analysis of One System Terminating vs. Steady-State Simulations Analysis of Terminating Simulations.
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
Week 121 Law of Large Numbers Toss a coin n times. Suppose X i ’s are Bernoulli random variables with p = ½ and E(X i ) = ½. The proportion of heads is.
1 Probability and Statistical Inference (9th Edition) Chapter 5 (Part 2/2) Distributions of Functions of Random Variables November 25, 2015.
Output Analysis for Simulation
Chapter 4. Random Variables - 3
SAMPLING DISTRIBUTION. 2 Introduction In real life calculating parameters of populations is usually impossible because populations are very large. Rather.
Stat 35b: Introduction to Probability with Applications to Poker Outline for the day: 1.HW4 notes. 2.Law of Large Numbers (LLN). 3.Central Limit Theorem.
Chapter 6 Large Random Samples Weiqi Luo ( 骆伟祺 ) School of Data & Computer Science Sun Yat-Sen University :
Sums of Random Variables and Long-Term Averages Sums of R.V. ‘s S n = X 1 + X X n of course.
1 Ardavan Asef-Vaziri Jan.-2016Basics Probability Distributions- Uniform.
Variance reduction techniques Mat Simulation
Probability & Statistics Probability Theory Mathematical Probability Models Event Relationships Distributions of Random Variables Continuous Random.
C14: The central limit theorem
GENERATING NON-UNIFORM RANDOM DEVIATES
Simulation Part 1: Simulation with Discrete Random Variables
Data Analysis Statistical Measures Industrial Engineering
SAMPLING DISTRIBUTION
9. Limit Theorems.
Presentation transcript:

 1  Outline  terminating and non-terminating systems  analysis of terminating systems  generation of random numbers  simulation by Excel  a terminating system  a non-terminating system  basic operations in Arena

 2  Two Types of Systems  Terminating and Non-Terminating

 3  Two Types of Systems  chess piece  starts at vertex F  moves equally likely to adjacent vertices  to estimate E(# of moves) to reach the upper boundary  GI/G/ 1 queue  infinite buffer  service times ~ unif[6, 10]  interarrival times ~ unif[8, 12]  to estimate the E[# of customers in system] F E D C B A N(t)N(t) t, time …

 4  Two Types of Systems  chess piece  initial condition defined by problem  termination of a simulation run defined by the system  estimation of the mean or probability of a random variable  run length defined by number of replications  GI/G/ 1 queue  initial condition unclear  termination of a simulation run defined by ourselves  estimation of the mean or probability of the limit of a sequence of random variables  run length defined by run time

 5  Two Types of Systems  Terminating and Non-Terminating  chess piece: a terminating systems  analysis: Strong Law of Large Numbers (SLLN) and Central Limit Theorem (CLT)  GI/G/ 1 queue: a non- terminating system  analysis: probability theory and statistics related to but not exactly SLLN, nor CLT

 6  Analysis of Terminating Systems

 7  Strong Law of Large Numbers - Basis to Analyze Terminating Systems  i.i.d. random variables X 1, X 2, …  finite mean  and variance  2  define

 8  Strong Law of Large Numbers - Basis to Analyze Terminating Systems  a fair die thrown continuously  X i = the number shown on the ith throw be? What

 9  Strong Law of Large Numbers - Basis to Analyze Terminating Systems  in terminating systems, each replication is an independent draw of X  X i are i.i.d.  E(X)  (X 1 + … + X n )/n

 10  Central Limit Theorem - Basis to Analyze Terminating Systems  interval estimate & hypothesis testing of normal random variables  t,  2, and F  i.i.d. random variables X 1, X 2, … of finite mean  and variance  2  CLT: approximately normal for “ large enough ” n  can use t,  2, and F for

 11  Generation of Random Numbers & Random Variates

 12  To Generate Random Variates in Excel  for uniform [0, 1]: rand() function  for other distributions: use Random Number Generator in Data Analysis Tools  uniform, discrete, Poisson, Bernoulli, Binomial, Normal  tricks to transform  uniform [-3.5, 7.6]?  normal (4, 9) (where 4 is the mean and 9 is the variance) ?

 13  To Generate the Random Mechanism  general overview, with details discussed later this semester  everything based on random variates from uniform (0, 1)  each stream of uniform (0, 1) random variates being a deterministic sequence of numbers on a round robin  “ first ” number in the robin to use: SEED  many simple, handy generators

 14  Simulation by Excel for Terminating Systems

 15  Examples  Example 1: Generate 1000 samples of X ~ uniform(0,1)  Example 2: Generate 1000 samples of Y ~ normal(5,1)  Example 3: Generate 1000 samples of Z ~ z: p:  Example 4. Use simulation to estimate (a) P(X > 0.5) (b) P(2 < Y < 8) (c) E(Z) Using 10 replications, 50 replications, 500 replications, 5000 replications. Which is more accurate?

 16  Examples: Probability and Expectation of Functions of Random Variables  X ~ x: p(x):  Y =  Find E(Y) and P(Y  30)

 17  Examples: Probability and Expectation of Functions of Random Variables  X ~ N(10, 4), Y ~ N(9,1), independent  estimate  P(X < Y)  Cov(X, Y) = E(XY) - E(X)E(Y)

 18  Example: Newsboy Problem  Pieces of “ Newspapers ” to Order  order 2012 calendars in Sept 2011  cost: $2 each; selling price: $4.50 each  salvage value of unsold items at Jan : $0.75 each  from historical data: demand for new calendars Demand: Prob. :  objective: profit maximization  questions  how many calendars to order  with the optimal order quantity, P(profit  400)

 19  Example: Newsboy Problem  Pieces of “ Newspapers ” to Order  D = the demand of the 2012 calendar  D follows the given distribution  Q = the order quantity  {100, 150, 200, 250, 300}  V = the profit in ordering Q pieces  = 4.5 min (Q, D) max (0, Q - D) - 2Q  objective: find Q * to maximize E(V)

 20  Example: Newsboy Problem  Pieces of “ Newspapers ” to Order  two-step solution procedure  1  estimate E(profit) for a given Q  generate demands  find the profit for each demand sample  find the (sample) mean profit of all demand samples  2  look for Q *, which gives the largest mean profit

 21  Example: Newsboy Problem  Pieces of “ Newspapers ” to Order  our simulation of 1000 samples,  Q = 100: E(V) = 250  Q = 150: E(V) =  Q = 200: E(V) =  Q = 250: E(V) =  Q = 300: E(V) =  Q * = 200 is optimal  remarks: many papers on this issue

 22  Simulation by Excel for a Non-Terminating System

 23  Simulation a GI/G/1 Queue by its Special Properties  D n = delay time of the nth customer; D 1 = 0  S n = service time of the nth customer  T n = inter-arrival time between the nst and the (n+1)st customer  D n+1 = [D n + S n - T n ] +, where [  ] + = max( , 0)  average delay =

 24  Arena Model 03-1, Model 03-02, Model 03-03

 25  Model  a drill press processing one type of product  interarrival times ~ i.i.d. exp(5)  service times ~ i.i.d. triangular (1,3,6)  all random quantities are independent a drill press one type of parts; parts come in and are processed one by one

 26  Model and Model  Model 03-02: sequential servers  Alfie checks credit  Betty prepares covenant  Chuck prices loan  Doris disburses funds  Model 03-03: parallel servers  Each employee can do any tasks