Blog Topics...

3D plotting (1) Academic Life (2) ACE (18) Adaptive Behavior (2) Agglomeration (1) Aggregation Problems (1) Asset Pricing (1) Asymmetric Information (2) Behavioral Economics (1) Breakfast (4) Business Cycles (8) Business Theory (4) China (1) Cities (2) Clustering (1) Collective Intelligence (1) Community Structure (1) Complex Systems (42) Computational Complexity (1) Consumption (1) Contracting (1) Credit constraints (1) Credit Cycles (6) Daydreaming (2) Decision Making (1) Deflation (1) Diffusion (2) Disequilibrium Dynamics (6) DSGE (3) Dynamic Programming (6) Dynamical Systems (9) Econometrics (2) Economic Growth (5) Economic Policy (5) Economic Theory (1) Education (4) Emacs (1) Ergodic Theory (6) Euro Zone (1) Evolutionary Biology (1) EVT (1) Externalities (1) Finance (29) Fitness (6) Game Theory (3) General Equilibrium (8) Geopolitics (1) GitHub (1) Graph of the Day (11) Greatest Hits (1) Healthcare Economics (1) Heterogenous Agent Models (2) Heteroskedasticity (1) HFT (1) Housing Market (2) Income Inequality (2) Inflation (2) Institutions (2) Interesting reading material (2) IPython (1) IS-LM (1) Jerusalem (7) Keynes (1) Kronecker Graphs (3) Krussel-Smith (1) Labor Economics (1) Leverage (2) Liquidity (11) Logistics (6) Lucas Critique (2) Machine Learning (2) Macroeconomics (45) Macroprudential Regulation (1) Mathematics (23) matplotlib (10) Mayavi (1) Micro-foundations (10) Microeconomic of Banking (1) Modeling (8) Monetary Policy (4) Mountaineering (9) MSD (1) My Daily Show (3) NASA (1) Networks (46) Non-parametric Estimation (5) NumPy (2) Old Jaffa (9) Online Gaming (1) Optimal Growth (1) Oxford (4) Pakistan (1) Pandas (8) Penn World Tables (1) Physics (2) Pigouvian taxes (1) Politics (6) Power Laws (10) Prediction Markets (1) Prices (3) Prisoner's Dilemma (2) Producer Theory (2) Python (29) Quant (4) Quote of the Day (21) Ramsey model (1) Rational Expectations (1) RBC Models (2) Research Agenda (36) Santa Fe (6) SciPy (1) Shakshuka (1) Shiller (1) Social Dynamics (1) St. Andrews (1) Statistics (1) Stocks (2) Sugarscape (2) Summer Plans (2) Systemic Risk (13) Teaching (16) Theory of the Firm (4) Trade (4) Travel (3) Unemployment (9) Value iteration (2) Visualizations (1) wbdata (2) Web 2.0 (1) Yale (1)
Showing posts with label Economic Growth. Show all posts
Showing posts with label Economic Growth. Show all posts

Saturday, January 26, 2013

Technology and the Solow residual...

I recently wrote some Python code to compute paths of technology and the implied Solow residuals using data from the Penn World Tables.  Combining the results with some country metadata (i.e., income groupings) from the World Bank API yields this pretty interesting graphic...
If you don't already have the Penn World Tables data...no worries! The script will download the PWT data, compute the Solow residuals based on a method used by Hall and Jones (1999). Based on this decomposition, high income (i.e., red) countries had higher levels of technology in 1960 and higher subsequent growth rates of technology.  In fact, the low income (i.e., purple) countries have had effectively zero technological progress since 1960!

Enjoy!
  

Friday, January 28, 2011

More on the Solow Model...

In working through the material on the version of the Solow model from Chapter 6 of Economic Dynamics (if you want details of the model see previous posts) I began to wonder how an agent living in this world would go about choosing an optimal policy.  Here is the answer using U(c) = 1 - exp(-θc):

Iterations of the Value Function:

Note the jump up in the optimal savings policy.  

The Optimal Policy:
The plot of output above assumes that the shock takes its average value.  You can clearly see the two steady-state levels of output (they occur where the blue line cuts the 45 degree line from above). 

