1 CS 475/575 Slide Set 6 M. Overstreet Spring 2005.

Slides:



Advertisements
Similar presentations
Exponential Distribution. = mean interval between consequent events = rate = mean number of counts in the unit interval > 0 X = distance between events.
Advertisements

Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 18 Sampling Distribution Models.
Probability Distributions CSLU 2850.Lo1 Spring 2008 Cameron McInally Fordham University May contain work from the Creative Commons.
Week11 Parameter, Statistic and Random Samples A parameter is a number that describes the population. It is a fixed number, but in practice we do not know.
Outline input analysis input analyzer of ARENA parameter estimation
Statistics review of basic probability and statistics.
1 Methods of Experimental Particle Physics Alexei Safonov Lecture #21.
Sampling Distributions (§ )
Continuous Probability Distributions.  Experiments can lead to continuous responses i.e. values that do not have to be whole numbers. For example: height.
Chapter 8 Random-Variate Generation
Terminology A statistic is a number calculated from a sample of data. For each different sample, the value of the statistic is a uniquely determined number.
Review of Basic Probability and Statistics
Random-Variate Generation. Need for Random-Variates We, usually, model uncertainty and unpredictability with statistical distributions Thereby, in order.
Test 2 Stock Option Pricing
Simulation and Probability
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 4 Continuous Random Variables and Probability Distributions.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
11/5/2003Probability and Statistics for Teachers, Math 507, Lecture 10 1 UNIFORM AND EXPONENTIAL RANDOM VARIABLES Sections
Exponential Distribution & Poisson Process
Chapter 5 Modeling & Analyzing Inputs
Random variables Petter Mostad Repetition Sample space, set theory, events, probability Conditional probability, Bayes theorem, independence,
JMB Chapter 6 Lecture 3 EGR 252 Spring 2011 Slide 1 Continuous Probability Distributions Many continuous probability distributions, including: Uniform.
Chapter 6: Probability Distributions
Chapter 4 – Modeling Basic Operations and Inputs  Structural modeling: what we’ve done so far ◦ Logical aspects – entities, resources, paths, etc. 
Probability theory 2 Tron Anders Moger September 13th 2006.
0 Simulation Modeling and Analysis: Input Analysis K. Salah 8 Generating Random Variates Ref: Law & Kelton, Chapter 8.
Chapter 5 Statistical Models in Simulation
Tch-prob1 Chap 3. Random Variables The outcome of a random experiment need not be a number. However, we are usually interested in some measurement or numeric.
Chapter 3 Basic Concepts in Statistics and Probability
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
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Review and Preview This chapter combines the methods of descriptive statistics presented in.
Traffic Modeling.
Introduction to Inferential Statistics. Introduction  Researchers most often have a population that is too large to test, so have to draw a sample from.
Theory of Probability Statistics for Business and Economics.
Statistics & Flood Frequency Chapter 3 Dr. Philip B. Bedient Rice University 2006.
1 Statistical Distribution Fitting Dr. Jason Merrick.
Normal Distribution Introduction. Probability Density Functions.
Chapter 6 USING PROBABILITY TO MAKE DECISIONS ABOUT DATA.
ETM 607 – Input Modeling General Idea of Input Modeling Data Collection Identifying Distributions Parameter estimation Goodness of Fit tests Selecting.
Confidence intervals and hypothesis testing Petter Mostad
Lecture 2 Review Probabilities Probability Distributions Normal probability distributions Sampling distributions and estimation.
BUS304 – Chapter 6 Sample mean1 Chapter 6 Sample mean  In statistics, we are often interested in finding the population mean (µ):  Average Household.
One Random Variable Random Process.
Selecting Input Probability Distribution. Simulation Machine Simulation can be considered as an Engine with input and output as follows: Simulation Engine.
ME Mechanical and Thermal Systems Lab Fall 2011 Chapter 3: Assessing and Presenting Experimental Data Professor: Sam Kassegne, PhD, PE.
PROBABILITY AND STATISTICS FOR ENGINEERING Hossein Sameti Department of Computer Engineering Sharif University of Technology Mean, Variance, Moments and.
Chapter 6 The Normal Distribution and Other Continuous Distributions.
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Random Variable The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we.
Learning Simio Chapter 10 Analyzing Input Data
Sampling and estimation Petter Mostad
Topic 5: Continuous Random Variables and Probability Distributions CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally from the class text,
Education 793 Class Notes Inference and Hypothesis Testing Using the Normal Distribution 8 October 2003.
Ch4: 4.3The Normal distribution 4.4The Exponential Distribution.
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
Chapter 31Introduction to Statistical Quality Control, 7th Edition by Douglas C. Montgomery. Copyright (c) 2012 John Wiley & Sons, Inc.
Lecture 8: Measurement Errors 1. Objectives List some sources of measurement errors. Classify measurement errors into systematic and random errors. Study.
Chapter 6 Large Random Samples Weiqi Luo ( 骆伟祺 ) School of Data & Computer Science Sun Yat-Sen University :
THE NORMAL DISTRIBUTION
1 ENGINEERING MEASUREMENTS Prof. Emin Korkut. 2 Statistical Methods in Measurements.
Modeling and Simulation CS 313
The Normal Distribution: Comparing Apples and Oranges
Sampling Distributions and Estimation
Modeling and Simulation CS 313
Random Variates 2 M. Overstreet Spring 2005
Using the Input Analyzer
Modelling Input Data Chapter5.
M248: Analyzing data Block A UNIT A3 Modeling Variation.
Presentation transcript:

