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: archest annarchtest bigarch jump lochomest volatility

Quantlet: lochomtest
Description: computes the most recent interval of homogeneity of the volatilities of financial time series data and the local mean relative to this interval.

Reference(s):

Link:
Usage: {xest, hom} = lochomtest(powtr, lambda, mu, m0)
Input:
powtr T x 1 vector, powtr = abs(S)^(0.5) where S is a time series of financial returns
lambda scalar, a smoothing parameter; 0.5 <= lambda <= 4
mu scalar, a smoothing parameter, 0.5 <= mu <= 4
m0 scalar, the grid step; m0 >= 5
Output:
xest T x 1 vector, the estimated volatility
hom T x 1 vector, the estimated interval lengths of homogeneity at each grid point

Example:
library("finance")
x = read("dmus58")
z = x[2:rows(x)] - x[1:rows(x)-1]
powtr = sqrt(abs(z))
lambda = 2
mu = 3
m0 = 18
{xest, hom} = lochomtest(powtr, lambda, mu, m0)
xest
hom

Result:
Contents of xest
[1,]  0.00055794

Contents of hom
[1,]      523



Author: D. Mercurio, W. Haerdle, 20001103 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006