Coder Social home page Coder Social logo

ali-wetrill / distributionalnationalaccounts-pakistan Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 472.27 MB

Economics honors thesis linking tax, survey and national accounts data to estimate income inequality in Pakistan. To my knowledge, this is the first paper that recreates income distribution in Pakistan since Haq (1964). Advised by Gabriel Zucman.

Home Page: https://wid.world

Jupyter Notebook 99.55% Shell 0.01% Python 0.44%
inequality income-inequality distributional-national-accounts world-inequality-database

distributionalnationalaccounts-pakistan's Introduction

Measuring Income Inequality in Pakistan: Constructing Distributional National Accounts

It is a well-known problem in economics that survey data is wildly inaccurate for estimating top incomes. As a result, it is exceedingly difficult to derive a country's income distribution from surveys alone. To do so, we must draw on other data sources like taxes, wealth lists and national accounts data.

We combine newly released tax records with survey data to produce estimates for the income distribution of Pakistan. The goal is to divide the aggregate 'national income' statistic derived from national accounts data into strata that represent the full distribution of earners in Pakistan (hence the term distributional national accounts). The following is the main table of our results:

MainTable

We provide a walkthrough of how we achieved these results in the below files. The original notebooks are above, feel free to send a pull request if you have alternative scenarios or assumptions in mind. You can reach me at [email protected] if you need help running the software or have any questions or critques.

1) Survey Calculations

https://nbviewer.jupyter.org/github/ali-wetrill/DistributionalNationalAccounts-Pakistan/blob/master/data_files/SurveyCalculations.ipynb

2) Tax Calculations

https://nbviewer.jupyter.org/github/ali-wetrill/DistributionalNationalAccounts-Pakistan/blob/master/data_files/TaxCalculations.ipynb

3) Combining Tax and Survey Data

https://nbviewer.jupyter.org/github/ali-wetrill/DistributionalNationalAccounts-Pakistan/blob/master/data_files/CombiningData.ipynb

4) Visualization and Conclusions

BETTER ORGANIZATION COMING SOON

https://nbviewer.jupyter.org/github/ali-wetrill/DistributionalNationalAccounts-Pakistan/blob/master/data_files/VisualizationsAndConclusions.ipynb

Appendix: All Graphs and Tables

Coming Soon!

Full Thesis

https://raw.githubusercontent.com/ali-wetrill/DistributionalNationalAccounts-Pakistan/master/thesis.pdf

============================================================

Final organization and final paper are coming soon - check back May 18th!

Thesis Advisor: Gabriel Zucman

Special Thanks To: Emmanuel Saez and the Pakistan Bureau of Statistics.

If you're non-technical and want to adjust the codes, fear not!

  1. Download Jupyter Notebook software here (https://jupyter.org/install)
  2. Read the attached guide that tells you how to run the notebook.
  3. Open the IPython notebook files (.ipynb) and adjust the code yourself.
  4. If it still doesn't work, reach out at [email protected]

distributionalnationalaccounts-pakistan's People

Contributors

ali-wetrill avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

manuelmarsicano

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.