title: Diamond coconut model
text: # Diamond coconut model
  
  The Diamond coconut model is an economic model constructed by the American economist and 2010 Nobel laureate Peter Diamond which analyzes how a search economy in which traders cannot find partners instantaneously operates. The model was first presented in a 1982 paper published in the Journal of Political Economy. The main implication of the model is that people's expectations as to the level of aggregate activity play a crucial role in actually determining this level of aggregate economic activity. A frequent interpretation of its conclusion, as applied to the labor market, is that the so-called natural rate of unemployment may not be unique (in fact there may exist a continuum of "natural rates") and even if it is unique, it may not be efficient. Diamond's model was of interest to New Keynesian economists who saw it as potential source of coordination failure, which could cause markets to fail to clear.
  
  The model takes its name from the abstract set up imagined by Diamond. He envisioned an island (a closed economy) populated by individuals who only consume coconuts. Coconuts are obtained by being picked (they are "produced") from palm trees at a cost. Because of a particular taboo existing on this island a person who has picked a coconut cannot consume it themselves but must find another person with a coconut. At that point the two individuals can trade their respective coconuts and eat them. The key point is that when an individual finds a palm tree, because climbing the tree is costly, they will only be willing to climb it to get a coconut if there are a sufficiently high number of other individuals who are willing to do likewise. If nobody else is obtaining coconuts then there won't be any potential trading partners and obtaining coconuts is not worth climbing the tree. Hence, what individuals believe others will do plays a crucial role in determining the overall outcome. As a result, people's (fully rational) expectations become a self-fulfilling prophecy and the economy can wind up with multiple equilibria, most if not all of them characterized by inefficiency.
  
  ## Population flows in the model
  
  The agents in the model are always in one of two "states"; they are either currently carrying a coconut and looking for someone to trade it with, or they are searching for a palm tree in order to possibly pick a coconut. The number of agents who are carrying a coconut at time t is denoted by $e(t)$ (for "employed") and they find trading partners at the rate $b(e(t))$ at which point they trade coconuts, earn income $y$ and become "searchers".
  
  The fact that the probability of finding a trading partner is increasing in the number of people who already have coconuts - mathematically $b'(e)>0$ - represents a "thick market externality"; the "thicker" the market in the sense of more potential traders, the more trades occur. It involves an externality because each person who chooses to pick a coconut does so with only their own self-interest in mind, but the fact that they do so has an effect on the overall social outcome.
  
  People who are currently looking for coconut palm trees find these at a random rate $f$. This means that the finding of palm trees follows a Poisson process characterized by the parameter $f$. If total population is normalized to 1 (hence, $e(t)$ is the share of the population that is employed) then the number of searchers in this economy is $1-e(t)$.
  
  The figure above illustrates the population flows in this economy.
  
  ## The value of having a coconut or looking for one
  
  Each state can be thought of as a form of an asset, for example, the asset "having a coconut". The present discounted value of this asset depends on the benefit or cost incurred when a person finds a trading partner or a palm tree (this is like a one time dividend payment), and the capital gain (or loss) involved in switching states when a trade or coconut-picking occurs. Additionally, out of steady state, the value of the asset may fluctuate over time.
  
  Mathematically, the present discounted value of having a coconut is given by
  
      $rV_{e}=b(e)(y+V_{u}-V_{e})+{\frac {dV_{e}}{dt}}$
  
  where $V_{e}$ is the value of having a coconut, $V_{u}$ is the value of being in the state "looking for a palm tree", $y$ is the gain to be realized upon finding a trading partner and $r$ is the discount rate which measures individual's impatience. Likewise, the present discounted value of searching for palm trees is given by
  
      $rV_{u}=f(-E(c)+V_{e}-V_{u})+{\frac {dV_{u}}{dt}}$
  
  where $f$ is the rate at which searchers find palm trees, and $E(c)$ is the expected cost (hence it enters with a minus sign) of climbing a palm tree when one is found.
  
  In the general version of the model, the cost of climbing a palm tree is a random draw from some (publicly known) probability distribution with non-negative support, for example the uniform distribution on $(c_{low},c_{hi})$. This means that on the island "some trees are tall and some are short", and as a result picking coconuts from them can be hard or easy.
  
  ## Simple mathematical version of the model
  
  In the most simple version of Diamond's model, the probability of finding a trading partner—another person who's carrying a coconut—is exactly equal to the share of the population that is currently in possession of a coconut, $b(e)=e$. Additionally the cost of obtaining a coconut when one finds a palm tree is constant, at $c$ (this is the "all trees are of the same height" assumption).
  
  The evolution of the proportion of people who are currently carrying coconuts and looking for trading partners is given by:
  
      ${\frac {de}{dt}}=f(1-e)-b(e)e=f(1-e)-e^{2}$ if every searcher who finds a palm tree chooses to climb it and obtain a coconut, and
      ${\frac {de}{dt}}=-e^{2}$ if every searcher who finds a palm tree chooses not to obtain a coconut when coming upon the opportunity of doing so.
  
  In the first equation $f(1-e)$ is just the number of searchers who happen to find a palm tree at a particular time $t$ (the "inflow" of coconut carriers), while $e^{2}$ is the number of previous coconut-carriers who managed to successfully find a trading partner and hence reverted to being searchers (the "outflow"). In the second equation, since nobody ever bothers to climb a tree and obtain coconuts, the number of coconut-carriers simply declines over time. The two potential adjustment paths are illustrated in the figure below.
  
  ### The steady state
  
  In the steady state of this economy, the number of searchers and the number of coconut carriers has to be constant, ${\frac {de}{dt}}=0$. Hence there are two possible steady state in the simple version of the model. The "bad" outcome where nobody who finds a palm tree picks a coconut so that $e^{*}=0$ and an interior equilibrium where $e^{*}=(1/2)(-f+{\sqrt {f^{2}+4f}})$. The bad results occurs if everyone who finds a palm tree believes that not enough other people will pick coconuts and as a result it is not worth it to pick the coconut themselves. This then becomes a pessimistic self-fulfilling belief.
  
  Whether or not the good outcome is possible depends on parameter values, and as these determine the value of each asset in steady state. In this case the value of the assets will be constant so that ${\frac {dV_{e}}{dt}}={\frac {dV_{u}}{dt}}=0$ and we can solve for the difference between $V_{e}$ and $V_{u}$:
  
      $V_{e}-V_{u}={\frac {ey+fc}{r+e+f}}$
  
  For it to be worth it to climb a palm tree this difference has to be greater than the cost of climbing a tree. If $e^{*}=0$ we have $fc/(r+f)>c$ which means no one will want to pick coconuts. Hence $e=0$ is indeed an equilibrium. Otherwise we need $e>{\frac {rc}{y-c}}$. Note that this $e$ is independent of $f$ while the $e^{*}$ given above is a function of $f$ only. This means that the critical value of $e$ could be below or above the "good" steady state value. If costs of climbing the tree are high, or the agents are very impatient (high $r$) then $e=0$ will be the only equilibrium. If $c$ and $r$ are low then there will be two equilibria, and which one the economy winds up at will depend on initial conditions (the level of employment that the economy begins with).
  
  