1 CS 475/575 Slide Set 6 M. Overstreet Spring 2005

2 Random Variates zProblem: choose to model some component/behavior of simulated system as random -- but with a distribution that is “right.” zUsually never know for certain what “right” is. zIf have data from referent system, usually want to match that data. zMay want empirical or theoretical distribution. zOften want to choose a theoretical distribution that best “fits” raw data (since lots of sim. languages make this easy).

3 Choosing “right” distributions zMay know something about system that suggests a particular distribution (so all that’s needed is parameters), e.g., normal or exponential. 1. Known characteristic of data help: yDiscrete or continuous yRange: bounded, nonnegative, infinite

4 Choosing right dist - (cont.) 2. Known characteristics of system: A rrivals often exponential Measure error often normal Interfailure times cannot be negative. 3. More formal: use standard “goodness- of-fit” test to match empirical to theoretical. (We will do with Arena)

5 choosing right dist. (cont.) 4. Less formal: pick something, then (if you have validation data) do sensitivity testing to see how much your choice effects results. 5. Simple heuristics (see table 4.2 in text, pg. 164): y If nothing is known, but range is bounded, use uniform. y If little is know, and range is bounded, try triangular if relative frequencies suggest this. y If high variance, bounded on left, try exponential

6 choosing right dist. (cont.)

7 theoretical distributions zThus far we’ve (mostly) focused on generating U(0,1) random variables. zWhat about other distributions? zSeveral techniques, but first need to review (or cover) some basic statistics. zBasic idea is that we are sampling from a (potentially) infinite population. (how many numbers are between 0 and 1?) Assume we are always working with a sample Some samples are “typical,” some are not.

8 theoretical dists (cont.) zMight toss a coin 100 times and get, say more than 65% heads, but not often (this is “unusual” but certainly possible) zBut we we do this often and keep score, we will sometimes get “too many heads” (if we do things often enough, it would be unusual if the unusual never happened) zAs n (the number of tosses -- or samples or observations) approaches infinity, then if we plotted the frequencies as a histogram (as relative percentages of total), we would generate an approximation of the Probability density function (PDF) for the distribution.

9 PDFs & CDFs zEach distribution (normal, exponential, uniform, etc.) has its own characteristic PDF. zEach has a total area of 1. zIf we integrate the PDF from -infinity to some point, we get the Cummulative Density Function (CDF) zThis is useful we we want to generate random data with the same distribution.

10 Example zSuppose we are simulating activity at a local restaurant. People arrive in groups of various sizes. Want a simulation that produces similar behavior. zSuppose we have gathered the data given in the next table.

11 restaurant arrival data

12 sample code x = uniform(0,1) if 0 <= x < 0.10 return 1 if 0.1 <= x < 0.47 return 2 if 0.47 <= x < 0.62 return 3 if 0.62 <= x < 0.86 return 4... zClaim: “over the long run” this code will produce the empirical data exactly. ylemma: model behavior will be no better than the data zWhere is the PDF and CDF in the above?

13 poisson processes zWidely used in simulation zAssume: 1. Arrivals occur one at a time. 2. The number of arrivals between t and t+s depends only on s, not on t (This is called a stationary process; arrival frequencies do not change over time) 3. The numbers of arrivals in nonoverlapping time intervals are independent random variables (This is the memoryless property; lots of arrivals in one interval are not made up for in the next.)

14 poisson (cont.) zIf so, then the process is said to be Poisson. zLet N(t) be the expected number of arrivals in time duration t. Then we could show:

15 reading: zArena text, chapter 4. zReference: Leemis, chapter 6