I am not quite sure what to make of this...I wasn't expecting the output and the optimal policy lines to cross...maybe a bug in my code.  Thoughts and interpretations are welcome!  The code has been posted to my Google Code repository.  Try it with a different (bounded and continuous) utility function and let me know your results...

Friday, January 21, 2011

The Look-Ahead Estimator...

Here is another estimate of the stationary distribution for the version of the Solow growth model detailed in previous posts.  Estimation of this stationary distribution was carried out using the Look Ahead estimator detailed in Economic Dynamics: Theory and Computation.  Although the Look Ahead estimator has superior sampling properties to NPKDE, I have also included the NPKDE version of the stationary distribution for comparison.  I have not yet figured out exactly why the y-axis scales differ (perhaps they are supposed to?).  Many thanks to John Stachurski for help working optimizing my implementation of the Look Ahead estimator!  Buy his book!  Code will be posted to my  GitHub Google Code repository tomorrow...

Tuesday, January 18, 2011

An ergodic model of economic growth?...

So, I am now thoroughly confused!  I now think that perhaps the version of the Solow model outlined in my previous post is actually an Ergodic model!  I think this despite the fact that the deterministic version of the same model is (I think) non-Ergodic because it has multiple steady-states and long-run outcomes are completely dependent on initial conditions of capital stock.

Below are estimates of the unique pdf and cdf of steady-state distribution of the Solow model from my previous post (with identical parameter values).  John Stachurksi, in his book Economic Dynamics proves that the model is globally stable and thus that the steady-state distribution is unique.  Global stability, I think, implies that a process is Ergodic.  The distribution was created by simulating the model for 100,000 periods and then estimating the pdf using non-parametric kernel density estimation. The cdf was estimated using an estimator based on the empirical cdf.

Threshold Solow PDF:
Note that the distribution is double-humped.  The reason that the left-hand hump (corresponding to the "poor" attractor) is small relative to the right-hand hump is that the threshold level of capital stock, kb, is such that once the economy moves into the "rich" attractor's basin it is unlikely to get shocked out.  If you where to raise the threshold kb, then the left-hand hump would get bigger.

Threshold Solow CDF:
 As promised, I will post a link to Github later today with the Python code...

Monday, January 17, 2011

A non-ergodic model of economic growth?...

As part of my ongoing quest to learn more about ergodic theory (and to apply a bit of the Python skills that I have been developing), I have been writing code to implement variations of the Solow model of economic growth using John Stachurski's Economic Dynamics: Theory and Computation as my guide.

Below are some plots of simulations from what I think is a non-Ergodic version of the Solow model.  The equation of motion of capital stock in the Solow model is:
Parameters are defined as follows: α is capital's share in production, s is the savings rate, δ is the rate of capital depreciation.  W are shocks which are assumed to be independently and identically log-normal.  The twist is that technology A follows a step function:
My choice of parameters was α=0.5, s=0.25, A1=15, A2=25, δ=1.0, kb=21.6,  the log-normal shocks have mean 0 and variance 0.2.  This parameter choice might seem very specific, but it simply matches with exercises from Stachurski's book.

Time Series Plots: Below is a plot of two time-series drawn from the above model.  The initial conditions are k0 = 1.0 (blue) and 80.0 (green).   Note the persistence...if you start with low levels of capital stock to begin with it can take a long while to get away from the low attractor.  If the system was deterministic, then if you started with low capital stock, you will always have low capital stock. Initial conditions would completely determine long-run outcomes, and we thus have an example of a poverty trap!
Marginal Distributions: Below is a plot of the empirical distribution function at t=100 time steps.  The left-hand plot is for k0 = 1.0 whilst the right-hand plot is for k0 = 80.0.  Note that the the distributions differ depending on the initial conditions.
I will update this post and make the Python code available via GitHub once I have finished working out the code to simulate and solve for the steady-state distribution of this model.  I know that it will be double-humped (b/c of the two attractors)...

But just to confirm, is this version of the Solow Model non-Ergodic?