A data analysis study on how music affects university students' focus & productivity. Based on a 61-response survey at Egypt University of Informatics, covering genre preferences, listening habits, and self-reported productivity scores.
# Music While Studying vs Focus
A data analysis project for the **Data Analysis course** at **Egypt University of Informatics (EUI)**.
This study investigates how listening to music affects university students' focus, productivity, and stress while studying.
## Files
| File | Description |
|------|-------------|
| `Project_II_Music_While_Studying_vs_Focus.ipynb` | Main analysis notebook |
| `Report.docx` | Written report with findings |
## Tools & Libraries
`Python` · `Pandas` · `NumPy` · `Matplotlib` · `Seaborn` · `SciPy`
## 📊 Data Analysis Steps
1. **Data Collection** — 61 responses via Google Forms from EUI students
2. **Data Cleaning** — Handled missing values, renamed columns, fixed encoding issues, ordered ordinal categories
3. **Demographic Analysis** — Explored age groups, gender distribution, and daily study hours
4. **Music Habits Analysis** — Analyzed genre preferences, listening frequency, and preferred study tasks
5. **Focus & Productivity Analysis** — Box plots and scatter plots comparing productivity vs. distraction scores by music type
6. **Correlation Analysis** — Heatmap of productivity, distraction, and focus shielding scores
7. **Hypothesis Testing** — T-test comparing distraction levels between lyrical (Pop/Rap) vs. non-lyrical (Instrumental/Background noise) listeners
## Key Findings
- Over 90% of students listen to music while studying at least sometimes
- Average self-reported productivity score: **3.08 / 5** — music has a neutral impact overall
- **Rap and Pop** are the most popular genres despite being potentially more distracting
- **78.6%** of students say music helps reduce study-related stress
- Most students prefer **silence for deep-focus tasks**, suggesting music serves more as emotional comfort than a performance booster
- T-test result: **no statistically significant difference** in distraction between lyrical and non-lyrical music listeners
## Dataset
61 responses collected via Google Forms from EUI students aged 18 …