# Reproduce the aggregate item-contrast study Source: OECD (2019), PISA 2018 Database, Table II.B1.8.1 in Annex B1.8 of PISA 2018 Results Volume II; https://doi.org/10.1787/888934038723 (accessed 2026-10-31). The official workbook is https://statlinks.oecdcode.org/EDU-2019-4229-EN-T013.XLSX . Version 2 dated 2019-12-02, SHA256 27910fee73ea35ae058fe5706fb9e53fec7ccb7665e98f594b0ed495ee457a90. Download the original independently; it is not redistributed in this package. No student microdata are used. Default numerical reproduction requires only Python 3 and the included aggregate matrix. Run: ``` python reproduce.py --source source-matrix.json --out reproduced ``` The default reproducer verifies the included matrix hash and row identities, using no network or hidden inputs. The explicit output directory must differ from the input directory. The optional direct-workbook audit requires openpyxl and the separately downloaded original file: `python analyze.py --source /path/to/chapter8.xlsx --out audited`. That optional audit verifies the complete original file hash, row identities and item-header fingerprints, not reproduced questionnaire wording. Both routes produce identical outputs. A hash failure requires investigation, not removal of a guard. The retrospective analysis uses fixed support: rows 16–52 and 57–98, excluding three OECD-average rows 53–55 from country/economy summaries. Row 55 is a descriptive benchmark only. 79 designated rows yield 77 complete units; Lebanon and North Macedonia have missing code m for all 5 items. Missing/nonfinite/bool/out-of-domain percentages or negative SEs are retained in the exclusion audit, not replaced by zero. Rows may represent countries, economies or subnational units. No global/person-weighted estimate is made. Literal gap = girls' combined agreement percentage minus boys' combined agreement percentage. Source agreement includes agree/strongly agree. Five original brief analytical labels identify obligation, hobby, social, rejection and instrumental items; consult primary source for exact questionnaire wording. Item names are not official translations or a new validated scale. For contrast arithmetic only, obligation/rejection/instrumental gap signs are reversed. Hobby/social signs are unchanged. Three fixed oriented contrasts: hobby−social; instrumental−obligation; obligation−rejection. Across-item descriptive range=max(oriented gap)−min(oriented gap), requiring all 5 items. Descriptive medians/counts describe this finite set of released rows, not a random sample of countries. The full output includes all item and contrast values, not just selected examples. The published gender-gap standard error is used directly. Cross-item covariance is not released. A secondary normal-approximation screen uses SE upper bound = SE(gapA)+SE(gapB), valid by Cauchy–Schwarz. All 231 eligible nonbenchmark comparisons form one family; z=Phi^-1(1−.05/(2*231))=3.6990004509523957. Approximate bound limits=contrast±z*SEupper. Any zero component SE prevents screening; M would still include the eligible contrast. Empty M produces no screen. This is not exact design-based survey inference, and non-exclusion of zero does not establish equivalence. Near-zero limits for Cyprus hobby−social and Turkey obligation−rejection merit particular caution. Stored source precision is retained, not asserted to be unrounded underlying precision. Main percentage/percentage-point summaries use one decimal place; near-zero endpoints retain extra precision to preserve sign. Screening uses stored precision. The fixed sensitivity excludes the four technical-standard-caution rows Hong Kong (China), Netherlands, Portugal and United States but retains the full-family cutoff. Main 77/sensitivity 73 complete rows. Both include original geographic labels. No source caution is converted into an allegation of unusable data. Outputs: items.csv; contrasts.csv; results.json, including full precision, cell references, source symbols, exclusions, per-unit oriented ranges, benchmarks and summaries. Original source metadata and internal review evidence remain separate. All calculations were independently reproduced from raw worksheet XML using decimal arithmetic and an independently calculated normal quantile, with maximum observed numerical disagreement 4.2e−13 at a 1e−10 acceptance tolerance. English and language/publication gates are separate. This release explicitly sets UTF-8 and LF output in both numerical entry points so the flat recipe reproduces the supplied LF files on Windows as well as other platforms. These serialization changes do not alter any formula, selected source cell or numerical result. The accompanying article makes no claim of blinded design or prospective registration.