Git Product home page Git Product logo

elvaccpl2020's Introduction

ElVaccPL2020

Intro

Project aims to analyse relation between vaccination rates in Polish communities (pol. gminy) and Polish presidential election results from 2020.

Install requirements.txt. Run main.py to generate plots. Remove data/vaccination.json if you want to download the newest data (currently data are not updated, last update: 31.10.21).

Results were used and interpreted in my tweet (Polish).

Additional content

Aleatoric and epistemic uncertainty modeling using Tensorflow Probability. Figures are presented in figures/aleatoric and figures/all_uncertainty. Terminology and code inspired by Aleksander Molak's post .

If you want to regarate plots only used in tweet you can remove lines:

plot_aleatoric_uncertainty(x, x_label, filename, ha_chart_text=ha_chart_text, ha_chart_bar=ha_chart_bar)
plot_alea_epist_uncertainty(x, x_label, filename, ha_chart_bar=ha_chart_bar)

from main.py.

Data sources

Statistic Poland (GUS)

https://bdl.stat.gov.pl/bdl/dane/podgrup/temat

teryt_density.csv

  • LUDNOŚĆ (K3)
  • STAN LUDNOŚCI (G7)
  • Gęstość zaludnienia oraz wskaźniki (P2425)
  • 2020
  • ludność na 1 km2
  • Zaznacz wszystkie gminy

teryt_pit_per_person.csv

  • FINANSE PUBLICZNE (K27)
  • DOCHODY BUDŻETÓW GMIN I MIAST NA PRAWACH POWIATU (G423)
  • Dochody na 1 mieszkańca (P2627)
  • 2020
  • gminy łącznie z miastami na prawach powiatu
  • dochody własne - udziały w podatkach stanowiących dochody budżetu państwa podatek dochodowy od osób fizycznych

teryt_income_per_person.csv

  • FINANSE PUBLICZNE (K27)
  • DOCHODY BUDŻETÓW GMIN I MIAST NA PRAWACH POWIATU (G423)
  • Dochody na 1 mieszkańca (P2627)
  • 2020
  • gminy łącznie z miastami na prawach powiatu
  • dochody własne

National Electoral Commission (PKW)

https://prezydent20200628.pkw.gov.pl/prezydent20200628/pl/dane_w_arkuszach

wyniki_gl_na_kand_po_gminach_proc_utf8.csv

  • Wyniki głosowania na kandydatów w pierwszej turze wyborów
  • po gminach CSV

Government

https://www.gov.pl/web/szczepienia-gmin#/rankingpolska

vaccination.json

https://www.gov.pl/api/data/covid-vaccination-contest/results-details?segment=A%2CB%2CC

elvaccpl2020's People

Contributors

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