Giter Site home page Giter Site logo

graphic_analysis_covid's Introduction

Graphic Analysis COVID

Code to perform a descriptive analysis of Virus COVID-19 in each country.

Features

  • Code to perform a descriptive analysis of the virus behavior in different countries;

  • The analysis is divided into confirmed cases of the COVID-19 virus and the deaths caused by this virus;

  • The data used to perform the analyzes are those provided by Johns Hopkins University;

  • The graphic analyzes performed are:

    • Virus behavior and evolution of cases of death by countries;
    • Comparison of confirmed cases of the virus and deaths caused by different countries;
    • The behavior of new cases of the virus daily with the moving average (simple moving average, SMA, and exponential moving average EMA);
    • The behavior of new deaths daily with the moving average (simple moving average, SMA, and exponential moving average EMA);
    • The behavior of the simple moving average (SMA) and standard deviation for new cases and confirmed deaths per day.

Functions

The code has seven functions, three functions are for data processing and four for analysis. These functions are:

  • data_preparation: Function to load the data to be analyzed;

  • data_country: Function to create a matrix with data of confirmed cases of COVID-19 and death by COVID-19;

  • data_per_day: Function to calculate the newly registered cases of the COVID-19 virus and the newly registered deaths;

  • country_plot: Function to plot the data of COVID-19 confirmed cases and deaths by COVID-19 in the same plot;

  • comparison_plots: Function to compare the behavior of the COVID-19 virus in different countries;

  • new_cases_per_day: Function to graph the new confirmed cases of the COVID-19 virus and the new deaths caused by the virus;

  • new_cases_per_day_fill_plot: Function to graph the moving average and standard deviation for newly registered cases of COVID-19 and new deaths registered per day.

Some results

country_plot

Italy US

comparison_plots

new_cases_per_day

Italy US

new_cases_per_day_fill_plot

Italy US

graphic_analysis_covid's People

Contributors

fernanmartinez 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.