Code Monkey home page Code Monkey logo

sirnestednetwork's Introduction

SIRNestedNetwork

This Python code generates the simulations presented in Figure 3 of the manuscript Crowding dictates the epidemic intensity of COVID-19 transmission across China by Rader et al., Nature Medicine, 2020.

This analysis was conducted in collaboration with Ben Adlam and Anjalika Nande.

Method summary: We simulated a simple stochastic SIR model of infection spread on weighted networks created to represent hierarchically-structured populations. Individuals were first assigned to households using the distribution of household sizes in China (data from UN Population Division, mean 3.4 individuals). Households were then assigned to “neighborhoods” of ~100 individuals, and all neighborhood members were connected with a lower weight. A randomly-chosen 10% of individuals were given “external” connections to individuals outside the neighborhood. The total population size was N=1000. Simulations were run for 300 days and averages were taken over 20 iterations. The SIR model used a per-contact transmission rate of 𝛽=0.15 and recovery rate 𝛾=0.1. For the simulations without interventions, the weights were wHH = 1, wNH = 0.01, and wEX = 0.001 for the “crowded” prefecture and wEX = 0.0001 for the “sparse” prefecture. For the simulations with interventions, the household and neighborhood weights were the same but we used wEX = 0.01 for the “crowded” prefecture and wEX = 0.001 for the “sparse” prefecture. The intervention reduced the weight of all connections outside the household by 75%.

sirnestednetwork's People

Contributors

alsnhll avatar anjalika-nande avatar

Stargazers

 avatar Xu Mingda avatar Tom Adwards avatar Yue-Li avatar Pietro Monticone avatar

Watchers

 avatar

Forkers

anjalika-nande

sirnestednetwork's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.