Midterm Practice

Click on the subtitle to reveal answers.

The Public Good Game

The setting for every problem

All problems below use the public good game of the lecture notes, with one change: the utility function. Two individuals $i=1,2$ have incomes $w_1,w_2\gt 0$. Individual $i$ contributes $g_i$ to a public good and consumes the rest privately: $$x_i=w_i-g_i,\qquad G=g_1+g_2.$$ Each individual's utility is $$u_i(x_i,G)=\sqrt{x_i}+\sqrt{G}.$$

This is not the utility of the lecture-notes example, where $u_i(x_i,G)=x_i\cdot G$. We write $G_{-i}$ for the total contribution of everyone other than $i$; with two individuals, $G_{-1}=g_2$ and $G_{-2}=g_1$.

Basic Mathematica Commands

Problem 1

Substituting the budget, individual 1's utility as a function of the two contributions is $$u_1(g_1,g_2)=\sqrt{w_1-g_1}+\sqrt{g_1+g_2}.$$ Answer in Mathematica syntax, using the commands on the cheat sheet.

  1. Define the function u1[g1_, g2_], keeping w1 as a symbol.
  2. Use Grad to write individual 1's first-order condition with respect to g1, and store it in foc.
  3. Solve foc for g1.
  4. Use a replacement rule to evaluate your solution at $w_1=13$ and $g_2=5$.

Unconstrained Optimization

Problem 2

Take the total contribution of the others, $G_{-i}$, as given, and ignore the constraint $0\le g_i\le w_i$. Use Recipe #0.

  1. Write individual $i$'s utility as a function of $g_i$ alone.
  2. Write the first-order condition.
  3. Find individual $i$'s best response $\mathrm{BR}_i(G_{-i})$.
  4. Compare $\mathrm{BR}_i$ with the best response in the lecture-notes example, where $u_i=x_i\cdot G$. What do the two utilities have in common at the optimum?

Optimization with Equality Constraints

Problem 3

Now the individuals contribute sequentially: individual 1 chooses $g_1$ first; individual 2 observes $g_1$ and then chooses $g_2$. The public good is not a flow—individual 1's contribution is still there when individual 2 contributes—so $G=g_1+g_2$. As in Problem 2, write payoffs as functions of the contributions only, $$u_i(g_1,g_2)=\sqrt{w_i-g_i}+\sqrt{g_1+g_2},$$ and ignore $0\le g_i\le w_i$.

  1. Individual 2 moves last, so it best-responds to $g_1$. Use Problem 2 to write $g_2=\mathrm{BR}_2(g_1)$.
  2. Individual 1 anticipates this. Write individual 1's problem, $$\max_{g_1,g_2}\;u_1(g_1,g_2)\quad\st\quad g_2=\mathrm{BR}_2(g_1),$$ and its Lagrangian.
  3. Use Recipe #1 to find $g_1$, $g_2$, and the Lagrange multiplier $\lambda$. These are the actions played in the subgame perfect Nash equilibrium.
  4. Let $w_1=13$ and $w_2=5$. Compute $g_1$, $g_2$, $G$, and $\lambda$.

Nash Equilibrium of Static Games

Problem 4

Back to simultaneous contributions: both individuals choose at the same time. Use the best responses from Problem 2, and ignore $0\le g_i\le w_i$.

  1. Write the system of best responses and solve it for the Nash equilibrium contributions $(g_1^e,g_2^e)$ and the public good $G^e$.
  2. Let $w_1=w_2=w$. Find $g_1^e$, $g_2^e$, and $G^e$.
  3. Let $w_1=13$ and $w_2=5$. Compute $g_2^e$. Why is this not an acceptable answer? (Problem 7 fixes it.)

Subgame Perfect Nash Equilibrium

Problem 5

Return to the sequential game of Problem 3.

  1. Write the subgame perfect Nash equilibrium as a strategy profile. Why is individual 2's strategy a function rather than a number?
  2. Let $u_1$ be any differentiable payoff, and assume only that individual 2's best response $\mathrm{BR}_2(g_1)$ is decreasing in $g_1$. Use the chain rule to compare $$\frac{\partial}{\partial g_1}\,u_1(g_1,g_2)$$ with $$\frac{d}{d g_1}\,u_1\big(g_1,\mathrm{BR}_2(g_1)\big).$$ When is the second smaller than the first? What does that mean for how much a first mover contributes?
  3. With $w_1=13$ and $w_2=5$, individual 1 is richer but contributes less than individual 2. Explain why.

Discount Factors

Problem 6

Now the agent receives the same income $w$ in every period and must choose a donation $g_t$ in every period. Assume there is only one agent and two periods, $t=0,1$. The agent cares about the stock of the public good: $G_0=g_0$ in period $0$ and $G_1=g_0+g_1$ in period $1$. The agent's utility in period $t$ is $$u_t=\sqrt{G_t}+\sqrt{x_t},\qquad x_t=w-g_t.$$ This is a different utility from the lecture-notes example, where $u_i=x_i\cdot G$. The agent discounts period-1 utility by the discount factor $\delta\in(0,1)$.

  1. Write the agent's discounted utility as a function of $(g_0,g_1)$. Notice that $0$ and $1$ are time indexes, not individuals.
  2. Use the first-order condition for $g_1$ to write $g_1$ as a function of $g_0$. Does $\delta$ appear?
  3. Substitute your answer and write the first-order condition for $g_0$. Use it to show that $g_0\gt\tfrac{w}{2}$.
  4. How does $\delta$ affect $g_0$? What happens to $g_0$ and $g_1$ as $\delta\to 0$? Explain.

Optimization with Inequality Constraints

Problem 7

Return to the simultaneous game of Problem 4, now with the constraints $0\le g_i\le w_i$. Use Recipe #2.

  1. Write each constraint in the form $h_j(g_i)\le c_j$, and write individual $i$'s Lagrangian with multipliers $\lambda_1$ (for $g_i\ge 0$) and $\lambda_2$ (for $g_i\le w_i$).
  2. Find $\mathrm{BR}_i(G_{-i})$. Hint: write $\mathrm{BR}_i$ as a piecewise function.
  3. Explain why the constraint $g_i\le w_i$ never binds.
  4. Let $w_1=13$ and $w_2=5$. Find the Nash equilibrium and the value of the multiplier on individual 2's constraint $g_2\ge 0$.
← Midterm 1 The Value Function and the Envelope Trick →