economic-forecasting

Build macroeconomic forecasts from time series with ARIMA, VAR, and LightGBM.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill economic-forecasting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: economic-forecasting
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/07-economics/economic-forecasting
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill economic-forecasting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires statsmodels, lightgbm, pandas, numpy, scipy, matplotlib, fredapi, and includes assets (resource) components.

What problem does it solve?

This Skill helps you produce credible macroeconomic forecasts and compare competing models while avoiding look-ahead bias and quantifying uncertainty.

Core Features & Use Cases

  • ARIMA and VAR forecasting: Use ARIMA for univariate series (e.g., GDP, CPI, unemployment) and VAR for multi-variable macroeconomic systems.
  • ML ensemble forecasting with LightGBM: Train on lag and rolling-stat features plus calendar variables to forecast horizons using walk-forward validation.
  • Model comparison and uncertainty visualization: Run the Diebold-Mariano test to evaluate predictive accuracy differences and generate bootstrap-based fan charts for forecast bands; optionally use Mincer-Zarnowitz regression for unbiasedness checking.
  • Real-time data vintages via ALFRED/FRED: Retrieve time-series vintages to reduce look-ahead bias when working with updated macro releases.

Quick Start

Ask an AI to build an ARIMA vs LightGBM walk-forward forecast on your quarterly GDP-like series, run a Diebold-Mariano test on the resulting forecast errors, and output a fan chart for your target horizon.

Frequently Asked Questions about economic-forecasting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent look-ahead bias when building macroeconomic time series forecasts?

To prevent look-ahead bias in macroeconomic time series forecasts, use strict walk-forward validation with expanding windows and retrieve real-time data vintages via ALFRED/FRED. This ensures models only train on data historically available at each prediction point.

Can I use LightGBM for multi-horizon macroeconomic forecasting and compare it against ARIMA?

Yes, you can train LightGBM on lag and rolling-stat features for multi-horizon macroeconomic forecasting and compare it against ARIMA. Use the Diebold-Mariano test with HAC or HLN small-sample correction to statistically evaluate the predictive accuracy differences.

How do I generate bootstrap fan charts to visualize forecast uncertainty bands?

You generate bootstrap fan charts to visualize forecast uncertainty bands by training ARIMA, VAR, or LightGBM models and applying walk-forward validation. This process yields probabilistic forecast bands across your target prediction horizons.

What is the Diebold-Mariano test used for in time series model comparison?

The Diebold-Mariano test is used in time series model comparison to statistically evaluate differences in predictive accuracy. Implementing it with HAC or HLN small-sample correction ensures robust evaluation of competing forecast errors.

Does this macroeconomic forecasting workflow support multivariate systems or only univariate series?

This macroeconomic forecasting workflow supports both univariate series and multivariate systems. Use ARIMA for single-variable series like GDP or CPI, and apply VAR models to forecast multi-variable macroeconomic systems.