Simulation & Confidence Intervals COMP5416 Advanced Network Technologies.

Slides:



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

Simulation Overview COMP5416. Courtesy of David Everitt COMP5416 Simulation - 2 Simulation Simulation: allows experiments on a software model of some.
CHAPTER 21 Inferential Statistical Analysis. Understanding probability The idea of probability is central to inferential statistics. It means the chance.
Chapter 8: Estimating with Confidence
Sampling: Final and Initial Sample Size Determination
Statistics review of basic probability and statistics.
G. Alonso, D. Kossmann Systems Group
1 Statistical Inference H Plan: –Discuss statistical methods in simulations –Define concepts and terminology –Traditional approaches: u Hypothesis testing.
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
Output Analysis and Experimentation for Systems Simulation.
Chapter 7 Sampling and Sampling Distributions
#9 SIMULATION OUTPUT ANALYSIS Systems Fall 2000 Instructor: Peter M. Hahn
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
REVIEW Central Limit Theorem Central Limit Theoremand The t Distribution.
Part III: Inference Topic 6 Sampling and Sampling Distributions
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
1 Simulation Modeling and Analysis Output Analysis.
Chapter 10: Estimating with Confidence
Standard error of estimate & Confidence interval.
Review of normal distribution. Exercise Solution.
1 Terminating Statistical Analysis By Dr. Jason Merrick.
Analysis of Simulation Results Andy Wang CIS Computer Systems Performance Analysis.
Simulation Output Analysis
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.
+ ESTIMATION TECHNIQUES FOR ANALYZING ENDOGENOUSLY CREATED DATA.
Steady-State Statistical Analysis By Dr. Jason Merrick.
STA Lecture 161 STA 291 Lecture 16 Normal distributions: ( mean and SD ) use table or web page. The sampling distribution of and are both (approximately)
Chapter 8 Introduction to Inference Target Goal: I can calculate the confidence interval for a population Estimating with Confidence 8.1a h.w: pg 481:
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 8: Estimating with Confidence Section 8.1 Confidence Intervals: The.
LECTURE 16 TUESDAY, 31 March STA 291 Spring
Lecture 14 Dustin Lueker. 2  Inferential statistical methods provide predictions about characteristics of a population, based on information in a sample.
Sampling Distribution ● Tells what values a sample statistic (such as sample proportion) takes and how often it takes those values in repeated sampling.
PARAMETRIC STATISTICAL INFERENCE
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 8: Estimating with Confidence Section 8.1 Confidence Intervals: The.
Ch 8 Estimating with Confidence. Today’s Objectives ✓ I can interpret a confidence level. ✓ I can interpret a confidence interval in context. ✓ I can.
© 2003, Carla Ellis Simulation Techniques Overview Simulation environments emulation exec- driven sim trace- driven sim stochastic sim Workload parameters.
10.1: Confidence Intervals – The Basics. Introduction Is caffeine dependence real? What proportion of college students engage in binge drinking? How do.
10.1: Confidence Intervals – The Basics. Review Question!!! If the mean and the standard deviation of a continuous random variable that is normally distributed.
Copyright © 2012 Pearson Education. All rights reserved © 2010 Pearson Education Copyright © 2012 Pearson Education. All rights reserved. Chapter.
Simulation Tutorial By Bing Wang Assistant professor, CSE Department, University of Connecticut Web site.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Unit 5: Estimating with Confidence Section 10.1 Confidence Intervals: The Basics.
Section 10.1 Confidence Intervals
Lecture 7 Dustin Lueker. 2  Point Estimate ◦ A single number that is the best guess for the parameter  Sample mean is usually at good guess for the.
6.1 Inference for a Single Proportion  Statistical confidence  Confidence intervals  How confidence intervals behave.
STA Lecture 171 STA 291 Lecture 17 Chap. 10 Estimation – Estimating the Population Proportion p –We are not predicting the next outcome (which is.
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.
Chapter 12 Confidence Intervals and Hypothesis Tests for Means © 2010 Pearson Education 1.
1 Summarizing Performance Data Confidence Intervals Important Easy to Difficult Warning: some mathematical content.
Stats Lunch: Day 3 The Basis of Hypothesis Testing w/ Parametric Statistics.
: An alternative representation of level of significance. - normal distribution applies. - α level of significance (e.g. 5% in two tails) determines the.
© 2001 Prentice-Hall, Inc.Chap 7-1 BA 201 Lecture 11 Sampling Distributions.
Review Normal Distributions –Draw a picture. –Convert to standard normal (if necessary) –Use the binomial tables to look up the value. –In the case of.
Output Analysis for Simulation
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 8: Estimating with Confidence Section 8.1 Confidence Intervals: The.
Sampling Distributions Chapter 18. Sampling Distributions A parameter is a number that describes the population. In statistical practice, the value of.
Lecture 13 Dustin Lueker. 2  Inferential statistical methods provide predictions about characteristics of a population, based on information in a sample.
WARM UP: Penny Sampling 1.) Take a look at the graphs that you made yesterday. What are some intuitive takeaways just from looking at the graphs?
Chapter 9 Sampling Distributions 9.1 Sampling Distributions.
Chapter 6 Sampling and Sampling Distributions
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Psychology 202a Advanced Psychological Statistics
CPSC 531: System Modeling and Simulation
Statistical Methods Carey Williamson Department of Computer Science
CHAPTER 15 SUMMARY Chapter Specifics
Carey Williamson Department of Computer Science University of Calgary
Sampling Distributions (§ )
Presentation transcript:

Simulation & Confidence Intervals COMP5416 Advanced Network Technologies

School of Information Technologies COMP5416 Confidence - 2 Simulation Implementation Details Need to store –Core variables such as event list, sim clock –State variables such as packet queue –Statistics such as packet arrived, departed Initialise for bootstrap –E.g. Packet arrival Provide terminate condition –End time or number of events to run Execute events from list

School of Information Technologies COMP5416 Confidence - 3 E.G.: SSQ Simulation Start Init More Events? Arrvl?Dept? Update vars Schedule next arrival Update vars Schedule next departure Yes No End No Compute performance Display stats

School of Information Technologies COMP5416 Confidence - 4 Transients in the Simulation Everything above assumes that the simulation data is collected once the simulation has achieved steady state, otherwise the tests are meaningless. There are many ways to determine this – a pragmatic approach is to ensure that the simulation runs for sufficiently long so that the transients have negligible effect on the estimates of confidence interval. If data is available from only short runs (i.e. few data points), then you will need to ensure that transient data is discarded.

School of Information Technologies COMP5416 Confidence - 5 Independent Samples Assume we have a sequence of n data points { z 1,z 2,...,z n } which are known to be independent. Estimate mean: Estimate Sample Variance:

School of Information Technologies COMP5416 Confidence - 6 Confidence Interval for Independent Samples Assume that there are enough samples so that we can use the Central Limit Theorem (i.e. approx Gaussian distributed) Make a hypothesis test – with (say) 95% probability, the true mean lies within some interval From a Gaussian distribution, the 95% confidence interval is the estimated mean, ±1.96 estimated standard deviations The standard deviation of the sample mean is Then we say that, with probability 95%, the true mean lies within the range

School of Information Technologies COMP5416 Confidence - 7 Estimated Mean Confidence Interval, with probability x%, true mean lies within this range Confidence Interval

School of Information Technologies COMP5416 Confidence - 8 Effect of Correlation Simulation data is never independent – there is correlation between successive samples. –It is always a good idea to estimate the correlation – the autocovariance of lag k is defined as: where is the true mean If the autocovariances are low, then an approximation of independence is reasonable, otherwise we need to do better.

School of Information Technologies COMP5416 Confidence - 9 Method of Batch Means The idea here is to group the data into batches, so that successive batches are approximately independent. For example, if we have n data points, group them into m batches of size p=n/m Calculate the m batch means Now treat the batches as if they were independent

School of Information Technologies COMP5416 Confidence - 10 Batch Means Gives less bias in the estimator, at the expense of more variability in the estimator of precision. The difficult part is choosing the batch size –too large a batch produces confidence intervals which are much larger than is justified by the actual data –too small a batch produces excessive correlation, which produces misleadingly small confidence intervals Method is easy to implement, and is probably the most widely-used method of estimating confidence intervals.

School of Information Technologies COMP5416 Confidence - 11 References B.D. Ripley, “Uses and abuses of statistical simulation”, Mathematical Programming, Vol 42, pp 53-68, 1988 K. Pawlikowski, “Steady-state simulation of queueing processes: A survey of problems and solutions”, ACM Computing Surveys, Vol 22, No 2, pp , June 1990 A.M. Law and W.D. Kelton, Simulation Modelling and Analysis, McGraw-Hill, 1991