Vous êtes sur la page 1sur 12

Pricing Options Using Trinomial Trees

Paul Clifford

Oleg Zaboronski



One of the first computational models used in the financial mathematics community was the binomial tree model. This
model was popular for some time but in the last 15 years has become significantly outdated and is of little practical
use. However it is still one of the first models students traditionally were taught. A more advanced model, and will be
the model used for the project this semester, is the trinomial tree model. This improves upon the binomial model by
allowing a stock price to move up, down or stay the same with certain probabilities, as shown in the diagram below.

Project description.

The aim of the project is to apply the trinomial tree to the following problems:
Pricing various European and American options
Pricing barrier options
Calculating the greeks
More precisely, the students are asked to do the following:
1. Study the trinomial tree and its parameters, pu , pd , pm , u, d
2. Study the method to build the trinomial tree of share prices
3. Study the backward induction algorithms for option pricing on trees
4. Price various options such as European, American and barrier

5. Calculate the greeks using the tree

Each of these topics will be explained very clearly in the following sections. Students are encouraged to ask
questions during the lab sessions about certain terminology that they do not understand such as barrier options,
hedging greeks and things of this nature.

Trinomial Trees

Trinomial trees provide an effective method of numerical calculation of option prices within Black-Scholes share pricing model. Trinomial trees can be built in a similar way to the binomial tree. To create the jump sizes u and d and the
transition probabilities pu and pd in a binomial model we aim to match these parameters to the first two moments of
the distribution of our geometric Brownian motion. The same can be done for our trinomial tree for u, d, pu , pm , pd .

We will use a trinomial tree model defined by

S(t)u with probability pu

with probability 1 pu pd
S(t + t) =

S(t)d with probability pd

and we can match the first two moments of of our models distribution according to the no arbitrage condition,

E[S(ti+1 )|S(ti )]
Var[S(ti+1 )|S(ti )]

ert S(ti )
tS(ti )2 2 + O(t)



where we have assumed that the volatility of the underlying asset is constant and the asset price follows geometric
Brownian motion; r is the rate of risk-free investment. Condition (1) is a standard equilibrium or no arbitrage
condition: it states that the average return from the asset should be equal to the risk free-return. It can be re-written in
the following explicit form:
1 pu pd + pu u + pd d = ert .
Conditions (1, 2) impose two constraints on 4 parameters of the tree. An extra constraint comes from the requirement
that the size of the upward jump is the reciprocal of the size of the downward jump,
ud = 1


While this condition is not always used for a trinomial tree construction, it greatly simplifies the complexity of the
numerical scheme: it leads to a recombining tree, which has the number of nodes growing polynomially with the
number of levels rather than exponentially.
Given the knowledge of jump sizes u, d and the transition probabilities pu , pd it is now possible to find the value of
the underlying asset, S, for any sequence of price movements. A directed graph with nodes labeled by asset prices
and edges connecting nodes separated by one time step and a single price jump is the desired trinomial pricing tree,
see Fig. 3. Let us define the number of up, down and middle jumps as Nu , Nd , Nm , respectively, and so the value of
the underlying share price at node j for time i is given by
Si,j = uNu dNd S(t0 ),

where Nu + Nd + Nm = n


Trinomial Tree Parameter Set

We have imposed three constraints (1, 2, 3) on four parameters u, d, pu and pm . As a result there exists a family of
trinomial tree models. In the project we consider the following popular representative of the family: its jump sizes are
u =


d = e



Its transition probabilities are given by







e 2 e 2
e 2 e 2
= 1 pu pd



Before we can use this model, we need to ensure that it is well-posed and satisfies all the necessary constraints
imposed by recombination requirement and the underlying continuum limit.
Exercise 1: Derivation of Moments
prove that
1. Assmuing that t
2 > 2 ,
2. Verify that

pu + pd < 1.

E(Sn+1 |Sn ) = ert Sn .

3. Verify that Var(Sn+1 |Sn ) = 2 tSn2 + O(t3/2 ).


