optimalPoisson | R Documentation |
Generate a sample path of \log X_t
of the Kelly portfolio
under a stock driven by a geometric compensated Poisson process.
optimalPoisson(tt, a, b, lambda, rate = 0, N = 1000)
tt |
maturity to simulate until |
a |
jump size |
b |
compensator size |
lambda |
mean-rate of jumps |
rate |
risk-free rate of return |
N |
number of time-subintervals to take |
The optimal fraction is analytically known through the equation
\lambda/(r+b)-1/(e^a-1)
where the log dynamics follow
X_t=aN_t-bt
, a scaled and compensated Poisson process. A basic
Euler-Maruyama scheme is then used to generate sample paths of both the stock
and the Kelly-portfolio.
data.frame of time, stock, and the portfolio values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.