This assignment is an extra credit opportunity worth 10 points. The goal is to demonstrate your understanding of the topic in the different areas of problem statement through a flowchart diagram propely marked, the analytics through a clear representation of the mathematical equations, the coding through the clear and properly commented execution steps, and finally results evaluation through the assessment of quality and integrity.
The topic of interest is the pricing of an Asian option. Asian options are a form of exotic options unlike the more vanilla European options. The case considered here is a special type of Asian options where the payoff is given by the average price of the underline asset over some predetermined period until expiration time. Other variations of Asian options (outside our scope) are possible and left for the reader’s investigation. The case in point is described on p.169 . Note that Asian options are characterized as path dependent options. By this we mean that the payoff of the option is dependent on the intermediate values of the underline asset along the path. In contrast a European option is path independent because the payoff depends only on the final value of the underline asset, and not on the intermediate or historical values. The case of American options is slightly tricky. Because of the early exercise opportunity one may be inclined to view American options as path dependendent. However at any exercise point the payoff is only dependent on the current asset price and not historical. As such it is not really path dependent.
Remember to always set your working directory to the source file location. Go to ‘Session’, scroll down to ‘Set Working Directory’, and click ‘To Source File Location’. Read carefully the below and follow the instructions to complete the tasks and answer any questions. Submit your work to RPubs as detailed in previous notes.
Always read carefully the instructions on Sakai. For clarity, tasks/questions to be completed/answered are highlighted in red color (visible in preview) and numbered according to their particular placement in the task section. Quite often you will need to add your own code chunk.
Execute all code chunks, preview, publish, and submit link on Sakai follwoing the naming convention. Make sure to add comments to your code where appropriate. Use own language!
Any sign of plagiarism, will result in dissmissal of work!
#Install package quantmod
if(!require("quantmod",quietly = TRUE))
install.packages("quantmod",dependencies = TRUE, repos = "https://cloud.r-project.org")
Inspired by the flowchart diagram of the MC simulation for European option, create an equivalent flowchart diagram for the considered case of Asian option. Describe the variables, label clearly, and write the discrete mathematical representation to be coded later. You can create the flowchart using a separate tool and include an image capture here. A hand drawn image is acceptable only if well executed.
This is the diagram
Implement the R-code for the MC simulation to price an Asian Call option with input characteristics similar to the European Call option considered in Lab 6, task 2B.
optionvalue <- function( Type, S0, K, T, r, sigma, n, m, dt){
sum = 0;
for (i in 1 : m) { # number of simulated paths
Asum = 0; # for cumulative sum along the path
S=S0
for (j in 1 : n) { # length of path
E = rnorm(1,0, 1);
S = S + r * S * dt + sigma * S * sqrt(dt) * E;
Asum = Asum + S; }
if (Type == "c" ){ payoff = max((1/n) * Asum - K, 0) }
else if (Type=="p"){payoff=max(k-(1/n)*Asum,0)}
else { payoff = max((1/n) * Asum - K, 0) } # default
sum = sum + payoff }
OptionValue = (sum * exp(-r * T))/m;
return (OptionValue)}
optionvalue( Type="c", S0 = 155, K = 140, T = 0.5,r = 0.025, sigma = 0.23, n = 100, m = 1000, dt = 0.5/100 )
[1] 16.33747
For this question the below package is needed. Follow the example at bottom of p.171 to price the same Asian Call option using instead the approximate function referenced in the example. Compare to the MC simulation.
#Install required package
if(!require("fExoticOptions",quietly = TRUE))
install.packages("fExoticOptions",dependencies = TRUE, repos = "https://cloud.r-project.org")
library("fExoticOptions")
TW=TurnbullWakemanAsianApproxOption(TypeFlag="c",S=155,SA=155,X=140, Time=1/2, time=1/2, tau=0, r=0.025, b=0.025, sigma=0.23)
print(TW)
Title:
Turnbull Wakeman Asian Approximated Option
Call:
TurnbullWakemanAsianApproxOption(TypeFlag = "c", S = 155, SA = 155,
X = 140, Time = 1/2, time = 1/2, tau = 0, r = 0.025, b = 0.025,
sigma = 0.23)
Parameters:
Value:
TypeFlag c
S 155
SA 155
X 140
Time 0.5
time 0.5
tau 0
r 0.025
b 0.025
sigma 0.23
Option Price:
16.63123
Description:
Fri Feb 08 14:36:04 2019
From the results above we can see that, the result from Turnbull and Wakeman’s approximation method is close to the result using Monto Carlo simulation, which means MC simulation is a good way to price the Asian options.
Calculating the Greeks for the Asian Option is not as straightforward using the approximate function. Instead we can approximate using numerical differentiation. Describe how would you implement a numerical differentiation to calculate the Delta. Show the code execution and the intermediate values to calculate the Delta and the Theta for the considered Asian Call option.
First, calculate the actual Asian call option prices when the price goes both up and down $1. The using the formula: \(Delta=(C_{s+\Delta_s}-C_{s-\Delta_S})/2*\Delta_s\) to calculate the delta of the Asian option price.
p1=TurnbullWakemanAsianApproxOption(TypeFlag="c",S=156,SA=156,X=140, Time=1/2, time=1/2, tau=0, r=0.025, b=0.025, sigma=0.23)
p2=TurnbullWakemanAsianApproxOption(TypeFlag="c",S=154,SA=154,X=140, Time=1/2, time=1/2, tau=0, r=0.025, b=0.025, sigma=0.23)
p3=TurnbullWakemanAsianApproxOption(TypeFlag="c",S=155,SA=155,X=140, Time=1/2+0.01, time=1/2+0.01, tau=0, r=0.025, b=0.025, sigma=0.23)
p4=TurnbullWakemanAsianApproxOption(TypeFlag="c",S=155,SA=155,X=140, Time=1/2-0.01, time=1/2-0.01, tau=0, r=0.025, b=0.025, sigma=0.23)
print(p1)
Title:
Turnbull Wakeman Asian Approximated Option
Call:
TurnbullWakemanAsianApproxOption(TypeFlag = "c", S = 156, SA = 156,
X = 140, Time = 1/2, time = 1/2, tau = 0, r = 0.025, b = 0.025,
sigma = 0.23)
Parameters:
Value:
TypeFlag c
S 156
SA 156
X 140
Time 0.5
time 0.5
tau 0
r 0.025
b 0.025
sigma 0.23
Option Price:
17.51607
Description:
Thu Feb 07 22:20:40 2019
print(p2)
Title:
Turnbull Wakeman Asian Approximated Option
Call:
TurnbullWakemanAsianApproxOption(TypeFlag = "c", S = 154, SA = 154,
X = 140, Time = 1/2, time = 1/2, tau = 0, r = 0.025, b = 0.025,
sigma = 0.23)
Parameters:
Value:
TypeFlag c
S 154
SA 154
X 140
Time 0.5
time 0.5
tau 0
r 0.025
b 0.025
sigma 0.23
Option Price:
15.7597
Description:
Thu Feb 07 22:20:40 2019
print(p3)
Title:
Turnbull Wakeman Asian Approximated Option
Call:
TurnbullWakemanAsianApproxOption(TypeFlag = "c", S = 155, SA = 155,
X = 140, Time = 1/2 + 0.01, time = 1/2 + 0.01, tau = 0, r = 0.025,
b = 0.025, sigma = 0.23)
Parameters:
Value:
TypeFlag c
S 155
SA 155
X 140
Time 0.51
time 0.51
tau 0
r 0.025
b 0.025
sigma 0.23
Option Price:
16.67262
Description:
Thu Feb 07 22:20:40 2019
print(p4)
Title:
Turnbull Wakeman Asian Approximated Option
Call:
TurnbullWakemanAsianApproxOption(TypeFlag = "c", S = 155, SA = 155,
X = 140, Time = 1/2 - 0.01, time = 1/2 - 0.01, tau = 0, r = 0.025,
b = 0.025, sigma = 0.23)
Parameters:
Value:
TypeFlag c
S 155
SA 155
X 140
Time 0.49
time 0.49
tau 0
r 0.025
b 0.025
sigma 0.23
Option Price:
16.58984
Description:
Thu Feb 07 22:20:40 2019
delta=(17.51607-15.7597)/(2*1)
theta=(16.67262-16.58984)/(2*0.01)
delta
[1] 0.878185
theta
[1] 4.139
Explain how the price of the Asian Call option compares to the equivalent European Call option. Is it an expected behavior? What about the Delta comparison? Poorly stated insights will receive poor grade!
library(fOptions)
GBSOption(TypeFlag = "c", S = 155, X = 140, Time = 1/2, r = 0.025, b = 0.025, sigma = 0.23)
Title:
Black Scholes Option Valuation
Call:
GBSOption(TypeFlag = "c", S = 155, X = 140, Time = 1/2, r = 0.025,
b = 0.025, sigma = 0.23)
Parameters:
Value:
TypeFlag c
S 155
X 140
Time 0.5
r 0.025
b 0.025
sigma 0.23
Option Price:
20.11899
Description:
Thu Feb 07 22:27:28 2019
GBSGreeks(Selection="delta",TypeFlag="c",S=155,X=140, Time=1/2,r=0.025,b=0.025,sigma=0.23)
[1] 0.783484
The price of the Asian call option is lower relative to the equivalent European call option. This is an expected behavior. Since the payoff of Asian call option is determined by the average stock price and strike price, the expected payoff at expiration should be lower than that of European call. Hence the price of Asian call is lower than European call. About Delta comparison, the Delta from the Asian call option is higher than the Delta of the equivalent European call option. This is expected because Delta means the change of option price relative to the change of stock price. Since the Asian call option is path-dependent, one change in the underlying stock price would cause bigger change of option price than the change of European option price.