Skip to content

Surveillance heatmaps

In the app: Help → Help contents, Surveillance heatmaps.

A surveillance heatmap (Data → Statistics → Surveillance heatmap…) is the chart central banks and the IMF publish to watch many indicators at once: the indicators down the side, the dates across, and each cell coloured by how unusual that reading is. Each series is normalised over its own history: a z-score (distance from the mean in standard deviations), a robust z-score (from the median, in median absolute deviations, which one outlier hardly moves), a percentile rank from 0 to 100, its level, or its gap from a trend (the HP filter, Hamilton's filter or a trailing mean). The comparison is over a rolling window of periods, every period up to each date, or a fixed reference period (2010 to 2019). In formulas the same numbers are movzscore(x, n), movrzscore(x, n), movpctrank(x, n) and expzscore(x), exprzscore(x), exppctrank(x).

Colour should mean the same thing on every row: Higher is better for flips the series where a high reading is good (growth, surveys), so red means worse everywhere; a z-score changes sign and a percentile rank p becomes 100 - p. Groups add each group's average and a composite row: the average of the groups, or weighted by the first principal component of the normalised indicators. Colour bands at (10, 25, 75, 90) colour by bands of cut-offs rather than a continuous scale, as a traffic-light table does; missing readings are hatched. Ordering the rows by clustering puts indicators that move together side by side (average linkage on one minus their correlation), with the dendrogram in the window. Quarterly indicators beside monthly ones are put on the monthly calendar, repeated through their quarter, shown in its last month only, or from the day they are released until the next (their publication lag, or, with a Release calendar under Advanced, the day the calendar says each was published, as Data as known on a day… cuts the data). K-means clusters of the dates, an MS-VAR's most likely regime or a recession dummy can be drawn as bands of colour above the dates.

The Latest tab is each indicator's latest reading, where it stands, and how that changed over 3, 6 and 12 periods. Reports export the tables with coloured cells (Excel, Word and HTML) and the heatmap as a picture. The settings are kept with the step (in code, a SurveillanceSpec): File → Refresh data… and replaying the project draw the same heatmap on the new data.

See also

References

  • International Monetary Fund (2020). Global Financial Stability Report, October: the financial stability heatmaps (chapter 1). (search)
  • Aikman, D., Kiley, M., Lee, S. J., Palumbo, M. G. and Warusawitharana, M. (2017). Mapping heat in the U.S. financial system. Journal of Banking and Finance 81, 36-64. doi:10.1016/j.jbankfin.2017.04.013
  • Rousseeuw, P. J. and Croux, C. (1993). Alternatives to the median absolute deviation. Journal of the American Statistical Association 88(424), 1273-1283. doi:10.1080/01621459.1993.10476408