# Hurst exponent

The Hurst exponent is used as a measure of long-term memory of time series. It relates to the autocorrelations of the time series, and the rate at which these decrease as the lag between pairs of values increases. Studies involving the Hurst exponent were originally developed in hydrology for the practical matter of determining optimum dam sizing for the Nile river's volatile rain and drought conditions that had been observed over a long period of time. The name "Hurst exponent", or "Hurst coefficient", derives from Harold Edwin Hurst (1880–1978), who was the lead researcher in these studies; the use of the standard notation H for the coefficient also relates to his name.
In fractal geometry, the generalized Hurst exponent has been denoted by H or H$_q$ in honor of both Harold Edwin Hurst and Ludwig Otto Hölder (1859–1937) by Benoît Mandelbrot (1924–2010). H is directly related to fractal dimension, D, and is a measure of a data series' "mild" or "wild" randomness.
The Hurst exponent is referred to as the "index of dependence" or "index of long-range dependence". It quantifies the relative tendency of a time series either to regress strongly to the mean or to cluster in a direction. A value H in the range 0.5–1 indicates a time series with long-term positive autocorrelation, meaning that the decay in autocorrelation is slower than exponential, following a power law; for the series it means that a high value tends to be followed by another high value and that future excursions to more high values do occur. A value in the range 0 – 0.5 indicates a time series with long-term switching between high and low values in adjacent pairs, meaning that a single high value will probably be followed by a low value and that the value after that will tend to be high, with this tendency to switch between high and low values lasting a long time into the future, also following a power law. A value of H=0.5 indicates short-memory, with (absolute) autocorrelations decaying exponentially quickly to zero.

## Definition

The Hurst exponent, H, is defined in terms of the asymptotic behaviour of the rescaled range as a function of the time span of a time series as follows;
$\mathbb {E} \left[{\frac {R(n)}{S(n)}}\right]=Cn^{H}{\text{ as }}n\to \infty \,,$ where
* $R(n)$ is the range of the first $n$ cumulative deviations from the mean
* $S(n)$ is the series (sum) of the first n standard deviations
* $\mathbb {E} \left[x\right]\,$ is the expected value
* $n$ is the time span of the observation (number of data points in a time series)
* $C$ is a constant.

## Relation to Fractal Dimension

For self-similar time series, H is directly related to fractal dimension, D, where 1 < D < 2, such that D = 2 - H. The values of the Hurst exponent vary between 0 and 1, with higher values indicating a smoother trend, less volatility, and less roughness.
For more general time series or multi-dimensional process, the Hurst exponent and fractal dimension can be chosen independently, as the Hurst exponent represents structure over asymptotically longer periods, while fractal dimension represents structure over asymptotically shorter periods.

## Estimating the exponent

A number of estimators of long-range dependence have been proposed in the literature. The oldest and best-known is the so-called rescaled range (R/S) analysis popularized by Mandelbrot and Wallis and based on previous hydrological findings of Hurst. Alternatives include DFA, Periodogram regression, aggregated variances, local Whittle's estimator, wavelet analysis, both in the time domain and frequency domain.

### Rescaled range (R/S) analysis

To estimate the Hurst exponent, one must first estimate the dependence of the rescaled range on the time span n of observation. A time series of full length N is divided into a number of nonoverlapping shorter time series of length n, where n takes values N, N/2, N/4, ... (in the convenient case that N is a power of 2). The average rescaled range is then calculated for each value of n.
For each such time series of length $n$, $X=X_{1},X_{2},\dots ,X_{n}\,$, the rescaled range is calculated as follows:
* Calculate the mean; $m={\frac {1}{n}}\sum _{i=1}^{n}X_{i}\,.$
* Create a mean-adjusted series; $Y_{t}=X_{t}-m\quad {\text{ for }}t=1,2,\dots ,n\,.$
* Calculate the cumulative deviate series $Z$; $Z_{t}=\sum _{i=1}^{t}Y_{i}\quad {\text{ for }}t=1,2,\dots ,n\,.$
* Compute the range $R$; $R(n)=\operatorname {max} \left(Z_{1},Z_{2},\dots ,Z_{n}\right)-\operatorname {min} \left(Z_{1},Z_{2},\dots ,Z_{n}\right).$
* Compute the standard deviation $S$; $S(n)={\sqrt {{\frac {1}{n}}\sum _{i=1}^{n}\left(X_{i}-m\right)^{2}}}.$
* Calculate the rescaled range $R(n)/S(n)$ and average over all the partial time series of length $n.$
The Hurst exponent is estimated by fitting the power law $\mathbb {E} [R(n)/S(n)]=Cn^{H}$ to the data. This can be done by plotting $\log[R(n)/S(n)]$ as a function of $\log n$, and fitting a straight line; the slope of the line gives $H$. A more principled approach would be to fit the power law in a maximum-likelihood fashion. Such a graph is called a box plot. However, this approach is known to produce biased estimates of the power-law exponent. For small $n$ there is a significant deviation from the 0.5 slope. Anis and Lloyd estimated the theoretical (i.e., for white noise) values of the R/S statistic to be:
$\mathbb {E} [R(n)/S(n)]={\begin{cases}{\frac {\Gamma ({\frac {n-1}{2}})}{{\sqrt {\pi }}\Gamma ({\frac {n}{2}})}}\sum \limits _{i=1}^{n-1}{\sqrt {\frac {n-i}{i}}},&{\text{for }}n\leq 340\\{\frac {1}{\sqrt {n{\frac {\pi }{2}}}}}\sum \limits _{i=1}^{n-1}{\sqrt {\frac {n-i}{i}}},&{\text{for }}n>340\end{cases}}$
where $\Gamma$ is the Euler gamma function. The Anis-Lloyd corrected R/S Hurst exponent is calculated as 0.5 plus the slope of $R(n)/S(n)-\mathbb {E} [R(n)/S(n)]$.

