lisuo commited on
Commit
f745ba1
·
verified ·
1 Parent(s): 739513e

Define the population ATT and remove private repository links

Browse files
Files changed (3) hide show
  1. DGP.md +16 -16
  2. README.md +13 -5
  3. SHA256SUMS +2 -2
DGP.md CHANGED
@@ -2,20 +2,20 @@
2
 
3
  Each test study draws a family uniformly, draws its parameters from the family prior, then samples 500 units. Counts vary by chance. The target is the population post-period ATT. Each row contains a treatment indicator, the observed post-minus-pre outcome change and any observed baseline covariates.
4
 
5
- | Family | Test studies | Implementation |
6
- |---|---:|---|
7
- | abadie_lhour | 155 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/abadie_lhour.py) |
8
- | cwz_iid | 158 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/cwz_iid.py) |
9
- | ferman_iid | 142 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/ferman_iid.py) |
10
- | karmakar_censored | 144 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/karmakar_censored.py) |
11
- | mixture | 169 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/mixture.py) |
12
- | qin | 134 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/qin.py) |
13
- | race_iid | 154 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/race_iid.py) |
14
- | santanna_zhao | 150 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/santanna_zhao.py) |
15
- | shi_iid | 161 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/shi_iid.py) |
16
- | truncated | 160 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/truncated.py) |
17
- | ye | 150 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/ye.py) |
18
- | zhao_bridge_panel | 158 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/zhao_bridge_panel.py) |
19
- | zhou_network | 165 | [Sampler](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/mechanisms/zhou_network.py) |
20
 
21
- [Parameter distributions](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/registry.json) · [ATT calculations and random streams](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval/prior.py)
 
2
 
3
  Each test study draws a family uniformly, draws its parameters from the family prior, then samples 500 units. Counts vary by chance. The target is the population post-period ATT. Each row contains a treatment indicator, the observed post-minus-pre outcome change and any observed baseline covariates.
4
 
5
+ | Family | Test studies |
6
+ |---|---:|
7
+ | abadie_lhour | 155 |
8
+ | cwz_iid | 158 |
9
+ | ferman_iid | 142 |
10
+ | karmakar_censored | 144 |
11
+ | mixture | 169 |
12
+ | qin | 134 |
13
+ | race_iid | 154 |
14
+ | santanna_zhao | 150 |
15
+ | shi_iid | 161 |
16
+ | truncated | 160 |
17
+ | ye | 150 |
18
+ | zhao_bridge_panel | 158 |
19
+ | zhou_network | 165 |
20
 
21
+ The scoring archive includes the realized family, parameter values and population ATT for each study in `source_truth.jsonl`.
README.md CHANGED
@@ -26,7 +26,7 @@ configs:
26
 
27
  # Statistical Inference Arena · Difference-in-Differences
28
 
