awt_quant.utils¶
Module Contents¶
- awt_quant.utils.hurst(ts, lag)[source]¶
Calculates the Hurst Exponent for a given time series.
The Hurst Exponent is a measure of long-term memory in a time series: - Near 0.5: Random series. - Near 0: Mean reverting. - Near 1: Trending.
- awt_quant.utils.hurst(ts, lag)[source]¶
Returns the Hurst Exponent of the time series vector ts The Hurst Exponent is a statistical measure used to classify time series and infer the level of difficulty in predicting and choosing an appropriate model for the series at hand. 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.
Value near 0.5 indicates a random series. Value near 0 indicates a mean reverting series. Value near 1 indicates a trending series.
- awt_quant.utils.financial_calendar_days_before(date_str, T, calendar_name='NYSE')[source]¶
Gets the T-th market day occurring before a given date.