Purpose:
The tool can be used to:
- Calculate classical Hurst exponents (R/S) and corrected Hurst exponents (R/S-AL).
- Show a Log-Log plot of R/S statistics vs subseries length.
Installation:
Download the file HurstExponent.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
Operation:
- Highlight a column of time series data in the worksheet.
- Click the Hurst Exponent icon in the Apps Gallery window.
- In the dialog box that opens:
- Set Start Index and End Index to define partial series.
- Set Minimum Subseries Length to define the minimum length of subseries when partitioning the time series. The default value is 50.
When a trend or seasonality exists in time series data, minimum subseries should exhibit the time series pattern (e.g. for seasonal data, Minimum Subseries Length should be no less than the length of the period).
- Check the Log-Log Plot to output the plot.
- Click the OK button to output a worksheet with results and a Log-Log plot.
Algorithm:
\((R/S)_n = \frac{1}{d} \displaystyle \sum R_m/S_m\)
where input time series is divided into d subseries of length n, \(R_m\)and\(S_m\)are the range and standard deviation in each subseries.
\(E(R/S)_n = \begin{cases} \frac{ (n-0.5) \Gamma(\frac{n-1}{2}) }{n \sqrt{ \pi } \Gamma( \frac{n}{2} ) } \displaystyle \sum_{i=1}^{n-1} \sqrt{ \frac{n-i}{i} } &\text{for} \; n \leq 340, \\ \frac{ n-0.5 }{n \sqrt{ \frac{n \pi}{2} } } \displaystyle \sum_{i=1}^{n-1} \sqrt{ \frac{n-i}{i} } &\text{for} \; n > 340 \end{cases}\)
\(R/S-AL = (R/S)_n - E(R/S)_n + \sqrt{ \frac{ n \pi }{2}}\)
Slope of \((R/S)_n\) vs. n in Log-Log plot is the classic Hurst exponent, and slope of R/S-AL vs. n in Log-Log plot is the AL corrected Hurst exponent.
Reference:
- R. Weron (2002) Estimating long range dependence: finite sample properties and confidence intervals, Physica A 312, 285-299.