### Confidence intervals

No asymptotic distribution theory has been derived for most of the Hurst exponent estimators so far. However, Weron used bootstrapping to obtain approximate functional forms for confidence intervals of the two most popular methods, i.e., for the Anis-Lloyd corrected R/S analysis:
| Level | Lower bound | Upper bound |
| 90% | 0.5 − exp(−7.35 log(log M) + 4.06) | exp(−7.07 log(log M) + 3.75) + 0.5 |
| 95% | 0.5 − exp(−7.33 log(log M) + 4.21) | exp(−7.20 log(log M) + 4.04) + 0.5 |
| 99% | 0.5 − exp(−7.19 log(log M) + 4.34) | exp(−7.51 log(log M) + 4.58) + 0.5 |
and for DFA:
| Level | Lower bound | Upper bound |
| 90% | 0.5 − exp(−2.99 log M + 4.45) | exp(−3.09 log M + 4.57) + 0.5 |
| 95% | 0.5 − exp(−2.93 log M + 4.45) | exp(−3.10 log M + 4.77) + 0.5 |
| 99% | 0.5 − exp(−2.67 log M + 4.06) | exp(−3.19 log M + 5.28) + 0.5 |
Here $M=\log _{2}N$ and $N$ is the series length. In both cases only subseries of length $n>50$ were considered for estimating the Hurst exponent; subseries of smaller length lead to a high variance of the R/S estimates.

## Generalized exponent

The basic Hurst exponent can be related to the expected size of changes, as a function of the lag between observations, as measured by E(|X$_{t+τ}$−X$_t$|$^2$). For the generalized form of the coefficient, the exponent here is replaced by a more general term, denoted by q.
There are a variety of techniques that exist for estimating H, however assessing the accuracy of the estimation can be a complicated issue. Mathematically, in one technique, the Hurst exponent can be estimated such that: $H_{q}=H(q),$ for a time series $g(t),t=1,2,\dots$ may be defined by the scaling properties of its structure functions $S_{q}$ ($\tau$): $S_{q}=\left\langle \left|g(t+\tau )-g(t)\right|^{q}\right\rangle _{t}\sim \tau ^{qH(q)},$ where $q>0$, $\tau$ is the time lag and averaging is over the time window $t\gg \tau ,$ usually the largest time scale of the system.
Practically, in nature, there is no limit to time, and thus H is non-deterministic as it may only be estimated based on the observed data; e.g., the most dramatic daily move upwards ever seen in a stock market index can always be exceeded during some subsequent day.
In the above mathematical estimation technique, the function H(q) contains information about averaged generalized volatilities at scale $\tau$ (only q = 1, 2 are used to define the volatility). In particular, the H$_1$ exponent indicates persistent (H$_1$ > 1⁄2) or antipersistent (H$_1$ < 1⁄2) behavior of the trend.
For the BRW (brown noise, $1/f^{2}$) one gets $H_{q}={\frac {1}{2}},$ and for pink noise ($1/f$) $H_{q}=0.$
The Hurst exponent for white noise is dimension dependent, and for 1D and 2D it is $H_{q}^{1D}=-{\frac {1}{2}},\quad H_{q}^{2D}=-1.$
For the popular Lévy stable processes and truncated Lévy processes with parameter α it has been found that
$H_{q}=q/\alpha ,$ for $q<\alpha$, and $H_{q}=1$ for $q\geq \alpha$. Multifractal detrended fluctuation analysis is one method to estimate $H(q)$ from non-stationary time series. When $H(q)$ is a non-linear function of q the time series is a multifractal system.

### Note

In the above definition two separate requirements are mixed together as if they would be one. Here are the two independent requirements: (i) stationarity of the increments, x(t+T) − x(t) = x(T) − x(0) in distribution. This is the condition that yields longtime autocorrelations. (ii) Self-similarity of the stochastic process then yields variance scaling, but is not needed for longtime memory. E.g., both Markov processes (i.e., memory-free processes) and fractional Brownian motion scale at the level of 1-point densities (simple averages), but neither scales at the level of pair correlations or, correspondingly, the 2-point probability density.
An efficient market requires a martingale condition, and unless the variance is linear in the time this produces nonstationary increments, x(t+T) − x(t) ≠ x(T) − x(0). Martingales are Markovian at the level of pair correlations, meaning that pair correlations cannot be used to beat a martingale market. Stationary increments with nonlinear variance, on the other hand, induce the longtime pair memory of fractional Brownian motion that would make the market beatable at the level of pair correlations. Such a market would necessarily be far from "efficient".
An analysis of economic time series by means of the Hurst exponent using rescaled range and Detrended fluctuation analysis is conducted by econophysicist A.F. Bariviera. This paper studies the time varying character of Long-range dependency and, thus of informational efficiency.
Hurst exponent has also been applied to the investigation of long-range dependency in DNA, and photonic band gap materials.