Docsity

Statistical Analysis of Terminating Simulations in Arena: Techniques and Tools, Slides of Banking and Finance

Toggle sidebar
bg1
Simulation with Arena Chapter 5 –Detailed Modeling and Terminating Statistical Analysis Slide 67 of 88
Statistical Analysis of Output from
Terminating Simulations
•Random input leads to random output (RIRO)
•Run a simulation (once) —what does it mean?
Was this run “typical” or not?
Variability from run to run (of the same model)?
•Need statistical analysis of output data
From a single model configuration
Compare two or more different configurations
Search for an optimal configuration
•Statistical analysis of output is often ignored
This is a big mistake – no idea of precision of results
Not hard or time-consuming to do this – it just takes a little
planning and thought, then some (cheap) computer time
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Statistical Analysis of Terminating Simulations in Arena: Techniques and Tools and more Slides Banking and Finance in PDF only on Docsity!

Statistical Analysis of Output from

Terminating Simulations

• Random input leads to random output (RIRO)

• Run a simulation (once) — what does it mean?

 Was this run “typical” or not?  Variability from run to run (of the same model)?

• Need statistical analysis of output data

 From a single model configuration  Compare two or more different configurations  Search for an optimal configuration

• Statistical analysis of output is often ignored

 This is a big mistake – no idea of precision of results  Not hard or time-consuming to do this – it just takes a little planning and thought, then some (cheap) computer time

Docsity.com

Time Frame of Simulations

• Terminating : Specific starting, stopping

conditions

 Run length will be well-defined (and finite)

• Steady-state : Long-run (technically forever)

 Theoretically, initial conditions don’t matter (but practically they usually do)  Not clear how to terminate a simulation run

• This is really a question of intent of the study

• Has major impact on how output analysis is done

• Sometimes it’s not clear which is appropriate

• Here: Terminating (steady-state in Section 6.3)

Docsity.com

Strategy for Data Collection and

Analysis (cont’d.)

• Category Overview report will have some

statistical-analysis results of the output across

the replications

• How many replications?

 Trial and error (now)  Approximate number for acceptable precision (below)  Sequential sampling (Chapter 11)

• Turn off animation altogether for max speed

Run / Run Control / Batch Run (No Animation)

Docsity.com

Confidence Intervals for

Terminating Systems

• Using formulas in Chapter 2, viewing the cross-

replication summary outputs as the basic data:

• Possibly most useful part – 95% confidence

interval on expected values

• This information (except standard deviation) is in

Category Overview report

 If > 1 replication specified, Arena uses cross-replication data as above  Other confidence levels, graphics – Output Analyzer

Docsity.com

Half Width and Number of Replications

(cont’d.)

• Set half-width = h , solve for

• Not really solved for n ( t , s depend on n )

• Approximation:

 Replace t by z, corresponding normal critical value  Pretend that current s will hold for larger samples  Get

• Easier but different approximation:

s = sample standard deviation from “initial” number n 0 of replications

h 0 = half width from “initial” number n 0 of replications

n grows quadratically as h decreases.

Docsity.com

Interpretation of Confidence Intervals

• Interval with random (data-dependent) endpoints

that’s supposed to have stated probability of

containing, or covering, the expected valued

 “Target” expected value is a fixed, but unknown, number  Expected value = average of infinite number of replications

• Not an interval that contains, say, 95% of the data

 That’s a prediction interval … useful too, but different

• Usual formulas assume normally-distributed data

 Never true in simulation  Might be approximately true if output is an average, rather than an extreme  Central limit theorem  Issues of robustness, coverage, precision – details in book Docsity.com

Compare Means via the Output Analyzer

• Output Analyzer is a separate application that

operates on .dat files produced by Arena

 Not installed by default from book CD – need custom install  Launch separately from Windows, not from Arena

• To save output values (Expressions) of entries in

Statistic data module (Type = Output) – enter

filename.dat in Output File column

 Just did for Total Cost, not Percent Busy  Will overwrite this file name next time … either change the name here or out in Windows before the next run  .dat files are binary … can only be read by Output Analyzer

