GithubHelp home page GithubHelp logo

justbeyou / covid19-death-vaccine-correlation Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 27 KB

Quick analysis of the correlation between vaccination and death rates of COVID-19.

Python 88.64% JavaScript 11.36%
covid-19 statistics

covid19-death-vaccine-correlation's Introduction

Correlation between vaccination and COVID-19 reported deaths

Data gathering

  • Worldmeters
  • Google vaccination statistics

Data cleaning

  • removed countries with missing data
  • removed countries with invalid data (more than 100% percent vaccination or other errors like this)
  • converted per million metrics to per cent metrics

Details

  • correlations are calculated using Pearson's coefficient
  • there are about 100-120 analyzed countries in the final results

Results

It seems that after the threshold of 20% complete vaccination, a negative correlation between deaths and vaccionation rate occurs.

> python .\covid.py
Usage: python .\covid.py <min population in millions> <min vaccination percent>
> python .\covid.py 1 10
Countries in the dataset: 113
Correlations:
                   deaths  vaccines  deaths_lastweek
deaths           1.000000   0.09066         0.587014
vaccines         0.090660   1.00000        -0.034700
deaths_lastweek  0.587014  -0.03470         1.000000
> python .\covid.py 1 20
Countries in the dataset: 100
Correlations:
                   deaths  vaccines  deaths_lastweek
deaths           1.000000 -0.036172         0.564028
vaccines        -0.036172  1.000000        -0.134231
deaths_lastweek  0.564028 -0.134231         1.000000

covid19-death-vaccine-correlation's People

Watchers

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