Path: blob/master/4.1 Option pricing with transaction costs.ipynb
1675 views
Davis-Panas-Zariphopoulou model
This notebook presents a model for pricing options in a market with proportional transaction costs. The model is taken from the celebrated work of Davis-Panas-Zariphopoulou 1993 link-to-the-paper.
This is a very powerful model!
However, due to its complexity (and time complexity), it is not very well known to the practitioners.
The purpose of this notebook is to explain in simple terms the main ideas of the model, and show how to implement it numerically. The results will surprise you!
Contents
Portfolio dynamics (original)
Let us consider a portfolio composed by:
A bank account paying an interest rate .
A stock .
A number of shares of the stock .
The 3-D state of the portfolio at time is and evolves following the SDE:
The parameters , are the proportional transaction costs when buying and selling respectively.
The processes are the trading strategies, i.e. the controls of the problem.
The process represents the cumulative number of shares bought up to time , and represents the number of shares sold up to time . They are right-continuous, finite variation, non-negative and increasing processes. If the time is a discontinuous point (there is a transaction), the variation of the processes are indicated as
Let us consider an example. If at time , the investor wants to buy shares. Then the portfolio changes as
where the adjusted price is the real cost of the stock (incorporating the transaction cost).
If there are no transactions, the portfolio has the simple well known evolution:
Some definitions
The cash value function , is defined as the value in cash when the shares in the portfolio are liquidated i.e. long positions are sold and short positions are covered.
For , the total wealth process in a portfolio with zero options is defined as:
If the portfolio contains an option with maturity and strike , then the wealth process becomes: Writer:
Buyer:
For , the wealths and are equal to , but when they differ because of the payoff of the option. The writer gives away a share and recives the strike and the buyer receive a share and pays the strike.
Note that considering a market with transaction costs, implies a different condition for the exercise of the option. Now the buyer should exercise if , because the true price of the share incorporates the value of the transaction costs. Let's see the plot:
Indifference pricing
The writer (buyer) option price is defined as the amount of cash to add (subtract) to the bank account, such that the maximal expected utility of wealth of the writer (buyer) is the same he could get with the zero-option portfolio.
The writer price is the value such that
The buyer price is the value such that
Using the properties of the exponential utility, it is possible to remove from the state variables.
where . (for the full calculations, check the paper. Equations 4.21 -4.25).
Minimization problem
The exponential term inside the expectation can be considered as a discount factor, and the second term is the terminal payoff:
No option:
Writer:
Buyer:
Discrete SDE
As usual, we introduced the time step , where we assumed and . The time , for .
The space discretization has 2 dimensions:
The space step is defined as .
The space step is . In this computations we choose .
The discretized version of the Stochastic Differential equation is:
Both and at each time can assume values in . They cannot be different from zero at the same time (It is quite strange to buy and sell at the same time, right?)
The variable has probability of being equal to and probability of being equal to .
The variation is plus the drift component. We obtain a recombining binomial tree.
Binomial tree with drift
Algorithm
Using the Dynamic Programming Principle (DPP) on the minimization problem we obtain a recursive algorithm on the nodes of the grid.
How to solve this problem?
Create a binomial tree with N time steps.
Create a "shares vector" y with dimension M.
Initialize a two dimensional grid of size , to be filled with the values of the terminal conditions for (see Minimization problem)
Create a backward loop over time and find
Computational complexity? Well... Quite high.
A binomial tree with N time steps has nodes. The loop over all the nodes is .
If we assume , the loop over all the values of y has another .
The minimum search for every point in y, produces another operations.
Therefore the total computational complexity is of .
For space reasons, I will not expose the code here in the notebook. The interested reader can peek the (clear and commented) code inside the class TC_pricer. code
We expect that if the transaction costs are zero, and the risk aversion coefficient (i.e. the investor becomes risk neutral), the price should converge to the Black-Scholes price
Wait a second!!! WE CAN DO BETTER!
Let us analyze the the writer and buyer prices, for different initial stock values.
Using the computational times we can estimate the exponent of the polinomial growth .
For higher values of N, the exponent converges to the expected value of .
Here we are quite close.
So far we have found that:
The option pricing is an increasing function of the risk aversion coefficient for the writer, and a decreasing function for the buyer.
The option pricing is an increasing function of the transaction costs for the writer, and a decreasing function for the buyer.
Is the drift important?
As we know from the "classical" no-arbitrage martingale pricing theory, the option price does not depend on the stock expected value.
However, this model is a utility based model i.e. a model that does not consider a risk neutral investor.
We can see that in this model the option price depends on the drift.
If we consider a high risk aversion coefficient, the option price is not very sensitive to the drift. If instead we choose a small value of , i.e. the investor is risk neutral, the drift plays the role of the risk neutral expected return and therefore changing , is like changing .
Following Hodges-Neuberger [2], in the practical computations it is better to set .
Other references
[1] Cantarutti, N., Guerra, J., Guerra, M., and Grossinho, M. (2019). Option pricing in exponential Lévy models with transaction costs. ArXiv.
[2] Hodges, S. D. and Neuberger, A. (1989). Optimal replication of contingent claims under transaction costs. The Review of Future Markets, 8(2):222–239.