• Stars
    star
    202
  • Rank 193,691 (Top 4 %)
  • Language
    Fortran
  • Created almost 12 years ago
  • Updated almost 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Computational economics in Python

Computational-Economics

Code for a computational economics course I am teaching at the University of Edinburgh. This year's curriculum consists of...

The Solow Model:

A discrete time version of Robert Solow's classic 1956 article entitled: A Contribution to the Theory of Economic Growth. In this lab students...

  • Explore some of the basic implications of the Cobb-Douglas production function using 3D graphics and contour plots.
  • Learn to write basic Python functions to code the key equations of the Solow model.
  • Solve for the steady state of the Solow model analytically and numerically.
  • Learn the basics of symbolic and numerical differentiation in order to assess the stability properties of the model's steady state.
  • Introduction to Object-Oriented Programming (OOP) and simulation using the Python class solowModel.
  • Analyze the response of the model to shocks to the key exogenous parameter model, the savings rate.

The Ramsey Model:

A discrete time version of Frank Ramsey's classic 1928 article entitled: A Mathematical Theory of Saving. In this lab students...

  • Explore some of the basic implications for inter-temporal optimization of the CRRA utility function using 3D graphics and contour plots.
  • Learn to write basic Python functions to code the key equations of the Ramsey model.
  • Solve for the steady state of the Ramsey model analytically and numerically.
  • More basics of symbolic and numerical differentiation in order to assess the stability properties of the model's steady state. Need to calculate the Jacobian and its eigenvalues/vectors!
  • More Object-Oriented Programming (OOP) and simulation using the Python class ramseyModel.
  • Solve for a linear approximation to the optimal policy function for consumption.
  • Solve for the full non-linear optimal policy function for consumption using the forward-shooting algorithm.
  • Compare the linear approximation with the full non-linear optimal policy to discover how good the linear approximation actually is!
  • Some basic welfare analysis of the Ramsey model.
  • Finally, we consider the response of a Ramsey economy to a shock to the growth rate of technology.

A Real Business Cycles (RBC) model:

Basic RBC model from Chapter 5 of David Romer's Advanced Macroeconomics. In this lab students...

  • Explore some of the optimal trade-off between consumption and labor/leisure using 3D graphics and contour plots.
  • Explore some of the basic implications for inter-temporal optimization with two choice variables (i.e., consumption and labor supply!).
  • Solve for the steady-state of the RBC model numerically.
  • Solve for a linear approximation to the recursive equilibrium law of motion for the model using techniques from Uhlig (1997) implemented in the Python class RBC.
  • Generate and analyze impulse response functions and simulate data from the model to show that model correctly captures relative volatilities of investment, output, and consumption.

More Repositories

1

pyBEA

Python package for downloading data from the Bureau of Economic Analysis (BEA) data API.
Python
66
star
2

econometrics-labs

Graduate level econometrics labs in Python/R
Python
43
star
3

dockercon-2021-demo

Example project template from my DockerCon 2021 talk
Shell
38
star
4

machine-learning-for-tabular-data

Repository of course materials for a multi-day course on machine learning for tabular data using Scikit-Learn and XGBoost
Jupyter Notebook
36
star
5

numerical-methods

Graduate level course on numerical methods for economists
Jupyter Notebook
36
star
6

introduction-to-deep-learning

Course materials for a multi-day course on deep learning.
Jupyter Notebook
34
star
7

zice-2014

Course materials for Zurich Initiative for Computational Economics (ZICE) 2014
Python
30
star
8

python-boot-camp

Short introduction to Python programming for Economics graduate students.
Python
25
star
9

sfi-complexity-mooc

A Python-based course on Complexity Economics developed for the Santa Fe Institute (SFI).
Jupyter Notebook
18
star
10

pyCollocation

Python package for solving initial value problems (IVP) and two-point boundary value problems (2PBVP).
Python
17
star
11

penn-world-tables

Python module for generating the Penn World Tables data set.
Python
5
star
12

junctionx-kaust-2019

Forecasting Solar Power for NEOM
Jupyter Notebook
5
star
13

beyond-microfoundations

Repository for code from my blog...
Python
5
star
14

evolution-of-social-behavior

Model of the co-evolution by natural selection of an individually costly cooperative behavior trait together with a preference for social partners who bear that trait.
Jupyter Notebook
5
star
15

stochastic-expatriate-descent

An expat scientist's musings about machine learning, deep learning, and living abroad.
Jupyter Notebook
5
star
16

introduction-to-graph-neural-networks

Course materials for a multi-day course on graph neural networks
Python
4
star
17

Pyreto

Python package for fitting Pareto distributions to data using the Clauset, Shalizi, Newman approach...
Python
3
star
18

introduction-to-computer-vision

Materials for a multi-day course on computer vision
Jupyter Notebook
3
star
19

assortative-matching-large-firms

Code for solving Eeckhout and Kircher model of assortative matching between heterogenous firms and workers.
Python
3
star
20

fpinscala4economists

Working notes on functional programming (in Scala) for economists...
Scala
3
star
21

jupytercon-2020-talk

Repository of materials for my JupyterCon 2020 talk
3
star
22

object-oriented-programming-java

Work completed for the Object Oriented Programming in Java specialization on Coursera
Java
3
star
23

prompt-engineering-for-developers

Materials for a short course on prompt engineering
2
star
24

algorithm-and-data-structures

Collection of Jupyter notebooks on algorithms and data structures
Jupyter Notebook
2
star
25

quadratic-voting-app

Collection of resources on quadratic voting applications
1
star
26

2019-11-11-aperc

Workshop website for APERC Software Carpentry Workshop
Python
1
star
27

us-banking-sector

Python
1
star
28

talks

Repository for all of my talks...
Jupyter Notebook
1
star
29

functional-programming-scala

Work completed for the Functional Programming in Scala specialization on Coursera
JavaScript
1
star