The (S3) generic function fptsde3d for simulate first-passage-time (f.p.t) in 3-dim stochastic differential equations.
Usage
fptsde3d(N, ...)
## Default S3 method:
fptsde3d(N = 1000, M = 100, x0 = 0, y0 = 0, z0 = 0, t0 = 0, T = 1, Dt,
boundary, driftx, diffx, drifty, diffy, driftz, diffz, alpha = 0.5, mu = 0.5,
type = c("ito", "str"), method = c("euler", "milstein", "predcorr",
"smilstein", "taylor", "heun", "rk1", "rk2", "rk3"), ...)
## S3 method for class 'fptsde3d'
summary(object, ...)
## S3 method for class 'fptsde3d'
mean(x, ...)
## S3 method for class 'fptsde3d'
median(x, ...)
## S3 method for class 'fptsde3d'
quantile(x, ...)
## S3 method for class 'fptsde3d'
kurtosis(x, ...)
## S3 method for class 'fptsde3d'
skewness(x, ...)
## S3 method for class 'fptsde3d'
moment(x, order = 2, ...)
## S3 method for class 'fptsde3d'
bconfint(x, level=0.95, ...)
## S3 method for class 'fptsde3d'
plot(x, ...)
Arguments
N
size of sde.
M
size of fpt.
x0, y0, z0
initial value of the process X(t), Y(t) and Z(t) at time t0.
t0
initial time.
T
final time.
Dt
time step of the simulation (discretization). If it is missing a default Dt = (T-t0)/N.
boundary
an expression of a constant or time-dependent boundary.
driftx, drifty, driftz
drift coefficient: an expression of four variables t, x, y and z for process X(t), Y(t) and Z(t).
diffx, diffy, diffz
diffusion coefficient: an expression of four variables t, x, y and z for process X(t), Y(t) and Z(t).
alpha, mu
weight of the predictor-corrector scheme; the default alpha = 0.5 and mu = 0.5.
type
sde of the type Ito or Stratonovich.
method
numerical methods of simulation, the default method = "euler"; see snssde3d.
x, object
an object inheriting from class "fptsde3d".
order
order of moment.
level
the confidence level required.
...
further arguments for (non-default) methods.
Details
The function fptsde3d returns a random variable (tau(X(t),S(t)),tau(Y(t),S(t)),tau(Z(t),S(t))) "first passage time", is defined as :
tau(X(t),S(t))={t>=0; X(t) >= S(t)}, if X(t0) < S(t0)
tau(Y(t),S(t))={t>=0; Y(t) >= S(t)}, if Y(t0) < S(t0)
tau(Z(t),S(t))={t>=0; Z(t) >= S(t)}, if Z(t0) < S(t0)
and:
tau(X(t),S(t))={t>=0; X(t) <= S(t)}, if X(t0) > S(t0)
tau(Y(t),S(t))={t>=0; Y(t) <= S(t)}, if Y(t0) > S(t0)
tau(Z(t),S(t))={t>=0; Z(t) <= S(t)}, if Z(t0) > S(t0)
with S(t) is through a continuous boundary (barrier).
Value
fptsde3d returns an object inheriting from class"fptsde3d".
fptx, fpty, fptz
a vector of triplet 'fpt' (tau(X(t),S(t)),tau(Y(t),S(t)),tau(Z(t),S(t))).
Author(s)
A.C. Guidoum, K. Boukhetala.
References
Argyrakisa, P. and G.H. Weiss (2006).
A first-passage time problem for many random walkers.
Physica A. 363, 343–347.
Aytug H., G. J. Koehler (2000).
New stopping criterion for genetic algorithms.
European Journal of Operational Research, 126, 662–674.
Boukhetala, K. (1996)
Modelling and simulation of a dispersion pollutant with attractive centre.
ed by Computational Mechanics Publications, Southampton ,U.K and Computational Mechanics Inc, Boston, USA, 245–252.
Boukhetala, K. (1998a).
Estimation of the first passage time distribution for a simulated diffusion process.
Maghreb Math.Rev, 7(1), 1–25.
Boukhetala, K. (1998b).
Kernel density of the exit time in a simulated diffusion.
les Annales Maghrebines De L ingenieur, 12, 587–589.
Ding, M. and G. Rangarajan. (2004).
First Passage Time Problem: A Fokker-Planck Approach.
New Directions in Statistical Physics. ed by L. T. Wille. Springer. 31–46.
Roman, R.P., Serrano, J. J., Torres, F. (2008).
First-passage-time location function: Application to determine first-passage-time densities in diffusion processes.
Computational Statistics and Data Analysis. 52, 4132–4146.
Roman, R.P., Serrano, J. J., Torres, F. (2012).
An R package for an efficient approximation of first-passage-time densities for diffusion processes based on the FPTL function.
Applied Mathematics and Computation, 218, 8408–8428.
Gardiner, C. W. (1997).
Handbook of Stochastic Methods.
Springer-Verlag, New York.
See Also
fptsde1d for simulation fpt in sde 1-dim.
FPTL for computes values of the first passage time location (FPTL) function, and Approx.fpt.density
for approximate first-passage-time (f.p.t.) density in package fptdApprox.