Article Menu |
Ornstein-Uhlenbeck processby M.A. (Thijs) van den Berg The Ornstein-Uhlenbeck process is the most widely used mean reverting stochastic process in financial modeling, especially in interest rates and commodities.
[edit] DefinitionThe stochastic differential equation for the Ornstein-Uhlenbeck process is given by with
[edit] Long term behavior
The long term mean Long term variance Long term standard deviation Covariance between the price at two moments in time [edit] Simulating the Ornstein-Uhlenbeck processThe Ornstein-Uhlenbeck stochastic process has an exact solution which allows you to simulate with arbitrary time steps. with
[edit] Matlab code ExampleThe following Matlab function return a random Ornstein Uhlenbeck path. The function returns a vector on n+1 elements, the first element being S0. function S = OU_Simulate(S0, dT, n, mu, sigma, lambda) a = exp(-lambda*dT); b = mu*(1-a); c = sigma*sqrt((1-a*a)/2/lambda); S = [S0 filter(1,[1 -a], b+c*randn(1,n), a*S0)]; end [edit] Simulating Multivariate Ornstein-Uhlenbeck processThe simulation is easily extended to a multivariate case. with
[edit] CalibratingAssuming you have a sequence of historical data S0,SΔ,S2Δ,..., the calibration the Ornstein-Uhlenbeck model to historical data is done by fitting a linear regression between consecutive values. The model parameters can then be recovered using the following equations. with [edit] Alternative Calibration methodsA more detailed article on calibrating the Ornstein-Uhlenbeck model can be found here calibrating the Ornstein-Uhlenbeck model » |


the standard deviation of the residual of the linear fit.