Friends Across the Divide
How I rebuilt five figures from the Social Capital Atlas to show how cross-class friendships shape economic mobility in America.
How I rebuilt five figures from the Social Capital Atlas to show how cross-class friendships shape economic mobility in America.
Where a child grows up strongly shapes how far they climb, but why some places produce more upward mobility than others has been hard to pin down. The Social Capital Atlas offered a striking answer: friendships across class lines matter more than almost anything else. Findings this influential are worth testing. So I wanted to know whether the headline results would hold up if I rebuilt them myself from the raw public data, without the authors' code.
For the Applied Machine Learning course in my BSc (2022), I built a Python replication of five figures from the two Nature papers, using pandas, Plotly, seaborn and matplotlib:
All five figures reproduced the original findings:
