Ornstein Uhlenbeck Simulations and Descretisation error

版本 1.0.0.0 (708.5 KB) 作者: Ahmos Sansom
Ornstein Uhlenbeck simulations based on simple discretisation and compared to Gillespie solution
890.0 次下载
更新时间 2014/9/2

查看许可证

1. Introduction
The attached matlab code simulates the Ornstein Uhlenbeck process and the example shows how the paths mean revert.

The aim of the script is to highlight how the discretization error in the finite difference approximation affects the results by examining the first and second moments of the expected results.

The simulations from the simple discretisation approach are compared with the Gillespie solution that works for any time step.

2. Running the code

The script:
OrnsteinUhlenbeckControl.m

can be run to show how to the model is initialised that will output several figures highlighting simulations and validation.

The main engines determining the simulations:

Simple discretisation:
OrnsteinUhlenbeck.m

Gillespie solution:
OrnsteinUhlenbeckGillespie.m

Simple discretisation with option to reduce time step:
OrnsteinUhlenbeckReducedTimeStep.m

3. References

[1] “The Stochastic Behaviour of Commodity Prices: Implications for Valuation and Hedging,” E.S. Schwartz, “J. of Finance, V. 52, Issue 3, 1997.

[2] “Exact numerical simulation of the Ornstein-Uhlenbeck process and its integral,” D. T. Gillespie, Physical Review E, August 1996.

引用格式

Ahmos Sansom (2024). Ornstein Uhlenbeck Simulations and Descretisation error (https://www.mathworks.com/matlabcentral/fileexchange/47714-ornstein-uhlenbeck-simulations-and-descretisation-error), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Financial Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0