CoolFace
Datasetpublic

lipaz/StudentHabitsvsAcademicPerformance

Student Habits vs Academic Performance Dataset & Analysis by Lipaz Levy This project explores how students’ daily habits — including study hours, sleep, social media use, lifestyle factors, mental health, exercise, diet quality, and more — influence their academic performance. We used a dataset of 1001 students, each with lifestyle habits, well-being indicators, and exam scores.The goal was to answer: How do students’ daily habits affect their exam performance?… See the full description on the dataset page: https://huggingface.co/datasets/lipaz/StudentHabitsvsAcademicPerformance.

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes52downloads
README.md190 linesDownload Raw Back to root
1#  Student Habits vs Academic Performance  2Dataset & Analysis by Lipaz Levy3 4This project explores how students’ daily habits — including study hours, sleep, social media use, lifestyle factors, mental health, exercise, diet quality, and more — influence their academic performance.5 6---7We used a dataset of **1001 students**, each with lifestyle habits, well-being indicators, and exam scores.  8The goal was to answer:9 10 **How do students’ daily habits affect their exam performance?**11 12---13 14#  Data Cleaning & Preprocessing15 16Before performing analysis, several preprocessing steps were required to clean and prepare the dataset.17 18##  1. Checked for missing values  19- No missing values were found.20 21##  2. Fixed formatting issues  22- Trimmed spaces from categorical values (“ Yes” → “Yes”).23 24## 3. Encoded categorical variables for correlations & regressions  25Added encoded columns:26 27- **diet_quality_encoded**  28  - Poor → 0  29  - Fair → 1  30  - Good → 2  31 32- **internet_quality_encoded**  33  - Poor → 0  34  - Average → 1  35  - Good → 2  36 37##  4. Converted columns to numeric  38Ensured all measurement columns were floats:39- study_hours_per_day  40- sleep_hours  41- social_media_hours  42- netflix_hours  43- exercise_frequency  44- attendance_percentage  45- exam_score  46 47##  5. Dataset shape  48- **Original:** 1001 rows × 16 columns  49- **After encoding:** 1001 rows × 18 columns  50 51##  6. Outlier check  52- All values were within valid human ranges.  53- No rows were removed.54 55 56#  **Main Research Question**57**How do students’ daily habits affect their exam performance?**  58(study hours, sleep, social media, lifestyle factors)59 60---61 62# **Sub-Questions Analyzed**63 64### **Q1: Does studying more hours improve exam performance?**65![Study Hours Bar](study_vs_exam_bar.png)66![Study Hours Scatter](study_vs_exam_scatter.png)67 68**Result:** Strong positive correlation.69 70---71 72### **Q2: Does sleeping longer lead to higher grades?**73![Sleep vs Exam Score](sleep_vs_exam_scatter.png)74 75**Result:** Weak but positive correlation.76 77---78 79### **Q3: Does more time on social media reduce exam results?**80![Social Media Bar](social_media_vs_exam_bar.png)81![Social Media Scatter](social_media_vs_exam_scatter.png)82 83**Result:** Very weak negative effect.84 85---86 87### **Q4: Does internet quality influence exam performance?**88![Internet Quality Bar](internet_quality_vs_exam_bar.png)89 90**Result:** No meaningful correlation.91 92---93 94### **Q5: Do students with part-time jobs perform differently?**95![Part-Time Job Bar](part_time_job_vs_exam_bar.png)96 97**Result:** No major difference.98 99---100 101### **Q6: Does gender influence academic performance?**102![Gender Comparison](gender_correlation.png)103 104**Result:** Small differences, not significant.105 106---107 108### **Q7: Does exercise frequency improve exam outcomes?**109![Exercise vs Exam](exercise_vs_exam_score.png)110 111**Result:** Light positive trend.112 113---114 115### **Q8: Does watching more Netflix lower exam performance?**116![Netflix Hours](netflix_hours_vs_exam_score.png)117 118**Result:** Moderate negative effect.119 120---121 122### **Q9: Does attendance percentage affect exam scores?**123![Attendance vs Exam](attendance_vs_exam_score.png)124 125**Result:** Very small positive relationship.126 127---128 129### **Q10: Does better mental health predict higher exam performance?**130![Mental Health](mental_health_vs_exam_score.png)131 132**Result:** Clear positive effect.  133Mental health is one of the strongest predictors.134 135---136 137### **Q11: Does diet quality correlate with exam scores?**138![Diet Quality](diet_quality_vs_exam_score.png)139 140**Result:** Minimal effect.141 142---143 144#  **Additional Analysis**145 146 147 148### **Correlation Heatmap of All Variables**149![Correlation Heatmap](correlation_heatmap.png)150 151---152 153#  Dataset Structure (Data Dictionary)154 155| Column Name               | Description |156|--------------------------|-------------|157| student_id               | Unique student ID |158| age                      | Age of the student |159| gender                   | Male/Female/Other |160| study_hours_per_day      | Hours studied per day |161| sleep_hours              | Sleep duration in hours |162| social_media_hours       | Daily hours spent on social media |163| netflix_hours            | Hours spent watching Netflix |164| part_time                | Whether student works (Yes/No) |165| attendance_percentage    | Class attendance percent |166| sleep_hours              | Sleep duration |167| diet_quality             | Poor / Fair / Good |168| exercise_frequency       | Weekly exercise frequency |169| parental_education_level | Parent education (High school, Bachelor, Master…) |170| internet_quality         | Poor/Average/Good |171| mental_health_rating     | Scale 1–10 |172| extracurricular          | Participates in activities (Yes/No) |173| exam_score               | Final exam score |174 175---176 177#  **Conclusion**178Study time, mental health,sleeping  hours and exercise show positive influence on exam scores.  179Netflix hours and heavy social media use show negative or weak negative effects.  180Lifestyle factors such as attendance, diet, and internet quality matter less than expected.181 182Students who balance healthy routines — good study habits, sleep, mental well-being, and moderate screen time — tend to perform better academically.183 184---185 186#  Project Completed by  187 **Lipaz Levy**  188Reichman University — Data Analysis Project189 190