Pricing Options Using Trinomial Trees

From the previous sections, it should be clear what we need in order to implement an option pricing algorithm using a
trinomial tree. For pricing options on a trinomial tree we need to generate 3 separate quantities
The transition probabilities of various share price movements. These are pu , pd , and pm .
The size of the moves up, down and middle. These are u, d and m = 1
The payoff or terminal condition of our option at maturity i.e the end (or leaf) nodes!
So we have now explained that all we need to price an option using a trinomial tree are the following parameters
pu , pd , pm
u, d, m
Option type, i.e call, put
Once we have derived these parameters or have been given these parameters, then we can implement the option
pricing algorithm explained in the next section.


European Option Pricing Using Trees

European call (put) option is a contract which gives its owner the right to buy (sell) an agreed asset (underlying asset)
at the agreed price K (strike price) at the specified time T (maturity time).
The methodology when pricing options using a trinomial tree is exactly the same as when using a binomial tree.
Once the share price tree is built, and the option payoffs at maturity time T are calculated:
C(S, T ) = max(S K, 0) (Call option) ,
C(S, T ) = max(K S, 0) (Put option) .


After that it remains to apply the following backward induction algorithm, where n represents the time position
and j the space position:

Cn,j = ert pu Cn+1,j+1 + pm Cn+1,j + pd Cn+1,j1


The backward induction algorithm can be derived from the risk-neutrality principle and is the same for put and call
options. When applied in the context of a trinomial tree (using the exact same methodology as the binomial tree), we
can calculate the option value at interior nodes of the tree by considering it as a weighting of the option value at the
future nodes, discounted by one time step. Thus we can calculate the option price at time n, Cn , as the option price of
an up move pu Cn+1 plus the option price of the middle move by pm Cn+1 plus the option price of a down move by
pd Cn+1 , discounted by one time step, ert . So at any node on the tree our backward induction formula, (10), is
applied to give us the option prices at any node in the tree. The name of the algorithm should now be clear since we
only need to value the option at maturity, i.e the leaf nodes, and then work our way backwards through the tree
calculating option values at all the nodes until we reach the root S0 , C0 . The pseudo-code for an algorithm for pricing
European options with N time steps would be
Price neutrality principle leads to a relation between prices of put and call options known as put-call parity:
Ccall (0) Cput (0) = S(0) erT K.
Relation (11) is very useful for verifying correctness of your algorithms.


Algorithm 1 European Option Pricing Algorithm For Trees

1: Declare and initialize S(0)
2: Calculate the jump sizes u, d and m
3: Calculate the transition probabilities pu , pd and pm
4: Build the share price tree
5: Calculate the payoff of the option at maturity, i.e node N
6: for (int i = N ; i > 0; i) do
Calculate option
price at node i based on

Cn,j = ert pu Cn+1,j+1 + pm Cn+1,j + pd Cn+1,j1
9: end for
10: Output option price

Exercises 2: European Option Pricing

1. Derive recursion (10) from the principle of price neutrality.
2. Derive relation (11) for European call and put options.
3. Price the European put and call options using the set of parameters given below. Produce tabulated output of
your answers.
4. Check numerically that your answers satisfy put-call parity relation (11).
Use the following set of initial prices expressed in dollars,
S(0) = [$40, $50, $60, $70, $80, $90, $100, $110, $120, $130, $140, $150]
and the other fixed financial parameters are given by

# of time levels n

= $90
= 20 P ercent per year1/2
= 5 P ercent per year
= 100

N. B. Make sure that all exponents used in your calculations are dimensionless.

Convergence of the trinomial tree to Black-Scholes option price formula.

Having priced the options numerically using the trinomial tree, one can compare the answers for European option
prices against the predictions of Black-Scholes formula. By closed-form, we mean that we can calculate the price
explicitly and without implementing a trinomial tree. There are various Black-Scholes calculators on the internet, but
an even easier way is to make use of the Matlab command blsprice. An example of using it is given in the help
section of matlab.
>> [Call, Put] = blsprice(100, 95, 0.1, 0.25, 0.5)
Call =


