Trading Dev AcademyFree quant education

Free lesson · Point-in-time data

Reproducible snapshots and discrepancy ledgers

Open interactive lessonPractice calculationsExplore labs

Start with the idea

A research result needs a record of exactly which inputs and transformations produced it.

Symbols, units & horizon
  • d: absolute numerical discrepancy in the reported metric’s units
  • x_reproduced: independently recomputed metric
  • x_reference: frozen comparison value using declared data/version
  • tolerance must be specified in matching units

When and why to use this

Hand off research so another person can reproduce both its data and calculations.

A research result needs a record of exactly which inputs and transformations produced it.

A manifest should include source URL or dataset identifier, retrieval time, permitted use, timezone, units, universe definition, version, transformation settings and a content checksum. Record code revision and model configuration alongside the data.

A checksum detects byte differences, not whether a dataset is true, timely or licensed. When reproductions differ, categorize the discrepancy: source revision, units, sample membership, code change, randomness or numerical tolerance. Never replace an unexplained discrepancy with an edited target number.

d=|xreproduced−xreference|
Numerical discrepancy and reproducibility diagnostic

Reproducible snapshots and discrepancy ledgers

  1. Freeze the reference metric and its exact input manifest.
  2. Recompute with the same documented definitions.
  3. Take the absolute difference, compare with the declared tolerance and investigate the cause before accepting a match.
Work it by hand

A reference return .012 and reproduction .0118 differ by .0002, or two basis points. A one-basis-point tolerance fails even though both round to 1%.

Apply it in a strategy

  • Freeze inputs at the stated decision time and record their units.
  • Hand off research so another person can reproduce both its data and calculations.
  • Recompute the example, then change the material assumption and explain the difference.

Research deliverable

Reproducible snapshots and discrepancy ledgers: produce the worked calculation, a timestamped input record and a written decision addressing this limitation: Matching a published number can coexist with shared data leakage or a common implementation error.

These are synthetic mechanics examples, not historical performance or paper replications. Module evidence and research boundaries record the 12 September 2026 review.

Evidence and boundaries · reviewed 12 September 2026

The records below distinguish research status, access depth and data dates. Abstract-only review identifies research questions; it does not establish a replicated empirical claim.

Further reading: Crane, Karra & Soto: Total Recall? Evaluating the Macroeconomic Knowledge of Large Language Models ↗

Federal Reserve Finance and Economics Discussion Series working paper 2025-044. Version: June 2025; later versions not established. Review: 2026-09-12; Abstract on Federal Reserve 2025 research index only. Markets: Macroeconomic data and release dates. Data dates: Exact series, date ranges and model snapshots not inspected. Limitation: Motivates explicit vintage and availability checks. The lesson does not quantify model error rates or reproduce the study.

Further reading: Federal Reserve Bank of St. Louis: FRED API real-time periods ↗

Living primary provider documentation. Version: Reviewed 12 September 2026. Review: 2026-09-12; Documentation page. Markets: Series-specific macroeconomic data. Data dates: Series-dependent; no dataset downloaded. Limitation: API semantics do not establish the exact intraday availability of every vintage; source release timestamps and time zones must be verified separately.

Further reading: SEC: EDGAR Application Programming Interfaces ↗

Living primary provider documentation. Version: Reviewed 12 September 2026. Review: 2026-09-12; Documentation page. Markets: US public-company submissions and XBRL facts. Data dates: Filing-specific; no archive downloaded. Limitation: Facts can have amendments, duplicate contexts and differing units. An annual fiscal period is not an information-release time.

Research sources, review dates and limitations

Connect the ideas: Information and decision time

Retrieve: Use only information available when the decision is made.

Check the change: Observation dates, release delays, revisions and label maturity require different availability checks.

Statistics → Research & backtests → Time series → Research & robust tuning → Financial machine learning → Putting it all together

Explain it yourself: Does shifting a feature by one row guarantee that it was available?

Self-assessed. Write your explanation before opening this comparison.

No. A revised value or delayed release may still contain unavailable information. Audit actual availability timestamps and fit preprocessing inside each training window.

Python implementation

Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.

# Python 3.10+; standard library and NumPy only.
# Synthetic teaching inputs; conventions and units are defined in the notation above.
import hashlib
import json

def snapshot_check(records,reproduced,reference):
    payload=json.dumps(records,sort_keys=True,separators=(',',':'),allow_nan=False).encode('utf-8')
    return hashlib.sha256(payload).hexdigest(),abs(reproduced-reference)

checksum,error=snapshot_check([{'time':1,'value':10}],.0118,.012)
assert len(checksum)==64 and abs(error-.0002)<1e-12
print(checksum,error)

Continue learning

Data: Availability, Revisions & Reproducible Research — all lessons
  1. Four clocks for one observation
  2. An as-of join that never selects the future
  3. First prints and revisions can reverse a signal
  4. Reconcile splits and cash distributions
  5. Universe membership and disappearing assets
  6. Coverage, missingness and stale values
  7. Purging labels that cross a test boundary
  8. Reproducible snapshots and discrepancy ledgers

Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations