Variance Reduction Techniques

Slides:



Advertisements
Similar presentations
+ Validation of Simulation Model. Important but neglected The question is How accurately does a simulation model (or, for that matter, any kind of model)
Advertisements

Variance reduction techniques. 2 Introduction Simulation models should be coded such that they are efficient. Efficiency in terms of programming ensures.
Statistics review of basic probability and statistics.
Dependent t-tests When the two samples are correlated (i.e. not independent) 1.
 1  Outline  generation of random variates  convolution  composition  acceptance/rejection  generation of uniform(0, 1) random variates  linear.
Spreadsheet Demonstration New Car Simulation. 2 New car simulation Basic problem  To simulate the profitability of a new model car over a several-year.
Confidence Interval Estimation
Problems with parameterization (example:keeper usage): average duration: 1.27, min: 0.106, max: 6.46 possible outcome for keeper and crane queues? Assignment.
Chapter 20 Basic Numerical Procedures
CS 351/ IT 351 Modelling and Simulation Technologies Random Variates Dr. Jim Holten.
Simulation Modeling and Analysis Session 12 Comparing Alternative System Designs.
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
Variance Reduction Techniques
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
Chap 9-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 9 Estimation: Additional Topics Statistics for Business and Economics.
Overview of STAT 270 Ch 1-9 of Devore + Various Applications.
EEM332 Design of Experiments En. Mohd Nazri Mahmud
Regression Chapter 10 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
1 Simulation Modeling and Analysis Output Analysis.
Today Concepts underlying inferential statistics
5-3 Inference on the Means of Two Populations, Variances Unknown
1 Confidence Intervals for Means. 2 When the sample size n< 30 case1-1. the underlying distribution is normal with known variance case1-2. the underlying.
Standard error of estimate & Confidence interval.
STAT 572: Bootstrap Project Group Members: Cindy Bothwell Erik Barry Erhardt Nina Greenberg Casey Richardson Zachary Taylor.
1 Terminating Statistical Analysis By Dr. Jason Merrick.
Zheng Zhenlong, Dept of Finance,XMU Basic Numerical Procedures Chapter 19.
QNT 531 Advanced Problems in Statistics and Research Methods
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.2 Estimating Differences.
Confidence Intervals and Two Proportions Presentation 9.4.
The paired sample experiment The paired t test. Frequently one is interested in comparing the effects of two treatments (drugs, etc…) on a response variable.
Chapter 8: Confidence Intervals
Confidence Intervals (Chapter 8) Confidence Intervals for numerical data: –Standard deviation known –Standard deviation unknown Confidence Intervals for.
Monte Carlo Simulation CWR 6536 Stochastic Subsurface Hydrology.
Montecarlo Simulation LAB NOV ECON Montecarlo Simulations Monte Carlo simulation is a method of analysis based on artificially recreating.
MS 305 Recitation 11 Output Analysis I
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.2.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
BPS - 5th Ed. Chapter 11 1 Sampling Distributions.
1 SMU EMIS 7364 NTU TO-570-N Inferences About Process Quality Updated: 2/3/04 Statistical Quality Control Dr. Jerrell T. Stracener, SAE Fellow.
Delivering Integrated, Sustainable, Water Resources Solutions Monte Carlo Simulation Robert C. Patev North Atlantic Division – Regional Technical Specialist.
Basic Numerical Procedures Chapter 19 1 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull 2008.
Independent t-tests Uses a sampling distribution of differences between means 1.
Confidence intervals and hypothesis testing Petter Mostad
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
Inference for 2 Proportions Mean and Standard Deviation.
Simulation & Confidence Intervals COMP5416 Advanced Network Technologies.
Chapter Twelve The Two-Sample t-Test. Copyright © Houghton Mifflin Company. All rights reserved.Chapter is the mean of the first sample is the.
Problem: 1) Show that is a set of sufficient statistics 2) Being location and scale parameters, take as (improper) prior and show that inferences on ……
One-way ANOVA Example Analysis of Variance Hypotheses Model & Assumptions Analysis of Variance Multiple Comparisons Checking Assumptions.
© 2002 Prentice-Hall, Inc.Chap 8-1 Basic Business Statistics (8 th Edition) Chapter 8 Confidence Interval Estimation.
Chapter 9 Inferences Based on Two Samples: Confidence Intervals and Tests of Hypothesis.
Learning Objectives After this section, you should be able to: The Practice of Statistics, 5 th Edition1 DESCRIBE the shape, center, and spread of the.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
Pairwise comparisons: Confidence intervals Multiple comparisons Marina Bogomolov and Gili Baumer.
Descriptive Statistics Experiment Simulations Confidence Intervals Sampling Distribution Simulations Main Menu.
Variance reduction techniques Mat Simulation
CHAPTER 10 Comparing Two Populations or Groups
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.

