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 - Saving Rate

This notebook demonstrates how to obtain the saving rate of a forward-looking consumer using HARK.

1. Creating an agent

We now import the HARK class that represents a perfect-foresight consumer with CRRA utility, and create an instance of it with the parameters we’d like.

2. Solving the consumer’s problem and finding the saving rate.

The next step is to ask HARK to solve the agent’s optimal consumption problem. The result, or what we call “solution”, is a function cFunc that tells us what is the optimal amount to consume at each level of normalized market resources.

The next cell solves the agent and tests the function

When normalized market resources are m=4, the agent's normalized consumption should be c=1.611193200855211

We are now ready to think about the saving rate of the consumer.

Remember that the saving rate of an agent at time t is

Saving Ratet=Capital Incomet+Labor Incomet−ConsumptiontCapital Incomet+Labor Incomet

Dividing both the numerator and denominator by the agent’s permanent income 𝐏t and adopting the notation in the course’s lecture notes we have

Saving Ratet=at−1∗r/Γ+1−c(mt)at−1∗r/Γ+1=at−1∗r/Γ+1−c(at−1∗R/Γ+1)at−1∗r/Γ+1

We now have an expression for the saving rate as a function of the previous period’s end-of-period normalized assets at. The cell below calculates and plots this relationship for different levels of at.

<Figure size 640x480 with 1 Axes>