Skip to content

LanaGeis/US_baby_names_exploration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

US Baby Names Trend Analysis (1880–2019)

Generational Patterns & Visual Insights

A comprehensive data analysis project exploring naming trends across American generations using the Social Security Administration's national baby names dataset.

📊 Overview

This project analyzes naming patterns from 1880 to 2019, examining how baby name popularity has evolved across different generations. The analysis reveals fascinating insights into cultural shifts, from the concentration of traditional names in earlier generations to the increasing diversity and individuality in recent decades.

🎯 Key Findings

  • Demographic Trends: Sharp spike in births during the 1960s "Baby Boom" followed by a gradual decline
  • Gender Patterns: Nearly even split between male and female births throughout the period
  • Name Concentration: Older generations showed highly concentrated naming patterns (e.g., Mary dominated for girls, John/James for boys)
  • Cultural Evolution: Modern generations (Gen Z and Gen Alpha) display significantly more diverse naming choices, reflecting broader cultural shifts toward individuality

📁 Dataset

Source: Social Security Administration's "Baby Names from Social Security Card Applications — National Data"

Access: Available at catalog.data.gov

Coverage: 1880–2019

Fields: Name, Sex, Year, Count

Note: The dataset represents names recorded on Social Security card applications (not every birth). Very low-frequency names may be excluded for privacy reasons.

🛠️ Installation

Prerequisites

  • Python 3.8+
  • Jupyter Notebook/Lab

Setup

  1. Clone this repository:
git clone https://github.com/yourusername/US-Baby_Names-Exploration.git
cd US-Baby_Names-Exploration
  1. Install required packages:
pip install -r requirements.txt
  1. Download the dataset:

📂 Project Structure

US-Baby_Names-Exploration/
├── US Baby Names Exploration.ipynb  # Main analysis notebook
├── names/                             # Raw data files (*.txt)
├── data/                              # Processed data outputs (ignored in git)
├── requirements.txt                   # Python dependencies
├── .gitignore                         # Git ignore rules
└── README.md                          # Project documentation

🚀 Usage

  1. Ensure your dataset files are in the names/ directory
  2. Open the Jupyter notebook:
jupyter notebook "US Baby Names Exploration.ipynb"
  1. Run all cells to reproduce the analysis

📈 Visualizations

The notebook includes three main visualization types:

  1. Line Plot: Total births per year by sex, showing demographic trends over time
  2. Pie Charts: Top 5 male and female names across all years
  3. Faceted Bar Charts: Top 5 names per generation, color-coded to show dominance patterns

Generations Analyzed

  • Greatest Generation: ≤1945
  • Baby Boomers: 1946–1964
  • Generation X: 1965–1980
  • Millennials: 1981–1996
  • Generation Z: 1997–2012
  • Generation Alpha: 2013+

🔧 Technologies Used

  • Python: Data processing and analysis
  • Pandas: Data manipulation and aggregation
  • NumPy: Numerical computations
  • Matplotlib: Data visualization
  • Jupyter: Interactive development environment

📝 Methodology

The analysis pipeline includes:

  1. Data Loading: Aggregating yearly text files into a unified DataFrame
  2. Data Cleaning: Handling missing values, standardizing formats, type conversions
  3. Feature Engineering: Calculating frequencies, ranks, and generational groupings
  4. Visualization: Creating publication-ready charts with Matplotlib

Note: Portions of the dataset transformation code were developed with AI assistance. All transformations and results were reviewed and validated by the author.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is open source and available under the MIT License.

👤 Author

Lana Geissinger

🙏 Acknowledgments

  • Social Security Administration for providing the dataset
  • U.S. Data.gov portal for data accessibility
  • Research inspired by "From Karen to Katie: Using Baby Names to Understand Cultural Evolution" (Psychological Science, 2012)

📚 References

About

A 140-year analysis of naming patterns, cultural shifts, and generational trends using the SSA dataset. Features data cleaning, Matplotlib visualizations, and exploratory analysis.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors