Micro Simulations in ORA Tom Magelinski tmagelin@andrew.cmu.edu - - PDF document

micro simulations in ora
SMART_READER_LITE
LIVE PREVIEW

Micro Simulations in ORA Tom Magelinski tmagelin@andrew.cmu.edu - - PDF document

<Your Name> Micro Simulations in ORA Tom Magelinski tmagelin@andrew.cmu.edu School of Computer Science, Carnegie Mellon Summer Institute 2020 Center for Computational Analysis of Social and Organizational Systems


slide-1
SLIDE 1

<Your Name> 1

Center for Computational Analysis of Social and Organizational Systems http://www.casos.cs.cmu.edu/

Micro Simulations in ORA

Tom Magelinski

tmagelin@andrew.cmu.edu

School of Computer Science, Carnegie Mellon Summer Institute 2020

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

2

slide-2
SLIDE 2

<Your Name> 2

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

3

Simulation

  • Networks are complicated!
  • Hard if not impossible to find analytical solutions to some

key network questions

– How do nodes interact in a complex network? – How does something diffuse in a complex network? – How do conflicting ties playout in a complex network?

  • Most practical approach is to try it out

– Set up a probabilistic experiment – Repeat the experiment many times – Analyze the results

4

slide-3
SLIDE 3

<Your Name> 3

What are Micro Simulations?

  • Simulations of something moving through a network
  • ver time
  • Four Types of Diffusion Models in ORA:

– “Disease” diffusion – “Monetary” diffusion – “Idea” diffusion – “Technology adoption”

5

Input / Output of Micro Sims In ORA

  • Input:

– A square network comprised of one node class

  • agent by agent, location by location, etc.

– A subset of nodes to initialize the diffusion – Transmission Resistance

  • Number between 0 and 1

– Model specific parameters

  • Output of Micro Simulations

– Diffusion networks – Dynamic visualizations of the diffusion process over time

  • only if run via ORA Visualizer

6

slide-4
SLIDE 4

<Your Name> 4

Micro Simulation Outline in ORA

  • The Diffusion Process

– Agents with resources try to propagate them to their neighbors – Resources are diffused across a link if BOTH checks are passed

  • The Link Activation Checks

– A probabilistic process – Link weight check:

  • Stronger Links -> More Likely to Diffuse

– Transmission resistance check:

  • 1
  • Repeats for each time step

7

Types of Micro Sims: Idea Diffusion

  • An agent can give away information it has access to
  • An agent retains information even after giving it away
  • An agent never loses information it gains
  • An agent never stops giving away information

8

slide-5
SLIDE 5

<Your Name> 5

Types of Micro Sims: Money Diffusion

  • An agent can give away money it posses (all or nothing)

to only one of its neighbors (pick randomly)

  • Once given, the agent lost the money immediately
  • An agent can re-acquire money previously given away

9

Types of Micro Sims: Disease Diffusion

  • An agent can give the disease to other entities while it is

infectious.

  • A agent will be “cured” after a user-specified number of

time periods.

  • Once the agent is cured, it becomes immune against it

and can not become infected again.

  • Additional model parameter: a user-specified parameter

indicating the proportion of agents who are immune

10

slide-6
SLIDE 6

<Your Name> 6

Types of Micro Sims: Technology Adoption

  • An agent may adopt a technology if enough of its

neighbors use the technology

  • An agent can stop using a technology, especially if its

neighbors are not using the technology

  • For an agent with no incoming links, it will flip a coin to

adopt/drop a technology

  • An agent can re-start using a technology

11

Overview of Micro Sim. Types

I can give it to others I lose it after sharing I lose it after some time I can get it back Ideas YES No No N/A Disease YES No YES No Money YES YES No YES Tech YES No YES YES

12

slide-7
SLIDE 7

<Your Name> 7

Key Takeaways

  • Micros Simulations are random!

– The results could be different each time you run the simulation

  • Link weight is important

– The larger the link weights are, the more likely diffusion is – In a network that has equal weights on links (e.g. binary networks), the probability to pass link weight check will always be 1 on each link

  • Transmission resistance

– Transmission resistant ↑ , diffusion ↓ – If transmission resistance is 0, the diffusion is solely depends on the weights of every link in the network

13

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

14

slide-8
SLIDE 8

<Your Name> 8

ORA Startup Screen

15

  • pen ORA from where you installed it

Generate Network

16

Pick ‘small world’

slide-9
SLIDE 9

<Your Name> 9

ORA Small World Generation

17

Change Defaults settings

  • Press ‘Create’ then
  • Press ‘Close’

1 2 3 4

Visualize Network

18

Click the “visualize” button

slide-10
SLIDE 10

<Your Name> 10

Small World Visualization

run “microsim” from “tools” menu

19

Micro-Simulation in Visualizer

20

Under “Tools” menu, select “Micro Simulations”

slide-11
SLIDE 11

