View source: R/ospProbDesign.R
osp.fixed.design | R Documentation |
RMC based on a batched non-adaptive design with a variety of regression methods
osp.fixed.design(
model,
input.domain = NULL,
method = "km",
inTheMoney.thresh = 0,
stop.freq = model$dt
)
model |
a list containing all the model parameters, see Details. |
input.domain |
the domain of the emulator. Several options are available. Default in
|
method |
regression method to use (defaults to
|
inTheMoney.thresh |
which paths are kept, out-of-the-money is dropped.
Defines threshold in terms of |
stop.freq |
*experimental, currently disabled* frequency of stopping decisions (default is |
The design can be replicated through batch.nrep
model parameter. Replication allows to use
nonparametric techniques which would be too expensive otherwise, in particular LOESS, GP and RVM.
All designs are restricted to in-the-money region, see inTheMoney.thresh
parameter (modify at your own risk)
Thus, actual design size will be smaller than specified. By default, no forward evaluation is provided, i.e. the
method only builds the emulators. Thus, to obtain an actual estimate of the option price
combine with forward.sim.policy
.
a list containing:
fit
a list containing all the models generated at each time-step. fit[[1]]
is the emulator
at t=\Delta t
, the last one is fit[[M-1]]
which is emulator for T-\Delta t
.
timeElapsed
: total running time based on Sys.time
Mike Ludkovski
set.seed(1)
model2d <- list(K=40,x0=rep(40,2),sigma=rep(0.2,2),r=0.06,div=0,
T=1,dt=0.04,dim=2, sim.func=sim.gbm, payoff.func=put.payoff,pilot.nsims=1000,
batch.nrep=100,kernel.family="matern5_2",N=400)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.