{"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/the-causal-impact-of-credit-lines-on-spending","title":"The Causal Impact of Credit Lines on Spending Distributions","arxiv_id":"2312.10388","date":"2023-12-16","proceeding":null,"authors":["Yijun Li","Cheuk Hang Leung","Xiangqian Sun","Chaoqun Wang","Yiyan Huang","Xing Yan","Qi Wu","Dongdong Wang","Zhixiang Huang"],"abstract":"Consumer credit services offered by e-commerce platforms provide customers with convenient loan access during shopping and have the potential to stimulate sales. To understand the causal impact of credit lines on spending, previous studies have employed causal estimators, based on direct regression (DR), inverse propensity weighting (IPW), and double machine learning (DML) to estimate the treatment effect. However, these estimators do not consider the notion that an individual's spending can be understood and represented as a distribution, which captures the range and pattern of amounts spent across different orders. By disregarding the outcome as a distribution, valuable insights embedded within the outcome distribution might be overlooked. This paper develops a distribution-valued estimator framework that extends existing real-valued DR-, IPW-, and DML-based estimators to distribution-valued estimators within Rubin's causal framework. We establish their consistency and apply them to a real dataset from a large e-commerce platform. Our findings reveal that credit lines positively influence spending across all quantiles; however, as credit lines increase, consumers allocate more to luxuries (higher quantiles) than necessities (lower quantiles).","url_abs":"https://arxiv.org/abs/2312.10388v1","url_pdf":"https://arxiv.org/pdf/2312.10388v1.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":"abstracts"},"code_links":[{"paper_slug":"the-causal-impact-of-credit-lines-on-spending","repo_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2312.10388","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.10388"}},"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/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7,"unverified":1},"by_repo_kind":{"official":{"samples":8,"ran":7,"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":"10d43d4c45c48add","entry":"MAE","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"training.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/training.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"10d43d4c45c48add"}},{"code_sha256_prefix":"551370153db92939","entry":"compute_MAE","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"Simulation.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/Simulation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"551370153db92939"}},{"code_sha256_prefix":"cb53f46ab504b553","entry":"compute_RE","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"Simulation.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/Simulation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cb53f46ab504b553"}},{"code_sha256_prefix":"153665c0520f4de1","entry":"est_ECDF","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"baseline_models.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/baseline_models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"153665c0520f4de1"}},{"code_sha256_prefix":"6ffc2fb29d81daec","entry":"mean_square_loss","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"baseline_models.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/baseline_models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ffc2fb29d81daec"}},{"code_sha256_prefix":"95ce4071f411c0ea","entry":"train_classical","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"training.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/training.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"95ce4071f411c0ea"}},{"code_sha256_prefix":"aaea086188f36681","entry":"train_regression","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"training.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/training.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aaea086188f36681"}},{"code_sha256_prefix":"edb0be8ffe5527cd","entry":"Cross_validate","repo":"lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions","repo_kind":"official","path":"baseline_models.py","file_url":"https://github.com/lyjsilence/the-causal-impact-of-credit-lines-on-spending-distributions/blob/HEAD/baseline_models.py","link_basis":"first_harvest_node","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":"edb0be8ffe5527cd"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}