{'fraction_non_alphanumeric': 0.03773584905660377, 'fraction_numerical': 0.011149228130360206, 'mean_word_length': 5.109947643979058, '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}}
On the Cyclical Properties of Hamilton’s Regression Filter

Hamilton (2017) criticises the Hodrick and Prescott (1981, 1997) filter (HP filter) because of three drawbacks (i. spurious cycles, ii. end-of-sample bias, iii. ad hoc assumptions regarding the smoothing parameter) and proposes a regression filter as an alternative. I demonstrate that Hamilton's regression filter shares some of these drawbacks. For instance, Hamilton's ad hoc formulation of a 2-year regression filter implies a cancellation of two-year cycles and an amplification of cycles longer than typical business cycles. This is at odds with stylised business cycle facts, such as the one-year duration of a typical recession, leading to inconsistencies, for example, with the NBER business cycle chronology. Nonetheless, I show that Hamilton's regression filter should be preferred to the HP filter for constructing a credit-to-GDP gap. The filter extracts the various medium-term frequencies more equally. Due to this property, a regression-filtered credit-to-GDP ratio indicates that imbalances prior to the global financial crisis started earlier than shown by the Basel III creditto-GDP gap.