Overview of the Simulation Modeling Process Nathaniel Osgood - - PowerPoint PPT Presentation

overview of the simulation
SMART_READER_LITE
LIVE PREVIEW

Overview of the Simulation Modeling Process Nathaniel Osgood - - PowerPoint PPT Presentation

Overview of the Simulation Modeling Process Nathaniel Osgood Agent-Based Modeling Bootcamp for Health Researchers August 22, 2011 Overview of Modeling Process Typically conducted with an interdisciplinary team An ongoing process of


slide-1
SLIDE 1

Overview of the Simulation Modeling Process

Nathaniel Osgood

Agent-Based Modeling Bootcamp for Health Researchers

August 22, 2011

slide-2
SLIDE 2

Overview of Modeling Process

  • Typically conducted with an interdisciplinary

team

  • An ongoing process of refinement
  • Best: Iteration with modeling, intervention

implementation, data collection

  • Often it is the modeling process itself – rather

than the models created – that offers the greatest value

slide-3
SLIDE 3

ABM Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Process flow structure Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-4
SLIDE 4

Recall: Coevolution

Formal Modeling Artifacts Simulated Dynamics Mental Model External World Actions & Choice of Observations Observations/ Evaluation

slide-5
SLIDE 5

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Process flow structure Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-6
SLIDE 6

Identification of Questions/ “The Problem”

  • All models are simplifications and “wrong”
  • Some models are useful
  • Attempts at perfect representation of “real-world”

system generally offer little value

  • Establishing a clear model purpose is critical for defining

what is included in a model

– Understanding broad trends/insight? – Understanding policy impacts? – Ruling out certain hypotheses?

  • Think explicitly about model boundaries
  • Adding factors often does not yield greater insight

– Often simplest models give greatest insight – Opportunity costs: More complex model takes more time to build=>less time for insight

slide-7
SLIDE 7

Importance of Purpose

Firmness of purpose is one of the most necessary sinews of character, and one

  • f the best instruments of success. Without it genius wastes its efforts in a maze
  • f inconsistencies.

Lord Chesterfield The secret of success is constancy of purpose. Benjamin Disraeli The art of model building is knowing what to cut out, and the purpose of the model acts as the logical knife. It provides the criterion about what will be cut, so that only the essential features necessary to fulfill the purpose are left. John Sterman

H Taylor, 2001

slide-8
SLIDE 8

Common Division

  • Endogenous

– Things whose dynamics are calculated as part of the model

  • Exogenous

– Things that are included in model consideration, but are specified externally

  • Time series
  • Constants
  • Ignored/Excluded

– Things outside the boundary of the model

slide-9
SLIDE 9

Example of Boundary Definition

(1998)

slide-10
SLIDE 10

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Process flow structure Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-11
SLIDE 11

Example Causal Loop Diagram

Department of Computer Science

slide-12
SLIDE 12

A Second Causal Loop Diagram

Infectives New Infections People Presenting for Treatment Waiting Times + + Health Care Staff

  • Susceptibles
  • Contacts of

Susceptibles with Infectives + + + +

slide-13
SLIDE 13

Qualitative Causal Loop Diagram

Qualitative Transitions (no likelihood yet specified)

slide-14
SLIDE 14

These “parameters” give static characteristics of the agent These describe the “behaviours” – the mechanisms that will govern agent dynamics

Age Cumulative Cigarettes Smoked Weight

These variables are aspects of state.

slide-15
SLIDE 15

Stock & Flow Structure

Normal and Underweight Weight Overweight Pregnant with GDM History of GDM T2DM Developing Obesity Pregnant Normal Weight Mothers with No GDM History Completion of Pregnancy to Non-Overweight State Completion of GDM Pregnancy Women with History of GDM Developing T2DM Overweight Individuals Developing T2DM Normal Weight Individuals Developing T2DM Pregnant with T2DM New Pregnancies from Mother with T2DM Completion of Pregnancy for Mother with T2DM Pregnant Overweight Mothers with No GDM History Pregnancies of Overweight Women Completion of Pregnancy to Overweight State Pregnancies of Non-Overweight Women Pregnancies to Overweight Mother Developing GDM Pregnancies to Non-Overweight Mother Developing GDM Pregnant with Pre-Existing History of GDM Pregnancies for Women with GDM Pregnancies Developing GDM from Mother with GDM History Completion of Non-GDM Pregnancy for Woman with History of GDM Shedding Obesity Pregnant Women Developing Persistent Overweight/Obesity Oveweight Babies Born from T2DM Mothers Pregnant Women with GDM that Continue on to Postpartum T2DM bies Born from

  • ther with

