{'fraction_non_alphanumeric': 0.02615062761506276, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 4.406779661016949, '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}}
Testing for long memory in the presence of a general trend

The paper studies the impact of a broadly understood trend, which includes a change point in mean and monotonic trends studied by Bhattacharya et al. (1983), on the asymptotic behaviour of a class of tests designed to detect long memory in a stationary sequence. Our results pertain to a family of tests which are similar to Lo's (1991) modified R/S test. We show that both long memory and nonstationarity (presence of trend or change points) can lead to rejection of the null hypothesis of short memory, so that further testing is needed to discriminate between long memory and some forms of nonstationarity. We provide quantitative description of trends which do or do not fool the R/S-type long memory tests. We show, in particular, that a shift in mean of a magnitude larger than N -½, where N is the sample size, affects the asymptotic size of the tests, whereas smaller shifts do not do so.