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: times
See also: hurst lo kpss

Quantlet: fracbrown
Description: calculates the singular value decomposition of the covariance matrix of a fractional Brownian motion.

Reference(s):

Usage: sv=fracbrown(p,nu,alpha)
Input:
p scalar, temporal scale factor
nu scalar, the resulting matrix is a (2*p*nu+1) matrix
alpha scalar, coefficient of the fractional Brownian motion
Output:
sv (2*p*nu+1)x(2*p*nu+1) matrix, singular value decomposition of the covariance matrix of a fractional Brownian motion with coefficient alpha

Note:

Example:
library("times")
func("fracbrown.xpl")	// load quantlet
func("hurst.xpl")	// load quantlet
randomize(234)
p=1
nu = 50
alpha = 1.5
// simulate frac. BM
x=fracbrown(p,nu,alpha)*normal(2*p*nu+1)
dim(x)			// 2*p*nu+1
h=hurst(x,12)
2*h.b[2]		// estimate alpha

Result:
Contents of dim
[1,]      101
Contents of _tmp
[1,]   1.5237



Author: W. Haerdle, T. Kleinow, 20010503 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006