REPLICATION PACKAGE README
Overstated Fertility and Asymmetric Policy Targets: A Quantitative Audit of China's Population Forecasts, 1980-2021

1. SOFTWARE ENVIRONMENT
The core analysis and check_audit.py run using only the Python 3 standard library (no third-party packages required):
- Python 3.14.6 (compatible with Python 3.10+)
- Typesetting (manuscript source): Typst 0.15.1 (scripts do not require Typst)

This edition reproduces the corrected website analysis. Historical manuscript PDFs predate the audit. See docs/SOURCE_AUDIT.md for errata.

2. ARCHIVE CONTENTS (replication_package.zip)
Data files (data/):
- data/source_register.csv records source coverage and remaining uncertainty.
- data/forecast_panel_unified.csv
    Deduplicated, non-circular unified dataset of 132 forecast, plan target, policy ceiling, counterfactual simulation, and retroactive benchmark rows (102 scorable as of 2025; 30 post-2025, unquantified, or retroactive exclusions), including three-column ex-ante provenance metadata (author_institution, commissioner, adopter), Specification A and B sponsor codes, reproducibility status, and verification notes.
- data/ws5_china_demographic_realizations_1982_2025.csv
    National Bureau of Statistics (NBS) census and annual statistical communique benchmark realizations for total population (millions), annual births (millions), total fertility rate (TFR), and peak population outcomes (mainland China).
- data/ws5_china_population_forecasts_1980_2021.csv
    Legacy landmark forecast extraction table preserving original 12-label provenance audit notes prior to non-circular pooling in forecast_panel_unified.csv.
- data/candidate_forecasts_from_literature.csv
    Candidate projection pool identified during literature search screening (Crossref, OpenAlex, and CNKI).
- data/sponsor_evidence.md
    Study-by-study institutional provenance documentation supporting Specification A and Specification B coding rules, funding footnotes, and source verification notes.

Analysis scripts (scripts/):
- scripts/zhai2014_reproduction.py
    Step-by-step arithmetic reproduction of Zhai, Zhang, and Jin (2014), Table 1 age counts, approximate pool adjustment, timing weights, and peak birth total (49.94M rebuilt vs. 49.95M published).
- scripts/rebuild_target_population.py
    Partial base-population rebuild from the 2005 1% national sample survey and accounting bridge from 151.67M (Zhai et al. 2014) to 96.52M eligible couples (Qiao 2014).
- scripts/zhai_decomposition.py
    Exact factorial-weighted Shapley decomposition splitting the 32.08M peak miss into data/scope, behavior, and model components; sensitivity analyses across baselines, intentions, timing, and exogenous conversion rates; 4-year cumulative decomposition; and bounded delay-cost calculations.
- scripts/panel_scoring_and_bias.py
    Four-module panel analysis: (1) study-level reproducibility audit and two-sided Fisher exact tests; (2) standardized forecast error scoring (SE, AE, PE, APE, annualized PE) across policy regimes and forecast horizons; (3) TFR = 1.8 starting-population vs. fertility decomposition and TFR-year OLS regression; (4) exact study-cluster permutation tests, binomial sign tests, Mann-Whitney U tests, OLS regressions with HC1 and cluster-robust standard errors, and 80%-power Minimum Detectable Effects (MDE).
- scripts/chart_utils.py
    Pure-Python standard-library vector/raster chart rendering utilities imported by scripts/zhai_decomposition.py and scripts/panel_scoring_and_bias.py.

3. EXECUTION INSTRUCTIONS
Unzip the archive into an empty working directory and run each script from the archive root using Python 3:
  python3 scripts/zhai2014_reproduction.py
  python3 scripts/rebuild_target_population.py
  python3 scripts/zhai_decomposition.py
  python3 scripts/panel_scoring_and_bias.py
Generated tables and figures will be written to results/.
