Docsity

Modeling Input Data in Arena Simulations: Adding Pictures, Plots, and Distributions, Slides of Banking and Finance

Toggle sidebar
bg1
Simulation with Arena Chapter 4 –Modeling Basic Operations and Inputs Slide 41 of 58
Adding Resource Pictures
•Animate a Resource –click on Resource button
in animate toolbar –get Resource Picture
Placement Window
•Left column –default pictures for different
Resource states
Attach logically to a Resource by Identifier pull-down list
Double-click to edit the artwork by hand, or paste in
previously copied graphics images
Seize area – where seizing entity will “reside”
Multiple seize areas for multi-capacity Resources
•Right column –picture libraries (.plb files) –can
copy over to selected (depressed) state pictures
•Accept window, cross hairs, click to place
Resize, reposition later
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Modeling Input Data in Arena Simulations: Adding Pictures, Plots, and Distributions and more Slides Banking and Finance in PDF only on Docsity!

Adding Resource Pictures

• Animate a Resource – click on Resource button

in animate toolbar – get Resource Picture

Placement Window

• Left column – default pictures for different

Resource states

 Attach logically to a Resource by Identifier pull-down list  Double-click to edit the artwork by hand, or paste in previously copied graphics images  Seize area – where seizing entity will “reside”  Multiple seize areas for multi-capacity Resources

• Right column – picture libraries (.plb files) – can

copy over to selected (depressed) state pictures

• Accept window, cross hairs, click to place

 Resize, reposition later Docsity.com

Adding Plots and Variables

• Variable animation – just show a value of

something as a number, watch it change

 Variable object from Animate toolbar  Double-click, specify Expression to be shown (Expression Builder), and cosmetics  Resize, reposition later

• Dynamic animated plots – discussed in Chapter 3

• Other animation objects from Animate toolbar

 Clock (TNOW), variety of formats  Level (thermometer) animation

Docsity.com

Deterministic vs. Random Inputs

• Deterministic : nonrandom, fixed values

 Number of units of a resource  Entity transfer time (?)  Interarrival, processing times (?)

• Random (a.k.a. stochastic ): model as a

distribution, “draw” or “generate” values from to

drive simulation

 Transfer, Interarrival, Processing times  What distribution? What distributional parameters?  Causes simulation output to be random, too

• Don’t just assume randomness away — validity

Docsity.com

Collecting Data

• Generally hard, expensive, frustrating, boring

 System might not exist  Data available on the wrong things — might have to change model according to what’s available  Incomplete, “dirty” data  Too much data (!)

• Sensitivity of outputs to uncertainty in inputs

• Match model detail to quality of data

• Cost — should be budgeted in project

• Capture variability in data — model validity

• Garbage In, Garbage Out (GIGO)

Docsity.com

Fitting Distributions via the Arena Input

Analyzer

• Assume:

 Have sample data: Independent and Identically Distributed (IID) list of observed values from the actual physical system  Want to select or fit a probability distribution for use in generating inputs for the simulation model

• Arena Input Analyzer

 Separate application, also accessible via Tools menu in Arena  Fits distributions, gives valid Arena expression for generation to paste directly into simulation model

Docsity.com

Fitting Distributions via the Arena Input

Analyzer (cont’d.)

• Fitting = deciding on distribution form

(exponential, gamma, empirical, etc.) and

estimating its parameters

 Several different methods (Maximum likelihood, moment matching, least squares, …)  Assess goodness of fit via hypothesis tests

  • H 0 : fitted distribution adequately represents the data
  • Get p value for test (small = poor fit)

• Fitted “theoretical” vs. empirical distribution

• Continuous vs. discrete data, distribution

• “Best” fit from among several distributions

Docsity.com

The Fit Menu

• Fits distributions, does goodness-of-fit tests

• Fit a specific distribution form

 Plots density over histogram for visual “test”  Gives exact expression to Copy and Paste (Ctrl+C, Ctrl+V) over into simulation model  May include “offset” depending on distribution  Gives results of goodness-of-fit tests

  • Chi square, Kolmogorov-Smirnov tests
  • Most important part: p-value , always between 0 and 1: Probability of getting a data set that’s more inconsistent with the fitted distribution than the data set you actually have, if the the fitted distribution is truly “the truth” “Small” p (< 0.05 or so): poor fit (try again or give up)

Docsity.com

The Fit Menu (cont’d.)

• Fit all Arena’s (theoretical) distributions at once

Fit / Fit All menu or  Returns the minimum square-error distribution

  • Square error = sum of squared discrepancies between histogram frequencies and fitted-distribution frequencies
  • Can depend on histogram intervals chosen: different intervals can lead to different “best” distribution  Could still be a poor fit, though (check p value)  To see all distributions, ranked: Window / Fit All Summary or

Docsity.com

Some Issues in Fitting Input

Distributions

• Not an exact science — no “right” answer

• Consider theoretical vs. empirical

• Consider range of distribution

 Infinite both ways (e.g., normal)  Positive (e.g., exponential, gamma)  Bounded (e.g., beta, uniform)

• Consider ease of parameter manipulation to

affect means, variances

• Simulation model sensitivity analysis

• Outliers, multimodal data

 Maybe split data set (see textbook for details)

Docsity.com

No Data?

• Happens more often than you’d like

• No good solution; some (bad) options:

 Interview “experts”

  • Min, Max: Uniform
  • Avg., % error or absolute error: Uniform
  • Min, Mode, Max: Triangular Mode can be different from Mean — allows asymmetry  Interarrivals — independent, stationary
  • Exponential— still need some value for mean  Number of “random” events in an interval: Poisson  Sum of independent “pieces”: normal  Product of independent “pieces”: lognormal

Docsity.com

Nonstationary Arrival Processes

• External events (often arrivals) whose rate varies

over time

 Lunchtime at fast-food restaurants  Rush-hour traffic in cities  Telephone call centers  Seasonal demands for a manufactured product

• It can be critical to model this nonstationarity for

model validity

 Ignoring peaks, valleys can mask important behavior  Can miss rush hours, etc.

• Good model: Nonstationary Poisson process

Docsity.com

Nonstationary Arrival Processes (cont’d.)

• Two issues:

 How to specify/estimate the rate function  How to generate from it properly during the simulation (will be discussed in Chapters 5, 11 …)

• Several ways to estimate rate function — we’ll

just do the piecewise-constant method

 Divide time frame of simulation into subintervals of time over which you think rate is fairly flat  Compute observed rate within each subinterval  Be very careful about time units!

  • Model time units = minutes
  • Subintervals = half hour (= 30 minutes)
  • 45 arrivals in the half hour; rate = 45/30 = 1.5 per minute

Docsity.com