higginsbrian / Stanford-Econ-Python-Public

Home Page:https://higginsbrian.github.io/Stanford-Econ-Python-Public/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python for Stanford Economics PhD students

This is a repository for Stanford Economics students who want to use Python during the first year PhD sequence.

Why Python?

  1. Popular: python is one of the most used programming langugages in the world!
  2. Community: the python community provides lots resources to make python better: open source packages; and forums with plenty of questions and answers; and videos and tutorials to use packages.
  3. Free and open source: You can always look under the hood to see what packages doing. Anyone can run your code without paying for software like Matlab or Stata, and Jupyter notebooks make it easy to share your code and results together.
  4. General purpose: Modern economic research involves lots of tasks, many of which can be done in python: computing and estimating models (numpy, scipy, numba), data analysis (pandas), doing algebra (sympy), mapping (geopandas), machine learning (keras, tensorflow, pytorch), webscraping (beautiful soup), text analysis (nlkt), digitizing records (layout-parser), creating websites (Jupyter plus GitHubPages), parallel programming on the GPU (cupy, numba).

What we do

In this repo we provide resources to learn python and get ready for the first year sequence. This includes:

  1. Getting set up with Python [link]
  2. Starting to program with Python [Notebook] Open In Colab
  3. Precamp problem set a (fibonacci) [Notebook] [Data] Open In Colab [With solutions]
  4. Precamp problem set b (data) [Notebook] Open In Colab[With solutions]
  5. Precamp problem set c (pareto) [Notebook] Open In Colab[With solutions]

You can also find all the material from progrmaming camp, which includes introductions to Matlab and Stata [in the repo.]

More resources

Here are some resources we found useful

  1. Stanford crowdsourced programming resources
  2. QuantEcon. A website with many examples of models solved with Python (and Julia too!).
  3. Cheetsheet by Quantecon for Python; Python vs Matlab vs Julia; Stats: Python pandas vs Stata vs R.
  4. Introduction to Scientific Computing with Python (CME 193). A one-unit course at Stanford -- worth taking at some point to see the full capacity of Python.
  5. Toward Data Science. Short articles on all things Python. Want to know how to use some of the packages listed above? There is bound to be an intro here.
  6. Stata to Python Cheatsheet
  7. Intro to Github

About

https://higginsbrian.github.io/Stanford-Econ-Python-Public/


Languages

Language:Jupyter Notebook 89.7%Language:MATLAB 6.4%Language:Stata 3.6%Language:Shell 0.2%