Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: finance
See also: stockest stockestsim

Quantlet: stocksim
Description: simulates random processes for a stock price by three different ways: 1. using a Wiener Process, 2. using a compounded Poisson Jump Process with a log normal distribution of jump height and 3. using a mixture of both.

Usage: stocksim() or stocksim(S,sigma,tau,rate,shocks,jumps,jumpvola)
Input:
S scalar, starting value of the underlying asset
sigma scalar, volatility (0%-100%)
tau scalar, days to expiration
rate scalar, increasing rate of return
shocks scalar, shocks per day
jumps scalar, expected number of jumps
jumpvola scalar, volatility for the height of the jump (0%-100%)

Note:

Example:
library("finance")
stocksim()

Result:
Invokes an interactive menu where you are asked to specify the stock
features. A display with three random processes will be shown.
The diffusion process is depicted as a black line, the jump process
as a green one and the mixed process as a blue line.
Example:
library("finance")
S        = 200
sigma    = 10.0
tau      = 200
rate     = 5.0
shocks   = 2
jumps    = 20
jumpvola = 0.5
stocksim(S,sigma,tau,rate,shocks,jumps,jumpvola)

Result:
A display showing the three random processes.
The diffusion process is depicted as a black line, the jump process
as a green one and the mixed process as a blue line.



Author: K. Komorad, W. Haerdle, 20020104 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006