{'fraction_non_alphanumeric': 0.02158828064764842, 'fraction_numerical': 0.0007710100231303007, 'mean_word_length': 4.954128440366972, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An application of a random level shifts model to the volatility of Peruvian stock and exchange rate returns

The literature has shown that the volatility of stock and forex rate market returns shows the characteristic of long memory. Another fact that is shown in the literature is that this feature may be spurious and volatility actually consists of a short memory process contaminated with random level shifts (RLS). In this paper, we follow recent econometric approaches estimating an RLS model to the logarithm of the absolute value of stock and forex returns. The model consists of the sum of a short-term memory component and a component of level shifts. The second component is specified as the cumulative sum of a process that is zero with probability ‘1-alpha’ and is a random variable with probability ‘alpha’. The results show that there are level shifts that are rare, but once they are taken into account, the characteristic or property of long memory disappears. Also, the presence of General Autoregressive Conditional Heteroscedasticity (GARCH) effects is eliminated when included or deducted level shifts. An exercise of out-of-sample forecasting shows that the RLS model has better performance than traditional models for modelling long memory such as the models ARFIMA (p,d,q).