错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Neighbor Weighting and Distance Metrics in Nearest Neighbor Nowcasting of Swedish GDP

  • Kristian Jönsson

摘要

Forecasting and nowcasting of economic activity can be of great importance in many settings. Business tendency survey data, when employed in a nearest neighbor (NN) algorithm, can produce nowcasts of Swedish GDP that compare well, in terms of predictive performance, to the often-used linear indicator models. The current article probes deeper into the choices available when implementing the nearest neighbor algorithm for nowcasting Swedish GDP and traces out the possible effects on nowcasting accuracy. The dimensions explored include the number of neighbors used for producing the nowcasts, the distance metric employed and distance-weighting of neighbors. The main results indicate the so-called Manhattan distance, or \(L_1\) L 1 norm, together with equal weighting of 4 or 5 neighbors, could improve nowcasting accuracy for Swedish GDP compared to a setting where a different number of neighbors is used, the \(L_2\) L 2 or \(L_\infty\) L norms are employed and/or distance-based weighting of neighbors is applied.