SlideShare a Scribd company logo
1 of 26
Monte Carlo Simulation of Heston Model  in MATLAB GUI and its Application to Options BACHELOR THESIS IN MATHEMATICS /APPLIED MATHEMATICS DEPARTMENT OF MATHEMATICS AND PHYSICS MÄLARDALEN UNIVERSITY Author Amir Kheirollah Supervisor Robin Lundgren Examiner Dmitrii Silvestrov
Abstract ,[object Object],[object Object],[object Object],[object Object],[object Object]
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Theoretical Background ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Monte Carlo Simulation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],The method samples  randomly  from a universe of possible outcomes and takes  the fraction of random draws  that fall in a given set as an estimate of the set’s measure. The Law of Large Numbers  guarantees the  convergence  of the  estimation to the correct value as the number of draws increases.
An Overview on Black-Scholes Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Heston Model – Genral Form of SDEs ,[object Object],[object Object],[object Object],[object Object],(1) (2)
The Heston Model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],(3) (4)
The Heston Model   ,[object Object],[object Object],[object Object],W 1  and  W 2 In equations (3) and (4) Replaced by  Where epsilons are correlated  (5) (6)
The Heston Model – Discretization Versus Randomization ,[object Object],[object Object],[object Object],ε  = Ax + µ (7)
The Heston Model – Mean Reversion   ,[object Object],[object Object],[object Object]
The Heston Model – Application of Monte Carlo Simulation and Cholesky Decomposition ,[object Object],[object Object]
The Heston Model – Application of Monte Carlo Simulation and Cholesky Decomposition ,[object Object],[object Object],[object Object],[object Object],[object Object]
Options under Study ,[object Object],[object Object],[object Object],[object Object],[object Object],1) 2) 3) where
Empirical Investigation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Empirical Investigation – The Table   Table 1:  Data for Empirical Investigation Category Number of Iterations Black-Scholes (BLS) Price Heston Model Price Heston Model STD Heston Model MIN Heston Model MAX Heston Model COV Heston Model’s Relative Error from BLS 1 10 11,0666 11,3257 1,2997 7,8744 14,0729 1,6893 0,023413 2 100 11,0666 11,0667 0,4381 10,0278 12,2727 0,1919 9,04E-06 3 1000 11,0666 11,0632 0,1146 10,6927 11,2826 0,0131 0,000307 4 5000 11,0666 11,067 0,0567 10,9516 11,2267 0,0032 3,61E-05 5 10000 11,0666 11,0568 0,0402 10,9635 11,1486 0,0016 0,000886 6 25000 11,0666 11,0599 0,023 11,0006 11,1159 5,30E-04 0,000605 7 50000 11,0666 11,0601 0,0156 11,0249 11,0929 2,44E-04 0,000587
Empirical Investigation ,[object Object],[object Object],[object Object],[object Object],European call option priced by both methods.   As number of iterations increases  the price of Heston Model converges To price obtaind by Black-Scholes.
Empirical Investigation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Standard Deviation
Empirical Investigation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Relative Error of Heston Model from Black-Scholes Model   Covariance Between Prices Respective Number of Iterations.
Empirical Investigation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Empirical Investigation Data for Empirical Investigation   ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],10000 Iterations Price STD MIN MAX Asian Option 11,03488 0,025823128 10,972 11,095 Look Back Option 14,06824 0,028532498 14,001 14,139 European Call Option 11,05677 0,04028882 10,963 11,149
MATLAB GUI Manual – Graphical Representation Opening window of the program HestonGUI.
MATLAB GUI Manual – User Manual The pattern considered in example.
MATLAB GUI Manual – User Manual ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MATLAB GUI Manual – Error-dialogue Windows Error-dialogue declaring the input can not be  negative or non-numeric.   Error-dialogue declaring the input can not be  taken other than the interval.   Error-dialogue declaring the input can not take zero,  non-numeric or negative values. Error-dialogue windows of the program.
Conclusion ,[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية 2017 ...
ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية  2017   ...ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية  2017   ...
ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية 2017 ...moeiraqi.org
 
PR-284: End-to-End Object Detection with Transformers(DETR)
PR-284: End-to-End Object Detection with Transformers(DETR)PR-284: End-to-End Object Detection with Transformers(DETR)
PR-284: End-to-End Object Detection with Transformers(DETR)Jinwon Lee
 
The monte carlo method
The monte carlo methodThe monte carlo method
The monte carlo methodSaurabh Sood
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...Simplilearn
 
Diffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modelingDiffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modelingJeremyHeng10
 
Faster R-CNN - PR012
Faster R-CNN - PR012Faster R-CNN - PR012
Faster R-CNN - PR012Jinwon Lee
 
ملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميد
ملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميدملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميد
ملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميدmoeiraqi.org
 
Chapter 16 depreciation methods
Chapter 16   depreciation methodsChapter 16   depreciation methods
Chapter 16 depreciation methodsBich Lien Pham
 
operation research-modi
operation research-modioperation research-modi
operation research-modiMaharshi Soni
 
Deep learning (Machine learning) tutorial for beginners
Deep learning (Machine learning) tutorial for beginnersDeep learning (Machine learning) tutorial for beginners
Deep learning (Machine learning) tutorial for beginnersTerry Taewoong Um
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulationRajesh Piryani
 
Gmm chapter6
Gmm chapter6Gmm chapter6
Gmm chapter6tinfah
 
Speech Separation under Reverberant Condition.pdf
Speech Separation under Reverberant Condition.pdfSpeech Separation under Reverberant Condition.pdf
Speech Separation under Reverberant Condition.pdfssuser849b73
 
Domain Transfer and Adaptation Survey
Domain Transfer and Adaptation SurveyDomain Transfer and Adaptation Survey
Domain Transfer and Adaptation SurveySangwoo Mo
 
Forest fire detection & alarm thermal imaging camera
Forest fire detection & alarm thermal imaging camera  Forest fire detection & alarm thermal imaging camera
Forest fire detection & alarm thermal imaging camera Elsa Wang
 
Deformable DETR Review [CDM]
Deformable DETR Review [CDM]Deformable DETR Review [CDM]
Deformable DETR Review [CDM]Dongmin Choi
 

What's hot (20)

The Perceptron (D1L2 Deep Learning for Speech and Language)
The Perceptron (D1L2 Deep Learning for Speech and Language)The Perceptron (D1L2 Deep Learning for Speech and Language)
The Perceptron (D1L2 Deep Learning for Speech and Language)
 
ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية 2017 ...
ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية  2017   ...ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية  2017   ...
ملزمة الرياضيات السادس العلمي التطبيقي الفصل الثاني القطوع المخروطية 2017 ...
 
PR-284: End-to-End Object Detection with Transformers(DETR)
PR-284: End-to-End Object Detection with Transformers(DETR)PR-284: End-to-End Object Detection with Transformers(DETR)
PR-284: End-to-End Object Detection with Transformers(DETR)
 
The monte carlo method
The monte carlo methodThe monte carlo method
The monte carlo method
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
 
Diffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modelingDiffusion Schrödinger bridges for score-based generative modeling
Diffusion Schrödinger bridges for score-based generative modeling
 
Faster R-CNN - PR012
Faster R-CNN - PR012Faster R-CNN - PR012
Faster R-CNN - PR012
 
ملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميد
ملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميدملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميد
ملزمة الرياضيات السادس العلمي الأحيائي الفصل الخامس 2017 الأستاذ علي حميد
 
Chapter 16 depreciation methods
Chapter 16   depreciation methodsChapter 16   depreciation methods
Chapter 16 depreciation methods
 
Kg2 arabic
Kg2 arabicKg2 arabic
Kg2 arabic
 
operation research-modi
operation research-modioperation research-modi
operation research-modi
 
Deep learning (Machine learning) tutorial for beginners
Deep learning (Machine learning) tutorial for beginnersDeep learning (Machine learning) tutorial for beginners
Deep learning (Machine learning) tutorial for beginners
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 
Gmm chapter6
Gmm chapter6Gmm chapter6
Gmm chapter6
 
Introduction of Faster R-CNN
Introduction of Faster R-CNNIntroduction of Faster R-CNN
Introduction of Faster R-CNN
 
Speech Separation under Reverberant Condition.pdf
Speech Separation under Reverberant Condition.pdfSpeech Separation under Reverberant Condition.pdf
Speech Separation under Reverberant Condition.pdf
 
Domain Transfer and Adaptation Survey
Domain Transfer and Adaptation SurveyDomain Transfer and Adaptation Survey
Domain Transfer and Adaptation Survey
 
Forest fire detection & alarm thermal imaging camera
Forest fire detection & alarm thermal imaging camera  Forest fire detection & alarm thermal imaging camera
Forest fire detection & alarm thermal imaging camera
 
Vam
VamVam
Vam
 
Deformable DETR Review [CDM]
Deformable DETR Review [CDM]Deformable DETR Review [CDM]
Deformable DETR Review [CDM]
 

Viewers also liked

Efficient Monte Carlo Pricer
Efficient Monte Carlo PricerEfficient Monte Carlo Pricer
Efficient Monte Carlo Pricerpablenchii
 
Pricing American Options - Duality approach in Monte Carlo
Pricing American Options - Duality approach in Monte CarloPricing American Options - Duality approach in Monte Carlo
Pricing American Options - Duality approach in Monte CarloIlnaz Asadzadeh
 
Laboratory manual
Laboratory manualLaboratory manual
Laboratory manualAsif Rana
 
Fractals and symmetry group 3
Fractals and symmetry   group 3Fractals and symmetry   group 3
Fractals and symmetry group 3Leiko Ravelo
 
Actuarial Application of Monte Carlo Simulation
Actuarial Application of Monte Carlo Simulation Actuarial Application of Monte Carlo Simulation
Actuarial Application of Monte Carlo Simulation Adam Conrad
 
Monte carlo option pricing final v3
Monte carlo option pricing final v3Monte carlo option pricing final v3
Monte carlo option pricing final v3naojan
 
Probability and random processes project based learning template.pdf
Probability and random processes project based learning template.pdfProbability and random processes project based learning template.pdf
Probability and random processes project based learning template.pdfVedant Srivastava
 
Testing Long Memory in Stock Market Return and Volatility during Global Finan...
Testing Long Memory in Stock Market Return and Volatility during Global Finan...Testing Long Memory in Stock Market Return and Volatility during Global Finan...
Testing Long Memory in Stock Market Return and Volatility during Global Finan...Amir Kheirollah
 
Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)
Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)
Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)Fynn McKay
 