Docsity.com

Compare Means via the Output Analyzer

(cont’d.)

• Start Output Analyzer, open a new data group

 Basically, a list of .dat files of current interest  Can save data group for later use – .dgr file extension  Add button to select (Open) .dat files for the data group

• Analyze / Compare Means menu option

 Add data files … “A” and “B” for the two alternative  Select “Lumped” for Replications field  Title, confidence level, accept Pared-t Test, Scale Display

Docsity.com

Evaluating Many Alternatives with the

Process Analyzer (PAN)

• With (many) more than two alternatives to

compare, two problems are

 Simple mechanics of making the possibly many parameter changes, making the runs, keeping track of the many output files  Statistical methods for drawing reliable and useful conclusions

• Process Analyzer (PAN) addresses these

• PAN operates on program (.p) files – produced

when .doe file is run (or just checked)

• Start PAN from Arena ( Tools / Process Analyzer ) or

via Windows

• PAN runs on its own, separate from Arena

Docsity.com

PAN Scenarios

• A scenario in PAN is a combination of:

 A program (.p) file  Set of input controls that you choose

  • Chosen from Variables and Resource capacities – think ahead
  • You fill in specific numerical values  Set of output responses that you choose
  • Chosen from automatic Arena outputs or your own Variables
  • Values initially empty … to be filled in after run(s)  To create a new scenario in PAN, double-click where indicated, get Scenario Properties dialog
  • Specify Name, Tool Tip Text, .p file, controls, responses
  • Values of controls initially as in the model, but you can change them in PAN – this is the real utility of PAN
  • Can duplicate (right-click, Duplicate) scenarios, then edit for a new one  Think of a scenario as a row Docsity.com

Running Model 5-3 with PAN

• Scenarios

 Base case (no additional resources)  Imagine $1200/week to spend on each additional resource type, one at a time (no mixed enhancements)  7 scenarios in all (details in book)  Select all to run (click on left of row, Ctrl-Click or Shift-Click for more)  To execute, or Run / Go or F

Docsity.com

Statistical Comparisons with PAN

• Model 5-3 alternatives were made with 10

replications each

 Better than one replication, but what about statistical validity of comparisons, selection of “the best”?

• Select Total Cost column, Insert / Chart (or or

right-click on column, then Insert Chart)

 Chart Type: Box and Whisker  Next, Total Cost; Next defaults  Next, Identify Best Scenarios

  • Smaller is Better, Error Tolerance = 0 (not the default)
  • Show Best Scenarios; Finish

Docsity.com

• The scenarios just considered with PAN are just 7

of many, many possibilities

• Try to find input-control values that minimize

Total Cost while keeping Percent Busy < 5%

• Formulate as an optimization problem:

Minimize Total Cost Subject to 26 ≤ Trunk Lines ≤ 50 New Sales, New Tech 1, New Tech 2, New Tech 3, New Tech All ≥ 0 New Sales + New Tech 1 + New Tech 2 + New Tech 3 + New Tech All ≤ 15 Percent Busy < 5%  Reasonable starting place – best acceptable scenario so far: Add 3 New Tech All  Where to go from here? Explore all of feasible six- dimensional space exhaustively? No.

Searching for an Optimal Alternative

with OptQuest

An output requirement , not an input constraint

Objective function is the simulation model Contractual obligation, space limitation

Space limitation

Nobody’s fired

Docsity.com

OptQuest

• OptQuest searches intelligently for an optimum

 Like PAN, OptQuest

  • Runs as a separate application … can be launched from Arena
  • “Takes over” the running of your model
  • Asks that you identify the input controls and the output (just one) response objective  Unlike PAN, OptQuest
  • Asks that you specify constraints on the input controls
  • Asks that you specify requirements on outputs
  • Decides itself what input-control-value combinations to try
  • Uses internal heuristic algorithms to decide how to change the input controls to move toward an optimum configuration

• You specify stopping criterion for the search

Docsity.com