Download presentation
Presentation is loading. Please wait.
Published byMadeleine Skinner Modified over 8 years ago
1
Numerical Analysis -Applications to SIR epidemic model and Computational Finance - with MATLAB 2009120347 Jaepil LEE
2
Table of Contents SIR epidemic model Terminology Assumptions Model Formulation Differential Equations Threshold for SIR epidemic MATLAB code Example #1 Example #2 Computational Finance Derivatives Definition Motivation Options Option Pricing Monte Carlo simulation Black-Scholes PDE Closed form Finite difference method Implied Volatility Motivation Methods Volatility Smile MATLAB Simulation Greeks Motivation Delta Vega
3
SIR epidemic model
4
Terminology N : Population The total number of individuals. S(τ) : Susceptible The number of individuals who are not yet infected with the disease at time t. I(τ) : Infected The number of individuals who are infected with the disease. Capable of spreading the disease to people in the susceptible group. R(τ) : Removed The number of individuals who have been infected and then removed from the disease, either due to immunization or due to death. Assumed that they are unable to be infected again or to transmit the infection to others.
5
Assumptions Duration of the epidemic is short, compared to the lifetime of its hosts. → We neglect birth and disease-unrelated death → The population is closed at the constant size N. Once an individual is immune or dead, he or she does not return to the Susceptible group. → Susceptible is monotonically decreasing → Removed is monotonically increasing An individual must be considered as having an equal probability as every other individual of contracting the disease at a rate of β, the infection rate of the disease.
6
Model Formulation – Differential Equations
10
(1,0)
11
Model Formulation – Differential Equations
12
Model Formulation – Threshold for SIR epidemic
13
It is important to find the size of the epidemic, the total umber who will suffer from the disease. This is equal to the number who are eventually in the removed class. We can find this by recalling from the fact that is separable in (u,v,w)-space. This can be rewritten as
14
Model Formulation – Threshold for SIR epidemic Trajectories in the simplex S2 in (u,v,w)-space are found by integrating these equations. We want to know where the trajectory T that starts at the disease-free state (1,0,0) ends up. Integrate and apply the condition that (1,0,0) is on T. Then, This equation is satisfied everywhere on T.
15
Model Formulation – Threshold for SIR epidemic
18
MATLAB code – Example #1
19
MATLAB code – Example #2
20
Computational Finance
21
Derivatives – Definition and Motivation Definition A financial instrument whose value derives from the value of an underlying asset. ex) a future, option, warrant Motivation Hedge Avoid the risk of the volatility of the price change. Ex. Firms using futures to avoid currency change Arbitrage Law of one price If the law breaks, then one take profit from sell high, buy low. Speculation Anticipating the change in price and seek profit from derivatives. High return, but high risk.
22
Derivatives - Options Options The right to buy/sell underlying assets at the exercise price on or before its expiration date. Call : Gives the buyer the right to buy the underlying assets for a specified price(E) at a specified date(T). Put : Gives the buyer the right to sell the underlying assets for a specified price(E) at a specified date(T). American options endorse the holder to exercise the option before the maturity, whereas the European options do not.
23
Derivatives - Options
24
Option Pricing - Monte Carlo Simulation
25
Black-Scholes Partial Differential Equations Assumptions Investors are permitted to short sell stock There are no transaction costs or taxes There are no arbitrage opportunities → Impossible to make risk-free investments at higher return than risk-free rate The underlying stock does not pay dividends Stock can be purchased in any real quantity The daily price change follows the lognormal distribution The transaction is continuously made → The price persistently changes The risk-free interest rate is constant European Option → The options can be exercised only at their maturity
26
Black-Scholes Partial Differential Equations Stock returns are composed of two components Drift rate : The value of a stock will increase with time at a rate μ Volatility : the value of the stock is subject to random variability Ζ Drift rate is based on the expectation that a company will generate a return for investors, so that the stock’s value will necessarily increase over time The price change of a risk-free stock in a time interval Δt could be modeled as follows: ΔS = Sμ Δt
27
Black-Scholes Partial Differential Equations
32
Finite Difference Method Heat equation is one of a few PDEs to have a closed solution However, the solution is applicable for European options. For numerical solutions of other derivatives, such as American options, the following methods are commonly used. Explicit method Implicit method Crank-Nicolson method Here, we can omit the assumption on constant volatility and interest rate.
33
Finite Difference Method The explicit method uses 3 known payoff data to compute 1 unknown payoff at one time step before. (Forward difference) The implicit method uses 1 known payoff data to compute 3 unknown payoffs at one time step before. (Backward difference) Crank-Nicolson method uses 3 known payoff data to compute 3 unknown payoff one time step before.
34
Finite Difference Method
36
Finite Difference Method – Explicit method
37
Finite Difference Method – Implicit method
38
Finite Difference Method – Crank- Nicolson
39
Finite Difference Method – Explicit method
40
Finite Difference Method – Implicit method
41
Finite Difference Method – Crank- Nicolson
42
Finite Difference Method - Comparison
43
Implied Volatility - Motivation
44
Implied Volatility - Methods
45
Implied Volatility – Methods : Trial and Error
46
Implied Volatility – Methods : Newton Method
47
Implied Volatility – Volatility Smile Empirically speaking, the implied volatility and exercise price show a convex curve. This anomaly supports the assumption of the constant volatility and lognormal distributions of the underlying asset returns in the standard Black-Scholes option pricing model.
48
Implied Volatility – MATLAB Simulation 12/04/2015 Closing Price of the Underlying Asset :1,269,000 Company, Maturity, Exercise PriceCurrent PriceUp & DownMarket Price SEC C 201512 880,000( 10)0.00410200.000.00 SEC C 201512 920,000( 10)0.00370200.000.00 SEC C 201512 960,000( 10)0.00330400.000.00 SEC C 201512 980,000( 10)0.00310400.000.00 SEC C 201512 1,000,000( 10)0.00290400.000.00 SEC C 201512 1,050,000( 10)0.00240400.000.00 SEC C 201512 1,100,000( 10)0.00190400.000.00 SEC C 201512 1,150,000( 10)0.00140400.000.00 SEC C 201512 1,200,000( 10)79,400.0012000.0078,400.00 SEC C 201512 1,250,000( 10)28,800.0020800.0035,200.00 SEC C 201512 1,300,000( 10)7,300.009300.008,600.00 SEC C 201512 1,350,000( 10)1,120.002730.001,480.00 SEC C 201512 1,400,000( 10)140.00580.00190.00 SEC C 201512 1,450,000( 10)50.0040.0050.00 SEC C 201512 1,500,000( 10)0.0010.000.00 SEC C 201512 1,550,000( 10)0.0010.000.00 SEC C 201512 1,600,000( 10)0.0010.000.00 SEC C 201512 1,700,000( 10)0.0010.000.00 SEC C 201512 1,800,000( 10)0.0010.000.00 SEC C 201512 1,900,000( 10)0.0010.000.00
49
Implied Volatility – MATLAB Simulation Exercise PriceImplied Volatility 880,0002.4933 920,0002.2627 960,0002.0454 980,0001.9355 1,000,0001.8269 1,050,0001.5599 1,100,0001.2965 1,150,0001.0325 1,200,0000.5181 1,250,0000.3777 1,300,0000.3101 1,350,0000.3164 1,400,0000.3516 1,450,0000.3796 1,500,0000.4247 1,550,0000.5000 1,600,0000.5719 1,700,0000.7071 1,800,0000.8323 1,900,0000.9490
50
Implied Volatility – MATLAB Simulation Volatility Smile
51
Greeks Motivation The price of derivatives are determined by many variables → If we can derive the sensitivity of the price of derivatives to the change of those variables, we can control the sensitivity to our favor. → The Greeks are vital tools in risk management. Some of the sensitivity are so popular and thus named after Greek letters.
52
Delta (Δ)
54
Thank you - Reference - N. Britton, 12/06/2012, Springer Science & Business Media, ‘Essential Mathematical Biology’ D. Hackmann, 12/02/2009 ‘Solving the Black Scholes Equation using a Finite Difference Method’, retrieved from http://math.yorku.ca/~dhackman/BlackScholes7.pdfhttp://math.yorku.ca/~dhackman/BlackScholes7.pdf Kim, et al., Korea University Science Computing Lab, 08/27/2015, ‘Korea University Applied Mathematics’ Kim, et al., Korea University Numerical Analysis Lecture Notes, retrieved from http://wizard.korea.ac.kr/user/indexSub.action?codyMenuSeq=828331&siteId=math& menuType=T&uId=7&sortChar=A&menuFrame=left&linkUrl=7_7.html&mainFrame=ri ght&dum=dum&boardId=845139&page=1&command=view&boardSeq=1516033 http://wizard.korea.ac.kr/user/indexSub.action?codyMenuSeq=828331&siteId=math& menuType=T&uId=7&sortChar=A&menuFrame=left&linkUrl=7_7.html&mainFrame=ri ght&dum=dum&boardId=845139&page=1&command=view&boardSeq=1516033 Deltaquants, Revision sheet for Equity Derivatives, retrieved from http://www.deltaquants.com/revision-sheet-for-equity-derivatives http://www.deltaquants.com/revision-sheet-for-equity-derivatives
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.