Datasets:
You need to agree to share your Hugging Face information to access this dataset
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
These files are model OUTPUTS derived from Compustat via WRDS under The University of Texas at Austin's academic subscription. They are released under the Forma Non-Commercial Research Licence (WRDS-Conditioned) v1.0 — see LICENSE.md. Access requires that you hold your own current Compustat/WRDS licence, use the files for non-commercial academic research only, and do not redistribute them. No raw Compustat values are distributed here; rebuilding the ground truth requires your own WRDS access.
Log in or Sign Up to review the conditions and access this dataset content.
Forma ProForma-20Q Forecasts in USD ($M)
Camera-ready (R14) release. These files were rebuilt from the camera-ready forecasts (build
r14_node_optionD_indfe_val8). The pre-camera-ready (R13) files are kept at ther13tag: passrevision="r13"tohuggingface_hub, or readhf://datasets/forma-lab-mccombs/forma-usd-forecasts@r13/.... The two rounds are not interchangeable. The R14 build re-fit the normalization and grew the sample.
Probabilistic forecasts of complete quarterly financial statements for U.S. public firms, denominated in millions of USD, at horizons of 1–20 quarters.
This is the dollar-space companion to the standardized-space release. Forma internally predicts a per-account, per-quarter asinh z-score; that is the right space for scoring and the wrong space for almost everything else. This dataset inverts the full normalization chain so the forecasts can be merged against Compustat, analyst forecasts, or prices without reimplementing the pipeline.
| Rows | 468,443,876 (0 null rows; see the note on pred_mean_musd below) |
| Firms × accounts × horizons | ~377k firm-quarter origins (13,530 firms) × 78 accounts × up to 20 horizons |
| Target quarters | 2010Q2 – 2024Q4 — the test period |
| Origin quarters | 2010Q1 – 2024Q3 |
| Size | 12.31 GB, Hive-partitioned by target (78 partitions, 73–170 MB, median 164 MB) |
| Model | Forma, Gaussian β-NLL (β = 0.5), transformer-only — 5-seed equal-weight mixture (camera-ready, R14) |
Quick start
import pandas as pd
# one account only -- ~165 MB, not 12.31 GB
fc = pd.read_parquet("hf://datasets/forma-lab-mccombs/forma-usd-forecasts/target=revtq/")
fc = fc[fc.forecast_horizon == 4]
fc[["firm_id", "target_quarter", "pred_p05_musd", "pred_p50_musd", "pred_p95_musd"]].head()
Schema
| column | meaning |
|---|---|
firm_id |
gvkey, zero-padded to 6 |
quarter |
forecast origin (q0), calendar quarter end |
target_quarter |
quarter being forecast = quarter + forecast_horizon |
target |
Compustat-style account name — the partition key: a path segment, not a stored column (see below) |
forecast_horizon |
1–20 quarters |
pred_p05/p25/p50/p75/p95_musd |
predictive quantiles, $M |
pred_mean_musd |
predictive mean, $M |
pred_mean_musd is NaN in 4,236 cells (0.0009%), where the exact mean
overflows float32 (mostly wcapq, at long horizons). The quantile columns are
finite on every row.
Use pred_p50_musd as the point forecast. The mean is exact but is not the
median — the gap is the skew, and it is large in the tail (see below).
target is in the path, not in the file. Reading one target=…/ directory
gives you every column above except target — there is nothing to restore it
from. This matters when you merge: joining such a frame on a key list that
includes "target" raises KeyError: 'target'. For a single account the column
is a constant, so just put it back:
fc = pd.read_parquet("hf://datasets/forma-lab-mccombs/forma-usd-forecasts/target=revtq/")
fc["target"] = "revtq"
To pull several accounts in one read, filter from the repo root — there target
is reconstructed from the paths. Note the ignore_prefixes: this repo's root
holds README.md and LICENSE.md beside the partitions, and pyarrow's dataset
discovery would otherwise try to open them as parquet and fail with
ArrowInvalid: ... Is this a 'parquet' file?. (_meta/ needs no help — the _
prefix already excludes it.)
fc = pd.read_parquet("hf://datasets/forma-lab-mccombs/forma-usd-forecasts",
filters=[("target", "in", ["revtq", "niq"])],
ignore_prefixes=["_", ".", "README", "LICENSE"])
ignore_prefixes is a pyarrow argument; fastparquet rejects it with
TypeError — and does not need it, since it globs for *.parquet rather than
walking every entry, so under that engine the root read works unmodified.
Why quantiles and not a standard deviation
The back-transform V = sinh(a + b·Z)·S/k is strictly monotone, so quantiles map
through it exactly and interval coverage is identical in z-space and dollars.
Moments also have closed forms, but the second moment carries exp(2b²) with
b = σ_reg·σ_model, whose p99 is 3.11 and max 5.69 — so exp(2b²) reaches 1e28.
A Gaussian in z-space is lognormal-tailed in dollars; a standard deviation
would be meaningless for the top few percent of cells and would silently dominate
any pooled statistic. It is deliberately not shipped.
What sample this is
Every forecast here is made from a test-period origin (2010Q1–2024Q3) and so targets a test-period quarter (2010Q2–2024Q4). Nothing in the file was fit on: the model trained on 1971–2001 and was validated on 2002–2009.
Horizon coverage is truncated at the late end only. The model is never asked to forecast past the end of the data, so late origins lose their long horizons: 2023Q4 keeps h=1..4, and 2024Q3 keeps only h=1. Origins through 2019Q4 are the last whose full 20-horizon path stays inside the data. Take horizon-balanced subsets from origins ≤ 2019Q4 if you need equal coverage, and do not read the thinning tail as a change in model behaviour.
(The R13 files, at the r13 tag, also held origins from 2008Q1 whose targets
fell in the test period. Those early origins lost their short horizons. The
camera-ready forecasts floor origins at the first test quarter, so that
truncation is gone.)
Relation to the paper. The scored sample in the paper is smaller than this file. It keeps only cells with a realized value and takes the intersection across every model in the pool. To reproduce paper numbers, use the standardized-space forecasts and the published evaluation mask in proforma-20q-artifacts; this file is a superset and will not reproduce them on its own.
Three traps when merging
Join on
target_quarter, notquarter.quarteris the origin.26 of 78 targets are not Compustat columns, or do not mean the same thing under them. 20 are quarterly flows derived by differencing YTD items (
oancfq←oancfy, …); 6 are composites. Merging the YTD column directly is silently wrong — Q4 medianoancfq/oancfy= 0.308.wcapqis worse: a native Compustat column of that name exists and merges cleanly, but these forecasts are ofactq − lctq. Usebuild_usd_truth.py, which rebuilds the truth panel from your own Compustat pull. It lives inproforma-20q, is public and ungated, and imports the de-cumulation, the formula table and the target universe fromproforma20qitself, so it cannot drift from the benchmark. It also refuses to emit a target it could not actually derive, rather than passing a native column of the same name through as truth.It is the only supported truth builder. Earlier versions of this dataset shipped a standalone copy as
_meta/build_usd_truth.py; that copy restated the definitions locally and had no derivability check, and it has been withdrawn. If you have it, discard it and use theproforma-20qone.Filter
forecast_horizonor your panel multiplies ~10× (median 10, max 20 origins forecast the same target quarter).
Full recipe, including I/B/E/S information-set alignment (rdq lags the fiscal
quarter end by a median of 37 days) — see _meta/FORECAST_USD_RELEASE.md, which
ships with this dataset alongside the build and partition reports.
Calibration
Inherited from the model and unchanged by the transform. On the paper's Full sample the 90% interval covers 0.926–0.949 across h = 1–20 (0.932 pooled) and the 95% interval 0.952–0.964. The central 50% interval is over-wide: 0.67–0.78 against a nominal 0.50. A monotone transform cannot alter this — it is a property of Forma, not of the conversion.
Related releases
| Model code (no weights) | forma-lab-mccombs/forma-release (UT Austin Research License v1.1) |
| Benchmark + builder | forma-lab-mccombs/proforma-20q (Apache-2.0; hosts scripts/build_usd_truth.py, ungated) |
| Standardized-space forecasts + sample mask | forma-lab-mccombs/proforma-20q-artifacts (same licence, gated) |
| Trained weights + regularization stats | forma-lab-mccombs/forma (non-commercial, no WRDS condition) |
Licence and data provenance
Released under the Forma Non-Commercial Research Licence (WRDS-Conditioned)
v1.0 (LICENSE.md) — not a CC licence. Non-commercial academic research
only; you must hold your own current Compustat/WRDS licence; no
redistribution; attribution required.
Derived from Compustat under UT Austin's academic subscription. S&P Global Market Intelligence retains all rights in the underlying Compustat data. Nothing here is investment advice.
Citation
Cite the companion paper and this dataset; see CITATION.cff in
forma-release.
- Downloads last month
- 284