CHAPTER 10 Comparing Two Populations or Groups
VARIANCE REDUCTION.
Evaluating Hypotheses
CHAPTER 10 Comparing Two Populations or Groups
Confidence intervals for the difference between two means: Independent samples Section 10.1.
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

Variance Reduction Techniques Simulation

What is VRT? Techniques that seek to reduce variance in the response of a simulation experiment by inducing correlations between sets of data. Two approaches are described Common Random Numbers Antithetic Variates

Common Random Numbers By inducing positive correlation between two sets of data we can reduce variance. This can be useful when comparing two systems to see if there is a difference in their means. also known as ‘correlated sampling’ and as ‘matched streams’ or ‘matched pairs’

How CRN works In using CRN when one model generates a sample that is ‘high’ (in the extreme end of the distribution used) then the second model also samples a ‘high’ value; likewise when A samples ‘low’ B samples ‘low’. This induces positive correlation that reduces variance.

Simulation of CRN effect Using Common Random Numbers

Difference between Zippy & Klunky with and without use of CRN

CRN vs. Paired-t There’s no conflict The use of CRNs reduces the variance in the difference (Zi) compared with entirely independent results for A & B Z without CRN with CRN

How this affects comparisons Fig 11.4 (Law & Kelton) INDEPENDENT n=20 CRN n=10 n=5 n=1 -15 -10 -5 0 5 10 15 Zj

FlexSim: Repeat Random Streams If deselected then every run will produce a different result because it won’t start from the same place in a stream. If selected then each run will use the same sequence of samples. Equivalent to triggering this FlexScript for every stream used: randinit(num stream, num seedvalue);

Initialising FlexSim streams Done automatically for streams 0 to 99 when FlexSim opens not necessarily when you begin a run unless you program this in an OnReset trigger randinit(num stream, num seedvalue); Examples: randinit(7,0); initialise stream 7 with its default seed randinit(12,2302); initialise stream 12 with 2302 as seed Beware: if you don’t specify a stream when you sample from a distribution then FlexSim will allocate stream 0.

Applying CRN in FlexSim Don’t let FlexSim allocate streams i.e. don’t do this exponential(1.0); Use the same streams for the same behaviours in each model Initialise them with the same seeds Recall, streams 0 to 99 are automatically initialised For example, if IAT is exponential with β=1.0 If system A’s IAT is specified as exponential(1.0,12); Then so too should system B’s IAT

Antithetic Variates When attempting to estimate the mean value of some uncertain variable in a single system we can use Antithetic Variates (AV). In this case, rather than induce positive correlation, as in the case for CRNs, we seek to induce negative correlation. Over a number of independent replications we would expect the average of two results to be a better estimate than for a single result. S2 for an average over 2 runs using AV < S2 for an average over 2 runs not using AV

Antithetic Variates If a normal variate is specified as U[0,1] then the AV=1-U[0,1] --is its complement. Examples Normal: 0.3, 0.4, 0.6, 0.9, 0.1 Antithetic: 0.7, 0.6, 0.4, 0.1, 0.9

Antithetic Variates Output from a Witness simulation model into Excel for analysis

Antithetic Variate procedure The procedure when using AV is to: Make replication 1 using normal variates Repeat replication 1 using antithetic variates Calculate the average of the two runs Repeat 1-3 as many times as time and the requirements of your problem indicate If more than one replication has been made then calculate the mean across all replications Calculate the approximate confidence interval

FlexSim: randantithetic(num on/off) Description: Makes number streams antithetic. Using this command, users can switch random streams to generate numbers between 1 and 0; rather than the default of 0 to 1. This is helpful for determining if random numbers are having a big affect on the results of the model. It's also useful when experimenting with massive models and there isn't sufficient time to run the model for multiple iterations as required for good statistical sampling. The user can then choose to do just one regular run and one antithetic run of the model to obtain two diametrically apposed results. These two results can be averaged for an approximation that is somewhat better than if each run of the model used random stream generators without antithetic sampling. Example: randantithetic(1);

Using the Script and Console Windows