Giter Site home page Giter Site logo

contact_series_estimation's Introduction

Contact series estimation

Here we try to estimate the contact time series for all departments based on the contact time series and mobility trends of Bogotá. By leveraging a proportion between the two metrics, it extrapolates the contact time series for the rest of the departments using their respective mobility trends. Below is an explanation of the code, broken down into its main components.

Load and Preprocess Data

  1. Community Survey Data for Bogotá (Department Code 11001):

    • This dataset includes dates and the total number of contacts reported on those dates.
  2. Mobility Trends Data for Bogotá:

    • The mobility trend values are adjusted by calculating an exponentially weighted moving average (EWMA) with a smoothing factor alpha, and adding 1 to the result. This adjustment aims to normalize the mobility trend data and make it more comparable across time.

Estimation Process for Other Departments

Combining and Estimating Contacts Data:

  • The script calculates the ratio of the EWMA of the department's mobility trend to the EWMA of Bogotá's mobility trend. This ratio aims to capture the relative mobility between the department and Bogotá over time.
  • The contact estimation for the department is then calculated by multiplying this ratio by the total number of contacts from the Bogotá dataset. This step assumes that the contact dynamics in each department can be approximated by adjusting the Bogotá contact data based on the relative mobility trends.

contact_series_estimation's People

Contributors

dvelozad avatar

Watchers

 avatar

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.