☕️ Cake eating problem

EXTRA MATERIAL

Material in this section is optional and will not be part of the course assessment.

☕️ Cake eating problem#

| words

_images/cake.png

Question 1#

Consider the dynamic optimization problem of dividing a fixed amount of resource over time to maximize the discounted sum of utilities in each period, which can be represented by a simple process of eating a cake over time. (This type of problems is known as cake eating).

Assume that:

  • The initial size of the cake be \(m_0\)

  • The cake has to be eaten within \(T=3\) days

  • The choice is how much cake to eat each day, denoted \(0 \le c_t \le m_t\), where \(m_t\) is the size of the cake in the morning of day \(t\)

  • Naturally, what is not eaten in period \(t\) is left for the future, so \(m_{t+1}=m_t-c_t\)

  • Let the utility be additively separable, i.e. the total utility represented by a sum of per-day utilities denoted \(u(c_t)\)

  • Assume that each day the cake becomes less tasty, so that from the point of view of day \(t\) the utility of eating the cake the next day is discounted by (i.e. multiplied with) a coefficient \(0 < \beta < 1\)

Tasks:

  1. Write down the dynamic optimization problem in the form of Bellman equation

  2. Derive the value function and the policy function in each period starting from the last, i.e. performing by-hand backwards induction, when \(u(c_t)=\log(c_t)\)

Question 2#

Now consider the infinite horizon version of the cake eating problem. The only difference from your formulation in the previous question is that \(T=\infty\) and the termination condition in the Bellman equation disappears.

The Bellman equation is now a functional equation which solution is given by a fixed point of the contracting Bellman operator in the functional space. The only by-hand solution in this case is to guess the solution and verify it.

Find the solution (value and policy functions) of the problem by guessing a functional form, and then verifying that it satisfies the Bellman equation.

Hint

By guessing a functional form we mean that you should guess the form of the value function as function of the state variables and some intermediate parameters, which can be determined during the verification step.

Question 3#

The first order condition for the cake eating problem is given by a so-called Euler equation which links the optimal consumption level in any period to the optimal consumption level in the next period, and is given by

\[ \frac{d u}{d c}\big(c^\star(m)\big) = \beta \frac{d u}{d c}\big(c^\star(m')\big) \]

where \(m' = m-c^\star(m)\) the size of the cake in the next time period under the optimal consumption.

  1. Derive this equation

  2. Verify that solving it for the infinite horizon case with \(u(c)=\log(c)\) gives the same solution as in the previous question.

Hint

Euler equation is a combination of the first order conditions and the envelope theorem applied to the value function.