Simulation Modeling and Analysis

Slides:



Advertisements
Similar presentations
AP Statistics Course Review.
Advertisements

1 Chi-Square Test -- X 2 Test of Goodness of Fit.
Statistics review of basic probability and statistics.
Chapter 5 Discrete Random Variables and Probability Distributions
Hydrologic Statistics
1 The Output Analyzer Separate application, also accessible via Tools menu in Arena Reads binary files saved by Arena Various kinds of output-data display,
Chapter 8 Random-Variate Generation
Prof. Dr. Ahmed Farouk Abdul Moneim. 1) Uniform Didtribution 2) Poisson’s Distribution 3) Binomial Distribution 4) Geometric Distribution 5) Negative.
STAT 270 What’s going to be on the quiz and/or the final exam?
Review of Basic Probability and Statistics
Chapter 4 Discrete Random Variables and Probability Distributions
Random-Variate Generation. Need for Random-Variates We, usually, model uncertainty and unpredictability with statistical distributions Thereby, in order.
A Review of Probability and Statistics
Simulation Modeling and Analysis
Probability Densities
Analysis of Simulation Input.. Simulation Machine n Simulation can be considered as an Engine with input and output as follows: Simulation Engine Input.
A random variable that has the following pmf is said to be a binomial random variable with parameters n, p The Binomial random variable.
1 Simulation Modeling and Analysis Pseudo-Random Numbers.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 4 Continuous Random Variables and Probability Distributions.
Lecture 6 Data Collection and Parameter Estimation.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
A Review of Probability Models
Chapter 5 Modeling & Analyzing Inputs
Standard Statistical Distributions Most elementary statistical books provide a survey of commonly used statistical distributions. The reason we study these.
Graduate Program in Engineering and Technology Management
Chapter 4 – Modeling Basic Operations and Inputs  Structural modeling: what we’ve done so far ◦ Logical aspects – entities, resources, paths, etc. 
DATA ANALYSIS Module Code: CA660 Lecture Block 3.
Chapter 4 Continuous Random Variables and their Probability Distributions The Theoretical Continuous Distributions starring The Rectangular The Normal.
Chapter 5 Statistical Models in Simulation
Chapter 3 Basic Concepts in Statistics and Probability
Dept of Bioenvironmental Systems Engineering National Taiwan University Lab for Remote Sensing Hydrology and Spatial Modeling STATISTICS Random Variables.
Random Variables & Probability Distributions Outcomes of experiments are, in part, random E.g. Let X 7 be the gender of the 7 th randomly selected student.
Continuous Probability Distributions  Continuous Random Variable  A random variable whose space (set of possible values) is an entire interval of numbers.
Modeling and Simulation CS 313
Modeling and Simulation Input Modeling and Goodness-of-fit tests
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Chapter 9 Input Modeling
Moment Generating Functions
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
Mid-Term Review Final Review Statistical for Business (1)(2)
2 Input models provide the driving force for a simulation model. The quality of the output is no better than the quality of inputs. We will discuss the.
CPSC 531:Input Modeling Instructor: Anirban Mahanti Office: ICT 745
1 Statistical Distribution Fitting Dr. Jason Merrick.
CS433: Modeling and Simulation Dr. Anis Koubâa Al-Imam Mohammad bin Saud University 15 October 2010 Lecture 05: Statistical Analysis Tools.
The Examination of Residuals. Examination of Residuals The fitting of models to data is done using an iterative approach. The first step is to fit a simple.
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.
MEGN 537 – Probabilistic Biomechanics Ch.5 – Determining Distributions and Parameters from Observed Data Anthony J Petrella, PhD.
Chapter 9 Input Modeling Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
ETM 607 – Input Modeling General Idea of Input Modeling Data Collection Identifying Distributions Parameter estimation Goodness of Fit tests Selecting.
Selecting Input Probability Distribution. Simulation Machine Simulation can be considered as an Engine with input and output as follows: Simulation Engine.
Stats Probability Theory Summary. The sample Space, S The sample space, S, for a random phenomena is the set of all possible outcomes.
The final exam solutions. Part I, #1, Central limit theorem Let X1,X2, …, Xn be a sequence of i.i.d. random variables each having mean μ and variance.
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
Learning Simio Chapter 10 Analyzing Input Data
Chapter 9 Input Modeling
2 Input models provide the driving force for a simulation model. The quality of the output is no better than the quality of inputs. In this chapter, we.
Chapter 31Introduction to Statistical Quality Control, 7th Edition by Douglas C. Montgomery. Copyright (c) 2012 John Wiley & Sons, Inc.
Environmental Modeling Basic Testing Methods - Statistics II.
Chap 5-1 Chapter 5 Discrete Random Variables and Probability Distributions Statistics for Business and Economics 6 th Edition.
MEGN 537 – Probabilistic Biomechanics Ch.5 – Determining Distributions and Parameters from Observed Data Anthony J Petrella, PhD.
Modeling and Simulation CS 313
Statistical Modelling
Modeling and Simulation CS 313
Chapter 9 Input Modeling
Chapter 7: Sampling Distributions
Subject Name: SYSTEM MODELING AND SIMULATION [UNIT-7 :INPUT MODELING]
CPSC 531: System Modeling and Simulation
6-1 Introduction To Empirical Models
Hydrologic Statistics
Discrete Event Simulation - 4
Presentation transcript:

Simulation Modeling and Analysis Input Modeling 1 1

Outline Introduction Data Collection Matching Distributions with Data Parameter Estimation Goodness of Fit Testing Input Models without Data Multivariate and Time Series Input Models 2 2

Introduction Steps in Developing Input Data Model Data collection from the real system Identification of a probability distribution representing the data Select distribution parameters Goodness of fit testing 3 3