Put =
As n , the random walk on the trinomial tree converges to geometric Brownian motion, see the lectures where a
similar correspondence was established between Black-Scholes and Cox-Ross-Rubinstein theory. Therefore, we
expect our answers for option prices to converge to the corresponding answers given by Black-Scholes pricing
formula. In the parameter set we gave you earlier, we mentioned explicitly to use n = 100. The purpose of the
present exercise is to investigate this convergence.
Exercise 3: Comparing Trinomial Tree to Black-Scholes theory.
1. For the array of initial share prices S, produce a table showing the difference between your trinomial tree
answers and the exact Black-Scholes answers. You can use the matlab blsprice command for this.
2. Vary the number of time steps, n, in your trinomial tree and plot the convergence of your trinomial tree solution
to that of the exact Black-Scholes solution.
3. What is the minimal value of n the relative error of the trinomial tree computation becomes less than 0.1% for
the initial share price S(0) = $90 and all option types?

American Option Pricing Using Trees

American call (put) option is a contract which gives its owner the right to buy (sell) an agreed asset (underlying asset)
at the agreed price K (strike price) at or bef ore the specified time T (maturity time). Therefore, an American option
can be exercised at any time , up until maturity T , where 0 < T where 0 stands for present time. The backward
recursion (10) has to be modified accordingly. Fortunately, the modification can be still derived using the principle of
price neutrality. The pay-off for American put and call options can be now defined at every node of the tree, not just
the leafs:
Call option payoff = max(Si,j K, 0)

Put option payoff = max(K Si,j , 0).


The modified backward recursion takes the following form:

Cn,j = max option payoff, ert pu Cn+1,j+1 + pm Cn+1,j + pd Cn+1,j1


In words, at each node of our tree we need to implement a comparison function between the payoff value of the
option (the so-called intrinsic value) the the value resulting from the backward induction step. The corresponding
pseudo-code is presented below:
Exercises 4: American Option Pricing
Students need to answer the following questions
1. Derive (13).
2. Compute both American call and put options for the exact same parameter set as was given in the European
option pricing section using trinomial trees.

Algorithm 2 Option Pricing Algorithm For Trees

1: Declare and initialize S(0)
2: Calculate the jump sizes u, d and m
3: Calculate the transition probabilities pu , pm and pd
4: Build the share price tree
5: Calculate the payoff of the option at maturity, i.e node N
6: for (int i = N ; i > 0; i) do
Calculate option
price at node i, but
use the formula, max(option payoff, treeprice)
Cn,j = max option payoff, ert pu Cn+1,j+1 + pm Cn+1,j + pd Cn+1,j1
9: end for
10: Output option price

3. Produce tabulated output of your answers.

4. What can you say about American option prices versus European option prices ?
5. Does put-call parity (11) hold for American options?

Pricing Double Barrier Knock-Out European Options

The trinomial tree method can be used to price options in the situations when closed form expressions for the price do
not exist.
Barrier options are a type of exotic options, which allow an investor to bet on more complicated properties of the
price movements of the underlying asset than just its final price.
For example, an investor believes that an XXX LTD share which currently stands at $80 will grow in a year to
$100. Basing on this belief the investor can buy a one year long European call option for this underlying asset with
a strike price K below $100. Assume that in addition, the investor has reasons to believe that during this year the
share price will never exceed $150 and will not fall below $50. In this case, the investor can buy a cheaper double
barrier knock-out European call option which has the same strike price, but becomes null and void if the price of the
underlying asset exceeds $100 or falls below $50 at any time before or at maturity.
There are many other types of barrier options, see http : //en.wikipedia.org/wiki/Barrier option for more
details, but general principle is the same for all exotic options: an informed investor can save money by betting on
some specific details of the stock price movement.
To price barrier options, we need to modify our algorithm by incorporating the barrier condition into the terminal
option payoff at the maturity nodes and into the backward recursion step.
Exercise 5: Pricing Barrier Options
1. Derive modified terminal-pay off formula and the backward recursion for the European double knock out barrier
2. Price double barrier knock-out European call and put options based on upper and lower barriers of 130 and 60
respectively for the set of initial share prices S(0) used to price vanilla European options. Use the following
parameters K = 90, T = 0.5, r = 0.05, = 0.20. Plot option prices as functions of the initial asset price.
3. Analyse the convergence of this method and compare it to the standard European option with no barriers.
4. Give a table of values for varying the number of time levels n to show the rates of convergence for both methods


Calculating the Greeks

The so called greeks are various hedging parameters that can be computed from the underlying option price. These
are a necessary tool for any trader or structurer. The greeks are used to eliminate risk and they give instructions as
to how the trader or structurer can disperse the risk they have taken on by selling an option. If we think of a call
option(the analogous case applies for a put), as a function of various parameters C(S, K, , r, T ). So our call option
price is a function that takes in 5 parameters and returns one parameter, our option price. So we can calculate partial
derivatives of this option price with respect to various parameters. Each greek is given a different name depending on
what derivative is taken. There are numerous greeks but we will concern ourselves with the two major ones - delta and
delta =


gamma =

S 2

So our delta represents the rate of change of our option price with respect to our underlying asset S. The gamma
represents the rate of change of our delta with respect to the underlying. So we can see how these can be used to
hedge some risk. If we know that our option price changes by a certain amount when our underlying share prices
changes changes by a certain amount then we can use this extra information to hedge away some risk. For now,
students should be concerned with the following question
How to evaluate and calculate greeks using a trinomial tree ?
If we simplify the reasoning of what a greek is, it should become clear what we need to do. A delta is the rate of
change(derivative) of a variable, C, with respect to the underlying asset S. So we just need to discretize the partial
derivative and we have our first greek, delta. To calculate various greeks, we can implement both a first order method
and a second order method for calculating delta, C
S , and gamma S 2 . We just implement a numerical difference
type discretization of these partial derivatives that are O(S) and O(S 2 ).

S 2


C(S(0) + S) C(S(0))
C(S(0) + S) C(S(0) S)
C(S(0) + S) 2C(S(0)) + C(S(0) S)
S 2

where S(0) is the initial share price we want to calculate the option price for. S is a small increment we create to
evaluate the derivative C
S numerically. Students can take this to be some tiny percentage of S(0). We can now just
create 2 separate trinomial trees, one with an initial share price of S(0) and the other with an initial share price of
S(0) + S and apply the formula for delta! This is the first order scheme and is accurate to O(S), however if we
implement a second order accurate discretization of C
S , we need to calculate option prices for 2 different initial share
prices, S(0) + S and S(0) S. So we have a trade-off here, for a more accurate numerical discretization of the
delta, we need to implement 3 separate trinomial trees - 2 for the second order discretization of the delta and one normal trinomial tree with initial share price S(0) for the usual calculation of our option price.

The calculation of gamma applies the exact same logic we have just shown for delta, using separate trinomial trees
and applying the formula SC2 = C(S(0)+S)2C(S(0))+C(S(0)S)
S 2

Exercise 6: Calculating the Greeks

After pricing the European and American options in the above section, students should know also
1. Calculate the delta and gamma of all the options priced in using the parameters of exercise 1(b)
2. Give a table showing your answers for these deltas and gammas
3. Give one plot each for delta and gamma over the range of initial share prices

Working with market data.

Exercise 6: Trading AMD European options.

1. Download the file options 20060321.csv from the financial mathematics home page. Use it to extract the
following data: AMD (Advanced Micro Devices) (close) share price on the 21st of March, 2006, the set of
strike prices for European call and put options available on this day (rows 7703-7744 of the Excel sheet) and
having AMD share as the underlying asset; the set of bid and ask prices for these options; expire date. The
structure of the file is explained at
2. Go to
to find the value of the volatility of AMD stock in March 2006.
3. Federal reserve one-month interest rates in March 2006 stood at 4.55 per cent. Use all the data youve collected
so far to calculate the trinomial tree option price for each of the strike prices available. Plot bid, ask and tree
prices as functions of the strike price on the same semi-logarithmic plot.
4. Go to

