Design a solver in a reusable fashion

Assignment Help Other Subject
Reference no: EM133133727

FE545 Design, Patterns and Derivatives Pricing - Stevens Institute of Technology

Problem 1: Pricing a derivative security entails calculating the expected discounted value of its payoff. This reduces, in principle, to a problem of numerical integration; but in practice this calculation is often difficult for high-dimensional pricing problems. Broadie and Glasserman (1997) proposed the method of the simulated tree to price American options, which can derive the upper and lower bounds for American options. This combination makes it possible to measure and control errors as the computational effort increases. The main drawback of the ran- dom tree method is that its computational requirements grow exponentially in the number of exercise dates m, so the method is applicable only when m is small. Nevertheless, for problems with small m it is very effective, and it also serves to illustrate a theme of managing scoures of high and low bias.

Let h˜i denote the payoff function for exercise at ti, which we now allow to depend on i. Let V˜i(x) denote the value of the option at ti given Xi = xi (the option has not exercised). We are ultimately interested in V˜0(X0). This value is determined recursively as follows:

V˜m(x) = h˜m(x)(1)

i-1(x) = max{h˜i-1(x), E[Di-1,i(Xi)V˜i(Xi)|Xi-1 = x]}, (2)

i = 1, ..., m and we have introduced the notation Di-1,i(Xi) for the discount factor from ti-1 to ti. It states that the option value at expiration is give by the payoff function h˜m; and at time (i - 1)th exercise date the option value is the maximum of the immediate exercise value and the expected present value of continuing.

As its name suggests, the random tree method is based on simulating a tree of paths of the underlying Markov chain X0, X1, ..., Xm. Fix a branching parameter b ≥ 2. From the initial state X0, simulate b independent successor states X1, ..., Xb all having the law of X1

From each X1i, simulate b independent successors X2i1, ..., X2ib from the conditional law of X2 given X1 = X1i. From each X2i1i2, generate b successors X3i1i21, ..., X3i1i2b, and so on. We denote a generic node is the tree at time step i by Xij1j2...ji. The superscript indicates that this node is reached by following the j1-th branch out of X0, the j2th branch out the next node, and so on.
At all terminal nodes, set the estimator equal to the payoff

at that node:

vmj1..jm = hm(Xmj1...jm ). (3)

At node j1j2...ji at time step i, and for each k = 1, ..., b, set

vikj1j2..ji = hi(Xij1j2...ji)    if 1/b Σbj=1 vi+1j1j2..jijhi(Xij1j2....ji)

vikj1j2..ji = vi+1j1j2..jik       Otherwise

then set

vij1...ji = 1/bΣbk=1 vi,kj1j2.

Working backword, we then set

vij1...ji = max{hi(Xij1..ji), 1/bΣbk=1vi,kj1....ji.}

The high estimator of the option price at the current time and state is vˆ0.

The low estimator is defined as follows. At all terminal nodes, set the estimator equal to the payoff at that node:

vij1j2...jm = hm(Xmj1j2...jm)

At node j1j2...ji at time step i, and for each k = 1, ..., b, set

vikj1j2..ji = hi(Xij1j2...ji)    if 1/b Σbj=1;j≠k vi+1j1j2..jij ≤ hi(Xij1j2....ji)

vikj1j2..ji = vi+1j1j2..jik       Otherwise

 

We then set

vij1j2...ji = 1/bΣbk=1 vi,kj1j2....ji

The low estimator of the option price at the current time and state is vˆ0.

72_Patterns and Derivatives Pricing.jpg

 

Figure 1: High Estimator

Assume a random tree for pricing American put option is given in Figure (1). Please use the random tree in Figure (1) to cal- culate the high and low estimate of the American call option price. Please show your steps for both the high estimator and low estimator.

Note: You do not need to write C++ program to get the price, but rather manually calculating the estimators following the algorithms introduced in class.

