Tuesday , February 18 2020
Home / Brad Delong, Berkeley / Simulating the Solow Growth Model

Simulating the Solow Growth Model

Summary:
How does an economy well-approximated by the Solow growth model—one that has a constant labor-force growth rate n and labor-efficiency growth rate g; a constant savings-investment share of production s and capital deprecation rate δ; and a constant elasticity θ of production Y with respect to the economy's capital intensity κ, where capital intensity is defined as κ = K/Y, the quotient of the economy's capital stock K and its production level Y—behave? What does it do? How are you—if you are a student—to understand it? And to use it? Standard explanations often focus on graphs like: which are often unhelpful. With this class I would like—if I can get it working—to take another tack. If you have a Berkeley CalNet account, click on this link:

Topics:
Bradford DeLong considers the following as important: , , ,

This could be interesting, too:

Bradford DeLong writes Study Questions: Pre-Commercial Revolution Economies

Bradford DeLong writes After World War I, 1917-1930

Bradford DeLong writes Empire and War, 1870-1919

Bradford DeLong writes Malthusian Agricultural Economies

How does an economy well-approximated by the Solow growth model—one that has a constant labor-force growth rate n and labor-efficiency growth rate g; a constant savings-investment share of production s and capital deprecation rate δ; and a constant elasticity θ of production Y with respect to the economy's capital intensity κ, where capital intensity is defined as κ = K/Y, the quotient of the economy's capital stock K and its production level Y—behave? What does it do? How are you—if you are a student—to understand it? And to use it?

Standard explanations often focus on graphs like:

Solow_growth_model_graphs

which are often unhelpful.

With this class I would like—if I can get it working—to take another tack. If you have a Berkeley CalNet account, click on this link: https://datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fbraddelong%2Flecture-support-2020&urlpath=tree%2Flecture-support-2020%2F. If you have access to another Jupyter notebook server, go to https://github.com/braddelong/lecture-support-2020. In either case, then open the file: lecture-support-solow-2020-01-23.ipynb. You should then have, open, my Solow Growth Model Simulator. In the second code cell—the one whose first line is—"# SET PARAMETERS, INITIAL CONDITIONS, AND SCENARIO LENGTH IN THIS CELL"—either accept defaults or change the variable assignment statements (those with no "#" in the first column and an "=" sign in them to set values for thje model parameter:

  • n = 0.01 # the labor-force L proportional growth rate
  • g = 0.02 # the labor-efficiency E proportional growth rate
  • s = 0.12 # the share of production Y that is saved and invested
  • δ = 0.03 # the capital depreciation rate
  • θ = 1.09 # the elasticity of production Y with respect to capital intensity κ

Then choose starting values L_0, E_0, and κ_0 for the initial values as of time 0 for the labor force, labor efficiency, and capital intensity:

  • L_0 = 1
  • E_0 = 1
  • κ_0 = 8

Then choose the length of time for which the simulation will run:

Go up to the top of your environment, and in the "Kernel" drop down menu click on "Restart Kernel and Run All Cells"

Then scroll down the webpage. If all has gone well you should see, interspersed among the code, ten graphs showing how each of and some combinations of the model variables behave over time.

Note what looks interesting. Then go back to the top, and change something in the second code cell. Once again, go up to the top of your environment, and in the "Kernel" drop down menu click on "Restart Kernel and Run All Cells". What has changed? What strikes you as interesting? Take notes.

Repeat until you think you have an understanding of how an economy that happened to be well-modeled by the Solow growth model would behave.


https://nbviewer.jupyter.org/github/braddelong/lecture-support-2020/blob/master/lecture-support-solow-2020-01-23.ipynb


Lecture Notes: The Solow Growth Model https://www.bradford-delong.com/2020/01/lecture-notes-the-solow-growth-model-the-history-of-economic-growth-econ-135.html:

https://nbviewer.jupyter.org/github/braddelong/long-form-drafts/blob/master/solow-model.ipynb
https://nbviewer.jupyter.org/github/braddelong/long-form-drafts/blob/master/solow-model-2-basics.ipynb
https://nbviewer.jupyter.org/github/braddelong/long-form-drafts/blob/master/solow-model-3-growing.ipynb
https://nbviewer.jupyter.org/github/braddelong/long-form-drafts/blob/master/solow-model-4-using.ipynb
https://nbviewer.jupyter.org/github/braddelong/long-form-drafts/blob/master/solow-model-5-pre-industrial.ipynb

The Python code in the nbViewer displays of the notebooks that are my Solow growth model lecture notes is static: it has been executed. But the best way to understand what is going on in the Python code—in the Solow growth model—is for you to play with the code and so conduct what-if simulation experiments with the model yourself.

In the last cell of each notebook there is a datahub link, something like: http://datahub.berkeley.edu/user-redirect/interact?account=braddelong&repo=long-form-drafts&branch=master&path=solow-model-4-using.ipynb. If you have a Berkeley CalNet id, clicking on that link should send you to a Jupyter Notebook server authenticated by your CalNet account in which you can edit and play with the Python code—and thus with the model descriptions and simulations—to gain a deeper and better kind of knowledge. I strongly encourage you to do so.

If you do not have access to a Berkeley CalNet id but do have access to some other Jupyter environment, you can download the notebooks from GitHub via URLs like: https://github.com/braddelong/long-form-drafts/blob/master/solow-model-4-using.ipynb.


(Confused because I speak of θ, the elasticity of production Y with respect to capital intensity κ, rather than of α, the elasticity of production Y with respect to the capital stock K? If you work with α, you will find that you have lots of α/(1-α) and (1-α) terms in your equations. If you work with θ, you just have θ and 1+θ terms. Moreover, you focus on the variable that is capital intensity κ, which converges to the intuitive and easily-remembered value of κ* = s/(n+g+δ). By contrast, work with α and you find yourself trying to remember things about something you cannot directly measure: "capital per effective worker" k, with k* = (s/(n+g+δ))^(1/(1-α)), and with no easy dynamic closed-form equation for the evolution of k over time. I could go on, but won't...)


#berkeley #economicgrowth #highlighted #teaching #teachinggrowth #2020-01-24
Bradford DeLong
J. Bradford DeLong is Professor of Economics at the University of California at Berkeley and a research associate at the National Bureau of Economic Research. He was Deputy Assistant US Treasury Secretary during the Clinton Administration, where he was heavily involved in budget and trade negotiations. His role in designing the bailout of Mexico during the 1994 peso crisis placed him at the forefront of Latin America’s transformation into a region of open economies, and cemented his stature as a leading voice in economic-policy debates.

Leave a Reply

Your email address will not be published. Required fields are marked *