Description Details Author(s) References
Simulating stock market prices and returns can be accomplished using a number of techniques. Most commonly, geometric brownian motion (aka a random walk) is used to simulate stock prices. Using this technique results in a normal distribution of price returns. As an alternative technique, it is possible to generate price series using fractals. The advantage is that price returns tend to have volatility that clusters, similar to actual returns.
The basic principle driving fractal generation of time series is that data is generated iteratively based on increasing levels of resolution. The initial series is defined by a so-called initiator pattern and then generators are used to replace each segment of the initial pattern. Regular, repeatable patterns can be produced by using the same seed and generators. By using a set of generators, non-repeatable time series can be produced. This technique is the basis of the fractal time series process in this package.
To generate a set of asset prices, the function
rprices
is the most direct way to accomplish this.
An xts object will be returned with one time series per 'asset' provided.
In addition, the dates will be coerced
to fit a given business day calendar based on timeDate.
Investigation into fractals via this package is best accomplished
by calling the underlying rfractal
function.
This function produces raw values
useful for analysis of the fractal generation process.
Package: | fractalrock |
Type: | Package |
Version: | 1.4 |
Date: | 2016-08-17 |
License: | LGPL-3 |
LazyLoad: | yes |
Brian Lee Yung Rowe <r@zatonovo.com>
M. Frame, B. Mandelbrot, N. Neger. Fractal Geometry. 2009. http://classes.yale.edu/fractals/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.