Skip to content

Real-time data: masks, release calendars and vintages

In the app: Help → Help contents, Real-time data: masks, release calendars and vintages.

Nowcasts are made from data as they stood on the day, and those data are uneven: the pandemic months are far outside anything the models were estimated on, figures come out on set days rather than a fixed delay after the month, and earlier figures are revised.

Masking. A dynamic factor model can set chosen periods to missing for estimation, so the Kalman filter and EM treat them as not observed: DynamicFactor(mask={"2020-03": "2021-06"}), a list of periods, or a mask per series (in the dialog, Masked periods under Advanced: 2020-03 to 2021-06). Outliers (a number k) sets values more than k interquartile ranges from each series' median to missing too, the rule central banks' models use (k of 4 to 10 is common). The model's window lists every value so removed; the provenance records it. Bridge equations and MIDAS take a mask too: the masked quarters are left out of the estimation sample.

Release calendars. ReleaseCalendar holds the day each figure was published, by series or by release (the Employment Situation publishes payrolls, unemployment and hours together), read from a table of series or release, period and date, made from the fixed publication lags, or from ALFRED's vintage dates. as_of(..., calendar=), nowcast_backtest(..., calendar=) and nowcast_tracking(..., calendar=) then date each figure by its actual release, and tracking adds the news up by release.

Vintages. read_vintages("GDPC1") reads every vintage of a FRED series from ALFRED (a FRED API key is needed): a table of reference periods by vintage date, with each period's first, second and latest release. revision_analysis() describes the revisions (their mean, spread and size relative to the series) and tests Mankiw and Shapiro's two views of them: news (the first release is an efficient forecast, so the revision is unrelated to it) and noise (the first release is the truth measured with error, so the revision is unrelated to the final value). nowcast_backtest(..., vintages=) uses on each day the vintage then in force: a real-time evaluation, whose errors are usually larger than a pseudo-real-time one's.

Scoring. A real-time backtest is scored against the latest data by default; outturn="first" (or a release number) scores it against each quarter's first (or k-th) release instead, from the vintages: the earlier figures are what the nowcasters of the time were judged by.

In the app: Masked periods under Advanced in the bridge equation, MIDAS and dynamic factor model dialogs; Estimate → Mixed frequency → Vintages from ALFRED… (the FRED API key from FRED_API_KEY, or typed in File → Browse series…: kept for the session, never in the step's code), Revision analysis… (Next ▸ from a vintage table) and Release calendar from a table…; Data → Transform → Apply transformation codes…. The Nowcast backtest by release day… and Track a nowcast… dialogs take the calendar (Release calendar) and weekly data (Weekly data) under Advanced, and the backtest the vintage tables (Vintages) and the outturn (Score against: the latest data, the first release or a chosen release).

Large monthly panels are prepared with FRED-MD's transformation codes (apply_tcodes: 1 levels, 2 differences, 4 logs, 5 log differences...), and nowcast_refresh (pymetrix-nowcast refresh) runs the models each day from a specification file and keeps a store of every day's nowcast, band and news.

See also

References

  • Mankiw, N. G. and Shapiro, M. D. (1986). News or noise? An analysis of GNP revisions. Survey of Current Business 66(5), 20-25. (search)
  • Aruoba, S. B. (2008). Data revisions are not well behaved. Journal of Money, Credit and Banking 40(2-3), 319-340. doi:10.1111/j.1538-4616.2008.00115.x
  • Croushore, D. and Stark, T. (2001). A real-time data set for macroeconomists. Journal of Econometrics 105(1), 111-130. doi:10.1016/S0304-4076(01)00072-0
  • McCracken, M. W. and Ng, S. (2016). FRED-MD: a monthly database for macroeconomic research. Journal of Business and Economic Statistics 34(4), 574-589. doi:10.1080/07350015.2015.1086655