Go to top, next, previous, or johnstachurski.net

Introduction

This is a graduate-level lecture series on computational economics

It covers topics from my text Economic Dynamics: Theory and Computation

Why CompEcon?

These days, all quantitative work in economics and finance involves calculations on a computer

Some simple calculations can be done with point and click (Eviews) or spreadsheets

Let's leave this for the undergraduates

Serious computation requires programming---this course will show you how

What Does this Course Teach?

Programming, starting from zero

Numerical methods

Algorithms for solving common economic models

Which Language to Choose?

Many good options for numerical work, but which one to choose?

High level versus low level languages

Time to complete programming project:

total time = writing and debugging time + run time

Ideal language would minimize both terms on RHS

But there is a trade-off here

Lower level languages are optimized for computers

Higher level languages are optimized for humans

To help understand differences, let's write a program which prints "Hello world"

In C (lower level lang) it might look like this

#include <stdio.h>
int main(void) 
{
     printf("Hello world\n");
     return 0;
}

In Python (higher level lang) it looks like this

print "Hello world"

Observe that the lower level language is more verbose

But they have advantages

Trends

How is the popularity of various languages changing over time?



Overall, the trend is towards higher level languages

Modern scientific programming paradigm:

Python

The primary language of the course will be Python

Python is a general purpose, high level language

Other advantages of Python

Text Editing

It's worth saying something at this stage about how to write program code

Computer code is written in a text file

If you want to be proficient with computers,

Some free text editors

Note: most Python distributions contain a simple text editor

Operating Systems

Windows or Mac are fine, but you might want to try UNIX/Linux

The most popular distribution is Ubuntu

You can run it from a memory stick and see if you like it

Finally

Some resources for the course:

Reference Texts

Useful Links

See this page