Continuous time version
Merton considers a continuous time market in equilibrium. The state variable (X) follows a Brownian motion:

The investor maximizes his Von Neumann–Morgenstern utility:

where T is the time horizon and B[W(T),T] the utility from wealth (W).
The investor has the following constraint on wealth (W). Let
be the weight invested in the asset i. Then:

where
is the return on asset i. The change in wealth is:

We can use dynamic programming to solve the problem. For instance, if we consider a series of discrete time problems:

Then, a Taylor expansion gives:

where
is a value between t and t+dt.
Assuming that returns follow a Brownian motion:

with:

Then canceling out terms of second and higher order:

Using Bellman equation, we can restate the problem:

subject to the wealth constraint previously stated.
Using Ito's lemma we can rewrite:

and the expected value:

After some algebra [2] , we have the following objective function:

where
is the risk-free return. First order conditions are:

In matrix form, we have:

where
is the vector of expected returns,
the covariance matrix of returns,
a unity vector
the covariance between returns and the state variable. The optimal weights are:

Notice that the intertemporal model provides the same weights of the CAPM. Expected returns can be expressed as follows:

where m is the market portfolio and h a portfolio to hedge the state variable.
This page is based on this
Wikipedia article Text is available under the
CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.