IDEAS home Printed from https://ideas.repec.org/p/bis/biswps/1122.html

gingado: a machine learning library focused on economics and finance

Author

Listed:
  • Douglas Kiarelly Godoy de Araujo

Abstract

gingado is an open source Python library that offers a variety of convenience functions and objects to support usage of machine learning in economics research. It is designed to be compatible with widely used machine learning libraries. gingado facilitates augmenting user datasets with relevant data directly obtained from official sources by leveraging the SDMX data and metadata sharing protocol. The library also offers a benchmarking object that creates a random forest with a reasonably good performance out-of-the-box and, if provided with candidate models, retains the one with the best performance. gingado also includes methods to help with machine learning model documentation, including ethical considerations. Further, gingado provides a flexible simulatation of panel datasets with a variety of non-linear causal treatment effects, to support causal model prototyping and benchmarking. The library is under active development and new functionalities are periodically added or improved.

Suggested Citation

  • Douglas Kiarelly Godoy de Araujo, 2023. "gingado: a machine learning library focused on economics and finance," BIS Working Papers 1122, Bank for International Settlements.
  • Handle: RePEc:bis:biswps:1122
    as

    Download full text from publisher

    File URL: https://www.bis.org/publ/work1122.pdf
    File Function: Full PDF document
    Download Restriction: no

    File URL: https://www.bis.org/publ/work1122.htm
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Sebastian Doerr & Leonardo Gambacorta & José María Serena Garralda, 2021. "Big data and machine learning in central banking," BIS Working Papers 930, Bank for International Settlements.
    2. Barbara Rossi, 2013. "Exchange Rate Predictability," Journal of Economic Literature, American Economic Association, vol. 51(4), pages 1063-1119, December.
    3. Anja Lambrecht & Catherine Tucker, 2019. "Algorithmic Bias? An Empirical Study of Apparent Gender-Based Discrimination in the Display of STEM Career Ads," Management Science, INFORMS, vol. 65(7), pages 2966-2981, July.
    4. Alberto Abadie & Javier Gardeazabal, 2003. "The Economic Costs of Conflict: A Case Study of the Basque Country," American Economic Review, American Economic Association, vol. 93(1), pages 113-132, March.
    5. Jens Ludwig & Sendhil Mullainathan, 2021. "Fragile Algorithms and Fallible Decision-Makers: Lessons from the Justice System," Journal of Economic Perspectives, American Economic Association, vol. 35(4), pages 71-96, Fall.
    6. Andreas Fuster & Paul Goldsmith‐Pinkham & Tarun Ramadorai & Ansgar Walther, 2022. "Predictably Unequal? The Effects of Machine Learning on Credit Markets," Journal of Finance, American Finance Association, vol. 77(1), pages 5-47, February.
    7. Liming Brotcke, 2022. "Time to Assess Bias in Machine Learning Models for Credit Decisions," JRFM, MDPI, vol. 15(4), pages 1-10, April.
    8. Guido W. Imbens & Jeffrey M. Wooldridge, 2009. "Recent Developments in the Econometrics of Program Evaluation," Journal of Economic Literature, American Economic Association, vol. 47(1), pages 5-86, March.
    9. Hal R. Varian, 2014. "Big Data: New Tricks for Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 28(2), pages 3-28, Spring.
    10. Abadie, Alberto & Diamond, Alexis & Hainmueller, Jens, 2010. "Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of California’s Tobacco Control Program," Journal of the American Statistical Association, American Statistical Association, vol. 105(490), pages 493-505.
    11. Victor Chernozhukov & Mert Demirer & Esther Duflo & Iván Fernández-Val, 2018. "Generic Machine Learning Inference on Heterogeneous Treatment Effects in Randomized Experiments, with an Application to Immunization in India," NBER Working Papers 24678, National Bureau of Economic Research, Inc.
    12. Òscar Jordà & Björn Richter & Moritz Schularick & Alan M Taylor, 2021. "Bank Capital Redux: Solvency, Liquidity, and Crisis," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 88(1), pages 260-286.
    13. Emanuel Kohlscheen, 2021. "What does machine learning say about the drivers of inflation?," BIS Working Papers 980, Bank for International Settlements.
    14. Sendhil Mullainathan & Jann Spiess, 2017. "Machine Learning: An Applied Econometric Approach," Journal of Economic Perspectives, American Economic Association, vol. 31(2), pages 87-106, Spring.
    15. Domenico Giannone & Michele Lenza & Giorgio E. Primiceri, 2021. "Economic Predictions With Big Data: The Illusion of Sparsity," Econometrica, Econometric Society, vol. 89(5), pages 2409-2437, September.
    16. Christopher Yeh & Anthony Perez & Anne Driscoll & George Azzari & Zhongyi Tang & David Lobell & Stefano Ermon & Marshall Burke, 2020. "Using publicly available satellite imagery and deep learning to understand economic well-being in Africa," Nature Communications, Nature, vol. 11(1), pages 1-11, December.
    17. Alberto Abadie, 2021. "Using Synthetic Controls: Feasibility, Data Requirements, and Methodological Aspects," Journal of Economic Literature, American Economic Association, vol. 59(2), pages 391-425, June.
    18. Imbens,Guido W. & Rubin,Donald B., 2015. "Causal Inference for Statistics, Social, and Biomedical Sciences," Cambridge Books, Cambridge University Press, number 9780521885881, June.
    19. Leonardo N. Ferreira, 2021. "Forecasting with VAR-teXt and DFM-teXt Models:exploring the predictive power of central bank communication," Working Papers Series 559, Central Bank of Brazil, Research Department.
    20. Maliar, Lilia & Maliar, Serguei & Winant, Pablo, 2021. "Deep learning for solving dynamic economic models," Journal of Monetary Economics, Elsevier, vol. 122(C), pages 76-101.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Douglas Kiarelly Godoy de Araujo, 2024. "Synthetic controls with machine learning: application on the effect of labour deregulation on worker productivity in Brazil," BIS Working Papers 1181, Bank for International Settlements.
    2. Zheng, Yuqi & Lucey, Brian, 2025. "Talking Trump and tanking markets," Finance Research Letters, Elsevier, vol. 85(PA).
    3. Bilyana Bogdanova & Brian Buffett & Bianca Ligani & Ismail Mustafi & Stratos Nikoloutsos & Rafael Schmidt & Bruno Tissot, 2025. "SDMX adoption and use of open source tools," IFC Reports 17, Bank for International Settlements.
    4. Douglas Araujo & Brian Buffett, 2026. "sdmx.io: where tools and learning resources come together to address official statistics use cases," IFC Bulletins chapters, in: Bank for International Settlements (ed.), Data science in central banking, volume 67, Bank for International Settlements.
    5. Rahaman, Shafeeq Ur & Abdul, Mahe Jabeen, 2025. "Quantifying uncertainty in economics policy predictions: A Bayesian & Monte Carlo based data-driven approach," International Review of Financial Analysis, Elsevier, vol. 102(C).
    6. Douglas Kiarelly Godoy de Araujo & Carlos Cantú & Allan Chinchilla & Cecilia Franco & Jon Frost & Andrea Oconitrillo, 2024. "Fast payments and banking: Costa Rica's SINPE Móvil," BIS Papers chapters, in: Bank for International Settlements (ed.), Faster digital payments: global and regional perspectives, volume 127, pages 45-60, Bank for International Settlements.
    7. Aquilina, Matteo & Araujo, Douglas & Gelos, Gaston & Park, Taejin & Perez-Cruz, Fernando, 2025. "Harnessing Artificial Intelligence for Monitoring Financial Markets," CEPR Discussion Papers 20768, Centre for Economic Policy Research.
    8. Zheng, Yuqi & Lucey, Brian, 2025. "Central bankers’ political discourse as a driver of clean energy markets," Research in International Business and Finance, Elsevier, vol. 80(C).
    9. Douglas Kiarelly Godoy de Araujo, 2025. "Open-sourced central bank macroeconomic models," IFC Bulletins chapters, in: Bank for International Settlements (ed.), Data science in central banking: enhancing the access to and sharing of data, volume 64, Bank for International Settlements.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Dennis Shen & Peng Ding & Jasjeet Sekhon & Bin Yu, 2022. "Same Root Different Leaves: Time Series and Cross-Sectional Methods in Panel Data," Papers 2207.14481, arXiv.org, revised Oct 2022.
    2. Dennis Shen & Peng Ding & Jasjeet Sekhon & Bin Yu, 2023. "Same Root Different Leaves: Time Series and Cross‐Sectional Methods in Panel Data," Econometrica, Econometric Society, vol. 91(6), pages 2125-2154, November.
    3. Graham, Daniel J., 2025. "Causal inference for transport research," Transportation Research Part A: Policy and Practice, Elsevier, vol. 192(C).
    4. Disa M. Hynsjö & Luca Perdoni, 2024. "Mapping Out Institutional Discrimination: The Economic Effects of Federal “Redlining”," CESifo Working Paper Series 11098, CESifo.
    5. repec:osf:osfxxx:s8ayp_v1 is not listed on IDEAS
    6. Michael Funke & Helery Tasane, 2025. "Regional economic impacts of the Øresund cross-border fixed link: Cui Bono?," Regional Studies, Taylor & Francis Journals, vol. 59(1), pages 2573115-257, December.
    7. Alexander Goryunov & Elena Ageshina & Igor Lavrentev & Polina Peretyatko, 2023. "Estimating the effect of Russia’s development policy in the Far Eastern region: The synthetic control approach," Applied Econometrics, Russian Academy of National Economy and Public Administration (RANEPA), vol. 72, pages 58-72.
    8. Guido W. Imbens, 2020. "Potential Outcome and Directed Acyclic Graph Approaches to Causality: Relevance for Empirical Practice in Economics," Journal of Economic Literature, American Economic Association, vol. 58(4), pages 1129-1179, December.
    9. Dennis Shen, 2026. "From Control to Treatment: Causal Forecasting Beyond the Observed Panel," Papers 2606.18512, arXiv.org, revised Aug 2026.
    10. Denis Fougère & Nicolas Jacquemet, 2020. "Policy Evaluation Using Causal Inference Methods," Sciences Po Economics Publications (main) hal-03455978, HAL.
    11. Florian F Gunsilius, 2025. "A primer on optimal transport for causal inference with observational data," Papers 2503.07811, arXiv.org, revised Aug 2026.
    12. Roy Cerqueti & Raffaella Coppier & Alessandro Girardi & Marco Ventura, 2022. "The sooner the better: lives saved by the lockdown during the COVID-19 outbreak. The case of Italy," The Econometrics Journal, Royal Economic Society, vol. 25(1), pages 46-70.
    13. Bowen Liu & John R. Bryson & Deniz Sevinc & Matthew A. Cole & Robert J. R. Elliott & Suzanne E. Bartington & William J. Bloss & Zongbo Shi, 2023. "Assessing the Impacts of Birmingham’s Clean Air Zone on Air Quality: Estimates from a Machine Learning and Synthetic Control Approach," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 86(1), pages 203-231, October.
    14. Anish Agarwal & Devavrat Shah & Dennis Shen, 2026. "Synthetic Interventions: Extending Synthetic Controls to Multiple Treatments," Operations Research, INFORMS, vol. 74(2), pages 840-859, March.
    15. Rodríguez-Puello, Gabriel, 2024. "Digging for Trouble? Uncovering the Link Between Mining Booms and Crime," OSF Preprints s8ayp, Center for Open Science.
    16. Laura Lopez-Gomez & Laura Policardo & Edgar J. Sanchez-Carrera, 2025. "Assessing Italy’s Severino Law: impacts on corruption control and inequality," International Economics and Economic Policy, Springer, vol. 22(4), pages 1-29, October.
    17. Wang, Jingyuan & Terabe, Shintaro & Yaginuma, Hideki, 2026. "Evaluating the long-term urban effects of high-speed rail in Japan: An integrated approach using synthetic difference-in-differences and double/debiased machine learning," Transportation Research Part A: Policy and Practice, Elsevier, vol. 203(C).
    18. Byron Botha & Rulof Burger & Kevin Kotzé & Neil Rankin & Daan Steenkamp, 2023. "Big data forecasting of South African inflation," Empirical Economics, Springer, vol. 65(1), pages 149-188, July.
    19. Taehyeon Koo & Zijian Guo, 2025. "Synthetic Control with Weight Uncertainty: Robust Identification and Statistical Inference," Papers 2511.02632, arXiv.org, revised Aug 2026.
    20. Grodecka-Messi, Anna & Zhang, Xin, 2023. "Private bank money vs central bank money: A historical lesson for CBDC introduction," Journal of Economic Dynamics and Control, Elsevier, vol. 154(C).
    21. Dubé, Jean & Le Gallo, Julie & Des Rosiers, François & Legros, Diègo & Champagne, Marie-Pier, 2024. "An integrated causal framework to evaluate uplift value with an example on change in public transport supply," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 185(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software
    • C14 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Semiparametric and Nonparametric Methods: General
    • C82 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Methodology for Collecting, Estimating, and Organizing Macroeconomic Data; Data Access

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bis:biswps:1122. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Martin Fessler (email available below). General contact details of provider: https://edirc.repec.org/data/bisssch.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.