SDEsim1: A Simulated Diffusion with Sinusoidal Drift and...

Description Usage Format Details Author(s) References Examples

Description

The dataset contains discretely sampled observations for a simulated stochastic differential equation (SDE) with dynamics:

dX_t = 2(5+3sin(0.25pi t)-X_t)dt+0.5sqrt(X_t)dW_t

where dW_t is standard Brownian motion, t is time and X_0 = 7.

Usage

1

Format

A data frame with 401 observations with the following variables:

  1. Xt : A numeric vector of simulated observations.

  2. time : A numeric vector of time nodes at which Xt was observed (time[i+1]-time[i] = 1/4).

Details

The process was simulated by numerically solving the SDE using a Euler-Maruyama scheme with stepsize = 1/2000. Subsequently each 200-th observation was recorded in order to construct the resulting time series.

Author(s)

Etienne A.D. Pienaar: etiannead@gmail.com

References

Updates available on GitHub at https://github.com/eta21.

Examples

1
2
3
4
5
 data(SDEsim1)
 attach(SDEsim1)
 par(mfrow=c(1,1))
 expr1=expression(dX[t]==2*(5+3*sin(0.5*pi*t)-X[t])*dt+0.5*sqrt(X[t])*dW[t])
 plot(Xt~time,type='l',col='blue',xlab='Time (t)',ylab=expression(X[t]),main=expr1)

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

DiffusionRgqd documentation built on May 2, 2019, 3:26 a.m.