{"document":{"doc_id":82576,"source":"fed_paper","org":"FRB","doc_type":"Finance and Economics Discussion Series","title":"Parallel Trends Forest: Data-Driven Control Sample Selection in Difference-in-Differences","date":"2025-09-29","url":"https://www.fedinprint.org/item/fedgfe/102264/original","source_native_id":"fedgfe:102264","status":"fetched","abstract":"This paper introduces parallel trends forest, a novel approach to selecting optimal control samples when using difference-in-differences (DiD) in a relatively long panel data with little randomization in treatment assignment. Our method uses machine learning techniques to find control units that best meet the parallel trends assumption. We demonstrate that our approach outperforms existing methods, particularly with noisy, granular data. Applying the parallel trends forest to analyze the impact of post-trade transparency in corporate bond markets, we find that it produces more robust estimates compared to traditional two-way fixed effects models. Our results suggest that the effect of transparency on bond turnover is small and not statistically significant when allowing for constrained deviations from parallel trends. This method offers researchers a powerful tool for conducting more reliable DiD analyses in complex, real-world settings.","action":null},"dockets":[],"rins":[],"related":[],"references":[{"citation_id":645403,"raw_reference":"Wooldridge (2020): “Sampling-based versus designbased uncertainty in regression analysis,” Econometrica, 88, 265–296.","cited_authors":"Wooldridge","cited_year":"2020","cited_title":"Sampling-based versus designbased uncertainty in regression analysis","cited_venue":null,"cited_doi":"10.3982/ecta12675","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76477,"paper_title":"Sampling‐Based versus Design‐Based Uncertainty in Regression Analysis","paper_year":2020,"paper_doi":"10.3982/ecta12675"},{"citation_id":645404,"raw_reference":"Hainmueller (2010): “Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program,” The Journal of the American Statistical Association, 105, 493–505.","cited_authors":"Hainmueller","cited_year":"2010","cited_title":"Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program","cited_venue":null,"cited_doi":"10.1198/jasa.2009.ap08746","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":59056,"paper_title":"Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program","paper_year":2010,"paper_doi":"10.1198/jasa.2009.ap08746"},{"citation_id":645405,"raw_reference":"Gardeazabal (2003): “The Economic Costs of Conflict: A Case Study of the Basque Country,” The American Economic Review, 93, 113–132.","cited_authors":"Gardeazabal","cited_year":"2003","cited_title":"The Economic Costs of Conflict: A Case Study of the Basque Country","cited_venue":null,"cited_doi":"10.1257/000282803321455188","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":59059,"paper_title":"The Economic Costs of Conflict: A Case Study of the Basque Country","paper_year":2003,"paper_doi":"10.1257/000282803321455188"},{"citation_id":645406,"raw_reference":"Wager (2021): “Synthetic Difference-in-Differences,” The American Economic Review, 111, 4088–4118.","cited_authors":"Wager","cited_year":"2021","cited_title":"Synthetic Difference-in-Differences","cited_venue":null,"cited_doi":"10.1257/aer.20190159","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":25096,"paper_title":"Synthetic Difference-in-Differences","paper_year":2021,"paper_doi":"10.1257/aer.20190159"},{"citation_id":645407,"raw_reference":"Pathak (2019): “The Effects of Mandatory Transparency in Financial Market Design: Evidence from the Corporate Bond Market,” Working Paper.","cited_authors":"Pathak","cited_year":"2019","cited_title":"The Effects of Mandatory Transparency in Financial Market Design: Evidence from the Corporate Bond Market","cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"working_paper","section":"refsec","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":645408,"raw_reference":"Khosravi (2021): “Matrix Completion Methods for Causal Panel Data Models,” Journal of the American Statistical Association, 116, 1716–1730.","cited_authors":"Khosravi","cited_year":"2021","cited_title":"Matrix Completion Methods for Causal Panel Data Models","cited_venue":null,"cited_doi":"10.1080/01621459.2021.1891924","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76478,"paper_title":"Matrix Completion Methods for Causal Panel Data Models","paper_year":2018,"paper_doi":"10.1080/01621459.2021.1891924"},{"citation_id":645409,"raw_reference":"Wager (2019): “Generalized Random Forests,” The Annals of Statistics, 47, 1148–1178.","cited_authors":"Wager","cited_year":"2019","cited_title":"Generalized Random Forests","cited_venue":null,"cited_doi":"10.32614/cran.package.grf","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76479,"paper_title":"grf: Generalized Random Forests","paper_year":2017,"paper_doi":"10.32614/cran.package.grf"},{"citation_id":645410,"raw_reference":"Sant’Anna (2025): “Difference-in-Differences Designs: A Practitioner’s Guide,” forthcoming, Journal of Economic Literature.","cited_authors":"Sant’Anna","cited_year":"2025","cited_title":"Difference-in-Differences Designs: A Practitioner’s Guide","cited_venue":null,"cited_doi":"10.1257/jel.20251650","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76481,"paper_title":"Difference-in-Differences Designs: A Practitioner’s Guide","paper_year":2026,"paper_doi":"10.1257/jel.20251650"},{"citation_id":645411,"raw_reference":"Maxwell (2008): “Markets: Transparency and the Corporate Bond Market,” Journal of Economic Perspectives, 22, 217–234.","cited_authors":"Maxwell","cited_year":"2008","cited_title":"Markets: Transparency and the Corporate Bond Market","cited_venue":null,"cited_doi":"10.1257/jep.22.2.217","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":11793,"paper_title":"Markets: Transparency and the Corporate Bond Market","paper_year":2008,"paper_doi":"10.1257/jep.22.2.217"},{"citation_id":645412,"raw_reference":"Venkataraman (2006): “Market Transparency, Liquidity","cited_authors":"Venkataraman","cited_year":"2006","cited_title":": “Market Transparency, Liquidity","cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"research_report","section":"refsec","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":645413,"raw_reference":"Breiman, L. (2001): “Random forests,” Machine learning, 45, 5–32. Bühlmann, P. and B.","cited_authors":"Breiman, L","cited_year":"2001","cited_title":"Random forests","cited_venue":null,"cited_doi":"10.1023/a:1010933404324","cited_url":null,"ref_kind":"research_report","section":"refsec","page":null,"context_sentence":null,"paper_id":76480,"paper_title":"Random Forests","paper_year":2001,"paper_doi":"10.1023/a:1010933404324"},{"citation_id":645414,"raw_reference":"Yu (2002): “Analyzing Bagging,” The Annals of Statistics, 30, 927–961.","cited_authors":"Yu","cited_year":"2002","cited_title":"Analyzing Bagging","cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":645415,"raw_reference":"Imbens (2016): “Balancing, Regression, Difference-in-Differences and Synthetic Control Methods: A Synthesis,” National Bureau of Economic Research Working Paper.","cited_authors":"Imbens","cited_year":"2016","cited_title":"Balancing, Regression, Difference-in-Differences and Synthetic Control Methods: A Synthesis","cited_venue":null,"cited_doi":"10.3386/w22791","cited_url":null,"ref_kind":"working_paper","section":"refsec","page":null,"context_sentence":null,"paper_id":59088,"paper_title":"Balancing, Regression, Difference-In-Differences and Synthetic Control Methods: A Synthesis","paper_year":2016,"paper_doi":"10.3386/w22791"},{"citation_id":645416,"raw_reference":"Piwowar (2007): “Corporate Bond Market Transaction Costs and Transparency,” The Journal of Finance, 62, 1421–1451.","cited_authors":"Piwowar","cited_year":"2007","cited_title":"Corporate Bond Market Transaction Costs and Transparency","cited_venue":null,"cited_doi":"10.1111/j.1540-6261.2007.01240.x","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":178,"paper_title":"Corporate Bond Market Transaction Costs and Transparency","paper_year":2007,"paper_doi":"10.1111/j.1540-6261.2007.01240.x"},{"citation_id":645417,"raw_reference":"Sirri (2007): “Transparency and Liquidity: A Controlled Experiment on Corporate Bonds,” Review of Financial Studies, 20, 235–273.","cited_authors":"Sirri","cited_year":"2007","cited_title":"Transparency and Liquidity: A Controlled Experiment on Corporate Bonds","cited_venue":null,"cited_doi":"10.1093/rfs/hhl020","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":48926,"paper_title":"Transparency and Liquidity: A Controlled Experiment on Corporate Bonds","paper_year":2006,"paper_doi":"10.1093/rfs/hhl020"},{"citation_id":645418,"raw_reference":"Goodman-Bacon, A. (2021): “Difference-in-Differences with Variation in Treatment Timing,” Journal of","cited_authors":"Goodman-Bacon, A","cited_year":"2021","cited_title":"Difference-in-Differences with Variation in Treatment Timing","cited_venue":null,"cited_doi":"10.1016/j.jeconom.2021.03.014","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":24674,"paper_title":"Difference-in-differences with variation in treatment timing","paper_year":2021,"paper_doi":"10.1016/j.jeconom.2021.03.014"},{"citation_id":645419,"raw_reference":"Wang (2017): “Do College Graduates Serving as Village Officials Help Rural China?” American Economic Journal: Applied Economics, 9, 186–215.","cited_authors":"Wang","cited_year":"2017","cited_title":"Do College Graduates Serving as Village Officials Help Rural China?","cited_venue":null,"cited_doi":"10.1257/app.20160079","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76482,"paper_title":"Do College Graduates Serving as Village Officials Help Rural China?","paper_year":2016,"paper_doi":"10.1257/app.20160079"},{"citation_id":645420,"raw_reference":"Roth (2023): “A More Credible Approach to Parallel Trends,” The Review of Economic Studies, 90, 2555–2591.","cited_authors":"Roth","cited_year":"2023","cited_title":"A More Credible Approach to Parallel Trends","cited_venue":null,"cited_doi":"10.1093/restud/rdad018","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":27291,"paper_title":"A More Credible Approach to Parallel Trends","paper_year":2023,"paper_doi":"10.1093/restud/rdad018"},{"citation_id":645421,"raw_reference":"Roth, J. (2022): “Pretest with Caution: Event-Study Estimates after Testing for Parallel Trends,” American Economic Review: Insights, 4, 305–322.","cited_authors":"Roth, J","cited_year":"2022","cited_title":"Pretest with Caution: Event-Study Estimates after Testing for Parallel Trends","cited_venue":null,"cited_doi":"10.1257/aeri.20210236","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76483,"paper_title":"Pretest with Caution: Event-Study Estimates after Testing for Parallel Trends","paper_year":2022,"paper_doi":"10.1257/aeri.20210236"},{"citation_id":645422,"raw_reference":"Poe (2023): “What’s Trending in Difference-inDifferences? A Synthesis of the Recent Econometrics Literature,” Journal of Econometrics, 235, 2218– 2244.","cited_authors":"Poe","cited_year":"2023","cited_title":"What’s Trending in Difference-inDifferences? A Synthesis of the Recent Econometrics Literature","cited_venue":null,"cited_doi":"10.1016/j.jeconom.2023.03.008","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":24875,"paper_title":"What’s trending in difference-in-differences? A synthesis of the recent econometrics literature","paper_year":2023,"paper_doi":"10.1016/j.jeconom.2023.03.008"},{"citation_id":645423,"raw_reference":"B. (2008): “For Objective Causal Inference, Design Trumps Analysis,” The Annals of Applied","cited_authors":"B","cited_year":"2008","cited_title":"For Objective Causal Inference, Design Trumps Analysis","cited_venue":null,"cited_doi":null,"cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":null,"paper_title":null,"paper_year":null,"paper_doi":null},{"citation_id":645424,"raw_reference":"Hothorn (2007): “Bias in Random Forest Variable Importance Measures: Illustrations, Sources and a Solution,” BMC Bioinformatics, 8, 25.","cited_authors":"Hothorn","cited_year":"2007","cited_title":"Bias in Random Forest Variable Importance Measures: Illustrations, Sources and a Solution","cited_venue":null,"cited_doi":"10.1186/1471-2105-8-25","cited_url":null,"ref_kind":"research_report","section":"refsec","page":null,"context_sentence":null,"paper_id":76484,"paper_title":"Bias in random forest variable importance measures: Illustrations, sources and a solution","paper_year":2007,"paper_doi":"10.1186/1471-2105-8-25"},{"citation_id":645425,"raw_reference":"Athey (2018): “Estimation and Inference of Heterogeneous Treatment Effects using Random Forests,” Journal of the American Statistical Association, 113, 1228–1242.","cited_authors":"Athey","cited_year":"2018","cited_title":"Estimation and Inference of Heterogeneous Treatment Effects using Random Forests","cited_venue":null,"cited_doi":"10.1080/01621459.2017.1319839","cited_url":null,"ref_kind":"journal_article","section":"refsec","page":null,"context_sentence":null,"paper_id":76486,"paper_title":"Estimation and Inference of Heterogeneous Treatment Effects using Random Forests","paper_year":2018,"paper_doi":"10.1080/01621459.2017.1319839"},{"citation_id":645426,"raw_reference":"https://doi.org/10.17016/FEDS.2025.091.","cited_authors":"https://doi.org/10.17016/FEDS","cited_year":"2025","cited_title":null,"cited_venue":null,"cited_doi":"10.17016/feds.2025.091","cited_url":"https://doi.org/10.17016/FEDS.2025.091","ref_kind":"journal_article","section":"doi","page":null,"context_sentence":null,"paper_id":76485,"paper_title":"Parallel Trends Forest: Data-Driven Control Sample Selection in Difference-in-Differences","paper_year":2025,"paper_doi":"10.17016/feds.2025.091"}]}