Business-cycle dating¶
In the app: Help → Help contents, Business-cycle dating.
Business-cycle dating finds the peaks and troughs of a series: when its recessions began and ended. Data → Statistics → Date business cycles… (date_cycles(data, series) in code) dates any series with the rules the NBER's dating was first automated with, and measures the phases between the turning points. A recession runs from the period after a peak through the trough, as the NBER dates are shaded (pymetrix.recessions has the NBER's and the CEPR's).
Classical and growth cycles. Dating the level of a series (100*log of real GDP) gives the classical cycle: recessions are absolute declines. Dating its deviation from trend gives the growth cycle: slowdowns below trend count too, so there are more of them. Give the gap from a trend-cycle filter as the series, or detrend=HP() (or "hp", "hamilton", "baxter_king", "christiano_fitzgerald") to filter it first.
Quarterly data: BBQ. Harding and Pagan's (2002) quarterly version of Bry and Boschan's procedure takes as candidates the local peaks (higher than the k = 2 quarters on either side) and troughs (lower), and then censors them, repeating until nothing changes: peaks and troughs alternate (of two peaks in a row the higher is kept, of two troughs the lower); a peak must be higher than the troughs next to it; no turning point within 2 quarters of the ends, and the first or last one is dropped if a value nearer the end is beyond it (above a peak, below a trough); a cycle, peak to peak or trough to trough, lasts at least 5 quarters (of a shorter one the lower peak or higher trough goes, the shortest first); and a phase, peak to trough or trough to peak, lasts at least 2 quarters (of a shorter one the turning point that ends it goes, and alternation keeps the more extreme of its neighbours).
Monthly data: Bry and Boschan (1971). Values more than 3.5 standard deviations from a 15-term Spencer curve are replaced by the curve. Turning points are found in a centred 12-month moving average (higher or lower than the 5 months on either side) and alternated; each is moved to the extreme of the Spencer curve within 5 months, and cycles shorter than 15 months are removed; then to the extreme of a short moving average, of 3 to 6 months by the months for cyclical dominance, within 5 months; then to the extreme of the series itself within 4 months (or the short average's span, if longer). Finally turning points within 6 months of the ends, cycles shorter than 15 months and phases shorter than 5 months are removed. The curves are extended past the ends by the average of the four end values, a choice of pymetrix's. method="bbq" with k=5, min_phase=5 and min_cycle=15 applies the monthly rules to the series directly. Every rule can be changed: k, min_phase, min_cycle, ends; for annual data BBQ uses k = 1, phases of a year and cycles of two.
The statistics (Harding and Pagan 2002), for each complete phase: its duration in periods; its amplitude, the change from its first turning point to its last (per cent, for 100*log of a series); the cumulative movement, the area between the path and the starting level by the trapezoidal rule (the output lost in a recession); the triangle approximation, amplitude times duration over 2; the excess, the cumulative movement less the triangle per period, positive when the movement was fastest early in the phase (a recession that starts sharply, an expansion that starts with a rebound); and the steepness, amplitude over duration. The summary averages them for expansions and recessions; incomplete phases at the ends are left out.
Phases and concordance. dating.phases is 1 in recession and 0 in expansion (before the first turning point, the phase leading into it; after the last, the phase it begins), a series to shade a graph with or to use as the events of early-warning signals. concordance(dating1, dating2) is Harding and Pagan's concordance index, the share of periods two cycles are in the same phase. Two unrelated cycles that are in expansion most of the time agree most of the time, so the index is tested: Harding and Pagan (2006) test that the phases are uncorrelated with the t-statistic of the slope in the regression of one phase series on the other, with Newey-West (HAC) standard errors, since phases persist. In a panel each entity is dated on its own, and dating.concordance() gives the index of each pair of entities.
Dating is not forecasting: turning points near the end of the data are provisional, since later data can show that a decline went on or was reversed, and the rule for the ends holds back a turning point until enough periods follow it.
See also¶
References¶
- Bry, G. and Boschan, C. (1971). Cyclical Analysis of Time Series: Selected Procedures and Computer Programs. NBER Technical Paper 20. National Bureau of Economic Research. (search)
- Harding, D. and Pagan, A. (2002). Dissecting the cycle: a methodological investigation. Journal of Monetary Economics 49(2), 365-381. (search)
- Harding, D. and Pagan, A. (2006). Synchronization of cycles. Journal of Econometrics 132(1), 59-79. (search)