## Solution of the Exam (2018)

This is the solution of the exam for the 2018 ensae course.

## Exam (2018)

This is the exam for the 2018 ensae course.

## Exam (2017)

This is the exam for the 2017 ensae course.

## The Martingale Method in Continuous Time

This post describes the martingale method in continuous time. It should be read after this one. It illustrates the method on a simple example within the Black and Scholes framework where an investor maximizes the utility of terminal wealth. In this context, the martingale method allows to spell out how optimal terminal wealth depends on the unique stochastic discount factor, or alternatively, how it is obtained as a transformation of the stock return. The transformation hinges on the shape of the utility function. The case of a CRRA utility function is fully spelled out. The results obtained through dynamic programming here are recovered although the martingale method does not easily uncover the trading policy that generates the optimal terminal wealth.

## Constrained Optimization

This post collects constrained optimzation results for reference.

## Solution of the Exam (2016)

This is the solution of the exam for the 2016 ensae course.

## Exam (2016)

This is the exam for the 2016 ensae course.

## Solutions to Exercises

This post collects the solutions to the exercises of the ENSAE course.

## Complete Markets, Discrete Time

In this post, I present the so-called martingale method in a complete market setup where the time scale is discrete and the probability space is discrete as well. In the absence of arbitrage, there is a strictly positive stochastic discount factor (SDF) and a risk neutral measure can be defined. The market is said to be complete if any consumption stream which is adapted to the underlying filtration can be traded using the available financial instruments. If this is the case, the SDF and the risk neutral measure are both unique. A portfolio optimization problem without labour income is defined. Despite the dynamic context, the maximization problem is essentially static. The gradient of the utility function has to be proportional to the SDF, and the optimal plan is found by varying the coefficient of proportionality to satisfy the intertemporal budget constraint. The optimal consumption plan is thus in principal easily derived. The corresponding portfolio policy has to be identified in a second step however.

## Using Jupyter notebooks

This post explains how to use the IPython/Jupyter notebooks which are provided in this blog through Github. The notebooks can easily be uploaded on a personal Sagemathcloud account. This avoids having to install a local implementation of Jupyter.