首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
ISyE 6767代写、c/c++,Python编程代做
项目预算:
开发周期:
发布时间:
要求地区:
ISyE 6767 Sys-Computation Finance Fall 2023
Interim Project
Due: Oct 16, 2023
Implementing a dynamic delta hedging strategy.
Delta-hedging is a hedging strategy that aims to replicate the value of a financial derivative, such as a
Call option, written on a traded asset through dynamically buying (or selling) a proper number of shares of
the underlying asset and borrowing from (or lending to) a bank.
Description of the delta-hedging process:
1. Let the hedging period be from a start-date t0 to an end-date tN . At start date t0, assuming there is
an initial cash position in the amount of $0.
2. At t0, we sell a European call option contract with expiration date T, strike price K. Assume the
option contract is written on one share of stock and t0 < tN ≤ T.
3. To hedge the short position in the European call, we decide to buy δ shares of the underlying stock
at t0, where δ =
∂V
∂S is the rate of change of option value V with respect to changes in the underlying
price S.
4. As δ changes during the hedging period, we need to re-balance our portfolio (buy/sell stocks) everyday
to maintain a long position of δi shares of stock for each date ti
, i = 1, 2, ..., N. δi shall be calculated
using implied volatility for each date.
5. For each date ti
, i = 1, 2, ..., N, calculate the cumulative hedging error till ti
:
HEi = δi−1Si + Bi−1e
ri−1∆t − Vi
where Bi = δi−1Si + Bi−1e
ri−1∆t − δiSi (i ≥ 1) and B0 = V0 − δ0S0. Si
, Vi
, ri respectively denote the
stock price, option price, risk-free rate at time ti
, i = 0, 1, ..., N. ∆t represents 1 business day, which is
1
252 year.
6. For each date ti
, two types of profit-and-loss (PNL) of selling a Call option at time 0 are defined as
follows. Assume no transaction costs.
• PNL = Call option market quote at time 0 – Call option market quote at time ti
.
• PNL with hedge = Cumulative hedging error.
Project tasks are:
1. Test your delta hedging implementation using the Black-Scholes model.
• Use the following model to simulate the price series {S0, S∆t, S2∆t, · · · , ST } at N equally-spaced
time points over time horizon [0, T] where ∆t =
T
N
:
St+∆t = St + µSt∆t + σSt
√
∆tZt,
where {Zt : t = 1, 2, · · · , N} are independent standard Normal random variables. Generate 1000
sample paths with the following set of parameters: S0 = 100, T = 0.4, µ = 0.05, σ = 0.24,
r = 0.025, N = 100. Plot any 100 of these paths ((Excel, matlab, R, or Python can be used to
generate plots using data generated by C++ codes).
• Apply Black-Scholes formula to obtain the option price series {C0, C∆t, C2∆t, · · · , CT } on each
stock price sample path.
• Assume S0 = 100, T = 0.4, µ = 0.05, σ = 0.24, r = 0.025, N = 100. Consider a European Call
option on ST with K = 105 and T = 0.4. Construct the delta-hedging portfolios for all N periods
using delta obtained from the B-S model. Repeat this for all 1000 sample paths and report/plot
the distribution of the hedging errors.
2. Use the real market data given in the project data files to test the validity of Black-Scholes model by
using the Black-Scholes formula to construct the delta-hedging portfolio.
(a) At each time ti
, calculate the total wealth if we sell a call without putting on any hedge.
(b) Given t0, tN , T and K, the program should output a file “result.csv” containing stock price,
option price, implied volatility, delta, hedging error, PNL, PNL with hedge.
For example, if t0=2011-07-05, tN =2011-07-29, T=2011-09-17, K = 500, the output should be
like:
date S V ... PNL PNL (with hedge)
2011-07-05 532.44 44.2
2011-07-06 535.36 46.9
...
2011-07-28 610.94
2011-07-29 603.69
(c) The following data files are provided. Data files should not be modified manually or by other
tools.
• “interest.csv” contains daily risk-free rates in 2011. When calculating implied volatility and
delta for each date, use the risk-free rate of corresponding date.
• “sec GOOG.csv” contains adjusted closing stock prices in 2011. Assume there is no dividend.
• “op GOOG.csv” contains option prices data in 2011. Option price=(best bid+best offer)/2.
cp flag is C for call option, P for put option. exdate is expiration date. For option at date
ti
, time to expiry = (number of business days between ti and T)/252.
Note: Feel free to modify the sample codes in the lab session to make it work. It is encouraged to design your own Option classes and you are required to use OOP or generic
programming style to finish this project. Using only functions or trivial classes without any
member variables are not acceptable.
Project deliverables:
1. Ready-to-compile codes in one zip file
2. A project report which contains the following components:
• Problem addressed by the project and the model(s) used in the project
• The structure of the model implementation: functionality of each code block or each code piece.
• Unittest cases for the code
• Outcome of the implementation, present discussion on whether the outcome solves the practical
problem of hedging call/put options, and draw some conclusions.
2
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
cis432代做、代写python/java程...
2024-05-04
eeen3007j代写、c++程序设计代...
2024-05-04
代写data程序、代做c/c++, jav...
2024-05-04
comp2006代做、代写c++程序语言
2024-05-04
comp26020代做、java/c++设计编...
2024-05-04
csci251 advanced programming...
2024-05-03
cs 6290: high-performance co...
2024-05-03
assignment 2: executing and ...
2024-05-03
ecse427/comp310 programmin...
2024-05-03
cs 452 (fall 22): operating...
2024-05-03
comp9414 23t2 assignment 2 ...
2024-05-03
dpst1091 23t1 assignment 2 ...
2024-05-03
program代做、代写python设计编...
2024-05-03
热点标签
finm8007
comp2006
comp26020
comp1721
eeen3007j
cis432
csci251
comp5125m
com398sust
32022
mth6158
comp328
finn41615
2024
mec302
mgmt3004
mgt7158
com160
as.640.440
econ3016
finm7405
econ7021
fin600
infs4205/7205
mktg2510-
f27sb
csse2310/csse7231
rv32i
eecs 113
comp1117b
cs 412
comp 315
econ7300
comp2017
ecs 116
fit5046
com6511
comp30024
acs341
econ1020
isys3014
acc408
comp1047
csc 256
cs 6347
finm7008
comp34212
csmde21
estr2520
comp285/comp220
mds5130/iba6205
finc6010
is3s665
busi2194
125.785
iom209
msin0041
econ339
cmt218
mast10007
comp5349
ecx2953/ecx5953
bios706
comp3310
mth6150
comp30027
comp20005
eec286
busi2211
bff2401
fnce90046
visu2001
mang6554
finc6001
125785
data423-24s1
engi 1331
fint2100
(520|600).666
can202
cs 61b
mast20029
info20003
stat512
econ3208
cmpsc311
engg1340
ecmt1010
fit5216
basc0003
ee3121
acct2002
comp5313
busi2131
ise529
elec372/472
csit940/csit440
cenv6141
comp3027/comp3927
ftec5580
comp1433
msci223
mark203
en3098
eden1000
ece6483
econ4410
mats16302
cs 6476
com6521
comp222
comp3211
comp10002
csc1002
chc6186
cs 161
comp27112
comp282
swen20003
comm1190
elec9764
acfi3308
acct7101
fin6035
comp2048
geog0163
comp2013
coen 146
dts101tc
sehh2042
comp30023
comp4880/8880
cs 455
07
stat0045.
fil-30023
celen085
psyc40005
math40082
are271
comp9311
ee5311
imse2113
comp 2322
acct2102
fnd109
int102
is3s664
is6153
data4000
accfin5034
fit5212
cs536-s24
fit5225
ecos3006
mes202tc
finc5001
stat3061
csc171
cs1b
7ssmm712
bu.450.760
cs170
comp3411
swen90004
cpt206
comp5313/comp4313—large
bl5611
kxo206
comp532
elec207
kxo151
cs 2820
cpt108
math2319
dts204tc
qm222
comp2511
ccs599
infs1001
mat2355
eeee4123
25721
ifn647
pols0010
hpm 573
qbus6860
comp9417
csci 1100
stat0023
cse340
comp2003j
cs 2550
cs360
fin 3080
ierg 4080
cs6238
cit 594
finm7406
hw6
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!