Ch9 failure mechanisms
Ch9 failure mechanismsCh9 failure mechanisms
Ch9 failure mechanismsdhyun
 
Signal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABSignal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABEmbedded Plus Trichy
 
Tp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlabTp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlabhamdinho
 
La technique de transmission OFDM
La technique de transmission OFDMLa technique de transmission OFDM
La technique de transmission OFDMChiheb Ouaghlani
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to MatlabAmr Rashed
 
Intro matlab and convolution islam
Intro matlab and convolution islamIntro matlab and convolution islam
Intro matlab and convolution islamIslam Alabbasy
 

Viewers also liked (20)

Efficient Monte Carlo Pricer
Efficient Monte Carlo PricerEfficient Monte Carlo Pricer
Efficient Monte Carlo Pricer
 
Correlation
CorrelationCorrelation
Correlation
 
Pricing American Options - Duality approach in Monte Carlo
Pricing American Options - Duality approach in Monte CarloPricing American Options - Duality approach in Monte Carlo
Pricing American Options - Duality approach in Monte Carlo
 
Laboratory manual
Laboratory manualLaboratory manual
Laboratory manual
 
Thesis_PPT
Thesis_PPTThesis_PPT
Thesis_PPT
 
Fractals and symmetry group 3
Fractals and symmetry   group 3Fractals and symmetry   group 3
Fractals and symmetry group 3
 
