Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Perfect Foresight CRRA Model - Approximation

PerfectForesightCRRA derives a number of results as approximations; for instance, the exact formula for the consumption function is derived as

ct=(R−(Rβ)1/ρR)ot

and approximated by

ct≈(r−ρ−1(r−θ))ot

.

Your task is to make a series of plots that show how the quality of the approximation deteriorates as you change various model parameters. The notebook aims to make this easier by showing that under the baseline parameter values, the percentage amount of the error is pretty much constant across different values of market resources, so you can assume that is generically true.

To get you started, we show how to conduct the exercise under particularly simple parameterization (the Deaton/Friedman model where R=1β, in which the only relevant parameter is the interest rate).

Your specific assignment is:

  1. Starting with the default parameterization of the model, show how the approximation quality changes with values of other parameters

  2. Explain, mathematically, why you get the patterns you do for how the solutions deteriorate as you change the parameter values

Hints:

  1. MathFactsList describes the conditions under which the approximations will be good; you want to find conditions under which the approximations get bad

  2. An interesting question is the extent to which the size of approximation errors is related to the degree of impatience according to alternative metrics

<Figure size 900x600 with 1 Axes>

The size of the error looks pretty stable, which we can show by calculating it in percentage terms

<Figure size 900x600 with 1 Axes>

Now we want to calculate how the approximation quality depends on the interest factor. We proceed as follows:

  1. Create arrays of R values, such that the return patience factor is increasing as you descend through the array

  2. Set up a for loop in which we will:

    1. Input the new value of R

    2. Solve the HARK model for the consumption function

    3. Calculate the approximate consumption function

    4. Save the average deviation between the two functions

  3. Then we can plot average deviation against the R factor

<Figure size 900x600 with 1 Axes>

So, when the return factor gets to roughly 1.4, the error in the approximation is almost 80 percent. It looks like the value for R where the approximation almost exactly matches the truth is about 1.035.