<Your Name> 11

Select Nodeclass and Network for Diffusion

21

select node class and appropriate network id, then hit “next” button

Select Initial Agents

We’ll pick two on opposite sides of network and click Next

22

slide-12
SLIDE 12

<Your Name> 12

Choose Simulation Parameters

23

Set Choices in GUI (Diffusion of Ideas, 0.1 resistance) & Run/Pause

3 2 1

Run Simulation

24

  • bserve diffusion in action

(green shows diffusion)

slide-13
SLIDE 13

<Your Name> 13

Run Simulation

Step through time periods

25

Save simulation if desired

Run Simulation

Use additional tools to vary number

  • f simulations to run and number of

periods per simulation

26

slide-14
SLIDE 14

<Your Name> 14

Run Simulation

Increase Sims to Run (2) & Periods per Simulation (10)

27

2 1 3

Results of Multiple Runs

28

Run 1 and 2 results

slide-15
SLIDE 15

<Your Name> 15

Diffusion of Money

29

Set Parameters, Run, and View

1 2 3

Diffusion of Disease

30

Set Sim Parameters, Run, and View

1 2 3

slide-16
SLIDE 16

<Your Name> 16

Adoption of Technology

31

Set Sim Parameters, Run, and View

1 2 3

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

32

slide-17
SLIDE 17

<Your Name> 17

Start the Microsimulation

Select “Micro Simulations” from “Simulations” menu

33

Select Network for Diffusion

34

select node class and appropriate network id, then hit “next” button

slide-18
SLIDE 18

<Your Name> 18

Select Initial Agents

We’ll pick two on opposite sides of network

35

1 2 3

Choose Simulation Parameters

Set Choices in GUI (Diffusion of Ideas, 0.1 resistance, 50 runs)

36

4 2 1 5 Deprecated.

slide-19
SLIDE 19

<Your Name> 19

Meta-Network Manager

37

Good idea to add details to “ID” field Consider saving files

1 2

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

38

slide-20
SLIDE 20

<Your Name> 20

Visualize Simulation Networks over Time

Observe diffusion in action (links between agents and knowledge)

39

Visualize Simulation Networks over Time

40

Observe diffusion in action (links between agents and knowledge) 1 2 3 4 5 6

slide-21
SLIDE 21

<Your Name> 21

Visualize Simulation Networks over Time

41

As Idea/Knowledge links to more agents, the idea moves to the center of the visualizer

Visualize Simulation Networks over Time

42

Another way to view the ties between Ideas/Knowledge and agents

slide-22
SLIDE 22

<Your Name> 22

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

43

Visualization of Trails

44

Another way to view the ties between Ideas/Knowledge and agents

slide-23
SLIDE 23

<Your Name> 23

Visualization of Trails

45

Change from ‘Graph’ to ‘Simulation Links’

Trails of Information over time

46

slide-24
SLIDE 24

<Your Name> 24

Agenda

  • Micro Simulations Background
  • Generate Stylized Networks for Micro Simulation

Experiments

  • Run Micro Simulations from ORA Visualizer
  • Run Micro Simulations from ORA Menu

– Visualization of networks over time – Visualization of agent trails – Utilized Network

  • Questions

47

What is the Utilization Network?

  • A end-of-sim view of network links used for transmission
  • Link WeightAB = count of times transmission occurred from node A

to node B (More useful for money and technology)

  • If transmission occurs between Node A and B

– Link WeightAB := Link WeightAB + 1

48

slide-25
SLIDE 25

<Your Name> 25

Utilized Network

49

Link Weight === Number of times transmission occurred between agent 5 and agent 6

Micro-Sims vs Near Term Analysis & Construct

  • Micro-sims use fixed probabilities of transmission,

Construct’s probabilities of interaction vary

  • Micro-sims only require one node set and network type

to run the simulation, Construct requires many

  • Micro-sims used via two ways in ORA GUI, Construct is

primarily non-GUI

  • Micro-sims treat the examined network as static; none of

the other networks (e.g. the knowledge network) will change during the simulation

  • Micro-sims do not calculate diffusion metrics

50

slide-26
SLIDE 26

<Your Name> 26

Questions? Backup Slides

slide-27
SLIDE 27

<Your Name> 27

Exclusivity of Disease/Resource Diffusion Overtime

53

Select the dynamic network generated by Micro-Simulation. Select View Measures over time from Visualizations

Exclusivity of Disease/Resource Diffusion Overtime

54

  • 1. Choose click to select
  • 2. In the pop up window, enter exclusivity
  • 3. Choose Exclusivity
  • 4. Click OK and Compute

1 2 3 4 4

slide-28
SLIDE 28

<Your Name> 28

Exclusivity of Disease/Resource Diffusion Overtime

55

  • 1. Click 1 and 2 in Idea Level Tab
  • 2. View Exclusivity of idea over time

1 2