Skip to content

Supplements the paper “Self-Aware Transport of Economic Agents” [SATEA] by Andrew Lyasoff

License

Notifications You must be signed in to change notification settings

AndrewLyasoff/heterogeneous-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self-Aware Transport of Economic Agents

This repository contains a collection of programs written in Julia for computing macroeconomic equlibrium in models of Krusell-Smith or Aiyagari-Bewley-Huggett type. The meaning and the purpose of these programs is exaplained in the paper Self-Aware Transport of Economic Agents  [SATEA]  by Andrew Lyasoff (last revised on July 22, 2024), which this repository supplements.

The code in  ⋆-RMT-⋆.jl  implements accurately the method described in Ch 18 of the book “Recursive Macroeconomic Theory”  [RMT]  by L. Ljungvist and T. Sargent for calculating the equilibrium in Huggett's benchmark pure-exchange economy with no shared risk. The model parameters are borrowed from  [RMT] . The purpose of this code is to demonstrate that, contrary to the common belief (see  [RMT] ) a central problem in macroeconomics has been without an adequate solution since it was first formulated more than 30 years ago, save for some special case. More details about this finding are provided in  [SATEA, Sec. 1] .

The programs  ⋆-SATEA-sec3⋆.jl  implement the alternative algorithm described in  [SATEA, Sec. 3]  and produce a numerically verifiable equilibrium for the pure-echnage economy with no aggregate risk described in  [RMT]  and covered by  ⋆-RMT-⋆.jl . The need for developing this alternative algorithm is explained in the paper  [SATEA, Sec. 1] 

The programs  ⋆-SATEA-sec4⋆.jl  implement the algorithm described in Sec. 4 of  [SATEA]  and produce an approxiamte equilibrium for the benchmark economy with aggregate risk and production described in the paper  “Income and wealth heterogeneity in the macroeconomy”   by P. Krusell and A. Smith, Journal of Political Economy 106 (1998) pp. 867-896. The reason for for developing this alternative algorithm is explained in the paper  [SATEA, Sec. 1, Sec. 4] .

The Julia code in  functions-⋆.jl  contains the actual procedures. The Julia code in  ini-setup-⋆.jl  defines the parameters. The output associated with a specific model is generated by executing the respctive file  run-⋆.jl , which reads the necessary  ini-setup-⋆.jl  and  functions-⋆.jl  files and stores the output in a unique binary (not human redable) file  output-⋆.jls  (available this repository). The files  post-run-⋆.jls  read the data stored in the respective ⋆.jls and allow one to play with the output and generate the illustrations in  [SATEA]  without the need to execute  run-⋆.jl . The illustrations described in  [SATEA]  (including all plots) and some additional ones can be generated by the code stored in  post-run-⋆.jl , which is meant to be executed block-by-block in a notebook style (see the example with the jupyter notebook post-run-RMT-ch18.ipynb, which replicates the most essential part of post-run-RMT-ch18.jl). All plots in the paper  [SATEA]  are generated by Gnuplot.jl with the code in post-run-⋆.jl.

All reported output is produced with generic Linux-on-x86 binaries (glibc) Version 1.10.4 (2024-06-04) retreived from https://julialang.org/downloads/