Actuarial Application of Monte Carlo Simulation
Actuarial Application of Monte Carlo Simulation Actuarial Application of Monte Carlo Simulation
Actuarial Application of Monte Carlo Simulation
 
Monte carlo option pricing final v3
Monte carlo option pricing final v3Monte carlo option pricing final v3
Monte carlo option pricing final v3
 
Probability and random processes project based learning template.pdf
Probability and random processes project based learning template.pdfProbability and random processes project based learning template.pdf
Probability and random processes project based learning template.pdf
 
Testing Long Memory in Stock Market Return and Volatility during Global Finan...
Testing Long Memory in Stock Market Return and Volatility during Global Finan...Testing Long Memory in Stock Market Return and Volatility during Global Finan...
Testing Long Memory in Stock Market Return and Volatility during Global Finan...
 
Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)
Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)
Solution to Black-Scholes P.D.E. via Finite Difference Methods (MatLab)
 
Simulation methods finance_1
Simulation methods finance_1Simulation methods finance_1
Simulation methods finance_1
 
Ch9 failure mechanisms
Ch9 failure mechanismsCh9 failure mechanisms
Ch9 failure mechanisms
 
GUI in Matlab - 1
GUI in Matlab - 1GUI in Matlab - 1
GUI in Matlab - 1
 
