GithubHelp home page GithubHelp logo

jeffreybenjaminbrown / colombia Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 105.11 MB

Colombian economics data and analysis: health, education, income, demographics, land use, violence, governance ...

Jupyter Notebook 10.56% Python 4.43% R 76.35% Makefile 8.66%

colombia's People

Contributors

jeffreybenjaminbrown avatar larry-hignight avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fceballoss

colombia's Issues

GDP per capita not equal to GDP / population

Suppose we create a derived gdp-per-capital variable by dividing total gdp ('pib_total') by total population ('pobl_tot'):

> setwd('colombia')
> colombia <- read.csv('data/merged.csv')
> colombia$pib_pb_derived <- colombia$pib_total / colombia$pobl_tot
> summary( colombia[c('pib_pb_derived','pib_total', 'pobl_tot')])
 pib_pb_derived    pib_total            pobl_tot      
 Min.   :  0     Min.   :      912   Min.   :      0  
 1st Qu.:  4     1st Qu.:    32279   1st Qu.:   6665  
 Median :  6     Median :    70091   Median :  12464  
 Mean   :Inf     Mean   :   308860   Mean   :  37489  
 3rd Qu.:  8     3rd Qu.:   157566   3rd Qu.:  23897  
 Max.   :Inf     Max.   :105895416   Max.   :7776845  
 NA's   :14837   NA's   :14837       NA's   :1123     
>

The result has infinite values in it, suggesting there was nonzero gdp somewhere that had zero population.

Why is population bimodal?

There are a huge number of cities with population (pobl_tot) from 0 to 2 million. There are maybe 16 with populations between 6 and 8 million. There's nothing in between.

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.