SymbologyData
Point-in-Time US Equity Data, Tied to SEC Filings

As-Reported vs. Restated: the look-ahead bias hiding in XBRL fundamentals

The silent failure

You rank stocks on trailing net income as of 2019-12-31. Your fundamentals table says what 2018’s net income was, and it says it with the numbers from the latest filing that mentions that period. If the company restated 2018 in a later filing, your backtest “knew” the corrected figure years before anyone else did. Nothing fails; the backtest is just better than reality could have been.

Two dates matter on every fact: the period covered (period_end_date) and the date public (filing_date, or accepted_at for the exact SEC acceptance time). A point-in-time query selects, for a research date, the last value whose accepted_at is on or before it.

Reproducible proof

The sample has one row per fact as filed, with originally_reported_value (the first filing in the sample window to report it) next to value. The window starts in 2015, so a fact first filed earlier will show its 2015+ first value.

Largest relative restatements in the sample:

SELECT cik, concept, period_end_date,
       originally_reported_value, value AS restated_value,
       filing_date AS restated_public_on, accession
FROM read_parquet('https://data.symbologydata.com/samples/v1/xbrl_pit_fundamentals_sample.parquet')
WHERE is_restated AND originally_reported_value <> 0
ORDER BY abs(value - originally_reported_value) / abs(originally_reported_value) DESC
LIMIT 20;

Now the bias itself: compare what a naive “latest value” table says with what was public on 2019-12-31, for the same facts:

WITH f AS (
  SELECT cik, concept, period_start, period_end_date, value, accepted_at
  FROM read_parquet('https://data.symbologydata.com/samples/v1/xbrl_pit_fundamentals_sample.parquet')
  WHERE NOT is_instant AND fiscal_period = 'FY'
),
latest AS (
  SELECT * FROM f
  QUALIFY row_number() OVER (PARTITION BY cik, concept, period_start, period_end_date ORDER BY accepted_at DESC) = 1
),
known AS (
  SELECT * FROM f WHERE accepted_at <= TIMESTAMPTZ '2019-12-31 23:59:59+00'
  QUALIFY row_number() OVER (PARTITION BY cik, concept, period_start, period_end_date ORDER BY accepted_at DESC) = 1
)
SELECT k.cik, k.concept, k.period_end_date,
       k.value AS public_on_2019_12_31, l.value AS naive_latest, l.accepted_at AS latest_public_on
FROM known k JOIN latest l USING (cik, concept, period_start, period_end_date)
WHERE k.value <> l.value
ORDER BY abs(l.value - k.value) / nullif(abs(k.value), 0) DESC
LIMIT 20;

Every row is a case where a table built from the latest filing leaks information into a 2019-12-31 decision. The number of rows and their size depend on the sample; run it rather than trust a headline figure from us.

The fix

Key every fundamental on (cik, concept, period, accepted_at), keep all revisions, and select with accepted_at <= research_date. The same facts, with the filing that carried each value, are what the restatement tool shows: open the live diff below to see which filing changed which value.

Coverage note: is_restated and originally_reported_value only look at filings inside the sample window. The full history in the API is not limited this way.

Try it live
Diff the as-reported values for Apple's FY2023 across filings →