Signal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLABSignal and image processing on satellite communication using MATLAB
Signal and image processing on satellite communication using MATLAB
 
Tp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlabTp 1 transmission de donné inisiallisation à simulink matlab
Tp 1 transmission de donné inisiallisation à simulink matlab
 
chap5 modulations
chap5 modulationschap5 modulations
chap5 modulations
 
La technique de transmission OFDM
La technique de transmission OFDMLa technique de transmission OFDM
La technique de transmission OFDM
 
Introduction to Matlab
Introduction to MatlabIntroduction to Matlab
Introduction to Matlab
 
Intro matlab and convolution islam
Intro matlab and convolution islamIntro matlab and convolution islam
Intro matlab and convolution islam
 

Similar to Monte Carlo Simulation Of Heston Model In Matlab(1)

Prob and statistics models for outlier detection
Prob and statistics models for outlier detectionProb and statistics models for outlier detection
Prob and statistics models for outlier detectionTrilochan Panigrahi
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesFellowBuddy.com
 
Monte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained OptionMonte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained Optioninventionjournals
 
Monte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained OptionMonte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained Optioninventionjournals
 
A probabilistic monte carlo model for pricing discrete barrier
A probabilistic monte carlo model for pricing discrete barrierA probabilistic monte carlo model for pricing discrete barrier
A probabilistic monte carlo model for pricing discrete barrierAlexander Decker
 
Monte carlo-simulation
Monte carlo-simulationMonte carlo-simulation
Monte carlo-simulationjaimarbustos
 
Simulation Study of Hurdle Model Performance on Zero Inflated Count Data
Simulation Study of Hurdle Model Performance on Zero Inflated Count DataSimulation Study of Hurdle Model Performance on Zero Inflated Count Data
Simulation Study of Hurdle Model Performance on Zero Inflated Count DataIan Camacho
 
Chapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptxChapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptxFarah Amir
 
Normality_assumption_for_the_log_re.pdf
Normality_assumption_for_the_log_re.pdfNormality_assumption_for_the_log_re.pdf
Normality_assumption_for_the_log_re.pdfVasudha Singh
 
Christopher Johnson Bachelor's Thesis
Christopher Johnson Bachelor's ThesisChristopher Johnson Bachelor's Thesis
Christopher Johnson Bachelor's ThesisBagpipesJohnson
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
CFM Challenge - Course Project
CFM Challenge - Course ProjectCFM Challenge - Course Project
CFM Challenge - Course ProjectKhalilBergaoui
 
Study_Pricing_Digital_Call_Options
Study_Pricing_Digital_Call_OptionsStudy_Pricing_Digital_Call_Options
Study_Pricing_Digital_Call_OptionsBruce Haydon, PMP
 

Similar to Monte Carlo Simulation Of Heston Model In Matlab(1) (20)

Prob and statistics models for outlier detection
Prob and statistics models for outlier detectionProb and statistics models for outlier detection
Prob and statistics models for outlier detection
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture Notes
 
P1
P1P1
P1
 
Monte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained OptionMonte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained Option
 
Monte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained OptionMonte Carlo Simulation with Variance Reduction Methods for Chained Option
Monte Carlo Simulation with Variance Reduction Methods for Chained Option
 
A probabilistic monte carlo model for pricing discrete barrier
A probabilistic monte carlo model for pricing discrete barrierA probabilistic monte carlo model for pricing discrete barrier
A probabilistic monte carlo model for pricing discrete barrier
 
panel data.ppt
panel data.pptpanel data.ppt
panel data.ppt
 
Monte carlo-simulation
Monte carlo-simulationMonte carlo-simulation
Monte carlo-simulation
 
Simulation Study of Hurdle Model Performance on Zero Inflated Count Data
Simulation Study of Hurdle Model Performance on Zero Inflated Count DataSimulation Study of Hurdle Model Performance on Zero Inflated Count Data
Simulation Study of Hurdle Model Performance on Zero Inflated Count Data
 
Paper473
Paper473Paper473
Paper473
 
Chapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptxChapter 06 - Heteroskedasticity.pptx
Chapter 06 - Heteroskedasticity.pptx
 
Normality_assumption_for_the_log_re.pdf
Normality_assumption_for_the_log_re.pdfNormality_assumption_for_the_log_re.pdf
Normality_assumption_for_the_log_re.pdf
 
Christopher Johnson Bachelor's Thesis
Christopher Johnson Bachelor's ThesisChristopher Johnson Bachelor's Thesis
Christopher Johnson Bachelor's Thesis
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
CFM Challenge - Course Project
CFM Challenge - Course ProjectCFM Challenge - Course Project
CFM Challenge - Course Project
 
Study_Pricing_Digital_Call_Options
Study_Pricing_Digital_Call_OptionsStudy_Pricing_Digital_Call_Options
Study_Pricing_Digital_Call_Options
 
Week08.pdf
Week08.pdfWeek08.pdf
Week08.pdf
 
Crude Oil Levy
Crude Oil LevyCrude Oil Levy
Crude Oil Levy
 
Lecture6 xing
Lecture6 xingLecture6 xing
Lecture6 xing
 
Simulation notes
Simulation notesSimulation notes
Simulation notes
 

Monte Carlo Simulation Of Heston Model In Matlab(1)

  • 1. Monte Carlo Simulation of Heston Model in MATLAB GUI and its Application to Options BACHELOR THESIS IN MATHEMATICS /APPLIED MATHEMATICS DEPARTMENT OF MATHEMATICS AND PHYSICS MÄLARDALEN UNIVERSITY Author Amir Kheirollah Supervisor Robin Lundgren Examiner Dmitrii Silvestrov
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. Empirical Investigation – The Table   Table 1: Data for Empirical Investigation Category Number of Iterations Black-Scholes (BLS) Price Heston Model Price Heston Model STD Heston Model MIN Heston Model MAX Heston Model COV Heston Model’s Relative Error from BLS 1 10 11,0666 11,3257 1,2997 7,8744 14,0729 1,6893 0,023413 2 100 11,0666 11,0667 0,4381 10,0278 12,2727 0,1919 9,04E-06 3 1000 11,0666 11,0632 0,1146 10,6927 11,2826 0,0131 0,000307 4 5000 11,0666 11,067 0,0567 10,9516 11,2267 0,0032 3,61E-05 5 10000 11,0666 11,0568 0,0402 10,9635 11,1486 0,0016 0,000886 6 25000 11,0666 11,0599 0,023 11,0006 11,1159 5,30E-04 0,000605 7 50000 11,0666 11,0601 0,0156 11,0249 11,0929 2,44E-04 0,000587
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. MATLAB GUI Manual – Graphical Representation Opening window of the program HestonGUI.
  • 23. MATLAB GUI Manual – User Manual The pattern considered in example.
  • 24.
  • 25. MATLAB GUI Manual – Error-dialogue Windows Error-dialogue declaring the input can not be negative or non-numeric. Error-dialogue declaring the input can not be taken other than the interval. Error-dialogue declaring the input can not take zero, non-numeric or negative values. Error-dialogue windows of the program.
  • 26.