Matlab exercise 101071041 計財 16 陳怡鳳. Plot BLS_P % PlotBLS.m S0 = 20:1:70; X = 50; r = 0.04; sigma = 0.4; for T=2:-0.25:0 [c,p]=blsprice(S0,X,r,T,sigma);

Slides:



Advertisements
Similar presentations
Introduction Greeks help us to measure the risk associated with derivative positions. Greeks also come in handy when we do local valuation of instruments.
Advertisements

“ Calls and Puts ” presented by Welcome to. What is an option? Derivative product Contract between two parties Terms of contract Buyers rights Sellers.
 for loop  while loop  do while loop  How to choose?  Nested loop  practice.
1 The Greek Letters Chapter Goals OTC risk management by option market makers may be problematic due to unique features of the options that are.
Chapter 19 Volatility Smiles
Volatility Smiles Chapter 18 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull
MGT 821/ECON 873 Volatility Smiles & Extension of Models
Chapter 19 Volatility Smiles Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull
: Arrange the Numbers ★★★☆☆ 題組: Contest Archive with Online Judge 題號: 11481: Arrange the Numbers 解題者:李重儀 解題日期: 2008 年 9 月 13 日 題意: 將數列 {1,2,3, …,N}
FIN 685: Risk Management Topic 3: Non-Linear Hedging Larry Schrenk, Instructor.
Options and asset management 17 november Options play a central role in modern asset management Provide important info Level of risk aversion Dispersion.
How Traders Manage Their Exposures
Fundamentals of Futures and Options Markets, 8th Ed, Ch 17, Copyright © John C. Hull 2013 The Greek Letters Chapter 13 1.
Greeks Cont’d. Hedging with Options  Greeks (Option Price Sensitivities)  delta, gamma (Stock Price)  theta (time to expiration)  vega (volatility)
Black-Scholes Pricing cont’d & Beginning Greeks. Black-Scholes cont’d  Through example of JDS Uniphase  Pricing  Historical Volatility  Implied Volatility.
Options: Greeks Cont’d. Hedging with Options  Greeks (Option Price Sensitivities)  delta, gamma (Stock Price)  theta (time to expiration)  vega (volatility)
Chapter 10 Hypothesis Tests with Two Independent Samples.
Options: Greeks Cont’d. Hedging with Options  Greeks (Option Price Sensitivities)  delta, gamma (Stock Price)  theta (time to expiration)  vega (volatility)
Greeks Cont’d. Hedging with Options  Greeks (Option Price Sensitivities)  delta, gamma (Stock Price)  theta (time to expiration)  vega (volatility)
Ubiquitous News(Unews) 的設計與實作 指導教授:黃毅然 教授 學生:葉雅琳 系別:資訊工程學系.
: Happy Number ★ ? 題組: Problem Set Archive with Online Judge 題號: 10591: Happy Number 解題者:陳瀅文 解題日期: 2006 年 6 月 6 日 題意:判斷一個正整數 N 是否為 Happy Number.
Options and Speculative Markets Greeks Professor André Farber Solvay Business School Université Libre de Bruxelles.
A Basic Options Review. Options Right to Buy/Sell a specified asset at a known price on or before a specified date. Right to Buy/Sell a specified asset.
1 100: The 3n+1 Problem ★★★☆☆ 題組: VOLUME CII 題號: 10721: Problem C-Chopsticks 陳冠男 解題者:陳冠男、侯沛彣 解題日期: 2006 年 4 月 23 日 給定一個正整數 n (n>1) ,當 n 為奇數時令 n  3n+1.
1 OPTIONS Call Option Put Option Option premium Exercise (striking) price Expiration date In, out-of, at-the-money options American vs European Options.
5 重複迴圈 5.1 增減運算符號 增量運算符號 減量運算符號
第 6 章 迴圈結構 6-1 計數迴圈 6-1 計數迴圈 6-2 條件迴圈 6-2 條件迴圈 6-3 巢狀迴圈 6-3 巢狀迴圈 6-4 While/End While 迴圈 6-4 While/End While 迴圈 6-5 跳出迴圈 6-5 跳出迴圈 6-6 VB.NET 的錯誤處理 6-6 VB.NET.
11 Ch05 遞迴 淡江大學 周清江 1. 2  遞迴函數乃是一個自己反覆呼叫自己的函數  一個典型的遞迴演算法 n! = n * (n-1)! = n * (n-1) * (n-2)! = n * (n-1) * (n-2) * (n-3)! = … = n * (n-1) * (n-2)
C 語言練習題 2010/12/2. C 程式的格式 一、 C 程式的格式 (1). /* …. */ 是 C 程式的 ______ main() 的內容是由敘述構成的 (2). 敘述要以 __ 為結束符號 (3). 變數、函數都要做 ____ 的宣告 (4). ‘=’ 是 ____ 用的算符 (5).
Pricing Cont’d & Beginning Greeks. Assumptions of the Black- Scholes Model  European exercise style  Markets are efficient  No transaction costs 
6.1 The Greek Letters Lecture Example A bank has sold for $300,000 a European call option on 100,000 shares of a nondividend paying stock S 0 =
Seminar: Timely Topics for Today’s Business World Mr. Bernstein Options January 15, 2015.
Zheng Zhenlong, Dept of Finance,XMU Basic Numerical Procedures Chapter 19.
Option Pricing Models I. Binomial Model II. Black-Scholes Model (Non-dividend paying European Option) A. Black-Scholes Model is the Limit of the Binomial.
Chapter 15 Option Valuation
17:49:46 1 The Greek Letters Chapter :49:46 2 Example A bank has sold for $300,000 a European call option on 100,000 shares of a nondividend paying.
Computational Finance Lecture 7 The “Greeks”. Agenda Sensitivity Analysis Delta and Delta hedging Other Greeks.
1 Chapter 12 The Black-Scholes Formula. 2 Black-Scholes Formula Call Options: Put Options: where and.
1 Greek Letters for Options MGT 821/ECON 873 Greek Letters for Options.
The Greek Letters Chapter 17
Fundamentals of Futures and Options Markets, 5 th Edition, Copyright © John C. Hull The Greek Letters Chapter 15.
The Greek Letters Chapter 15
Derivatives Lecture 21.
Bull Call Spread Max Risk : Amount paid for the spread + commissions Max Reward : (High strike call – Low strike call) – amount paid for the spread Breakeven.
Delta Hedging & Greek NeutraL
Introduction to Financial Engineering
9.3.4 Siegel’s Exchange Rate Paradox In (9.3.16), the mean rate of change for the exchange rate Q(t) is R(t) - R f (t) under the domestic risk-neutral.
Greeks of the Black Scholes Model. Black-Scholes Model The Black-Scholes formula for valuing a call option where.
15.1 The Greek Letters Chapter Example A bank has sold for $300,000 a European call option on 100,000 shares of a nondividend paying stock S.
Fundamentals of Futures and Options Markets, 5 th Edition, Copyright © John C. Hull Binomial Trees in Practice Chapter 16.
Basic Options Strategy By Sir Pipsalot Recorded webinar available for Diamonds users at:
Fundamentals of Futures and Options Markets, 6 th Edition, Copyright © John C. Hull The Greek Letters Chapter 15 Pages
MATLAB 程式設計 Learning Arrays and x-y Plotting 方煒 台大生機系.
Chapter 22 Principles PrinciplesofCorporateFinance Ninth Edition Valuing Options Slides by Matthew Will Copyright © 2008 by The McGraw-Hill Companies,
Chapter 21 Principles of Corporate Finance Tenth Edition Valuing Options Slides by Matthew Will McGraw-Hill/Irwin Copyright © 2011 by the McGraw-Hill Companies,
Chapter 19 An Introduction to Options. Define the Following Terms n Call Option n Put Option n Intrinsic Value n Exercise (Strike) Price n Premium n Time.
Chapter 16 Option Valuation.
Homework 2 計財 張儷瀞. 1. Black-Scholes Model (Code) S0=30:1:70; X=50; r=0.08; sigma=0.4; for T=2:-0.25:0 [c, p]=blsprice(S0, X, r, T, sigma)
Figure Call price as a function of the stock price.
Analytic Financial “Asset-or-nothing digitals” Mahamadi Ouoba Amina El Gaabiry David Johansson.
Chapter 19 Volatility Smiles Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Option Valuation 16.
The Greek Letters Chapter 17.
The Maths behind the Greeks By A.V. Vedpuriswar
SDE & Statistics MiniCourse Topics List for the Exam
Module 7: Black-Scholes-Merton Model Sensitivities
Options and Speculative Markets Greeks
Binomial Trees in Practice
© K. Cuthbertson and D. Nitzsche
Presentation transcript:

Matlab exercise 計財 16 陳怡鳳

Plot BLS_P % PlotBLS.m S0 = 20:1:70; X = 50; r = 0.04; sigma = 0.4; for T=2:-0.25:0 [c,p]=blsprice(S0,X,r,T,sigma); plot(S0,p); hold on; end axis([ ]); grid on Question : 自己寫的 b-s model 即使用兩個迴圈還是無法跑 (?

Output 價外 s>50 價內 s<50 價平 =s50 ?

Option price= intrinsic value + time value Intrinsic value(for put) = Max(0,X-S) Time value = The value for waiting Time value may be negative For deep in the money only. More possible for put than call.

Plot the variation of theta with stock price for a call x=50; r=0.05; t=0.5; sig=0.2; div=0; s=30:120; [call_theta,put_theta]=blstheta(s,x,r,t,sig,div); figure plot(s,call_theta,'-') title('theta vs. s') xlabel('s') ylabel('theta') legend('theta of call')

Plot the variation of gamma with stock price for a call x=50; r=0.05; t=0.5; sig=0.2; div=0; s=30:120; gamma=blsgamma(s,x,r,t,sig,div); figure plot(s,gamma,'-') title('gamma vs. s') xlabel('s') ylabel('gamma') legend('gamma')

Plot the variation of vega with stock price for a call x=50; r=0.05; t=0.5; sig=0.2; div=0; s=30:120; vega=blsvega(s,x,r,t,sig,div); figure plot(s,vega,'-') title('vega vs. s') xlabel('s') ylabel('vega') legend('vega')

Plot the patterns for variation of delta with time to maturity for a call option x=50; r=0.05; t=0.5:20; sig=0.2; div=0; s1=30; [call_delta1,put_delta]=blsdelta(s1,x,r,t,sig,div); s2=50; [call_delta2,put_delta]=blsdelta(s2,x,r,t,sig,div); s3=70; [call_delta3,put_delta]=blsdelta(s3,x,r,t,sig,div); plot(t,call_delta1,'-',t,call_delta2,'-',t,call_delta3,'-') title('Delta vs. t') xlabel('time to maturity ') ylabel('Delta of call') legend('out the money','at the mpney','in the money')

For interest _ call and put delta comparison x=50; r=0.05; t=0.5; sig=0.2; div=0; s=30:80; [call_delta,put_delta]=blsdelta(s,x,r,t,sig,div); change=call_delta-put_delta; figure plot(s,call_delta,'-',s,put_delta,'-',s,change,'-') title('Delta vs. s') xlabel('s') ylabel('Delta') legend('call Delta','put delta','call delta minus put delta') axis([ ]);