IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0284443.html
   My bibliography  Save this article

DagSim: Combining DAG-based model structure with unconstrained data types and relations for flexible, transparent, and modularized data simulation

Author

Listed:
  • Ghadi S Al Hajj
  • Johan Pensar
  • Geir K Sandve

Abstract

Data simulation is fundamental for machine learning and causal inference, as it allows exploration of scenarios and assessment of methods in settings with full control of ground truth. Directed acyclic graphs (DAGs) are well established for encoding the dependence structure over a collection of variables in both inference and simulation settings. However, while modern machine learning is applied to data of an increasingly complex nature, DAG-based simulation frameworks are still confined to settings with relatively simple variable types and functional forms. We here present DagSim, a Python-based framework for DAG-based data simulation without any constraints on variable types or functional relations. A succinct YAML format for defining the simulation model structure promotes transparency, while separate user-provided functions for generating each variable based on its parents ensure simulation code modularization. We illustrate the capabilities of DagSim through use cases where metadata variables control shapes in an image and patterns in bio-sequences. DagSim is available as a Python package at PyPI. Source code and documentation are available at: https://github.com/uio-bmi/dagsim

Suggested Citation

  • Ghadi S Al Hajj & Johan Pensar & Geir K Sandve, 2023. "DagSim: Combining DAG-based model structure with unconstrained data types and relations for flexible, transparent, and modularized data simulation," PLOS ONE, Public Library of Science, vol. 18(4), pages 1-9, April.
  • Handle: RePEc:plo:pone00:0284443
    DOI: 10.1371/journal.pone.0284443
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0284443
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0284443&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0284443?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Lagani, Vincenzo & Athineou, Giorgos & Farcomeni, Alessio & Tsagris, Michail & Tsamardinos, Ioannis, 2017. "Feature Selection with the R Package MXM: Discovering Statistically Equivalent Feature Subsets," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 80(i07).
    2. Rosseel, Yves, 2012. "lavaan: An R Package for Structural Equation Modeling," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 48(i02).
    3. Scutari, Marco, 2010. "Learning Bayesian Networks with the bnlearn R Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 35(i03).
    Full references (including those not matched with items on IDEAS)

    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. Ünsal-Altuncan, Izel & Vanhoucke, Mario, 2024. "A hybrid forecasting model to predict the duration and cost performance of projects with Bayesian Networks," European Journal of Operational Research, Elsevier, vol. 315(2), pages 511-527.
    2. Md. Mominur Rahman & Bilkis Akhter, 2021. "The impact of investment in human capital on bank performance: evidence from Bangladesh," Future Business Journal, Springer, vol. 7(1), pages 1-13, December.
    3. César Merino-Soto & Gina Chávez-Ventura & Verónica López-Fernández & Guillermo M. Chans & Filiberto Toledano-Toledano, 2022. "Learning Self-Regulation Questionnaire (SRQ-L): Psychometric and Measurement Invariance Evidence in Peruvian Undergraduate Students," Sustainability, MDPI, vol. 14(18), pages 1-17, September.
    4. Prabal Das & D. A. Sachindra & Kironmala Chanda, 2022. "Machine Learning-Based Rainfall Forecasting with Multiple Non-Linear Feature Selection Algorithms," Water Resources Management: An International Journal, Published for the European Water Resources Association (EWRA), Springer;European Water Resources Association (EWRA), vol. 36(15), pages 6043-6071, December.
    5. Nathaniel Oliver Iotti & Damiano Menin & Tomas Jungert, 2022. "Early Adolescents’ Motivations to Defend Victims of Cyberbullying," IJERPH, MDPI, vol. 19(14), pages 1-9, July.
    6. Christoph Dworschak, 2024. "Bias mitigation in empirical peace and conflict studies: A short primer on posttreatment variables," Journal of Peace Research, Peace Research Institute Oslo, vol. 61(3), pages 462-476, May.
    7. Andreea-Ionela Puiu & Anca Monica Ardeleanu & Camelia Cojocaru & Anca Bratu, 2021. "Exploring the Effect of Status Quo, Innovativeness, and Involvement Tendencies on Luxury Fashion Innovations: The Mediation Role of Status Consumption," Mathematics, MDPI, vol. 9(9), pages 1-18, May.
    8. Slupphaug, KJell & Mehmetoglu, Mehmet & Mittner, Matthias, 2024. "modsem: An R package for estimating latent interactions and quadratic effects," OSF Preprints h3rpw, Center for Open Science.
    9. Allen, Jaime & Muñoz, Juan Carlos & Ortúzar, Juan de Dios, 2019. "On evasion behaviour in public transport: Dissatisfaction or contagion?," Transportation Research Part A: Policy and Practice, Elsevier, vol. 130(C), pages 626-651.
    10. Merkle, Edgar C. & Steyvers, Mark & Mellers, Barbara & Tetlock, Philip E., 2017. "A neglected dimension of good forecasting judgment: The questions we choose also matter," International Journal of Forecasting, Elsevier, vol. 33(4), pages 817-832.
    11. Sai-fu Fung & Esther Oi-wah Chow & Chau-kiu Cheung, 2020. "Development and Evaluation of the Psychometric Properties of a Brief Wisdom Development Scale," IJERPH, MDPI, vol. 17(8), pages 1-14, April.
    12. Zou, Yuxuan & Wang, Donggen, 2025. "Differences in the influence of the built environment and physical activity on obesity in urban and suburban contexts," Social Science & Medicine, Elsevier, vol. 372(C).
    13. repec:plo:pone00:0205222 is not listed on IDEAS
    14. Goran Calic & Moren Lévesque & Anton Shevchenko, 2024. "On why women-owned businesses take more time to secure microloans," Small Business Economics, Springer, vol. 63(3), pages 917-938, October.
    15. Dang Vu, Hoai Nam & Nielsen, Martin Reinhardt, 2022. "Understanding determinants of the intention to buy rhino horn in Vietnam through the Theory of Planned Behaviour and the Theory of Interpersonal Behaviour," Ecological Economics, Elsevier, vol. 195(C).
    16. Raf Buyle & Mathias Van Compernolle & Eveline Vlassenroot & Ziggy Vanlishout & Peter Mechant & Erik Mannens, 2018. "“Technology Readiness and Acceptance Model” as a Predictor for the Use Intention of Data Standards in Smart Cities," Media and Communication, Cogitatio Press, vol. 6(4), pages 127-139.
    17. Wenigmann, Marc & Weiß, Julia & Heidelberg, Rahel, 2024. "Holding anti-feminist gender role beliefs mediate the relationship between family-related adverse childhood experiences and different forms of intimate partner violence perpetration in adulthood," Journal of Criminal Justice, Elsevier, vol. 93(C).
    18. Evans O. Mudibo & Jasper Bogaert & Caroline Tigoi & Moses M. Ngari & Benson O. Singa & Christina L. Lancioni & Abdoulaye Hama Diallo & Emmie Mbale & Ezekiel Mupere & John Mukisa & Johnstone Thitiri & , 2024. "Systemic biological mechanisms underpin poor post-discharge growth among severely wasted children with HIV," Nature Communications, Nature, vol. 15(1), pages 1-17, December.
    19. Georges Steffgen & Philipp E. Sischka & Martha Fernandez de Henestrosa, 2020. "The Quality of Work Index and the Quality of Employment Index: A Multidimensional Approach of Job Quality and Its Links to Well-Being at Work," IJERPH, MDPI, vol. 17(21), pages 1-31, October.
    20. Zaitun Mohd Saman & Ab Hamid Siti-Azrin & Azizah Othman & Yee Cheng Kueh, 2021. "The Validity and Reliability of the Malay Version of the Cyberbullying Scale among Secondary School Adolescents in Malaysia," IJERPH, MDPI, vol. 18(21), pages 1-12, November.
    21. Roland R. Ramsahai, 2020. "Connecting actuarial judgment to probabilistic learning techniques with graph theory," Papers 2007.15475, arXiv.org.

    More about this item

    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:plo:pone00:0284443. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.