to find out the price of AMD share on the 21st of April 2006. Assume that an investor paid the ask price for
each of 42 AMD European put,call options on the 21st of March. How much money will the investor gain by
exercising all these options on the 21st of April? What would be the answer if our investor bought put options
only? Plot the profits from exercising put and call options as functions of K on the same plot. Also, plot the
volumes of each option type as functions of K on this plot. Has the market guessed the most profitable options
correctly? On March the 21st, would you buy the options which turned out to be most profitable on April the
21st, basing on the trinomial tree result?



Structuring Your MATLAB Code

Due to the complexity of this project, we would recommend to students to write various functions in matlab m scripts
to calculate various items needed for each part of the project. Students should avoid writing one long piece of matlab
code that implements everything. It will be significantly easier to debug your matlab code if you write numerous small
functions that calculate various things. For instance, an example piece of our main code for calculating a European
option is given below. You can clearly see how easy it is to read and understand.


% Filename: trinomial tree.m
% Code: This code calculates European option prices using
a trinomial tree.
% Other Files Used: trans prob.m, calc ud.m, calc pmd.m
backward induction.m, visualization.m
% Author: Paul Clifford Oleg Zaboronski
% Last Modified: Nov 12th
function y = trinomial tree( S, K, T, r, vol, n, op type )
delta T = T/(n-1);
= calculate ud( n, delta T, vol );
[pu,pm,pd] = calculate pupmpd( delta T, vol );
x = build price tree();
compute payoff(x, K, op type);
answer = backward evaluation();

Students should bare in mind that this is just one of the pieces to do for the project. You also have numerous
other tasks so creating folder for each task and then inside each folder have all your m-scripts for that exercise. So for
example, for this trinomial tree, we created a folder called trinomial tree and that folder contains all our m-files only
for the trinomial tree. When we write code for barrier options or for the implied trinomial tree or for the adaptive mesh
model we create separate folders for each of these exercises and write separate m scripts again for various calculations.


Presentation of the Project

Students should be aware that clear and concise explanations and presentation of the data will be rewarded will very
high marks. There is no need to include numerous non-illustrative plots and not emphasize (a) the financial reasoning
for the plots and (b) the numerical or mathematical explanation of what is occurring in the plots. Some students in

previous years who only included very, very few plots but the plots clearly explained various things received significantly higher marks than students who just included numerous plots with little or no clear explanation.

Students should also note that data tables are an excellent way to explain your answers and are preferable to graphs
on a number of occasions. These are especially useful for convergence results and also pricing results.


Tabulated Output

Students should produce and concise tabulated output to show their trinomial tree models, for example



Error I

Evrror II




Books, Papers and References

We obviously encouraged students strongly to read some papers on trinomial trees. Students can also look at the
following books but are not limited to these books.
John C. Hull Options, Futures and Other Derivatives
Paul Wilmott Paul Wilmott on Quantitative Finance
Espen Haug The Complete Guide To Option Pricing Formulas
There are also various papers available via Google online.


Rules, Regulations and Project Submission

This project is to be completed by individuals only and is not a group exercise. Plagiarism is taken extremely seriously
and any student found to be guilty of plagiarism of fellow students will be severely punished.
1. Students must answer all questions.
2. Students are free to use Word, Latex or whatever project writing software they prefer.
3. The project must be handed up in either bound format or stapled format, no loosely packaged project will be
4. Students should code the assignment in MATLAB.
5. All graphs produced must be labeled displaying what the graph is, what parameters were used to produce the
graph, colour-coded key attached to show clear understanding of what the graph represents.
6. Graphs produced not adhering to the rule above will not be marked!
7. Students can produce data tables to show answers if they wish. If so, data must be aligned, include column
headings and be easy to read.