首页
网站开发
桌面应用
管理软件
微信开发
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
热点项目
更多
代做 program、代写 c++设计程...
2024-12-23
comp2012j 代写、代做 java 设...
2024-12-23
代做 data 编程、代写 python/...
2024-12-23
代做en.553.413-613 applied s...
2024-12-23
代做steady-state analvsis代做...
2024-12-23
代写photo essay of a deciduo...
2024-12-23
代写gpa analyzer调试c/c++语言
2024-12-23
代做comp 330 (fall 2024): as...
2024-12-23
代写pstat 160a fall 2024 - a...
2024-12-23
代做pstat 160a: stochastic p...
2024-12-23
代做7ssgn110 environmental d...
2024-12-23
代做compsci 4039 programming...
2024-12-23
代做lab exercise 8: dictiona...
2024-12-23
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!