Source Code of Itao, K., Kaneko, K. Evolution of family systems and resultant socio-economic structures. Humanit Soc Sci Commun 8, 243 (2021). https://doi.org/10.1057/s41599-021-00919-2
We build a simple model of societies consisting of families which grow by the family labor and evolve strategies concerning the timing for children to leave the parent's home and the inheritance distribution among children. With evolutionary simulation, four basic family systems emerge depending on environmental parameter values. Besides, societies exhibit the characteristic wealth distribution determined by the dominant family systems therein.
See minimal/family_system.py for details.
As for extended models that include marriage process, see extended for details.
We also conducted empirical data analysis using the ethnographic database, Standard Cross-Cultural Sample. See data_analysis/family_system_SCCS.py for details.