SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.17840 · 2024

Detecting and Measuring Confounding Using Causal Mechanism Shifts

arXiv · PDF · Open in the Atlas

Code that ran

4 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2409.17840.json · badge: /api/ran/2409.17840.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
gautam0707/cd_cnf canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
FunctionStatusWhere it lives
calculate_probability_distribution Ran
ran, honoured the contract we drafted
gautam0707/cd_cnf/setting1/ErdosRenyi/confounding_measure.py
pointer only (licence: NONE) · get_code("850638b4b245ee62")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

check_ground_truth_confounding Ran
ran; our contract draft was wrong, not the code
gautam0707/cd_cnf/setting1/ErdosRenyi/generate_data.py
pointer only (licence: NONE) · get_code("af09e7c36a1ada08")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_erdos_renyi_dag Ran
ran, honoured the contract we drafted
gautam0707/cd_cnf/setting1/ErdosRenyi/generate_data.py
pointer only (licence: NONE) · get_code("d4a2c672b3e95553")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

path_exists_not_via Ran
ran; our contract draft was wrong, not the code
gautam0707/cd_cnf/setting1/ErdosRenyi/generate_data.py
pointer only (licence: NONE) · get_code("642f38254b872236")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_interventional_x_data_icm Not yet run
unverified (harvested, no recorded run)
gautam0707/cd_cnf/setting3/cond_cnf_synthetic/generate_data.py
pointer only (licence: NONE) · get_code("01e1fd80bc2f3ae0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate_observational_data_icm Not yet run
unverified (harvested, no recorded run)
gautam0707/cd_cnf/setting2/cond_cnf_synthetic/generate_data.py
pointer only (licence: NONE) · get_code("20547bb22ed100eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

kl_divergence Not yet run
unverified (harvested, no recorded run)
gautam0707/cd_cnf/setting1/ErdosRenyi/confounding_measure.py
pointer only (licence: NONE) · get_code("379cd203182267e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gautam0707/cd_cnf when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Detecting and measuring confounding effects from data is a key challenge in causal inference. Existing methods frequently assume causal sufficiency, disregarding the presence of unobserved confounding variables. Causal sufficiency is both unrealistic and empirically untestable. Additionally, existing methods make strong parametric assumptions about the underlying causal generative process to guarantee the identifiability of confounding variables. Relaxing the causal sufficiency and parametric assumptions and leveraging recent advancements in causal discovery and confounding analysis with non-i.i.d. data, we propose a comprehensive approach for detecting and measuring confounding. We consider various definitions of confounding and introduce tailored methodologies to achieve three objectives: (i) detecting and measuring confounding among a set of variables, (ii) separating observed and unobserved confounding effects, and (iii) understanding the relative strengths of confounding bias between different sets of variables. We present useful properties of a confounding measure and present measures that satisfy those properties. Empirical results support the theoretical analysis.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.17840")
get_code_for_paper("2409.17840")
have("2409.17840")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2409.17840.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2409.17840.svg)](https://syntology.ai/paper/2409.17840)

Connect an agent — have() is free.