GDM erweight Babies Born to regnant Normal Weight Mothers Pregnancy Duration <Birth Rate> Normal Weight Deaths Overweight Deaths T2DM Deaths Deaths from Non-T2DM Women with History of GDM

slide-16
SLIDE 16

Problem Mapping: Qualitative Models (System Structure Diagram)

Headley, J., Rockweiler, H., Jogee, A. 2008. Women with HIV/AIDS in Malawi: The Impact of Antiretroviral Therapy on Economic Welfare, Proceedings of the 2008 International Conference of the System Dynamics Society, Athens, Greece, July 2008.

slide-17
SLIDE 17

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Process flow structure Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-18
SLIDE 18

Model Formulation

  • Model formulation elaborates on problem

mapping to yield a quantitative model

  • Key missing ingredients

– Specifying formulas for

  • Statechart transitions
  • Flows (in terms of other variables)
  • Intermediate/output variables

– Parameter values

slide-19
SLIDE 19

Example Conditional Transition

The incoming transition into “WhetherPrimaryProgre ssion” will be routed to thisoutgoing transition if this condition is true

slide-20
SLIDE 20

Transition Type: Message Triggered

slide-21
SLIDE 21

Transition Type: Fixed Rate

slide-22
SLIDE 22

Transition Type: Variable Rate

slide-23
SLIDE 23

Transition Type: Fixed Residence Time (Timeout)

slide-24
SLIDE 24

Simple Intermediate Variable

slide-25
SLIDE 25

Sources for Parameter Estimates

  • Surveillance data
  • Controlled trials
  • Outbreak data
  • Clinical reports data
  • Intervention
  • utcomes studies
  • Calibration to historic

data

  • Expert judgement
  • Systematic reviews

Anderson & May

slide-26
SLIDE 26

Introduction of Parameter Estimates

Non Obese General Population Undx Prediabetic Popn Obese General Population Becoming Obese Dx Prediabetic Popn Developing Diabetes Being Born Non Obese Being Born At Risk Annual Likelihood of Becoming Obese Annual Likelihood of Becoming Diabetic Diagnosis of prediabetics undx uncomplicated dying other causes dx uncomplicated dying otehr causes Annualized P Density of pr recong Non-Obese Mortality Annual Mortality Rate for non obese population alized Mortality te for obese population <Annual Not at Risk Births> Annual Likelihood of Non-Diabetes Mortality for Asymptomatic Population <Annual at Risk Births> Obese Mortality Dx Prediabetics Recovering Undx Prediabetics Recovering Annual Likelihood of Undx Prediabetic Recovery Annual Likelihood of Dx Prediabetic Recovery <Annual Likelihood of Non-Diabetes Mortality for Asymptomatic Population>

Some dynamics models will provide much more detail on networks of factors shaping these rates, but ultimately there will be constants that need to be specified

slide-27
SLIDE 27

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Process flow structure Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-28
SLIDE 28

Calibration

  • Often we don’t have reliable information on some

parameters

– Some parameters may not even be observable!

  • Some parameters may implicitly capture a large set
  • f factors not explicitly represented in model
  • Often we will calibrate less well known parameters

to match observed data

– “Analytic triangulation”: Often try to match against many time series or pieces of data at once

  • Sometimes we learn from this that our model

structure just can’t produce the patterns!

slide-29
SLIDE 29

Calibrating in the Midst of Stochastics

100 200 300 400 500 600 700 800 900 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

Historic Series

Historic Series

Year from Start

slide-30
SLIDE 30

Single Model Matches Many Data Sources

  • ne of
slide-31
SLIDE 31

The Pieces of the Elephant

Example Model of Underlying Process&Time Series it Must Match

Here, we are totalling up across the population

slide-32
SLIDE 32

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Process flow structure Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-33
SLIDE 33

Units & Dimensions

  • Distance

– Dimension: Length – Units: Meters/Fathoms/Li/Parsecs

  • Frequency (Growth Rate, etc.)

– Dimension:1/Time – Units: 1/Year, 1/sec, etc.

  • Fractions

– Dimension: “Dimensionless” (“Unit”, 1) – Units: 1

slide-34
SLIDE 34

Dimensional Analysis

  • DA exploits structure of dimensional quantities to

facilitate insight into the external world

  • Uses

– Cross-checking dimensional homogeneity of model – Deducing form of conjectured relationship (including showing independence of particular factors) – Sanity check on validation of closed-form model analysis – Checks on simulation results – Derivation of scaling laws * Construction of scale models – Reducing dimensionality of model calibration, parameter estimation

slide-35
SLIDE 35

