Learn R Programming

Sim.DiffProc (version 2.5)

BB: Creating Brownian Bridge Model

Description

Simulation of brownian bridge model.

Usage

BB(N, t0, T, x0, y, output = FALSE)

Arguments

N
size of process.
t0
initial time.
T
final time.
x0
initial value of the process at time t0.
y
terminal value of the process at time T.
output
if output = TRUE write a output to an Excel (.csv).

Value

  • data.frame(time,x) and plot of process.

Details

The function returns a trajectory of the brownian bridge starting at x0 at time t0 and ending at y at time T. It is defined as : $$Xt(t0,x0,T,y) = x0 + W(t-t0) - (t-t0/T-t0)*(W(T-t0)-y+x0)$$ This process is easily simulated using the simulated trajectory of the Wiener process W(t).

See Also

BBF simulation flow of brownian bridge Model, diffBridge Diffusion Bridge Models, BMN simulation brownian motion by the Normal Distribution , BMRW simulation brownian motion by a Random Walk, GBM simulation geometric brownian motion, ABM simulation arithmetic brownian motion, snssde Simulation Numerical Solution of SDE.

Examples

Run this code
##brownian bridge model
##starting at x0 =0 at time t0=0 and ending at y =3 at time T =1.
BB(N=1000,t0=0,T=1,x0=0,y=3)

Run the code above in your browser using DataLab