Define consumer confidence
Official OECD Consumer Confidence: MEASURE=CCICP, ADJUSTMENT=AA, TRANSFORMATION=IX, UNIT_MEASURE=IX, dataset version 4.1.
DSA210 / Methods
A reproducible, retrospective design. The same calendar boundary applies to every country, and every preprocessing step learns only from the training window.
Official OECD Consumer Confidence: MEASURE=CCICP, ADJUSTMENT=AA, TRANSFORMATION=IX, UNIT_MEASURE=IX, dataset version 4.1.
Use population-weighted weather and macro/retail snapshots. Preserve missing values, verify unique country-month keys and contiguous months. Do not impute any target.
For test year Y, train on dates strictly before December of Y−1. Test on January–December of Y. This leaves a one-month embargo. All countries share the split, so a month cannot be both train and test.
Median imputation, missingness indicators, scaling, one-hot country encoding and weather PCA are fitted only on training rows. PCA uses two components. Report retained variance separately for each fold.
Use country-mean and last-observed-month persistence baselines, three matched feature-group forests, a forest with the lagged target, and Ridge with weather PCA. RF: 160 trees, depth 6, minimum leaf 5; Ridge alpha 10; no outcome-driven hyperparameter search.
Classify whether CCI at t+1 exceeds CCI at t. Drop the four undefined terminal labels. Training label dates must precede the test boundary. Logistic settings are fixed; report AUC and accuracy against a training-prior baseline.
Country-specific regression includes month fixed effects and a linear trend; HAC(12) errors, with small-sample correction. Weighted-city, capital-city and first-difference specifications form one 12-test BH family. No specification is selected after seeing its p-value.
Green: training · empty month: embargo · orange: test · the full track is 2015–2024.
The downloadable panel, model predictions and source manifest provide the evidence behind the study. Research code ↗