 1  Outline  terminating and non-terminating systems  theories for output analysis  Strong Law of Large Numbers  Central Limit Theorem  Regenerative.

Slides:



Advertisements
Similar presentations
T.C ATILIM UNIVERSITY MODES ADVANCED SYSTEM SIMULATION MODES 650
Advertisements

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
Stochastic Inventory Modeling
___________________________________________________________________________ Operations Research  Jan Fábry Probabilistic Inventory Models.
Statistics review of basic probability and statistics.
 1  Outline  terminating and non-terminating systems  analysis of terminating systems  generation of random numbers  simulation by Excel  a terminating.
 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.
Output analyses for single system
Review of Basic Probability and Statistics
Introduction to stochastic process
Output Data Analysis. How to analyze simulation data? simulation –computer based statistical sampling experiment –estimates are just particular realizations.
Sampling Distributions
Descriptive statistics Experiment  Data  Sample Statistics Sample mean Sample variance Normalize sample variance by N-1 Standard deviation goes as square-root.
Discrete Random Variables and Probability Distributions
Section 5.7 Suppose X 1, X 2, …, X n is a random sample from a Bernoulli distribution with success probability p. Then Y = X 1 + X 2 + … + X n has a distribution.
1 Sampling Distributions Chapter Introduction  In real life calculating parameters of populations is prohibitive because populations are very.
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.
Probability theory 2010 Outline  The need for transforms  Probability-generating function  Moment-generating function  Characteristic function  Applications.
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
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.
Stat 321 – Lecture 19 Central Limit Theorem. Reminders HW 6 due tomorrow Exam solutions on-line Today’s office hours: 1-3pm Ch. 5 “reading guide” in Blackboard.
4. Review of Basic Probability and Statistics
The moment generating function of random variable X is given by Moment generating function.
Chapter 4: Joint and Conditional Distributions
Ka-fu Wong © 2004 ECON1003: Analysis of Economic Data Lesson6-1 Lesson 6: Sampling Methods and the Central Limit Theorem.
The Central Limit Theorem For simple random samples from any population with finite mean and variance, as n becomes increasingly large, the sampling distribution.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Hamid R. Rabiee Fall 2009 Stochastic Processes Review of Elementary Probability Lecture I.
SAMPLING DISTRIBUTION
1 1 Slide Discrete Probability Distributions (Random Variables and Discrete Probability Distributions) Chapter 5 BA 201.
Simulation Output Analysis
Example 16.1 Ordering calendars at Walton Bookstore
Chapter 5 Discrete Random Variables and Probability Distributions ©
Sampling distributions, Point Estimation Week 3: Lectures 3 Sampling Distributions Central limit theorem-sample mean Point estimators-bias,efficiency Random.
 1  Outline  stages and topics in simulation  generation of random variates.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Random Sampling, Point Estimation and Maximum Likelihood.