Problem 2: The Black-Scholes formula is sufficiently complicated that there is no analytic inverse function, and therefore this inversion must be carried out numerically. Our objective is to use Newton-Ralphson method and the programming techniques to design a solver in a reusable fashion.

When we have a well-behaved function with an analytic deriva- tive then Newton-Ralphson can be used to find inverse values of the Black-Scholes formula. The idea of Newton-Raphson is that we pretend the function is linear and look for the solution where the linear function predicts it to be. Thus we take a standing point x0, and approximate f by

g0(x) = f(x0) + (x - x0)fJ(x0).∈, (9)

We have that g0(x) equal to zero if and only if

x = (y - f (x0))/f'(x0) + x0

We therefore take this value as our new guess x1. We repeat until we find that f (xn) is within s of y. In this problem, you will use a pointer to a member func- tion which is similar in syntax and idea to a function pointer, but it is restricted to methods of a single class. The difference in syntax is that the class name with a :: must be attached to the ∗ when it is declared. Thus to declare function pointers called V alue and Derivative which must point to methods of the class T , we have double (T::*Derivative) (double) double and double (T::*Value) (double) double. The function V alue (Derivative) is a const member function which takes in a dou- ble as argument and outputs a double as return value. If we have an object of class T called TheObject and y is a double, then the function pointed to can be invoked by either TheObject. ∗ V alue(y) or TheObject. ∗ Derivative(y). The following is the prototype of such a template class.
#include <cmath>

//three template parameters
template<class T, double (T::*Value)(double) const,double (T::*Deriv double NewtonRaphson(double Target,


double Start, double Tolerance, const T& TheObject)
{
double y = (TheObject.*Value)(Start); // pass initial guess to double x=Start;

while ( fabs(y - Target) > Tolerance )
{
double d = (TheObject.*Derivative)(x); x+= (Target-y)/d;
y = (TheObject.*Value)(x); // check the target function valu
}

return x;

}
Use the classes introduced in Lecture 09 and finish the main.cpp file for European Call Option with the following parameters:
• Expiry: 1
• Spot: 50
• Strike: 50
• Risk free rate: 0.05


• Dividend: 0.08
• Price: 4.23
• Vol initial guess: 0.23
• Tolerance: 0.0001
Use the NewtonRalphson class from the sample as the starting point and find implied volatility for the given option price of 4.23.

You are allowed to discuss the problems between yourselves, but once you begin writing up your solution, you must do so independently, and cannot show one another any parts of your written solutions.

Attachment:- Design, Patterns and Derivatives Pricing.rar

Reference no: EM133133727

Questions Cloud

Maximize revenue regardless of costs : A company is pursuing an aggressive growth strategy and therefore wants to maximize its revenue regardless of costs its analysis have estimated the demand funct
What happened to jamie mullet : What happened to Jamie Mullet just before Christmas in 2008, and to his house and farm afterwards?
Explain singer philosophy : 1) Please watch this Ted Talk video, which explains Singer's philosophy:
German leveling system : Discuss the advantages and disadvantages of this German leveling system and how it addresses the educational needs of all students.
Design a solver in a reusable fashion : Our objective is to use Newton-Ralphson method and the programming techniques to design a solver in a reusable fashion - calculating the expected discounted
Determine the level of q that maximizes total benefit : Assume that the total benefit resulting from a continuous decision, Q, is B(Q) = 20Q - 202 and the corresponding total cost is C(Q) = 4 + 2Q2.
Efficient number of worker-hours for the cleanup : Suppose a small town is considering how much effort to put into cleaning up a polluted stream. The town has a population of 10 people, each of whom values the s
Attract a sports tournament : Suppose that a city in your state is trying to attract a sports tournament, which would entail spending a significant amount of money on marketing of the event
By what amount Accumulated Profits and Losses be charged : Screensaver Corporation's Accumulated Profits and Losses at December 31, 2014 amounted to P2,000,000. By what amount Accumulated Profits and Losses be charged

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd