Applied Exercises
This section provides some exercises that are meant to deepen your knowledge in the topics covered in this section and to gain experience solving real-world problems.
1. Getting familiar with data imports and descriptive analysis
In this exercise you will download some data of your choice from popular statistical databases and conduct descriptive analysis using MATLABs graphical engine. Try this exercise multiple times varying data source, the dataset and the data format until you get comfortable with handling and plotting data in MATLAB.
1) Download a dataset of your choice in either .csv or .xls/.xlsx format from one of the following statistical databases.
2) Inspect the file using a text editor and decide which is the best way to import it into MATLAB?
3) Use the commands you learned in this unit to import the data.
4) Use MATLABs graphical engine to generate interesting plots of varying plot type etc. Make sure your label your axis appropriately, add titles and legends etc.
2. Plotting the evolution of the economy in the canonical OLG model
In this exercise you will extend the exercise from the previous section to calculating the evolution of multiple variables characterizing the OLG economy and plotting the generated series.
Simulate the evolution of the economy for each variable, saving it in a different vector when the initial capital stock per worker is and initial population size is . Create a 2 by 2 plot that shows the evolution of capital per worker, output, wages and return to capital side by side. For each plot, label the variable and axis appropriately.
Use the following parameter values.
Parameter
Value
4
0.4
0.9
0.02
0.5
Tip: Use the subplot
command to create the 2x2 plot matrix.
Theory
In the canonical overlapping-generations (OLG) model, the evolution of the capital stock per worker is described by the following law of motion.
where is the capital per worker, is the population growth rate, is the discount factor, is the capital share in the production function and is the TFP parameter from the production function.
The population stock is described by the following law of motion.
Output of the economy (), wages of the workers () and return to capital are described by the following equations.
Last updated
Was this helpful?