4. Conclusion
Non-parametric machine learning algorithms are used commonly in many disciplines to classify data as belonging to one of a set of classes. We have proposed a particularly salient algorithm, known as learning vector quantization, for the purpose of classifying economic data into expansion and recession regimes. Of particular interest is the ability of the algorithm to identify US business cycle turning points accurately and quickly in real time.We evaluate the real-time performance of the LVQ algorithm for identifying business cycle turning points in the United States over the past 35 years and five recessions. The LVQ algorithm identified the dates of all five recessions over this period accurately, with no false positives, and at an impressive speed. For example, the LVQ algorithm would have identified the December 2007 peak in economic activity by early June 2008, several months ahead of the statistical tracking procedures reviewed by Hamilton (2011) as being in use at the time. Looking across all recessions, the algorithm’s speed of identifying peaks and troughs over our sample period is very competitive with that of the dynamic factor Markov-switching model, a technique that is used commonly for dating business cycles in real time.