# NetLogo Activity, Monday, Week 2 - Epidemic on a Network

Which of two common network types is a more efficient "percolator"? In this activity, we'll build on the previous NetLogo activities, and build networks (uniform random and preferential attachment) over which epidemics will spread. Of course, percolation through a network isn't limited to epidemics; for example, we can use similar approaches to model the transmission of ideas, rumors, inventions – even religions – over social networks.

### Instructions

- Download and open the model "Network Epidemic (start).nlogo" (attached below) in NetLogo.
- Download and open the document "Building a Basic Network Epidemic Model in NetLogo (Epidemic on a Network.pdf)" (attached below).
- Follow the instructions in the document for adding the necessary code and UI elements to complete the model.
- Explore the model's behavior by trying different values of the network and epidemic-related parameters.
- Answer the question below (also included in the document).

Given two networks, one constructed with a uniform random algorithm, and the other with a preferential attachment algorithm, and where both have equal (or approximately equal) values of the following:

- Number of nodes
*N* - Network density
*D* - Initial number infected
*I*_{0} - Infection propagation rate (i.e. probability of propagation, in any given iteration, over a link between an infected individual and a susceptible individual) of
*p* - Infection recovery rate (i.e. probability of recovery of an infected individual in any given iteration) of
*r*

Which of the two networks will spread the epidemic more effectively?

### Applet

### BehaviorSpace

The model "Network Epidemic (BehaviorSpace).nlogo" (attached below) incorporates some changes that make it easier to use this model with BehaviorSpace. It also has a parameter-sweeping BehaviorSpace experiment defined.

Attachment | Size |
---|---|

Network Epidemic (start).nlogo | 13.06 KB |

Network Epidemic (finish).nlogo | 14.45 KB |

Network Epidemic (BehaviorSpace).nlogo | 15.92 KB |

Building a Basic Network Epidemic Model in NetLogo (Epidemic on a Network.pdf) | 141.57 KB |

- Login to post comments