A Question. Output Analysis. Example. What Are We Doing Wrong? Result from throwing a die. Let X be the random variable

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

There is no straightforward approach for choosing the warmup period l.

Statistical Inference (Chapter 10) Statistical inference = learn about a population based on the information provided by a sample.

Output Analysis (2, Chapters 10 &11 Law)


A statistical method to determine sample size to estimate characteristic value of soil parameters

MATH 320: Probability and Statistics 9. Estimation and Testing of Parameters. Readings: Pruim, Chapter 4

Estimation of the Mean and the ACVF

Econ 325 Notes on Point Estimator and Confidence Interval 1 By Hiro Kasahara

Exam II Covers. STA 291 Lecture 19. Exam II Next Tuesday 5-7pm Memorial Hall (Same place as exam I) Makeup Exam 7:15pm 9:15pm Location CB 234

Resampling Methods. X (1/2), i.e., Pr (X i m) = 1/2. We order the data: X (1) X (2) X (n). Define the sample median: ( n.

Lecture 33: Bootstrap

Module 1 Fundamentals in statistics

BIOS 4110: Introduction to Biostatistics. Breheny. Lab #9

Expectation and Variance of a random variable

Basis for simulation techniques

Introduction to Econometrics (3 rd Updated Edition) Solutions to Odd- Numbered End- of- Chapter Exercises: Chapter 3

1 Inferential Methods for Correlation and Regression Analysis

Since X n /n P p, we know that X n (n. Xn (n X n ) Using the asymptotic result above to obtain an approximation for fixed n, we obtain

Output Analysis and Run-Length Control

Overview. p 2. Chapter 9. Pooled Estimate of. q = 1 p. Notation for Two Proportions. Inferences about Two Proportions. Assumptions

Recall the study where we estimated the difference between mean systolic blood pressure levels of users of oral contraceptives and non-users, x - y.

Estimation for Complete Data

Lecture 2: Monte Carlo Simulation

Direction: This test is worth 150 points. You are required to complete this test within 55 minutes.

Econ 325/327 Notes on Sample Mean, Sample Proportion, Central Limit Theorem, Chi-square Distribution, Student s t distribution 1.

Random Variables, Sampling and Estimation

Mathacle. PSet Stats, Concepts In Statistics Level Number Name: Date:

Mathematical Statistics - MS

This exam contains 19 pages (including this cover page) and 10 questions. A Formulae sheet is provided with the exam.

Confidence Level We want to estimate the true mean of a random variable X economically and with confidence.

The variance of a sum of independent variables is the sum of their variances, since covariances are zero. Therefore. V (xi )= n n 2 σ2 = σ2.

Data Analysis and Statistical Methods Statistics 651

Stat 421-SP2012 Interval Estimation Section

Lecture 5. Materials Covered: Chapter 6 Suggested Exercises: 6.7, 6.9, 6.17, 6.20, 6.21, 6.41, 6.49, 6.52, 6.53, 6.62, 6.63.

7-1. Chapter 4. Part I. Sampling Distributions and Confidence Intervals

Summary. Recap ... Last Lecture. Summary. Theorem

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures

STATISTICAL INFERENCE

UNIT 2 DIFFERENT APPROACHES TO PROBABILITY THEORY

Direction: This test is worth 250 points. You are required to complete this test within 50 minutes.

Open book and notes. 120 minutes. Cover page and six pages of exam. No calculators.

Statistical Analysis on Uncertainty for Autocorrelated Measurements and its Applications to Key Comparisons

t distribution [34] : used to test a mean against an hypothesized value (H 0 : µ = µ 0 ) or the difference

This is an introductory course in Analysis of Variance and Design of Experiments.

STA Learning Objectives. Population Proportions. Module 10 Comparing Two Proportions. Upon completing this module, you should be able to:

Chapter 22. Comparing Two Proportions. Copyright 2010, 2007, 2004 Pearson Education, Inc.

Chapter 22. Comparing Two Proportions. Copyright 2010 Pearson Education, Inc.

Confidence Interval for Standard Deviation of Normal Distribution with Known Coefficients of Variation

Stat 200 -Testing Summary Page 1

An Introduction to Randomized Algorithms

April 18, 2017 CONFIDENCE INTERVALS AND HYPOTHESIS TESTING, UNDERGRADUATE MATH 526 STYLE

CS434a/541a: Pattern Recognition Prof. Olga Veksler. Lecture 5

Topic 9: Sampling Distributions of Estimators

Lecture 3. Properties of Summary Statistics: Sampling Distribution

Agenda: Recap. Lecture. Chapter 12. Homework. Chapt 12 #1, 2, 3 SAS Problems 3 & 4 by hand. Marquette University MATH 4740/MSCS 5740

1.010 Uncertainty in Engineering Fall 2008

Statistics 511 Additional Materials

Goodness-of-Fit Tests and Categorical Data Analysis (Devore Chapter Fourteen)

DS 100: Principles and Techniques of Data Science Date: April 13, Discussion #10

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

Comparing Two Populations. Topic 15 - Two Sample Inference I. Comparing Two Means. Comparing Two Pop Means. Background Reading

6.041/6.431 Spring 2009 Final Exam Thursday, May 21, 1:30-4:30 PM.

Lecture 5: Parametric Hypothesis Testing: Comparing Means. GENOME 560, Spring 2016 Doug Fowler, GS

It should be unbiased, or approximately unbiased. Variance of the variance estimator should be small. That is, the variance estimator is stable.

Section 14. Simple linear regression.

Final Examination Solutions 17/6/2010

Frequentist Inference

Agreement of CI and HT. Lecture 13 - Tests of Proportions. Example - Waiting Times

6.3 Testing Series With Positive Terms

Linear Regression Models

MATH/STAT 352: Lecture 15

BIOSTATISTICS. Lecture 5 Interval Estimations for Mean and Proportion. dr. Petr Nazarov

Topic 10: Introduction to Estimation

First Year Quantitative Comp Exam Spring, Part I - 203A. f X (x) = 0 otherwise

Because it tests for differences between multiple pairs of means in one test, it is called an omnibus test.

PSYCHOLOGICAL RESEARCH (PYC 304-C) Lecture 9

Tests of Hypotheses Based on a Single Sample (Devore Chapter Eight)

Statistics 20: Final Exam Solutions Summer Session 2007

Chapter 13, Part A Analysis of Variance and Experimental Design

Common Large/Small Sample Tests 1/55

SDS 321: Introduction to Probability and Statistics

Interval Estimation (Confidence Interval = C.I.): An interval estimate of some population parameter is an interval of the form (, ),

Topic 18: Composite Hypotheses

62. Power series Definition 16. (Power series) Given a sequence {c n }, the series. c n x n = c 0 + c 1 x + c 2 x 2 + c 3 x 3 +

November 2002 Course 4 solutions

Hypothesis Testing. Evaluation of Performance of Learned h. Issues. Trade-off Between Bias and Variance

Stat 319 Theory of Statistics (2) Exercises

- E < p. ˆ p q ˆ E = q ˆ = 1 - p ˆ = sample proportion of x failures in a sample size of n. where. x n sample proportion. population proportion

Confidence Intervals

STATISTICAL PROPERTIES OF LEAST SQUARES ESTIMATORS. Comments:

32 estimating the cumulative distribution function

Introductory statistics

Lecture 12: November 13, 2018

Section 9.2. Tests About a Population Proportion 12/17/2014. Carrying Out a Significance Test H A N T. Parameters & Hypothesis

1 Introduction to reducing variance in Monte Carlo simulations

Inferential Statistics. Inference Process. Inferential Statistics and Probability a Holistic Approach. Inference Process.

Chapter 8: Estimating with Confidence

Confidence interval for the two-parameter exponentiated Gumbel distribution based on record values

Y i n. i=1. = 1 [number of successes] number of successes = n

Transcription:

A Questio Output Aalysis Let X be the radom variable Result from throwig a die 5.. Questio: What is E (X? Would you throw just oce ad take the result as your aswer? Itroductio to Simulatio WS/ - L 7 / Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto What Are We Doig Wrog? Example We have bee makig a serious mistake i our simulatios We have made oe observatio oly Example - the legth of the queue i the bak: Cosider our bak example: Observe the average queue legth < T < Choose differet sets of radom umbers Obs#/SimpleQueueM/Queue#NMea Obs#/SimpleQueueM/Queue#NMea Obs#/SimpleQueueM/Queue#NMea.5.5.5.5.5 6 8 6 8.5.5.5.5.5 6 8 6 8.5.5.5 6 8 6 8 Itroductio to Simulatio WS/ - L 7 / Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto

Example What Are We Doig Wrog? Cosider our bak example Choose differet sets of radom umbers Observe the queue legth at T = Results:,,, 7,,,, 5 Real systems behave radomly They cotai radom variables Our simulatio results are also radom They deped o radom umbers Ruig a simulatio meas takig oe sample of a RN Which is the "right" aswer? We eed a more sophisticated approach! Itroductio to Simulatio WS/ - L 7 5/ Graham Horto Itroductio to Simulatio WS/ - L 7 6/ Graham Horto Some Defiitios Some Defiitios Cosider a radom variable Y We have: var( ay = a var( Y Take a set of observatios Y i, i =... Mea: Y Sample variace S : The Y = i S S var( Y = var( = Y i ( Y i Y Also: var( Y + Y = var( Y + var( Y + cov( Y, Y IID = "Idepedet ad Idetically Distributed" Y, Y IID var( Y + Y = var( Y + var( Y Itroductio to Simulatio WS/ - L 7 7/ Graham Horto Itroductio to Simulatio WS/ - L 7 8/ Graham Horto

Some Defiitios Termiatig Simulatios Bias: Give a value q ad a estimator I geeral, we have E ( θ ˆ = θ + b (i.e. the estimator is biased The bias ca also be multiplicative: E ( θˆ = B θ May statistical methods assume b= (B= θˆ A termiatig simulatio is oe... which rus up to a specified time which has kow iitial coditios i which the iitial coditios are importat Examples: Will the satellite survive for 5 years? How full is the bak hours after opeig time? Itroductio to Simulatio WS/ - L 7 9/ Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto No-Termiatig Simulatios Studet's t-distributio A o-termiatig simulatio is oe... which rus for a idefiite period i which the iitial coditios are ot importat i which the steady-state behaviour is of iterest Itroduced by W. Gosset (a.k.a. "Studet" Has oe parameter f ("degrees of freedom" Used for hypothesis testig Tables of values are available.6 Examples: Ay cotiuously ruig system Computer cetre, hospital,....5.... - - - - Itroductio to Simulatio WS/ - L 7 / Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto

Studet's t-distributio Give: A measure of the real system q A estimator θˆ for q Make the ull hypothesis The value θ θˆ t = σˆ( θˆ H is t-distributed with d.o.f. : E( θ = θˆ Choose a level of sigificace α Rearrage t α /, f + tα /, f to obtai the cofidece iterval θˆ σˆ ( θˆ θ θˆ σˆ( θˆ ˆ ˆ ( ˆ t α /, f θ θ + σ θ tα /, f Itroductio to Simulatio WS/ - L 7 / Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto What are we doig? What are we doig? θ θˆ σˆ( θˆ ~ t f α/ α/ t α/,f α/ α/ θˆ σˆ ( θˆ t α /, f Itroductio to Simulatio WS/ - L 7 5/ Graham Horto Itroductio to Simulatio WS/ - L 7 6/ Graham Horto

How to obtai σˆ ( θˆ? Begi with S var( Y = var( Usig θˆ we obtai Y = i σ Therefore we have Y i θˆ = var( θˆ = var( ( S σˆ ( θˆ (whe Y i are IID Y i Improvig accuracy: S We have σˆ ( θˆ If we wish to halve the width of the the c.i....... we must use samples! Accuracy is expesive i simulatio! Itroductio to Simulatio WS/ - L 7 7/ Graham Horto Itroductio to Simulatio WS/ - L 7 8/ Graham Horto Bias due to Autocorrelatio A cofidece iterval is oly accurate if: θˆ is a ubiased estimator of q σˆ ( θˆ is a ubiased estimator of σ ( θˆ Cosider the Y i from oe simulatio ru: If the observatios are ot idepedet...... the the estimator will be biased Positive autocorrelatio Negative autocorrelatio Itroductio to Simulatio WS/ - L 7 9/ Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto

Bias due to Autocorrelatio Idepedet Replicatios Positive autocorrelatio... leads to overestimatio of S leads to over-optimistic cofidece itervals Example: Most queues Negative autocorrelatio... leads to uderestimatio of S leads to uder-optimistic cofidece itervals Example: Some ivetory systems Do't use time series for cofidece itervals! The method of idepedet replicatios: Ru the simulatio R times Use idepedet sets of radom umbers Make the observatios Y r, r=...r Compute θˆ ad S from the Y r Compute a cofidece iterval from θˆ ad S Itroductio to Simulatio WS/ - L 7 / Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto No-Termiatig Simulatios Iitial Bias Difficulties with o-termiatig simulatios: Iitial bias How log to ru the simulatio? Tradeoff betwee replicatio ad duratio I a o-termiatig simulatio We are iterested i the steady-state behaviour The iitial values will usually be utypical Example: Queue i bak (startig empty: Obs#/SimpleQueueM/Queue#NMea.5.5.5.5.5 6 8 6 8 Itroductio to Simulatio WS/ - L 7 / Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto

Iitial Bias Iitial Bias Solutio: Delete values from trasiet phase Choose T after trasiet phase is over Observe from T to T E How to choose T (ad T E? How log is the trasiet phase i a o-termiatig simulatio?.5.5.5 Trasiet phase T Steady-state phase T E.5 T? 5 5 5 Itroductio to Simulatio WS/ - L 7 5/ Graham Horto Itroductio to Simulatio WS/ - L 7 6/ Graham Horto Iitial Bias Esemble Averages A difficult questio! Usig just oe ru to fid T is dagerous 7 Compute esemble averages 6 5 Perform idepedet replicatios Compute average values across replicatios T? 6 8 6 8 Itroductio to Simulatio WS/ - L 7 7/ Graham Horto Itroductio to Simulatio WS/ - L 7 8/ Graham Horto

Esemble Averages Esemble Averages Perform idepedet replicatios to obtai Compute esemble averages: Y r,i i =..., r =...R Compute average values across replicatios Y i = R r= Yr, i i = K Test sequece Y i for ed of trasiet phase 7 6 5 Ru Ru Ru Ru Mea 6 8 6 8 Itroductio to Simulatio WS/ - L 7 9/ Graham Horto Itroductio to Simulatio WS/ - L 7 / Graham Horto No-Termiatig Simulatios Icreasig R will make the c.i. arrower It will ot reduce the iitial bias, i.e....we will get a better c.i. aroud q + b! Computig time tradeoff is ecessary betwee...icreasig T E ad icreasig R Solutio: R > 5 is ot useful Itroductio to Simulatio WS/ - L 7 / Graham Horto