Output Analysis for Simulations

Similar documents
Chapter 11 Output Analysis for a Single Model. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Monte Carlo Methods in Financial Engineering

Tutorial 11: Limit Theorems. Baoxiang Wang & Yihan Zhang bxwang, April 10, 2017

3. Monte Carlo Simulation

Introduction to Algorithmic Trading Strategies Lecture 8

IEOR E4703: Monte-Carlo Simulation

Random Tree Method. Monte Carlo Methods in Financial Engineering

B. Maddah INDE 504 Discrete-Event Simulation. Output Analysis (3)

Confidence Intervals Introduction

EC316a: Advanced Scientific Computation, Fall Discrete time, continuous state dynamic models: solution methods

Value at Risk Ch.12. PAK Study Manual

1.010 Uncertainty in Engineering Fall 2008

Interval estimation. September 29, Outline Basic ideas Sampling variation and CLT Interval estimation using X More general problems

Self-organized criticality on the stock market

EE266 Homework 5 Solutions

Modeling Credit Risk of Loan Portfolios in the Presence of Autocorrelation (Part 2)

AMS 7 Sampling Distributions, Central limit theorem, Confidence Intervals Lecture 4

Estimation of dynamic term structure models

MATH 3200 Exam 3 Dr. Syring

Section 3.1: Discrete Event Simulation

Monte Carlo Methods for Uncertainty Quantification

MONTE CARLO EXTENSIONS

Statistics for Managers Using Microsoft Excel 7 th Edition

SIMULATION OF ELECTRICITY MARKETS

Strategies for Improving the Efficiency of Monte-Carlo Methods

Gamma. The finite-difference formula for gamma is

Final exam solutions

Brooks, Introductory Econometrics for Finance, 3rd Edition

Statistics for Managers Using Microsoft Excel/SPSS Chapter 6 The Normal Distribution And Other Continuous Distributions

Consistent estimators for multilevel generalised linear models using an iterated bootstrap

Communication Networks

Quantile Estimation via a Combination of Conditional Monte Carlo and Latin Hypercube Sampling

Homework Assignments

A COMPARATIVE ANALYSIS OF REAL AND PREDICTED INFLATION CONVERGENCE IN CEE COUNTRIES DURING THE ECONOMIC CRISIS

Unit 5: Sampling Distributions of Statistics

Unit 5: Sampling Distributions of Statistics

Simulation Wrap-up, Statistics COS 323

Lesson Plan for Simulation with Spreadsheets (8/31/11 & 9/7/11)

UNIVERSITY OF VICTORIA Midterm June 2014 Solutions

Chapter 7: Point Estimation and Sampling Distributions

Importance Sampling for Fair Policy Selection

The Binomial Lattice Model for Stocks: Introduction to Option Pricing

Probability Distributions. Chapter 6

BIO5312 Biostatistics Lecture 5: Estimations

Machine Learning for Quantitative Finance

Contents Critique 26. portfolio optimization 32

IEOR E4703: Monte-Carlo Simulation

Equity correlations implied by index options: estimation and model uncertainty analysis

TABLE OF CONTENTS - VOLUME 2

F19: Introduction to Monte Carlo simulations. Ebrahim Shayesteh

Bias Reduction Using the Bootstrap

Fast Convergence of Regress-later Series Estimators

Optimal Control of Batch Service Queues with Finite Service Capacity and General Holding Costs

Adaptive Experiments for Policy Choice. March 8, 2019

Probability Theory and Simulation Methods. April 9th, Lecture 20: Special distributions

Lecture outline. Monte Carlo Methods for Uncertainty Quantification. Importance Sampling. Importance Sampling

Section 8.2: Monte Carlo Estimation

Chapter 6.1 Confidence Intervals. Stat 226 Introduction to Business Statistics I. Chapter 6, Section 6.1

The private long-term care (LTC) insurance industry continues

CS885 Reinforcement Learning Lecture 3b: May 9, 2018

STAT 509: Statistics for Engineers Dr. Dewei Wang. Copyright 2014 John Wiley & Sons, Inc. All rights reserved.

The Effect of Life Settlement Portfolio Size on Longevity Risk

AMH4 - ADVANCED OPTION PRICING. Contents

Modelling Returns: the CER and the CAPM

Review of key points about estimators

Section The Sampling Distribution of a Sample Mean

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMSN50)

Collective Defined Contribution Plan Contest Model Overview

Computational Finance Improving Monte Carlo

Using Monte Carlo Integration and Control Variates to Estimate π

Mathematical Methods in Risk Theory

Multilevel Monte Carlo for VaR

IEOR 3106: Introduction to OR: Stochastic Models. Fall 2013, Professor Whitt. Class Lecture Notes: Tuesday, September 10.

