Download DGP.md from Brownight/StatsInference-Arena-IV: direct link, hf CLI and curl.
- Browser
- Download file 6.52 kB
-
https://huggingface.co/datasets/Brownight/StatsInference-Arena-IV/resolve/main/DGP.md
- Command line
-
hf download hf://datasets/Brownight/StatsInference-Arena-IV/DGP.md
-
curl -L -o DGP.md https://huggingface.co/datasets/Brownight/StatsInference-Arena-IV/resolve/main/DGP.md
Instrumental-variables data-generating processes
Each table describes 500 independent units from one simulated study. The observed variables are baseline covariates X, a binary instrument Z, a binary treatment D and an outcome Y. Holding the study's family and parameter draw fixed, the target is the population local average treatment effect:
Every design satisfies exclusion (Z affects Y only through D), monotonicity (D(1) ≥ D(0)) and independence of Z given X. The nuisance functions used by the reference methods are the instrument propensity e(x) = P(Z=1 | x), the treatment means mD(x,z) = P(D=1 | x, Z=z) and the outcome means mY(x,z) = E[Y | x, Z=z]; all three families give them in closed form, and the LATE equals E[mY(x,1) − mY(x,0)] / E[mD(x,1) − mD(x,0)].
How the splits were generated
| Released split | Tables | Family and parameter sampling |
|---|---|---|
| Historical adapter training | 20,000 | Draw one of the three families with equal probability, then its parameters from the prior below, then 500 context rows and 64 query rows. Root seed 20261116, split id 0. |
| Historical validation | 1,000 | Same prior, root seed 20261116, split id 1. |
| Starter train / dev / test | 48 / 16 / 32 | Fresh draws from the same prior with seed 20261119 and split ids 0 / 1 / 2; 500 rows per table. |
| Pooled evaluation | 2,000 | Draw each family with probability 1/3, then its parameters, then its 500 rows. Seed 20261117. |
All randomness comes from numpy.random.SeedSequence([seed, split_id, table_index]), so every table can be regenerated from its indices with the generator shipped in the starter kit (iv_data.py, reference/). Evaluation draws one table per parameter draw; each table contributes one estimate and one interval.
| Family | Observed covariates | Outcome | Training tables | Validation tables | Evaluation tables |
|---|---|---|---|---|---|
ding |
0 | binary | 6,756 | 317 | 665 |
qiu |
2, 5, 10 or 20 | continuous | 6,547 | 333 | 658 |
kennedy2020 |
1 | binary | 6,697 | 350 | 677 |
Designs and parameter priors
U(a, b) is a continuous uniform distribution; alternatives in a set have equal probability; parameters are drawn once per table. The ranges are ours, chosen to cover a broad band of instrument strengths and effect sizes; they are not the settings used in the source papers.
Binary instrument with a latent binary confounder (ding)
Source design — Ding, VanderWeele and Robins (2017), Instrumental variables as bias amplifiers with general outcome and confounding, Biometrika 104(2), Table 1 (doi); generator copied verbatim from the Arena registry file iv-ding-2017-binary-bias-v1.py. No covariates: X has zero columns.
with monotonicity p₁,ᵤ ≥ p₀,ᵤ. Draw order per unit: Z, U, D, Y.
| Parameter | Prior |
|---|---|
| p_z, p_u | U(0.2, 0.8) each |
| p₀,ᵤ for u ∈ {0, 1} | U(0.05, 0.60) each |
| p₁,ᵤ | p₀,ᵤ + (1 − p₀,ᵤ) f_u, f_u ~ U(0.1, 0.8) |
| r_{d,u}, four entries | U(0.005, 0.995) each |
Nuisances are constants: e = p_z, mD(z) = Σ_u P(U=u) p_{z,u}, mY(z) = Σ_u P(U=u) [(1 − p_{z,u}) r_{0,u} + p_{z,u} r_{1,u}]. LATE = Σ_u P(U=u)(p₁,ᵤ − p₀,ᵤ)(r₁,ᵤ − r₀,ᵤ) / Σ_u P(U=u)(p₁,ᵤ − p₀,ᵤ).
Principal strata with Poisson outcome shifts (qiu)
Source design — Qiu, Tao and Zhou (2021), Inference of heterogeneous treatment effects using observational data with high-dimensional covariates, JRSS-B 83(5), Section 6 DGP2 without interaction (doi); generator copied verbatim from the Arena registry file iv-qiu-2021-principal-stratum-poisson-v1.py.
with L the logistic function and ε, ε₀, ε₁, ε_j independent standard normal.
| Parameter | Prior |
|---|---|
| p | {2, 5, 10, 20} |
| σ₀ | U(0.25, 1) |
| ρ | U(0, 0.7) |
| ζ | U(0.3, 1.5) |
| α₀ | U(−2, 2) |
| λ₁₁, λ₀₀ | U(0, 1.5) each |
Nuisances: e(x) = L(t), mD(x,0) = Φ(t − ζ), mD(x,1) = a + (1 − a)Φ(t + ζ) with a = Φ(t − ζ), mY(x,z) = 2t + λ₁₁ a + λ₀₀ (1 − a)(1 − Φ(t + ζ)) + α₀ mD(x,z). LATE = α₀.
Sharp-instrument design with a latent complier type (kennedy2020)
Source design — Kennedy, Balakrishnan and G'Sell (2020), Sharp instruments for classifying compliers and generalizing causal effects, Annals of Statistics 48(4), Section 6.1 and Appendices E and I (arXiv).
C is the latent complier indicator. (b₀, b₁) are solved from the complier strength μ = E[Φ(b₀ + b₁X)], fixed at 0.3, and the sharpness ψ of the paper (b₁ from a 400-point ψ table, b₀ = Φ⁻¹(μ)·√(1 + b₁²)).
| Parameter | Prior |
|---|---|
| μ | 0.3 (fixed) |
| ψ | U(0.2, 0.8) |
| β | U(−0.4, 0.4) |
Nuisances with γ(x) = Φ(b₀ + b₁x): e(x) = L(x), mD(x,0) = (1 − γ)/2, mD(x,1) = γ + (1 − γ)/2, mY(x,z) = 0.5 − β/2 + β mD(x,z). LATE = β.
Notes
- About 1% of tables have a very weak instrument (first-stage difference below 0.05); they are kept and dominate the RMSE of any estimator.
- In the Kennedy design e(x) runs from about 0.04 to 0.96 over the observed range of X; learners whose propensity estimates reach exactly 0 or 1 (for example untrimmed random forests) fail on it unless the propensity is clipped.
- The Ding tables have no covariates, so their nuisances are constants and the LATE reduces to the Wald ratio.
- Everything is simulated from the equations above; no real data is involved.