"jumpDiffusion"
contains all information about model defined by the stochastic differential equation (SDE) $dY_t = b(\phi,t,Y_t)dt + s(\gamma^2,t,Y_t)dW_t + h(\theta,t,Y_t)dN_t$ with
$N_t\sim Pois(\Lambda(t, \xi))$ a non-homogeneous Poisson process and $W_t$ a Brownian motion. The SDE is approximated with the Euler Maruyama approximation, which leads, dependent on the Poisson process variables, to a normal likelihood.
For more information how to build the class, see examples in jumpDiffusion-class
and estimate,jumpDiffusion-method
. Estimation is done by a Metropolis-within-Gibbs sampler. For each of the parameters, a Metropolis-Hastings (MH) step is made, where the proposal density can be chosen between normal and lognormal. A proposal standard deviation can be chosen, which, if desired, is adapted after every 50 iterations, see Rosenthal (2011). In the case of unobserved variables of the Poisson process, one step of the Gibbs sampler is filtering of the unobserved jump process. Details can be found in Hermann and Ruggeri (2016) or Hermann (2016a).m.phi
(mean) and v.phi
(variance), m.thetaT
(mean) and v.thetaT
(variance) respectively. $\gamma^2$ is assumed to have an inverse gamma distribution with parameters alpha.gamma
and beta.gamma
. An example how to build the model class can be found in Merton-class
and estimate,Merton-method
. Estimation is similar to the jump diffusion process based on the Euler approximation. The difference is that for the parameters with conjugate priors, no MH step is necessary and drawing from the full conditional posterior is possible.alpha.gamma
and beta.gamma
) in this case. For $\phi$, a normal prior with parameters m.phi
(mean) and v.phi
(variance) is assumed. An example can be found in Diffusion-class
and estimate,Diffusion-method
. A Gibbs sampler with an MH step for $\phi$ and one step drawing from the full conditional of $\gamma^2$ is implemented. For $\phi$, the proposal density can be chosen, "normal"
or "lognormal"
and the proposal standard deviation, with the option to adapt, as well.m.mu
and v.mu
) is conjugate. For each diagonal element of $\Omega$, an inverse gamma prior (parameters: alpha.omega
and beta.omega
) is conjugate. Further information can be found in mixedDiffusion-class
and estimate,mixedDiffusion-method
. A Gibbs sampler with an MH step for each random effect and each one step drawing from the full conditionals of $\mu, \Omega$ and $\gamma^2$ is implemented.alpha.sigma
and beta.sigma
.
The diffusion process is a latent variable and has also to be estimated. A conditional sequential Monte Carlo (SMC) approach is implemented. For further details see Andrieu et al. (2010).
Examples can be found in hiddenDiffusion-class
and estimate,hiddenDiffusion-method
hiddenmixedDiffusion-class
and estimate,hiddenmixedDiffusion-method
.jumpRegression-class
and estimate,jumpRegression-method
.NHPP-class
and estimate,NHPP-method
.Regression-class
and estimate,Regression-method
.mixedRegression-class
and estimate,mixedRegression-method
.Package: |
BaPreStoPro |
Type: |
Package |
Version: |
1.0 |
Date: |
2016-06-07 |
License: |
GLP-2, GLP-3 |
"jumpDiffusion"
, "Merton"
, "Diffusion"
, "mixedDiffusion"
, "hiddenDiffusion"
, "hiddenmixedDiffusion"
, "jumpRegression"
, "NHPP"
, "Regression"
, "mixedRegression"
, created with the function set.to.class
. For each of the model classes, a method simulate
and estimate
are provided. The output of method estimate
is a new class object with the prefix "est.". For the estimation classes, methods plot
and predict
are available. An overview of the package can be found in Hermann (2016a) and theoretical details to the prediction procedures in Hermann (2016b).
Hermann, S. (2016b). Bayesian Prediction for Stochastic Processes based on the Euler Approximation Scheme. SFB 823 discussion paper 27/16.
Hermann, S., K. Ickstadt and C. H. Mueller (2016). Bayesian Prediction of Crack Growth Based on a Hierarchical Diffusion Model. Applied Stochastic Models in Business and Industry, DOI: 10.1002/asmb.2175.
Hermann, S. and F. Ruggeri (2016). Modelling Wear in Cylinder Liners. SFB 823 discussion paper 06/16.
Hermann, S., K. Ickstadt, and C. H. Mueller (2015). Bayesian Prediction for a Jump Diffusion Process with Application to Crack Growth in Fatigue Experiments. SFB 823 discussion paper 30/15.
Heeke, G., S. Hermann, R. Maurer, K. Ickstadt, and C. H. Mueller (2015). Stochastic Modeling and Statistical Analysis of Fatigue Tests on Prestressed Concrete Beams under Cyclic Loadings. SFB 823 discussion paper 25/15.
Monte Carlo methods:
Robert, C. P. and G. Casella (2004). Monte Carlo Statistical Methods. Springer, New York.
Adaptive MCMC:
Rosenthal, J. S. (2011). Optimal Proposal Distributions and Adaptive MCMC. In: Handbook of Markov Chain Monte Carlo, pp. 93-112.
particel Gibbs / SMC:
Andrieu, C., A. Doucet and R. Holenstein (2010). Particle Markov Chain Monte Carlo Methods. Journal of the Royal Statistical Society B 72, pp. 269-342.
model <- set.to.class("Diffusion", parameter = list(phi = 0.5, gamma2 = 0.01))
t <- seq(0, 1, by = 0.1)
data <- simulate(model, t = t, y0 = 0.5, plot.series = TRUE)
est <- estimate(model, t, data, 10) # better: 10000
plot(est)
pred <- predict(est)
Run the code above in your browser using DataLab