29
- Estimate the average treatment effect on the treated (ATT) in a two-period panel and return a two-sided 95% confidence interval. Each study contains 500 units and contributes one estimate. The benchmark compares a frozen PFN-DiD checkpoint and a cross-fitted random forest on the same 2,000 studies. [Model](https://huggingface.co/lisuo/PFN-DiD) · [Experiment and results](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/results/merged13_parallel128)
30
 
31
  | Purpose | Studies | Download |
32
  |---|---:|---|
@@ -36,9 +36,17 @@ Estimate the average treatment effect on the treated (ATT) in a two-period panel
36
  | Evaluate a fixed method | 2,000 | [Observed inputs, folds and prediction template](https://huggingface.co/datasets/lisuo/StatsInference-Arena-DiD/resolve/main/did-test-inputs-v1.zip) |
37
  | Reproduce the comparison | Same 2,000 | [Population ATT labels and scorer](https://huggingface.co/datasets/lisuo/StatsInference-Arena-DiD/resolve/main/did-test-scoring-v1.zip) |
38
 
39
- ## Target and inputs
40
 
41
- The target is the population mean of the post-treatment potential-outcome difference among treated units, conditional on the study's generating parameters. Each NPZ in the evaluation archive holds baseline covariates `X`, a binary treatment indicator `D`, and the post-minus-pre outcome change `delta_y`, in matching row order. An array with shape (500, 0) denotes a study with no observed covariates. Supply only these three arrays to an estimator.
 
 
 
 
 
 
 
 
42
 
43
  ## Run a first comparison
44
 
@@ -55,7 +63,7 @@ The example computes the treated-minus-control difference in mean changes and us
55
 
56
  The historical files contain the original adapter training and validation studies from ten families. Each archive preserves the original NPZs and manifest, and provides a table-ID-to-ATT CSV. The NPZs also contain simulation labels and metadata. Use only the observed arrays as model inputs.
57
 
58
- The evaluation uses one pooled split. For each study the generator draws one of 13 families uniformly, draws its parameters, then samples 500 units. Seed 20261116 selects the exact tables used for the published comparison. The input archive preserves the observed NPZ bytes and row order. The viewer's evaluation_inputs configuration lists one row per study. Its SHA-256 column identifies the original input file. [DGP definitions and realized counts](DGP.md)
59
 
60
  ## Evaluate a method
61
 
@@ -67,4 +75,4 @@ table_id,estimate,ci_lower,ci_upper
67
 
68
  Run `python score.py truth.csv predictions.csv` after extracting the scoring archive. Each study has equal weight. Bias and RMSE use estimate minus population ATT. Error variance uses the sample variance of those errors (denominator 1,999). Coverage counts intervals containing the truth, including either endpoint. Mean interval length averages upper minus lower. Measure elapsed seconds per study during estimation and record the hardware if reporting runtime.
69
 
70
- PFN-DiD and the RF comparator estimate the treatment propensity and the control-group mean outcome change, then apply the same doubly robust DiD score. PFN-DiD uses an influence-function interval. RF uses 50 whole-row bootstrap resamples with refitting and a normal interval based on the bootstrap standard deviation. [Implementation](https://github.com/lisuo33/DiD-PFN/tree/549d409081058309bc9eec326c427668d82ba4f6/src/pfn_did_eval)
 
26
 
27
  # Statistical Inference Arena · Difference-in-Differences
28
 
29
+ Estimate the average treatment effect on the treated (ATT) in a two-period panel and return a two-sided 95% confidence interval. Each study contains 500 units and contributes one estimate. The benchmark compares a frozen PFN-DiD checkpoint and a cross-fitted random forest on the same 2,000 studies. [Model](https://huggingface.co/lisuo/PFN-DiD)
30
 
31
  | Purpose | Studies | Download |
32
  |---|---:|---|
 
36
  | Evaluate a fixed method | 2,000 | [Observed inputs, folds and prediction template](https://huggingface.co/datasets/lisuo/StatsInference-Arena-DiD/resolve/main/did-test-inputs-v1.zip) |
37
  | Reproduce the comparison | Same 2,000 | [Population ATT labels and scorer](https://huggingface.co/datasets/lisuo/StatsInference-Arena-DiD/resolve/main/did-test-scoring-v1.zip) |
38
 
39
+ ## Target and observations
40
 
41
+ For each study, hold its data-generating mechanism and parameters fixed. The target is the average post-period effect of treatment among units that receive treatment.
42
+
43
+ $$
44
+ \mathrm{ATT} = \mathbb{E}\!\left[Y_1(1)-Y_1(0)\mid D=1\right].
45
+ $$
46
+
47
+ Here $Y_1(1)$ and $Y_1(0)$ are the same unit's potential outcomes in the post period under treatment and under control. The expectation averages over treated units in the population that generated the study. Report one estimate in outcome units and one two-sided 95% confidence interval per study.
48
+
49
+ Each NPZ in the evaluation archive holds baseline covariates `X`, a binary treatment indicator `D`, and the post-minus-pre outcome change `delta_y`, in matching row order. An array with shape (500, 0) denotes a study with no observed covariates. Supply only these three arrays to an estimator.
50
 
51
  ## Run a first comparison
52
 
 
63
 
64
  The historical files contain the original adapter training and validation studies from ten families. Each archive preserves the original NPZs and manifest, and provides a table-ID-to-ATT CSV. The NPZs also contain simulation labels and metadata. Use only the observed arrays as model inputs.
65
 
66
+ The evaluation uses one pooled split. For each study the generator draws one of 13 families uniformly, draws its parameters, then samples 500 units. Seed 20261116 selects the exact tables used for the published comparison. The input archive preserves the observed NPZ bytes and row order. The viewer's evaluation_inputs configuration lists one row per study. Its SHA-256 column identifies the original input file. [DGP families and realized counts](DGP.md)
67
 
68
  ## Evaluate a method
69
 
 
75
 
76
  Run `python score.py truth.csv predictions.csv` after extracting the scoring archive. Each study has equal weight. Bias and RMSE use estimate minus population ATT. Error variance uses the sample variance of those errors (denominator 1,999). Coverage counts intervals containing the truth, including either endpoint. Mean interval length averages upper minus lower. Measure elapsed seconds per study during estimation and record the hardware if reporting runtime.
77
 
78
+ PFN-DiD and the RF comparator estimate the treatment propensity and the control-group mean outcome change, then apply the same doubly robust DiD score. PFN-DiD uses an influence-function interval. RF uses 50 whole-row bootstrap resamples with refitting and a normal interval based on the bootstrap standard deviation.
SHA256SUMS CHANGED
@@ -7,5 +7,5 @@ d29dbf99c8eddd55f3c97c32d66cd8dcd04a2e498d29d84413dfcb848f8463a8 did-starter-v1
7
  fbd05daf8ff056931fdd53419317d88fabcb4129aaf3eb6b19964d31d23d2155 starter_test.csv
8
  92fef9229b0899f2c43ee69df114190cb112ca76345a315698d0d9816d0c9ce8 starter_train.csv
9
  a9a6bd07d94abd7abced8dac1751cd1b24720d8ff172ce1f12cc96b8d778553c test_schema.csv
10
- bf85c2e22aa6234ac3b9d4c0d94b1eef6494606ea78132a6c007c717a5c5477d DGP.md
11
- e38d0ec21d6764bd67043e56ea915d52f1b5d2789677a126a6d87fcc854c7ef3 README.md
 
7
  fbd05daf8ff056931fdd53419317d88fabcb4129aaf3eb6b19964d31d23d2155 starter_test.csv
8
  92fef9229b0899f2c43ee69df114190cb112ca76345a315698d0d9816d0c9ce8 starter_train.csv
9
  a9a6bd07d94abd7abced8dac1751cd1b24720d8ff172ce1f12cc96b8d778553c test_schema.csv
10
+ 2b8a2b169e86ebc5cb18a3cd2fd8a4ba6e45e146915bb9a4abe11a2586191935 DGP.md
11
+ 70cea10bc0127eec9496b7a9cdb8b030a7eea86b29f585ede9a441b692645755 README.md