Data Collection Useful Suggestions Plan, practice, preobserve Analyze data as it is collected Combine homogeneous data sets Watch out for censoring Build scatter diagrams Check for autocorrelation 4 4

Identifying the Distribution Construction of Histograms Divide range of data into equal subintervals Label horizontal and vertical axes appropriately Determine frequency occurrences within each subinterval Plot frequencies 5 5

Physical Basis of Common Distributions Binomial: Number of successes in n independent trials each of probability p . Negative Binomial (Geometric): Number of trials required to achieve k successes. Poisson: Number of independent events occurring in a fixed amount of time and space (Time between events is Exponential). 6 6

Physical Basis of Common Distributions - contd Normal: Processes which are the sum of component processes. Lognormal: Processes which are the product of component processes. Exponential: Times between independent events (Number of events is Poisson). Gamma: Many applications. Non-negative random variables only. 7 7

Physical Basis of Common Distributions - contd Beta: Many applications. Bounded random variables only. Erlang: Processes which are the sum of several exponential component processes. Weibull: Time to failure. Uniform: Complete uncertainty. Triangular: When only minimum, most likely and maximum values are known. 8 8

Quantile-Quantile Plots If X is a RV with cdf F, the q-quantile of X is the value  such that F() = P(X < ) = q Raw data {xi} Data rearranged by magnitude {yj} Then: yj is an estimate of the (j-1/2)/n quantile of X, i.e. yj ~ F-1[(j-1/2)/n] 9 9

Quantile-Quantile Plots -contd If F is a member of an appropriate family then a plot of yj vs. F-1[(j-1/2)/n] is a straight line If F also has the appropriate parameter values the line has a slope = 1. 10 10

Parameter Estimation Once a distribution family has been determined, its parameters must be estimated. Sample Mean and Sample Standard Deviation. 11 11

Parameter Estimation -contd Suggested Estimators Poisson:  ~ mean Exponential:  ~ 1/mean Uniform (on [0,b]): b ~ (n+1) max(X)/n Normal:  ~ mean; 2 ~ S2 12 12

Goodness of Fit Tests Test the hypothesis that a random sample of size n of the random variable X follows a specific distribution. Chi-Square Test (large n; continuous and discrete distributions) Kolmogorov-Smirnov Test (small n; continuous distributions only) 13 13

Chi-Square Test Statistic 20 = k (Oi - Ei)2/Ei Follows the chi-square distribution with k-s-1 degrees of freedom (s = d.o.f. of given distribution) Here Ei = n pi is the expected frequency while Oi is the observed frequency. 14 14

Chi-Square Test -contd Steps Arrange the n observations into k cells Compute the statistic 20 = k (Oi - Ei)2/Ei Find the critical value of 2 (Handout) Accept or reject the null hypothesis based on the comparison Example: Stat::Fit 15 15

Chi-Square Test - contd If the test involves a discrete distribution each value of the RV must be in a class interval unless combined intervals are required. If the test involves a continuous distribution class intervals must be selected which are equal in probability rather than width. 16 16

Chi-Square Test - contd Example: Exponential distribution. Example: Weibull distribution. Example: Normal distribution. 17 17

Kolmogorov-Smirnov Test Identify the maximum absolute difference D between the values of of the cdf of a random sample and a specified theoretical distribution. Compare against the critical value of D (Handout). Accept or reject H0 accordingly Example. 18 18

Input Models without Data When hard data are not available, use: Engineering data (specs) Expert opinion Physical and/or conventional limitations Information on the nature of the process Uniform, triangular or beta distributions Check sensitivity! 19 19

Multivariate and Time-Series Input Models If input variables are not independent their relationship must be taken into consideration (multivariable input model). If input variables constitute a sequence (in time) of related random variables, their relationship must be taken into account (time-series input model). 20 20

Covariance and Correlation Measure the linear dependence between two random variables X1 (mean 1, std dev 1) and X2 (mean 2, std dev 2) X1 - 1 = (X2 - 2) +  Covariance: cov(X1,X2) = E(X1 X2) - 1 2 Correlation:  = cov(X1,X2)/12 21 21

Multivariate Input Models If X1 and X2 are normally distributed and interrelated, they can be modeled by a bivariate normal distribution Steps Generate Z1 and Z2 indepedendent standard RV’s Set X1 = 1 + 1 Z1 Set X2 = 2 + 2(Z1 + (1-2)1/2 Z2) 22 22

Time-Series Input Models Let X1,X2,X3,… be a sequence of identically distributed and covariance-stationary RV’s. The lag-h correlation is h = corr(Xt,Xt+h) = h If all Xt are normal: AR(1) model. If all Xt are exponential: EAR(1) model. 23 23

t are normal with mean = 0 and var = 2 AR(1) model For a time series model Xt =  +  (Xt-1 - ) + t where t are normal with mean = 0 and var = 2  24 24

AR(1) model -contd 1.- Generate X1 from a normal with mean  and variance 2 /(1 - 2). Set t = 2. 2.- Generate t from a normal with mean = 0 and variance 2 . 3.- Set Xt =  +  (Xt-1 - ) + t 4.- Set t = t+1 and go to 2. 25 25

Xt =  Xt-1 + t with prob EAR(1) model For a time series model Xt =  Xt-1 with prob Xt =  Xt-1 + t with prob where t are exponential with mean = 1/ and  26 26

EAR(1) model - contd 1.- Generate X1 from an exponential with mean  . Set t = 2. 2.- Generate U from a uniform on [0,1]. If U <  set Xt =  Xt-1 . Otherwise generate from an exponential with mean 1/ and set Xt =  Xt-1 + t 4.- Set t = t+1 and go to 2. 27 27