{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/testing-mediation-effects-using-logic-of","title":"Testing Mediation Effects Using Logic of Boolean Matrices","arxiv_id":"2005.04584","date":"2020-05-10","proceeding":null,"authors":["Chengchun Shi","Lexin Li"],"abstract":"Mediation analysis is becoming an increasingly important tool in scientific studies. A central question in high-dimensional mediation analysis is to infer the significance of individual mediators. The main challenge is the sheer number of possible paths that go through all combinations of mediators. Most existing mediation inference solutions either explicitly impose that the mediators are conditionally independent given the exposure, or ignore any potential directed paths among the mediators. In this article, we propose a novel hypothesis testing procedure to evaluate individual mediation effects, while taking into account potential interactions among the mediators. Our proposal thus fills a crucial gap, and greatly extends the scope of existing mediation tests. Our key idea is to construct the test statistic using the logic of Boolean matrices, which enables us to establish the proper limiting distribution under the null hypothesis. We further employ screening, data splitting, and decorrelated estimation to reduce the bias and increase the power of the test. We show our test can control both the size and false discovery rate asymptotically, and the power of the test approaches one, meanwhile allowing the number of mediators to diverge to infinity with the sample size. We demonstrate the efficacy of our method through both simulations and a neuroimaging study of Alzheimer's disease.","url_abs":"http://arxiv.org/abs/2005.04584v1","url_pdf":"http://arxiv.org/pdf/2005.04584v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"testing-mediation-effects-using-logic-of","repo_url":"https://github.com/callmespring/LOGAN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2005.04584","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2005.04584"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/callmespring/LOGAN","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"unverified":3},"by_repo_kind":{"listed":{"samples":4,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"2a4605e98eb5ad15","entry":"simulate_parameter","repo":"callmespring/LOGAN","repo_kind":"listed","path":"LOGAN/utils.py","file_url":"https://github.com/callmespring/LOGAN/blob/HEAD/LOGAN/utils.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2a4605e98eb5ad15"}},{"code_sha256_prefix":"3aa446b0eb80d82b","entry":"generate_dag_exam1","repo":"callmespring/LOGAN","repo_kind":"listed","path":"LOGAN/utils.py","file_url":"https://github.com/callmespring/LOGAN/blob/HEAD/LOGAN/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3aa446b0eb80d82b"}},{"code_sha256_prefix":"ed0e20dd3e6405e6","entry":"notears_linear_l1","repo":"callmespring/LOGAN","repo_kind":"listed","path":"LOGAN/notears.py","file_url":"https://github.com/callmespring/LOGAN/blob/HEAD/LOGAN/notears.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ed0e20dd3e6405e6"}},{"code_sha256_prefix":"8cf3b7671dac2e93","entry":"simulate_from_dag_lg","repo":"callmespring/LOGAN","repo_kind":"listed","path":"LOGAN/utils.py","file_url":"https://github.com/callmespring/LOGAN/blob/HEAD/LOGAN/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8cf3b7671dac2e93"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}