1 INVENTORY MODELS Outline Deterministic models –The Economic Order Quantity (EOQ) model –Sensitivity analysis –A price-break Model Probabilistic Inventory.
___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry Probabilistic Inventory Models.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review II Instructor: Anirban Mahanti Office: ICT 745
0 K. Salah 2. Review of Probability and Statistics Refs: Law & Kelton, Chapter 4.
MA-250 Probability and Statistics Nazar Khan PUCIT Lecture 26.
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 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.
Ka-fu Wong © 2003 Chap 6- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
Sampling and estimation Petter Mostad
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
Statistics Sampling Distributions and Point Estimation of Parameters Contents, figures, and exercises come from the textbook: Applied Statistics and Probability.
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.
12.SPECIAL PROBABILITY DISTRIBUTIONS
Evaluating Hypotheses. Outline Empirically evaluating the accuracy of hypotheses is fundamental to machine learning – How well does this estimate accuracy.
Statistics and probability Dr. Khaled Ismael Almghari Phone No:
Variance reduction techniques Mat Simulation
Computer Simulation Henry C. Co Technology and Operations Management,
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Chapter 3: Discrete Random Variables and Their Distributions CIS.
Stat 35b: Introduction to Probability with Applications to Poker
Stat 35b: Introduction to Probability with Applications to Poker
Probability & Statistics Probability Theory Mathematical Probability Models Event Relationships Distributions of Random Variables Continuous Random.
Simulation Part 1: Simulation with Discrete Random Variables
Data Analysis Statistical Measures Industrial Engineering
9. Limit Theorems.
Presentation transcript:

 1  Outline  terminating and non-terminating systems  theories for output analysis  Strong Law of Large Numbers  Central Limit Theorem  Regenerative Processes  random variate generation from Excel  simulating with Excel  simple random variables  functions of random variables  newsboy problem

 2  Two Book Stores  Bookstore A  from 8 am to 8 pm  inventory count at 8 pm  order up to B  leadtime: 12 hours  customer arrivals: Poisson process of rate, each for one book  loss sales  Bookstore B  24 hours every day  continuous review  order up to B  leadtime: 12 hours  customer arrivals: Poisson process of rate, each for one book  loss sales

 3  Book Store A B books I 1 (12) I 2 (12)  beginning of Day 1 and Day 2: similar  I 1 (12) and I 2 (12): i.i.d. Day 1Day 2

 4  Book Store B B books X books I 1 (12) I 2 (12)  X and B have different distributions  dependence: X & I 1 (12); X & I 2 (12)  I 1 (12) & I 2 (12) Day 1Day 2

 5  Two Book Stores  first bookstore  from 8 am to 8 pm  I i (12) ~ i.i.d.  ~ i.i.d.  terminating  second bookstore  24 hrs every day  I i (12) dependent, different distributions  dependent, different distributions  non-terminating

 6  Two Book Stores  differences  termination condition  run length  quantities of interest  initial condition

 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

 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  Output Analysis – Terminating Systems  n replications; sample space for ith replication  i   =  1  n ; sample space of the whole experiment   = (  1, ,  n ), where  i is outcome of the ith replication  sampled values: X 1 (  1 ), …, X n (  n )  estimate  = E(X)  estimate by  estimate  by= g(X 1 (  1 ), …, X n (  n ))

 12   unbiased estimator of  ?  variance of estimator  efficient estimator of  ?  confidence on the range estimator  # of simulation runs (replications) required? Output Analysis – Terminating System  statistical tests for

 13  Output Analysis – Non-Terminating System  similar questions as terminating systems  non-terminating  possibly with dependent random variables  the mean and probability of quantities that follow the stationary (limiting) distribution

 14  Theory of Regenerative Processes - Basis to Analyze Non-Terminating Systems  Cho-Free low-fat chocolate milk in a 24-hour store  order 20 bottles when out of stock  order lead-time = four hours  shelf life of each bottle = one week  expired milk: thrown away immediately  customer arrivals: Poisson process of rate  unsatisfied customers never return  what probability & expectation are we talking about?  P(store is out of stock of Cho-Free)  E(number of bottles in the store)

 15  Theory of Regenerative Processes - Basis to Analyze Non-Terminating Systems  the actual story: X t = number of bottles in the store at t  distribution of X t  a function of t  converges to that of X   questions of interest: with respect to X   P(X  = k), E(X  )

 16  Theory of Regenerative Processes - Basis to Analyze Non-Terminating Systems  {B(t)} is a regenerative process if there exists a non-negative random variable T  {B(t)| 0  t < T} is independent of {B(t)| T  t}  {B(t)| 0  t} and {B(t)| t  T} are stochastically equivalent  most practical systems are regenerative

 17  Theory of Regenerative Processes - Basis to Analyze Non-Terminating Systems  for a regenerative process {B(t)}, under mild conditions  for the 24-hour store

 18  Theory of Regenerative Processes - Basis to Analyze Non-Terminating Systems  in practice, simulate one long run  questions  unbiased estimator, variance of estimator, confidence interval, interval estimator  untouched questions  dependent random variables  imprecise result for finite simulation time  biased by initial condition

 19  To Generate the Random Mechanism  will discuss later, general overview  everything based on random variates from uniform (0, 1)  often each stream of uniform (0, 1) random variates is a deterministic sequence of numbers on a round robin  “ first ” number in the robin to use: SEED  many simple, handy generators

 20  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) ?

 21  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:

 22  Examples: Probability and Expectation of Random Variables  Example 4. Use simulation to estimate  (a) P(X > 0.5)  (b) P(2 < Y < 8)  (c) E(Z)  questions before solving  terminating or non-terminating?  which theorem to base on?  state?

 23  Examples: Probability and Expectation of Random Variables  use  10 replications  50 replications  500 replications  5000 replications  accuracy?

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

 25  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)

 26  Example: Newsboy Problem - # of “ Newspapers ” to Order  order 2010 calendars in Sept 2009  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)

 27  Example: Newsboy Problem - # of “ Newspapers ” to Order  D = the demand of the 2007 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)

 28  Example: Newsboy Problem - # 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 largest mean profit

 29  Example: Newsboy Problem - # 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

 30  Exercise  situation similar to the example  salvage value  = 0 for the first 50 pieces  = $0.75 / piece from the 51 st piece onwards  questions  find Q *  P(profit  400)