Sensitivity Analyses

  • Same relative or absolute uncertainty in

different parameters may have hugely different effect on outcomes or decisions

  • Help identify parameters that strongly affect

– Key model results – Choice between policies

  • We place more emphasis in parameter

estimation into parameters exhibiting high sensitivity

slide-36
SLIDE 36

Sensitivity in Initial Value

  • Frequently we don’t know the exact state of

the system at a certain point in time

  • A very useful type of sensitivity analysis is to

vary the initial value of model stocks

  • In Vensim, this can be accomplished by

– Indicating a parameter name within the “initial value” area for a stock – Varying the parameter value

slide-37
SLIDE 37

Imposing a Probability Distribution Monte Carlo Analysis

  • We feed in probability distributions to reflect our

uncertainty about one or more parameters

  • The model is run many, many times (realizations)

– For each realization, the model uses a different draw from those probability distribution

  • What emerges is resulting probability

distribution for model outputs

slide-38
SLIDE 38

Example Resulting Distribution

Empirical Fractiles

slide-39
SLIDE 39

Impact on cost of uncertainty regarding mortality and medical costs 50% 60% 70% 80% 90% 95% 97% 99% Incremental Costs 6 B 4.5 B 3 B 1.5 B 2001 2014 2026 2039 Time (Year)

Static Uncertainty

slide-40
SLIDE 40

Dynamic Uncertainty: Stochastic Processes

slide-41
SLIDE 41

Dynamic Uncertainty: Stochastic Processes

slide-42
SLIDE 42

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-43
SLIDE 43

Late Availability of HC Workers

Prevalence

1 0.75 0.5 0.25 125 250 375 500 625 750 875 1000 1125 1250 1375 1500 1625 1750 1875 2000 2125 2250 2375 2500 Time (Day)

Prevalence : Baseline 30 HC Workers 1 Prevalence : Alternative HC Workers Late 50 1 Prevalence : Alternative HC Workers Late 100 1 Prevalence : Alternative HC Workers Late 200 1 Prevalence : Alternative HC Workers Late 250 1 Prevalence : Alternative HC Workers Late 300 1

Infection extinction at 300 HC workers!

slide-44
SLIDE 44

Simulation Analysis: Scenarios for Understanding How X affects System

slide-45
SLIDE 45

Policy Formulation & Evaluation

slide-46
SLIDE 46

Policy Comparison: Stochastic Processes

slide-47
SLIDE 47

Policy Comparison: Stochastic Processes

slide-48
SLIDE 48

Modeling Process Overview

A Key Deliverable!

Model scope/boundary selection. Model time horizon Identification of Key variables Reference modes for explanation Causal loop diagrams State charts System Structure diagrams Multi-agent interaction diagrams Multi-scale hierarchy diagrams Specification of

  • Parameters
  • Quantitative causal

relations

  • Decision/behavior

rules

  • Initial conditions

Reference mode reproduction Matching of intermediate time series Matching of

  • bserved data points

Constrain to sensible bounds Structural sensitivity analysis Specification & investigation of intervention scenarios Investigation of hypothetical external conditions Cross-scenario comparisons (e.g. CEA) Parameter sensitivity analysis Cross-validation Robustness&extreme value tests Unit checking Problem domain tests Learning environm ents/Mic roworlds /flight simulator s

Group model building

slide-49
SLIDE 49

THE INTERACTIVE DYNAMIC SIMULATOR (BWATERGAME)

Barlas/Karanfil, 2007

slide-50
SLIDE 50

Results of the Game Tests by Players

110 115 120 125 130 135 140 145 16 32 48 64 80 96 112 128 144 160 hours ECNa conc player1 player2 player3 player4 player5 normal

Dynamics of ECNa concentration for five players...

39 40 41 42 43 44 45 46 47 48 16 32 48 64 80 96 112 128 144 160 hours Body Water player1 player2 player3 player4 player5 normal

Dynamics of total body water...

Barlas/Karanfil, 2007

slide-51
SLIDE 51

Stakeholder Action Labs

  • Team Meetings

Mabry, 2009, “Simulating the Dynamics of Cardiovascular Health and Related Risk Factors”

slide-52
SLIDE 52

Key Take-Home Messages from this Morning

  • Models express dynamic hypotheses about

processes underlying observed behavior

  • Frequently observed behaivour is “emergent” – it is

qualitatively different than the behaviour of any

  • ne piece of the system, or a simple combination of

behaviour of those pieces

  • Models help understanding how diverse pieces of

system work together

  • ABM focus on agent interactions as the

fundamental shapers of dynamics

  • Models are specific to purpose

Department of Computer Science