6. Numerical methods for option pricing

2011 Pearson Education, Inc

Monte Carlo Methods (Estimators, On-policy/Off-policy Learning)

of bounded mean waiting time. For the complex queueing models arising in telecommunications systems, an analytical solution is typically not available

Market Risk: FROM VALUE AT RISK TO STRESS TESTING. Agenda. Agenda (Cont.) Traditional Measures of Market Risk

The Binomial Lattice Model for Stocks: Introduction to Option Pricing

Jose Benedicto B. Duhaylongsod ALL RIGHTS RESERVED

Monte-Carlo Planning: Introduction and Bandit Basics. Alan Fern

As we saw in Chapter 12, one of the many uses of Monte Carlo simulation by

Distributed Computing in Finance: Case Model Calibration

Markov Processes and Applications

Stratified Sampling in Monte Carlo Simulation: Motivation, Design, and Sampling Error

19. CONFIDENCE INTERVALS FOR THE MEAN; KNOWN VARIANCE

Which GARCH Model for Option Valuation? By Peter Christoffersen and Kris Jacobs

WILEY A John Wiley and Sons, Ltd., Publication

Yao s Minimax Principle

Economic factors and solvency

Basics. STAT:5400 Computing in Statistics Simulation studies in statistics Lecture 9 September 21, 2016

Efficient Quantile Estimation When Applying Stratified Sampling and Conditional. Monte Carlo, With Applications to Nuclear Safety

Sampling Distribution of and Simulation Methods. Ontario Public Sector Salaries. Strange Sample? Lecture 11. Reading: Sections

Practical example of an Economic Scenario Generator

MAINTAINABILITY DATA DECISION METHODOLOGY (MDDM)

Volatility. Roberto Renò. 2 March 2010 / Scuola Normale Superiore. Dipartimento di Economia Politica Università di Siena

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

Monte Carlo Methods in Structuring and Derivatives Pricing

Ch4. Variance Reduction Techniques

Option Pricing Modeling Overview

Transcription:

Output Analysis for Simulations Yu Wang Dept of Industrial Engineering University of Pittsburgh Feb 16, 2009

Why output analysis is needed Simulation includes randomness >> random output Statistical techniques must be used to analyze the results Typical assumption is not true Independent and identically distributed (i.i.d.) Normal distribution

Performance Measures Transient performance measures Terminating or finite-horizon measures Evaluate the system's evolution over a finite time horizon Transient simulation Steady-state performance measures Long-run or infinite-horizon measures How the system evolves over an infinite time horizon. Steady-state simulation

Demo - Problem Statement A simple inventory system: Demands: Independent Poisson random variables with mean λ (for a given product on successive days are ) Xj is the stock level at the beginning of day j Dj is the demand Sales: min(dj,xj) Lost Sales: max(0,dj Xj) Stock at the end of the day is Yj = max(0,xj Dj) Revenue for each sale: c Holding cost for each unsold item: h

Demo - Problem Statement (cont'd) Inventory control: (s, S) policy: If Yj < s, order S Yj items, Else, do not order Order is made in the evening: with prob (p): it arrives during the night and can be used for the next day, with prob (1 p): it never arrives (in which case a new order will have to be made the next evening) For arrived order: Fixed cost K + Marginal cost of k / item. The stock at the beginning of the first day X0 = S.

Output Analysis for Transient Simulation

Transient Performance Measures Terminating simulation: A natural event B specifies the length of time in which one is interested for the system. Initial conditions can have a large impact Example: Inventory system E[Z], expected value of profit per day (1 year) P{Z>= 50} = E[I(Z>=50)], profit is large than $50 in a day

Output Analysis for Transient Simulation Point estimator: By Central Limit Theorem (CLT)

Demo - Transient Simulation Simulate Parameters: Demand (Poisson) mean λ = 100.0 Sale price c = 2.0 Holding cost h = 0.1 Fixed ordering cost K = 10.0 Marginal ordering cost (per item) k = 1.0 Probability that an order arrives p = 0.95 Simulate 365 days (1 year): Control policy (s, S) = (80, 200) Replicate the simulation 100 times

Demo - Fixed Sample Size Output (n=100) 84.61 84.62 85.16 84.78 86.26 86.57 85.58 83.47 84.59 84.33 86.42 85.77 84.46 86.41 84.89 86.02 86.43 85.91 85.98 85.13 Annual Average Profit 84.71 85.14 85.76 84.55 84.35 85.04 87.06 86.50 85.13 83.76 86.16 85.67 84.84 84.51 85.15 86.01 84.54 84.79 83.81 85.73 85.20 85.73 85.53 85.48 85.16 85.20 84.53 86.25 85.70 85.44 84.60 85.31 84.98 86.31 85.10 84.39 84.95 85.28 84.82 85.29 86.00 84.29 84.87 83.85 85.96 85.69 84.56 86.40 85.14 85.41 85.04 84.27 85.07 85.39 86.00 85.81 86.02 84.81 86.30 83.26 86.11 85.83 84.54 86.93 85.45 83.83 86.35 84.85 85.86 85.05 85.13 85.08 83.72 85.10 86.30 86.17 85.45 86.01 84.96 85.77 95.0% confidence interval: [85.131, 85.439]

Pre-specifying C.I. Width Fixed-sample size methods sample size is fixed prior to running any simulations Want to get an estimator with a small Prespecified error ε, at C.I. Half width:

Pre-specifying C.I. Width (cont'd) Two-stage procedure: 1 st stage: take runs to estimate variance Calculate needed runs: 2 nd stage: generate independent runs and calculate estimator & C.I. For relative precision ε (e.g., ±5%)

Demo - Pre-specifying C.I. Width (absolute) Want half width: Two-stage procedure: 1 st stage: Needed runs: 2 nd stage: generate 23855 independent runs. 95.0% confidence interval:

Demo - Pre-specifying C.I. Width (relative) Want C.I. to be ±0.5% of the estimator: Two-stage procedure: 1 st stage: Needed runs: 2 nd stage: generate 14 independent runs. 95.0% confidence interval:

Output Analysis for Steady-State Simulation

Steady-State Performance Measures Output is a (discrete-time) stochastic process: Define as the distribution function of given the initial conditions If as, then F(y) is the steady-state distribution of the process Y, or Yi converges in distribution to Y

Steady-State Performance Measures (cont'd) Y is a random variable with F, then E(Y) can be used as a steady-state performance measure, for all y

Output Analysis for Steady-State Simulation Discrete-time Process: Continuous-time Process: Difficulty in estimating, Not satisfy i.i.d. assumption

Multiple Replications Replace one long replication (length=m) by r (10<=r<=30) i.i.d. replications (length k = m/r) Independence: non-overlapping streams of random number for different replications Identical distributed: Same initial conditions Same system dynamics Get sample variance across the replications

Multiple Replications (cont'd) Output from r replications (length = k) Where is chosen such that

Demo - Steady-state Simulation Multiple Replication: Output from r = 30 replications (length k = 1000) 95.0% confidence interval: (C.I. Width) /2 0.1785

Multiple Replications (cont'd) Major problem: may be significantly biased by the initial conditions Solution: initial-data deletion using to compute the estimator and C.I.

Demo - Steady-state Simulation (cont'd) Long-run Average Profit: 180 160 140 120 Avg(Profit) 100 80 60 40 20 0 0 10 20 30 40 50 60 70 Day

Demo - Steady-state Simulation (cont'd) Multiple Replication: Initial-data deletion: delete first 15 observations Output from r = 30 replications (length k = 1000-15 = 985) 95.0% confidence interval: (C.I. Width) /2 0.1729

Single-Replicate Methods Typically, two obs. are almost independent when p is large Batch 1 Batch 2 Batch 3 If b is large, most obs. in one batch are almost independent to those in other batch (except for the adjacent one) The sample mean of each of the batches: Almost independent Close to normal distribution

Single-Replicate Methods Total Run Length: m Number of Batches: n (10 <= n <= 30) Batch Size: b = m / n Batch mean Estimator C.I.

Demo - Steady-state Simulation (cont'd) Single-Replicate (Batch Mean): With initial-data deletion: delete first 15 observations Parameters: Batch number n = 30, Batch size b = 985 Total runs length m = 30*985 + 15 = 29565 95.0% confidence interval: (C.I. Width) /2 0.1658

Other Methods for Steady-State Output Analysis Spectral (Anderson 1994) Regenerative (Crane and Iglehart 1975, Shedler 1993) Standardized time series methods (Schruben 1983)

Multiple Performance Measures Different measures: Joint Confidence Level: Bonferroni's inequality Joint confidence level is less than the C.L. for any individual Compare different systems for the Best Selection procedures Multiple comparison procedures

Other Useful Methods Variance-reduction techniques Common random numbers Antithetic variates Control variates Importance sampling Stratified sampling Conditional Monte-Carlo Splitting Etc.

Conclusion Introduce techniques for statistically analyzing the output from a simulation Transient Fixed-sample size Pre-specifying C.I. width Steady-state Multiple replications Batch mean Other methods Multiple Performance Measures All methods are Asymptotically Valid: Large run lengths are needed

Thank You!