I think you’ve raised a great topic, and it could serve as the foundation for another post. One study found that the environment plays the most significant role here, especially the nonshared environment (outside siblings/family). This challenges the traditional view that growing up in the same household has a major influence on personality and intelligence.
Source: https://pmc.ncbi.nlm.nih.gov/articles/PMC3147063/